Application Development and Automation 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: 
Read only

GRN CANCELLATION

shaks_777
Discoverer
0 Likes
1,591

I am developing a program for GRN cancellation using BAPI FM 'BAPI_GOODSMVT_CANCEL' . What will be the logic?

'

I am developing a program for GRN cancellation using BAPI FM 'BAPI_GOODSMVT_CANCEL' . What will be the logic?

'

5 REPLIES 5
Read only

moshenaveh
Community Manager
Community Manager
0 Likes
1,521
Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members. For example, you can outline what steps you took to find answers (and why they weren't helpful), share screenshots of what you've seen/done, make sure you've applied the appropriate tags, and use a more descriptive subject line. The more details you provide, the more likely it is that members will be able to assist you. You should also make sure you're using all the appropriate tags, so the right experts can find your question.
Should you wish, you can revise your question by selecting Actions, then Edit.
Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS. By personalizing your profile with a photo of you, you encourage readers to respond.
Read only

VeselinaPeykova
Active Contributor
1,521

You need to ask the functional consultant who asked you to develop this program to provide you with a specification document in which the logic should be described.

Community members cannot know the reason why you have to develop a custom program and what problem that is not feasible in standard this program is supposed to solve.

Read only

Abinathsiva
Active Contributor
1,521

Hi,

Actually MIGO reversal is based on business requirement and getting confirmation on statutory impacts, better go ahead with by reading Material document / Material document year and get information/Records and pass to GOODS_MOVMENTS_CREATE with exact movement type by consulting MM/PP consultants ...

Read only

0 Likes
1,521

What you are proposing will not post a material document cancellation! It'll just post a material document with a reverse movement type. You should not confuse material document cancellation with posting a material document with reverse movement type.

BR, Dominik Tylczynski

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
1,521

Hello shaks_777

BAPI_GOODSMVT_CANCEL function is very straight forward to use and it's documented. You just pass to it the material document that you want to cancel. That's it. Also see how cancellation of a material document in MIGO or MBST transaction works - the concept is very much the same.

Best regards

Dominik Tylczynski