Application Development 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: 

Test on BAPI_NETWORK_COMP_ADD

Former Member
0 Kudos

Good morning gurus,

I have an issue regarding the BAPI_NETWORK_COMP_ADD.

I am currently working on a program that uses this BAPI to produce a reservation in the warehouse using wbs element, netowrk and material alongside with other details.

The issue is that currently the code is written to test if the material is movable, but it tests the XWAOK field on the RESB table after the order has been produced (after the COMMIT WAIT).

The result is that, even if the material linked to the NETWORK is not MOVABLE an error is raised but the order is produced.

I would like to know if it's possible to test if that material is movable BEFORE the commit of the BAPI_NETWORK_COMP_ADD, I tried to serach on the net and i debugged the BAPI many times but come up with nothing.

Do you have any suggestions on how to check if a material is movable right after the BAPI and before the commit? (or even before the call of the BAPI?).

The XWAOK field is set inside this BAPI and I noticed that it checks the stock for the material along with other details related to the material.

I thank you very much

0 REPLIES 0