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_REPMANCONF1_CREATE_MTS - Material Document Number

joo_gaia
Explorer
0 Likes
2,633

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

4 REPLIES 4
Read only

Abhijit74
Active Contributor
0 Likes
1,407

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

Read only

joo_gaia
Explorer
0 Likes
1,407

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

Read only

Abhijit74
Active Contributor
0 Likes
1,407

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

Read only

0 Likes
1,407

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