01-17-2006 10:05 PM
Hi,
I am using BAPI_PO_CREATE1 within my module programming. Whenever BAPI is executed for some scenarios it dumps though i verified that the internal tables passed to the BAPI still contain the right values. There is no exception handling for this BAPI & hence i only capture all the errors returned & handle them. But for cetain cases it dumps within the BAPI itself. I call BAPi two times one in test run & in the real mode. The test run doesnot dump but the real mode dumps.
Any kind of help is appreciated.
Thanks.
01-17-2006 10:11 PM
If you look at the dump analysis it will point out the place of dump. Can you tell us where is that? Also, do you have any piece of info in the error-analysis part?
01-17-2006 10:17 PM
The dump occured within the BAPI itself as shown below
Exception condition "FAILURE" raised.
Error analysis
A RAISE statement in the program "CL_HANDLE_MANAGER_MM==========CP" raised th
exception
condition "FAILURE".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
-
Source code extract
000010
000020 METHOD get.
000030
000040 IF my_manager is initial.
000050 CALL METHOD get_manager.
000060 ENDIF.
000070
000080 CALL METHOD my_manager->search EXPORTING im_id = im_id
000090 IMPORTING ex_handle = ex_handle
000100 EXCEPTIONS failure = 01.
000110
000120 IF sy-subrc ne 0.
> RAISE failure.
000140 ENDIF.
000150
000160 ENDMETHOD.
01-17-2006 10:41 PM
Take a look at OSS note <b>799617</b>. I think it is related to your problem.
01-17-2006 10:25 PM
Can you explain what you meant by 'test run' and 'real mode? Do you mean SE37(test mode) and program(real mode)?