ā2014 Feb 27 4:40 PM
Hi All
There is an ABAP program running the bapi BAPI_REPMANCONF1_CREATE_MTS.
There are two options in the selection screen for this program: Test Mode and Execution Mode.
In the Execution Mode there is a commit work after processing the BAPI. It's running OK.
In the Test Mode there isn't a commit work after processing the BAPI. It's running just to verify if there are error messages. The problem is that when the program runs in the Test Mode, one document number seems to be reserved.And after run in the execution mode, another document number is used.
The behavior that I expected is that the BAPI do not use a document number when runs the BAPI without a commit work. I tried I rollback work after the BAPI, but it didn't work.
Could you please help me?
Thanks in advance
Joao Gaia
ā2014 Feb 27 5:16 PM
Hello,
If the number ranges is setting internally then how can we prevent it from generating while using BAPI_REPMANCONF1_CREATE_MTS BAPI?.
I think then you have to try for other options (Different BAPI) For example there is a BAPI called BAPI_SALESORDER_SIMULATE which doesn't generates a number but it replicates sales order creation.
Thanks & Regards,
Abhijit
ā2014 Feb 27 5:41 PM
Hi Abhijit
Thank you for your response, but we are simulating MFBF, so we have to use the BAPI_REPMANCONF1_CREATE_MTS BAPI. It will create a document material in MIGO.
Regards
João Gaia
ā2014 Feb 27 5:51 PM
Hello,
But if it generates internally then how can we avoid that ? So we have to search for alternative option.
I gave an example of sales order because in that case the number is not generating.
Thanks & Regards,
Abhijit
ā2014 Feb 27 5:59 PM
Ok Abhijit - I got your point. The problem is that I didn't find a BAPI that could simulate what I need..maybe some flag in this BAPI?
thank you
João Gaia