Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DUMP IN PS_BAPI_INITIALIZE FM

Former Member
0 Likes
1,382

Hi experts,

I have a short dump in PS_BAPI_INITIALIZE FM with RAISE_EXCEPTION:

* Initialize message handler

   PERFORM bapi_message_handler_start

               CHANGING

                  e_msghand_num.

   IF sy-subrc <> 0.

     MESSAGE e034(cnif_pi) INTO null.

     PERFORM put_sy_message(saplco2o).

     RAISE message_handler_error.   // Send this RAISE EXCEPTION with short dump

   ENDIF.

What is the problem?

Best Regards.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,239

Try with BAPI_PS_INITIALIZATION, read its documentation, this is the one to be used.

From your point, if you check the function BAPI_BUS2001_CREATE, the function PS_BAPI_INITIALIZE is used without catching th exception and with an inline comment. Please check.

Is the dump from your custom code? what is happening actually ?

6 REPLIES 6
Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
1,239

Are you calling this FM in your code? If yes, then are you handling the MESSAGE_HANDLER_ERROR exception?

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,240

Try with BAPI_PS_INITIALIZATION, read its documentation, this is the one to be used.

From your point, if you check the function BAPI_BUS2001_CREATE, the function PS_BAPI_INITIALIZE is used without catching th exception and with an inline comment. Please check.

Is the dump from your custom code? what is happening actually ?

Read only

Former Member
0 Likes
1,239

I used PS_BAPI_INITIALIZE in FM BAPI_PS_PRECOMMIT and this FM is used in custome CODE.

Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
1,239

FM BAPI_PS_PRECOMMIT has a comment before the call to PS_BAPI_INITIALIZE saying that the exception from the latter is not caught by design as if an exception would indicate a program error. So, it's likely that you are not using the right FM or are not carrying out some pre-requisite steps. I would suggest that you debug and figure why is the exception being raised and then you will have a better idea.

Read only

Former Member
0 Likes
1,239

the function module BAPI_PS_PRECOMMINT is used in EXIT  in task decision in programing EXIT in WORKFLOW of PS project production.

Read only

Former Member
0 Likes
1,239

Can you help me?