‎2011 Aug 03 5:46 PM
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
‎2011 Aug 03 8:47 PM
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
‎2011 Aug 04 8:12 AM
Hi Sandra,
I have checked ST22, but there are no dumps related to this action.
‎2011 Aug 04 10:04 AM
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
‎2011 Aug 04 10:37 AM
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.
‎2011 Aug 04 10:48 AM
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.
‎2011 Aug 04 11:17 AM
but where does it go after COMMIT WORK? (and what is the statement above, as RK suggests, that could be a CALL TRANSACTION ... USING ...)