Which BAPI to use for GR for PO reversal (mvt 102)?

I'm trying for look for a BAPI that can used to post GR for PO reversal, which is mvt 102. I try to use BAPI_GOODSMVT_CREATE to do it, but I encounter errors, I have tried different set of parameters, but all are not sucessful. Below is the few set of parameters that I tried:
1)
goodsmvt_code-gm_code       = '06' .
goodsmvt_header-pstng_date  = sy-datum.
goodsmvt_header-doc_date    = sy-datum.
goodsmvt_item-stge_loc   = v_sloc.
goodsmvt_item-po_number  = v_po.
goodsmvt_item-po_item    = v_poline.
goodsmvt_item-move_type  = '101'.
goodsmvt_item-entry_qnt  = v_qty.
goodsmvt_item-XSTOB      = 'X'.
Error message: Goods movement not possible with mvmt type 102
2)
goodsmvt_code-gm_code       = '06' .
goodsmvt_header-pstng_date  = sy-datum.
goodsmvt_header-doc_date    = sy-datum.
goodsmvt_item-stge_loc   = v_sloc.
goodsmvt_item-po_number  = v_po.
goodsmvt_item-po_item    = v_poline.
goodsmvt_item-move_type  = '102'.
goodsmvt_item-entry_qnt  = v_qty.
Error message: Goods movement not possible with mvmt type 102
3)
goodsmvt_code-gm_code       = '01' .
goodsmvt_header-pstng_date  = sy-datum.
goodsmvt_header-doc_date    = sy-datum.
goodsmvt_item-stge_loc   = v_sloc.
goodsmvt_item-po_number  = v_po.
goodsmvt_item-po_item    = v_poline.
goodsmvt_item-move_type  = '102'.
goodsmvt_item-entry_qnt  = v_qty.
goodsmvt_item-mvt_ind    = 'B'.
Error Message: No goods receipt possible for purchase order 5000000017 00001
Does anybody knows the correct parameters for mvt 102? Or I'm using the wrong BAPI ? Please kindly help.

Hi,
the basic thing i guess is first you have reverse the PGI done in may now at the current date as the periods would have been closed for the previous months. And if it is in production then you cannot do a posting in a previous month just because, you would be forced to open the previos periods causing inconsitency in the chronology. But however there is a possibility of allowing posting in previous periods also by using MMRV. Pl try. but make sure it is acceptable for the business and does nt affect any other areas. But it might just do so.
Use T.code VL09  or use BAPI_GOODSMVT_CANCEL
refer the link
https://forums.sdn.sap.com/click.jspa?searchID=3586093&messageID=3598826
Regards

Similar Messages

  • Which BAPI can Create handling Unit for VL02N.

    Dear All,
         Which BAPI can Create handling Unit for VL02N.
    The Business is: VL02N, click head toolbar PACK, then call up handling Unit.
    Thanks

    Hi sun!
    I'm facing the same requirement since three days and i'm not able to get it workin.
    Did you resolve the problem and if yes which function modules did you use?
    Thanks in advance!
    Florian
    Edited by: Florian Visintin on Sep 17, 2009 10:21 AM
    Edited by: Florian Visintin on Sep 17, 2009 10:22 AM

  • My thuderbolt display is 3 weeks old which I'm using as display for my mac mini. I no longer get the display on but can hear the sound. Please suggest.

    My thuderbolt display is 3 weeks old which I'm using as display for my mac mini. I no longer get the display on but can hear the sound. Please suggest.

    Make sure the mini-displayport/TB plug is fully seated.  It may look fully plugged in but isn't.
    Make sure the Displays system preferences has an Arrangement tab.  No Arrangement means the monitor is not being detected.
    Do a smc reset.
    If none of this works I suggest you take it back to apple (along with your mini).

  • My macbook from 2008 which I bought used worked fine for 3 weeks and then suddenly it started restarting and now it restarts, goes to grey apple screen and a code saying something about a kernel panic appears and it restarts again and again. Help?

    My macbook from 2008 which I bought used worked fine for 3 weeks and then suddenly it started restarting and now it restarts, goes to grey apple screen and a code saying something about a kernel panic appears and it restarts again and again. Help?

    Restart the computer and immediately hold the Option key down.
    Select the Recovery partition and continue.
    On the next pane, select Disk Utility and continue.
    When DU opens, select your hard drive in the left column, click the First Aid tab, the click Repair Disk.
    When that is done, quit DU and restart in the usual way.

  • Which BAPI is using in BUS1012/CRETAE FROM DATA1

    Hi Experts,
    1) Pls. let me know that, Which BAPI is using in the following object,
    BO: BUS1012
    Method - CREATEFROMDATA1
    Message Type - PORDCR1
    Basic Type - PORDCR101.
    2 ) Can I use the same BAPI to create a REPORT prog., for the purpose of uploading my_purchase_orders_internal_table OR is there any complications?
    3) Or Wht is the tx code to see the METHODS?
    thanq
    Edited by: Srinivas on Feb 20, 2008 10:22 AM

    answered in other thread

  • US W4 form in MSS, which BAPIs to use?

    hi,
    I am building adobe interactive form for W4. In our scenario manager will use this form to input W4 information for NEW-HIRE. manger will use the new-hire's employee number to pre-populate some of the data on W4 form and inputs the rest of the data.
    I was wondering if I can get help on which BAPIs to use.
    1) To read employee information - firstname, lastname, ssn based on employee number
    2) To save W4 information based on employee number
    thanks,
    Sanketh

    Got it BAPI_W4W5INFOUS_CREATE.
    thanks

  • Linux: which toolkit is used in JVM for heavyweight components?

    Hi,
    which toolkit is used by the Linux-variant of the JVM for the heavyweight-components? GTK?
    Oxy

    java.awt.Toolkit is abstract. He means what implementation is used (motif-based, etc.). For example, sun.awt.motif.MToolkit.
    It might vary from one Linux variant to another (and from one JVM version to another), I'm not sure. But for any particular Linux system, you can run this program to find out:
    import java.awt.*;
    public class test {
       public static void main(String[] args) {
          System.out.println(Toolkit.getDefaultToolkit().getClass());
    }Edited by: BoBear2681 on Apr 24, 2008 3:37 PM

  • Which BAPI to use for Quotation?

    I found 2 FM in SAP.
    BAPI_QUOTATION_CREATEFROMDATA and BAPI_QUOTATION_CREATEFROMDATA2.
    Which is the latest and which is a better option for me?
    I find BAPI BAPI_QUOTATION_CREATEFROMDATA is simplier.
    Can someone advice.
    Thanks
    Bye
    Colin

    I
    Hi Colin
    BAPI_QUOTATION_CREATEFROMDATA   its easy to give few input parameters required while quotation creation
    MPORTING
    *"             VALUE(ORDER_HEADER_IN) LIKE  BAPISDHEAD
    *"                             STRUCTURE  BAPISDHEAD
    *"             VALUE(WITHOUT_COMMIT) LIKE  BAPI_STAND-NO_COMMIT
    *"                             DEFAULT SPACE
    *"             VALUE(CONVERT_PARVW_AUART) LIKE  BAPIFLAG-BAPIFLAG
    *"                             DEFAULT SPACE
    *"       EXPORTING
    *"             VALUE(SALESDOCUMENT) LIKE  BAPIVBELN-VBELN
    *"             VALUE(SOLD_TO_PARTY) LIKE  BAPISOLDTO
    *"                             STRUCTURE  BAPISOLDTO
    *"             VALUE(SHIP_TO_PARTY) LIKE  BAPISHIPTO
    *"                             STRUCTURE  BAPISHIPTO
    *"             VALUE(BILLING_PARTY) LIKE  BAPIPAYER
    *"                             STRUCTURE  BAPIPAYER
    *"             VALUE(RETURN) LIKE  BAPIRETURN1 STRUCTURE  BAPIRETURN
    And wher as   BAPI_QUOTATION_CREATEFROMDATA2   More input parameters required to create quotation with new release
    IMPORTING
    *"     VALUE(SALESDOCUMENTIN) LIKE  BAPIVBELN-VBELN OPTIONAL
    *"     VALUE(QUOTATION_HEADER_IN) LIKE  BAPISDHD1 STRUCTURE  BAPISDHD1
    *"     VALUE(QUOTATION_HEADER_INX) LIKE  BAPISDHD1X STRUCTURE
    *"        BAPISDHD1X OPTIONAL
    *"     VALUE(SENDER) LIKE  BAPI_SENDER STRUCTURE  BAPI_SENDER OPTIONAL
    *"     VALUE(BINARY_RELATIONSHIPTYPE) LIKE  BAPIRELTYPE-RELTYPE DEFAULT
    *"       SPACE
    *"     VALUE(INT_NUMBER_ASSIGNMENT) LIKE  BAPIFLAG-BAPIFLAG DEFAULT
    *"       SPACE
    *"     VALUE(BEHAVE_WHEN_ERROR) LIKE  BAPIFLAG-BAPIFLAG DEFAULT SPACE
    *"     VALUE(LOGIC_SWITCH) LIKE  BAPISDLS STRUCTURE  BAPISDLS OPTIONAL
    *"     VALUE(TESTRUN) LIKE  BAPIFLAG-BAPIFLAG OPTIONAL
    *"     VALUE(CONVERT) LIKE  BAPIFLAG-BAPIFLAG DEFAULT SPAC
    Regards,
    Seegal

  • HT6114 help! since moving to Mavericks i am unable to save *.gpx files when using online mapping - this did not occur with Mt Lion and is highly annoying - the mapping product is SATMAP which i have used on PCs for several years -

    I have used Satmap online mapping for several years on a PC
    Now moved to Mac and all was ok until i moved to Mavericks!!
    I can no longer save *.GPX files to the Mac - it appears to do everything except actually saving the file
    Any ideas before i have to buy another PC would be helpful
    This is using Safari I have also tried Firefox all software is up to date
    this is on my Imac and Macbook Pro both 2013

    I have used Satmap online mapping for several years on a PC
    Now moved to Mac and all was ok until i moved to Mavericks!!
    I can no longer save *.GPX files to the Mac - it appears to do everything except actually saving the file
    Any ideas before i have to buy another PC would be helpful
    This is using Safari I have also tried Firefox all software is up to date
    this is on my Imac and Macbook Pro both 2013

  • Anyway of determing which canon cameras use avi files for its video?

    my computer does not support mov files. it is vista software. i dont want to download conversion software for mov to avi. looking for a simple way of going thru canon's cameras to find the ones that uses avi.

    concho195 wrote:
    my computer does not support mov files. it is vista software. i dont want to download conversion software for mov to avi. looking for a simple way of going thru canon's cameras to find the ones that uses avi.
    dpreview.com has a compare cameras feature that lets you compare up to 20 models at once. You just could load a bunch in and see if it gives you what you want.
    http://trulandphoto.zenfolio.com/
    http://trulandphoto.blogspot.com/

  • Which printers are used by apple for printing photo books

    I was wondering how I had to sharpen my images for photobook printing using aperture. Can I download there printerprofiles anywhere?

    I'm back from the Apple store and ran setup on the new machine.  When I tried to transfer my old information, the setup would recognize my external hard drive.  I called Apple and they said setup only recognizes Time Machine or other real backups of a machine. 
    They were great anyway and walked me through the manual process of dragging and dropping my users folders to recreate my old machine on the new AIr.
    It turned out ok.
    bg

  • Which BAPI and how to use it in order to modify results

    Hello,
    I need to enter the results of an Inspection Lot using an external program.
    Below is a screenshot of QA32:
    - The round circles show what I know;
    - The arrow shows what I wish to modify;
    I would appreciate some help on the following topics:
    - Which BAPI to use;
    - How to fill the BAPI;
    - Does the BAPI need BAPI_TRANSACTION_COMMIT after?
    Thanks in advance for your help.
    Regards,
    João

    Hi,
    Not certain what your external system is, but it may be worthwhile to go through the QM-IDI documentation to see if that meets your requirements
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/26/b43927506511d182c20000e829fbfe/frameset.htm
    Alternately, take a look at BAPI_INSPOPER_GETDETAIL to determine how the lot expects to receive results, and BAPI_INSPOPER_RECORDRESULTS to set the results accordingly
    Regards,
    JL

  • Problem while using BCP utility for witing data in file

    hi all,
    I have a batch file in which I am using bcp command for reading data from MS SQL and writing it in delimiter file. Now there are some exceptions in MS SQL that while writing into file whenever it encounters new line character it switches to next line while writing and starts writing the rest of the data on next.
    Could you help me in getting rid of this problem. I wanted to replace the new line character with space.
    Thanks and regards
    Nitin

    Hi Dilip,
    Before going for any other table,
    As Kalnr is only one of the primary keys of table KEKO, You can try creating secondary index on KEKO, which might help in improving your report performance.
    Also, you can add more conditions in where clause if possible, which will also help in improving performance.
    Thansk,
    Archana

  • Bapi is used to 'post incoming payments (t-code F-28)'

    hi all
    can any one tell which bapi is used to 'post incoming payments (t-code F-28)'.
    thanks in advance,
    lokesh

    Hi
    Try 'BAPI_ACC_GL_POSTING_POST' and fill the parameters correctly.Contact ur functional to fill it correctly.
    That will work.
    If helpful give me points.
    Regards
    Manas Ranjan Panda

  • How to know which BAPi is being used for creation of PO in classic scenario

    Hello Experts,
    We are in SRM 7.0 classic scenario.
    How can we know which BAPI is being used in the calssic scenario i.e. How can we know if we are usind BAPI_PO_CREATE or BAPI_PO_CREATE1 for creation of PO?
    Any pointers will be highly appreciated.
    Thank you in advance,
    Thanks & Regards,
    RKS

    Hi RKS
    yesterday BLOG by our SUMMER WANG helps every SRM consultant to debug the PO error
    /people/summer.wang/blog/2010/05/11/trouble-shooting-of-srm-po-transfer-error
    Good work Summer wang !!
    Muthu

Maybe you are looking for

  • FTP download from AS400-Help me!

    Hi all, I'm very frustrated!!!!. I'm trying to download a file from AS400 via FTP using org.apache.commons.net.FTPClient class, but as i download it by ftpClient.retrieveFile(remotePath,anOutputStream) i get a no ASCII file (opening file in local mac

  • How do i connect apple tv

    Tried unsuccessfully to connect Apple TV.  Worked fine before I upgraded my Comcast service about 5 months ago and I only recently tried to use it again. I coincidentally have lost the cable signal to my television.

  • Inserting one table records to the another table

    Hi There Though i don't close the Result set , My program throws the following Exception java.sql.SQLException: ResultSet is ClosedBecause of this my program Inserts only one record in the another table My code is this import java.awt.*; import java.

  • Multiple inspection against Batch

    Hi, My client doing the inprocess quality checking of the same set of inprocess characteristics every hour for a particular bacth during production. They have both REM and PP-PI and we are using 03 and 13 inspection types for inprocess checking.Now h

  • Using an iPod nano while mowing the grass?

    What's the best iPod holder and earphones for use while mowing the grass with a self-propelled push mower? Right now I'm using the enclosed iPod earphones, which have no external noise suppression and I'm simply putting the ipod in my pocket, which m