2008 Jan 04 9:57 PM
Hi,
I'm trying to do PGI for returns delivery through BAPI_GOODSMVT_CREATE.
The when the delivery is opened through VL02N, the Post Goods Issue button has Post Goods Receipt text written on it. When the GI is done, the material document has movement type 651.
However I'm not able to create the same through the BAPI. I have tried various combinations of GM_CODE and all other variables. Have anybody of you tried doing movement type 651 for a returns delivery using the same BAPI?
Please reply if you've come across some similar situation. I know how to use the BAPI, I've been using it successfully for other movement codes etc. It's only in this case that I'm stuck up.
Regards,
Vijay
2008 Jan 04 10:11 PM
PGI is not supported by this BAPI, you will have to write a small BDC for that. All it takes is one screen (initial screen of VL02N), enter the delivery number and click on that button and go back to SAP initial screen. This is a very small BDC and is the only option.
Hi,
I'm trying to do PGI for returns delivery through BAPI_GOODSMVT_CREATE.
The when the delivery is opened through VL02N, the Post Goods Issue button has Post Goods Receipt text written on it. When the GI is done, the material document has movement type 651.
However I'm not able to create the same through the BAPI. I have tried various combinations of GM_CODE and all other variables. Have anybody of you tried doing movement type 651 for a returns delivery using the same BAPI?
Please reply if you've come across some similar situation. I know how to use the BAPI, I've been using it successfully for other movement codes etc. It's only in this case that I'm stuck up.
Regards,
Vijay
2008 Jan 04 10:11 PM
PGI is not supported by this BAPI, you will have to write a small BDC for that. All it takes is one screen (initial screen of VL02N), enter the delivery number and click on that button and go back to SAP initial screen. This is a very small BDC and is the only option.
2008 Jan 04 10:57 PM
Thanks.
I found FM WS_DELIVERY_UPDATE_2 it is doing PGI.
I Couldn't take the BDC approach due to some constraints.
But thanks.
Cheers,
Vijay
2008 Jan 04 11:03 PM
But i'm surprised it doesn't do PGI.
Because MB1A is also supposed to do some kind of a PGI right?
Even MB1A doesn't have the movement type 651 in it.
Sometimes SAP is very strange.
Regards,
Vijay
2008 Jan 07 8:45 PM
True MB1A is a goods issue transaction but the movement types it covers are relevant for manual goods movement, but PGI is a sales related goods issue and may be to due to its complexity it is not included in the MB1A movements.
2008 Jan 07 8:47 PM
Yes,
Vijay is correct, long back even i have used the same FM for PGI.
Regards,
Satya
2008 Feb 25 10:06 PM
Hi Vijay,
can u pls tell me how did u do it....i am also having the same requirement....
Developed a custom program for creating and updating Goods Movement Document by using BAPI_GOODSMVT_CREATE & WS_DELIVERY_UPDATE_2.
thanks, Ankita.