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_GOODSMVT_CREATE in Simulate/Normal mode

Former Member
0 Likes
675

Hi Gurus,

we are using BAPI_GOODSMVT_CREATE to create Material document and to find out if there are any errors generated.

Earlier we are using BAPI_GOODSMVT_CREATE in simulate mode, but because it is not picking up some of the errors in Simulate mode, we are forced to use the BAPI is normal mode in order to find the errors.

We do not require the document number to be actually created so we are not using COMMIT statement after the BAPI call.

The problem here is after the BAPI executed, the material document number is getting generated and when we execute the BAPI again, the next material document number is getting created. we don't want the material document numbers to generate. Can't we stop generating the material document, if we don't want it to be?

Please let me know.

Thanks, Jaya.

2 REPLIES 2
Read only

Former Member
0 Likes
455

Hi

That's not possible, u can only run the BAPI_GOODSMVT_CREATE in simulate way.

U should considere if you run the BAPI BAPI_GOODSMVT_CREATE in simulate way and any message is returned, it means there's no error.

Max

Read only

0 Likes
455

Yeah Earlier we were using the BAPI in simulate mode, but as I mentioned, It is not picking up some of the FI validation errors in Simulate mode, we are forced to use the BAPI is normal mode in order to find the errors in FI Validations.