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 with Bapis

Former Member
0 Likes
1,238

Hi to all! this time im having a serious problem...the situation is like this:

I have severals bapis chained.

1- CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

2- CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

3- CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'

4- CALL FUNCTION 'BAPI_PO_CREATE1'

5- CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

6- CALL FUNCTION 'BAPI_PO_CREATE1'

7- CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

8- CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

If i put some

breaks

between the Bapis the process finishes well!!!, but if i clear the breaks a DUMP appeared.
The dump is:

Txt.brv.
Exception condition "FAILURE" raised.
¿what had happened?
The current ABAP/4 program encountered an unexpected
situation.
Errors
A RAISE statement in the program "CL_HANDLE_MANAGER_MM==========CP" raised the
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.
-


Error Position


Programa CL_HANDLE_MANAGER_MM==========CP
Include CL_HANDLE_MANAGER_MM==========CM005
Línea 13
Tp.módulo (METHOD)
Nombre módulo GET
Source code detail
Línea Cód.fte.
1
2 METHOD get.
3
4 IF my_manager is initial.
5 CALL METHOD get_manager.
6 ENDIF.
7
8 CALL METHOD my_manager->search EXPORTING im_id = im_id
9 IMPORTING ex_handle = ex_handle
10 EXCEPTIONS failure = 01.
11
12 IF sy-subrc ne 0.
>>>>> RAISE failure.

14 ENDIF.

15

16 ENDMETHOD.

well, as usual, i promise rewarded points for help!

Thanks in advance!

Hi to all! this time im having a serious problem...the situation is like this:

I have severals bapis chained.

1- CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

2- CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

3- CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'

4- CALL FUNCTION 'BAPI_PO_CREATE1'

5- CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

6- CALL FUNCTION 'BAPI_PO_CREATE1'

7- CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

8- CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

If i put some

breaks

between the Bapis the process finishes well!!!, but if i clear the breaks a DUMP appeared.
The dump is:

Txt.brv.
Exception condition "FAILURE" raised.
¿what had happened?
The current ABAP/4 program encountered an unexpected
situation.
Errors
A RAISE statement in the program "CL_HANDLE_MANAGER_MM==========CP" raised the
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.
-


Error Position


Programa CL_HANDLE_MANAGER_MM==========CP
Include CL_HANDLE_MANAGER_MM==========CM005
Línea 13
Tp.módulo (METHOD)
Nombre módulo GET
Source code detail
Línea Cód.fte.
1
2 METHOD get.
3
4 IF my_manager is initial.
5 CALL METHOD get_manager.
6 ENDIF.
7
8 CALL METHOD my_manager->search EXPORTING im_id = im_id
9 IMPORTING ex_handle = ex_handle
10 EXCEPTIONS failure = 01.
11
12 IF sy-subrc ne 0.
>>>>> RAISE failure.

14 ENDIF.

15

16 ENDMETHOD.

well, as usual, i promise rewarded points for help!

Thanks in advance!

4 REPLIES 4
Read only

Former Member
0 Likes
842

Hi,

Try to use this Bapi in between every Bapi you have used.

Call Function 'Bapi_Transaction_commit'

exporting

wait = 'X'.

Regards,

Aman

Read only

Former Member
0 Likes
842

Hi Andrew,

Check weather the Exception reaised in program is defined in BAPI or not. This dump is showing xception raise problem.

Ashven

Read only

Former Member
0 Likes
842

Hi

Can you pls paste the whole of the shortdump details for better understanding ?

Regards

- Atul

Read only

Former Member
0 Likes
842

Serialization of BAPIs would have an issue with database update times. I mean, if the load on your system is high, the actual commit-work may not have happened, even if you called the bapi-transaction-commit! we have faced this issue often, and always resolved it by trying to enqueue the object and dequeue it each time we plan to use it.

Check if your code works in debug-mode, where the execution will be much slower than real-time scenarios. If so, my point above is quite definitely the problem you're facing.