118:
119: Pa_Debug.G_Stage := 'Check if need to initialize the error message stack.';
120: If Fnd_Api.To_Boolean(nvl(P_Init_Msg_List,Fnd_Api.G_True)) Then
121:
122: Pa_Debug.G_Stage := 'Initialize the error message stack by callling Fnd_Msg_Pub.Initialize() procedure.';
123: Fnd_Msg_Pub.Initialize;
124:
125: End If;
126:
119: Pa_Debug.G_Stage := 'Check if need to initialize the error message stack.';
120: If Fnd_Api.To_Boolean(nvl(P_Init_Msg_List,Fnd_Api.G_True)) Then
121:
122: Pa_Debug.G_Stage := 'Initialize the error message stack by callling Fnd_Msg_Pub.Initialize() procedure.';
123: Fnd_Msg_Pub.Initialize;
124:
125: End If;
126:
127: X_Return_Status := Fnd_Api.G_Ret_Sts_Success;
497: Exception
498:
499: When l_Error Then
500: X_Return_Status := Fnd_Api.G_Ret_Sts_Error;
501: l_Msg_Count := Fnd_Msg_Pub.Count_Msg;
502: If l_msg_count = 1 Then
503: Pa_Interface_Utils_Pub.Get_Messages(
504: p_encoded => Fnd_Api.G_True,
505: p_msg_index => 1,
623:
624: Pa_Debug.G_Stage := 'Check if need to initialize the message error stack.';
625: If Fnd_Api.To_Boolean(nvl(P_Init_Msg_List,Fnd_Api.G_True)) Then
626:
627: Pa_Debug.G_Stage := 'Initilize the message error stack by calling the Fnd_Msg_Pub.Initialize() procedure.';
628: Fnd_Msg_Pub.Initialize;
629:
630: End If;
631:
624: Pa_Debug.G_Stage := 'Check if need to initialize the message error stack.';
625: If Fnd_Api.To_Boolean(nvl(P_Init_Msg_List,Fnd_Api.G_True)) Then
626:
627: Pa_Debug.G_Stage := 'Initilize the message error stack by calling the Fnd_Msg_Pub.Initialize() procedure.';
628: Fnd_Msg_Pub.Initialize;
629:
630: End If;
631:
632: X_Return_Status := Fnd_Api.G_Ret_Sts_Success;
799:
800: Exception
801: When l_Error Then
802: X_Return_Status := Fnd_Api.G_Ret_Sts_Error;
803: l_Msg_Count := Fnd_Msg_Pub.Count_Msg;
804: If l_msg_count = 1 Then
805: Pa_Interface_Utils_Pub.Get_Messages(
806: p_encoded => Fnd_Api.G_True,
807: p_msg_index => 1,