2007 Dec 28 9:03 AM
Hi Gurus,
I have a custom report, let's call it YREV, in ABAP that uses the FM 'L_TO_CREATE_MULTIPLE' and gives an error as follows:
"(STOP) Material is not the same for confirmation and delivery"
Note: (STOP) is an icon.
The scenario is that YREV is called from a custom dialog program, which we will call SAPMYCUS, when the Reverse radiobutton is chosen and Enter button is pressed.
This is used to reverse the posted GI of a given Outbound Delivery.
The problem is that the error mentioned above is shown on screen and yet when I check, the reversal to the GI is done.
Why is this so?
The client who needs this program is complaining that the reversal is done but only partially.
How do I check this "partial cancellation"?
Is there any other FM that can replace this?
According to [this|http://help.sap.com/saphelp_40b/helpdata/en/c6/f83a434afa11d182b90000e829fbfe/content.htm], these FMs were created so that it is easier compared to using batch input to process transfer orders.
I'm starting to think otherwise.
Hoping for your help regarding this matter.
Thanks.
~ ric
2007 Dec 28 9:43 AM
Hi Ric,
I would strongly advice you to look for an alternative to the function module in a BAPI module. Although a BAPI is also a function module, however it is the better alternative to batch inputs and BAPIs have a pretty good error handling mechanism in the form of a RETURN parameter through which it returns the status of the action.
If you let me know what you are exactly trying here - the transaction/update - I can help find a suitable BAPI.
Good place to look for a BAPI is the transaction BAPI or through SWO1 (Business Object Repository).
Regards,
Aditya
2007 Dec 29 1:34 AM
Hello Aditya,
Thanks for showing interest in my question.
To answer your question of what I am trying to do, I hope this can shed some light.
I was given a PO number and an Outbound delivery number to work with.
We have created a custom (module) program that handles transactions regarding outbound deliveries, and one feature of this program is to do a reversal of Outbound deliveries already posted.
When using this reversal feature using the given PO as reference, the error message which I mentioned in my previous post, is displayed on screen.
The user is curious why this happens and yet the posted outbound delivery involved is reversed.
Additional info:
VL02n > Post Goods Issues - to process(?) given Outbound delivery
Custom program - to do the reversal process
VL02n does Mvt 641 while the reversal does Mvt 642.
I apologize as to not being so clear but I am not so well versed with MM and its workings.
Thanks.
~ ric