When I save with vl02n I want to add an additional position to the existing outbound delivery. I have tried BAPIs/FMs like
But they seem to work only to change existing positions (not to add a new one).
I've also tried to add the new position programatically to itabs
in the PBO, PAI sections of vl02n. It then shows it on the screen but the new position is not saved after you press save.
I've also tried playing the the above itabs in user exit USEREXIT_SAVE_DOCUMENT_PREPARE without success.
Has anyone done this before and knows how its done?