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: 

Material marked for deletion BAPI_ALM_ORDER_MAINTAIN

Former Member
0 Kudos

Hello,

For a custom program we're using the bapi BAPI_ALM_ORDER_MAINTAIN. The program has to do the same thing as in IW32.

When you add an material and it's marked for deletion, it should add a second line with the follow up material.

I've tried several ways to simulate this with the BAPI but can't get it to work. Now I just add the new line like in IW32, but when the itab is processed by the BAPI it changes that line's posnr to the next when.

So my goal is:

  • Add marked for deletion material with posnr 0010 & quantity 123
  • Message + new line with follow up material with same posnr & quantity 0
  • Save
  • record that was marked for deletion has quantity 0
  • record with the follow up material has quantity 123

Thanks in advance!

0 REPLIES 0