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

BAPI_TRANSACTION_COMMIT exits the include

Former Member
0 Likes
903

Hi,

I have to create a contract with sliding scale conditions included in the contract. As I came to know that this can't be done directly by BAPI_CONTRACT_CREATE, I'm creating the contract first and then trying to modify it using BAPI_CONTRACT_CHANGE.

But the control exits the include when it is executing BAPI_TRANSACTION_COMMIT after the first contract creation BAPI and the contract change is not being executed. What could be the problem?

Please help.

Thanks,

Faheem

6 REPLIES 6
Read only

Sandra_Rossi
Active Contributor
0 Likes
807

Hi Faheem,

If the system doesn't continue at the line right after BAPI_TRANSACTION_COMMIT call, the only possibility I see is that it is because of a runtime error (leading to a dump). Did you see that by debug? What is the next statement. Check the dumps in ST22 transaction, and tell us if there is something, and what exception it is.

BR

Sandra

Read only

0 Likes
807

Hi Sandra,

I have checked ST22, but there are no dumps related to this action.

Read only

0 Likes
807

Hi Faheem,

and how do you know it exits BAPI_TRANSACTION_COMMIT, did you see that by debug, step by step? Where does it continue? I ask because there is no reason it can stop at this function module.

Sandra

Read only

0 Likes
807

Hi Sandra,

The program exits after "COMMIT WORK". I have alse tries replacing "BAPI_TRANSACTION_COMMIT" with just "COMMIT WORK" and the same thing happens. Even when we go inside the FM BAPI_TRANSACTION_COMMIT, the control moves out after COMMIT WORK.

Faheem.

Read only

0 Likes
807

Hi,

Is this code written inside any BDC , or inside any call transaction method ?

If you are calling this transaction using call transaction method then you need to put RACOMMIT = 'X' in BDC options tab.

Thanks:

RK.

Read only

0 Likes
807

but where does it go after COMMIT WORK? (and what is the statement above, as RK suggests, that could be a CALL TRANSACTION ... USING ...)