Hi All
The requirement is to develop a custom program that after runs BAPI_REPMANCONF1_CREATE_MTS and BAPI_TRANSACTION_COMMIT exporting wait = 'X'....
At the same program I need to obtain the OT number. The problem is that although everthing runs OK - I can see OT at LB03 transaction after the end of the program - I can't obtain the OT number at runtime.
I tried:
- BAPI_TRANSACTION_COMMIT exporting WAIT = 'X' ;
- wait up to '5' seconds
- do ... enddo
- commit work and wait
but nothing is working.
If I stop the program and debug it, then my SELECT to obtain the OT number, runs OK.
Probably there is a delay between the creation of the OT and the end of the program.
Could you help me?
Thanks in advance
Joao Gaia