Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get OT immediatly after processing bapi BAPI_REPMANCONF1_CREATE_MTS

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:


- 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

Not what you were looking for? View more on this topic or Ask a question