‎2013 Jan 25 9:03 AM
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.
‎2013 Jan 25 9:34 AM
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 ?
‎2013 Jan 25 9:11 AM
Are you calling this FM in your code? If yes, then are you handling the MESSAGE_HANDLER_ERROR exception?
‎2013 Jan 25 9:34 AM
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 ?
‎2013 Jan 25 9:46 AM
I used PS_BAPI_INITIALIZE in FM BAPI_PS_PRECOMMIT and this FM is used in custome CODE.
‎2013 Jan 25 10:11 AM
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.
‎2013 Jan 25 10:16 AM
the function module BAPI_PS_PRECOMMINT is used in EXIT in task decision in programing EXIT in WORKFLOW of PS project production.
‎2013 Jan 28 7:28 AM