PGI with WS_DELIVERY_UPDATE- Goods Movement doc status set to 'Archived'

Hi experts,
I have a report in which I am trying to do PGI for an outbound delivery. The PGI is successful but the Goods movement document created by PGI is being archived immediately. It should not be archived. Is there any parameter that I need to change or use a different FM for PGI?
The code looks like this
carry out goods issue
LOOP AT it_likp INTO likp_wa.
        CLEAR lv_error.
        l_vbkok-vbeln_vl = likp_wa-vbeln.
        l_vbkok-wabuc = 'X'.  u201Cvariable to set Post good issue automatically
        CLEAR lv_pgi.
        CALL FUNCTION 'WS_DELIVERY_UPDATE'
          EXPORTING
            vbkok_wa                  = l_vbkok
            synchron                  = 'X'
            no_messages_update        = ' '
            update_picking            = 'X'
            commit                    = ' '
            delivery                  = likp_wa-vbeln
            nicht_sperren             = 'X'
          IMPORTING
            ef_error_in_goods_issue_0 = lv_pgi
          TABLES
            prot                      = l_prott
          EXCEPTIONS
            OTHERS                    = 0.
        IF sy-subrc <> 0 OR lv_pgi EQ 'X'.
          lv_error = 'X'.
        ENDIF.
  ENDLOOP.
Thanks for your help in advance.
Nalini.

Flow
The sequence of flow will be as follow:-
(1). Delivery document number is
entered in ‘VF01’ and Enter is pressed.
(2). Post Goods Issue is done in
the background if the delivery document number exists.
(3).After Doing PGI the billing
process is continued.
Design
Step1 Created
a project in CMOD named ZV60A001.
Step2 Create
a Customer exit component EXIT_SAPLV60A_002 in project ZV60A001.
Step3 In Exit there is a custom exit which is not
created, Press Enter and create include “”.
Step4 The
Function Module “CSO_P_DLVRY_GOODS_ISSUE_CREATE” is used.
Step5 The Function Module is passed with the parameters:-
EXPORTING
Pi_deliv_numb which
IMPORTING
Pe_return1 which is Return Parameter(s), is
a structure which returns error description, if any.
Pe_gi_blocked which is checkbox field, for telling if the PGI is blocked.
Hope this helps...

Similar Messages

  • No Goods movement (LIPS-NOWAB) setting

    Hi All,
    As per our specific business process in 4.6 C , I have configured no Goods movement indictor setting default by new confirmation control key with un-checking 'GR assignement'
    Inbound delivery will be processed and get the document flow as Service confirmation - Completed for LPA document.
    Issue we are facing is since Inb dely not relevant for good movement, in MD04 Inbound dely shown as MRP element status Intransit which is causing more lines piled-up in MD04. On long run this will cause issue on MD04.
    I got ref from prev threads
    maybe OSS notes Note 201655 - Goods movement relevancy of inbound deliveries f. POs (This is not relevant for 4.6C)
    and Note 704274 - Inbound delivery item relevant for distributn but not for GR
    So how do we control piling up Inbound dely lines in MD04 as MRP elements?
    Really appreciate your response!
    Thanks
    Siva

    maybe OSS notes
    Note 201655 - Goods movement relevancy of inbound deliveries f. POs
    and
    Note 704274 - Inbound delivery item relevant for distributn but not for GR
    can help you further
    the mentioned OMGZ transaction does not exist in newer releases, this is actually the customizing of confirmation control for purchase orders

  • Problem with reverse goods movement

    Good Morning.
    I faced a problem with "schedule line" for an item in a sales order.
    I've an order quantity of about 14.000 pieces.
    I've created a partial outbound delivery for 8.000 pieces, but then for a problem, I made a "reverse goods movement" with VL09 for all 8000 pieces.
    When I came back into item's schedule line, I see in "Delivery quantity" column that is not considered the reverse goods momevent.
    I see that delivery quantity is still 8000.
    Can You give me some suggestion??
    Regards.

    There is no trasfer order in Sales Document Flow.
    Sales Order 10600587 / 10               12.12.07           14.000,000  NR      Completed          
    Delivery  8020600166 / 10                12.12.07           14.000,000  NR      Being rocessed    
    Picking request 20071212                   12.12.07           14.000,000  NR      Completed          
    GD goods issue:delvy 5500004772 / 1        12.12.07           14.000,000  NR      complete           
    RE goods deliv. rev. 5500004773 / 1        12.12.07           14.000,000  NR      complete           
    Delivery quantity is still 14000.

  • Goods movement not possible with mvmt type 966 .

    Hi guys....'
    i use BAPI_GOODSMVT_CREATE to do goods receive without PO into unrestricted use...
    these are the parameters
    HEADER:
    PSTNG_DATE: 30.09.2004
    DOC_DATE: 30.09.2004
    HEADER4_TXT: XXXXXX
    GOODSMVT_CODE: 03
    GOODSMVT_ITEM:
    MATERIAL: XXXXXX
    PLAN: 8000
    STGE: 80FG
    BATCH: AQ305
    MOV: 966
    ENTRY_QNT: 1
    ENT_UOM: EA
    ENT_UOM_ISO: EA
    ITEM_TXT: XXXXXX
    GR_RCPT: XXXX
    COSTCENTER: 22000
    the rest... empty....
    Thank you for your help....
    How to find out  GOODSMVT_CODE  relationship with the good movement ?
    Message was edited by: Kokwei Wong

    You can find the relation of GM_CODE and Transaction in table 'T158G'.
    And you can see the further information about this function in BAPI Explorer -> Select your method -> Select tab 'Documentation'.
    Cheers,
    Thitima

  • With out goods issue confirmation should not be done

    Dear all ,
    Is there any method or user exit to  stop the confirmation with out goods issue to the production order.
    Regards
    Srinivas

    Reddy,
    User status to my is not a good solution if you are really looking to restrict confirmation if goods are not Issued, the reason why I am saying is that you can have referance of user status with respect to "GMPS"-Goods movement posted status.
    The major draw back is that SAP sets this status for partial goods movement or even incase GR alone is done, so how can this really help...
    Regards,
    Prasobh

  • BAPI_PROCORDCONF_CREATE_TT Goods Movement Posting Problem

    When performing a process order confirmation via the BAPI_PROCORDCONF_CREATE_TT, I'm experiencing some difficulties with the goods movements.  Specifically, when attempting to post a goods receipt to the order via a 101 movement along with a goods issue to the order via a 261 movement, the movements are posting as two separate material documents instead of a single material document.  Secondly, the movements post under the transaction code COGI (from the MKPF-TCODE2 field) which seems a little odd to me as I was expecting something specific to the BAPI or at least COR6N.
    For others utilizing this BAPI with goods movements specified, what transaction code do the materials post under and is there some config or setting directly in the BAPI which I'm missing to ensure goods movement postings occur under a single material document?
    Thanks in advance for any/all assistance,
    Randy Lintz
    Foster Farms
    Livingston, California

    Hi Randy,
    Please check with T-Code CORK & also check hte confirmation configuration in OPK4.
    Check the "All Components" under Generally Valid settings Tab.
    Thanks

  • Enable Goods Movement Error Handling on Inventory Management

    Hello gurus.
    The Production department uses transaction COGI (Automatic Goods Movement Error Handling) to track what automatic goods issues were not performed due to errors like stock deficit, etc.
    My question is; is it possible to use this same COGI transaction to store manual goods movements that also end up in an error?
    For example, if I go to MIGO and I perform a Goods Issue with Movement Type 201; if I don't have enough stock of the material, normally I get an error and I cannot continute; instead I want the movement to fail and go to transaction COGI, where I can deal with it later.
    The main goal is not to interrupt the capture of the Goods Issues, if there is not enough stock in the system, the person should not stop to correct the error. It's something that is desired to deal with later.
    Any possibilities that you see?

    Hi,
      COGI transaction is Goods movements error status while process order or production order level.
      If Goods are not avaiable in store/warehouse, how to post thru' 201 movement. In case stock is avaiable goods movements are only thru' 261 movement.
      regards,
      satish kumar

  • Dependent goods Movement was incorrect

    Hi all
    I am having an error in my COGI whenever I confirm a collective order. Error says that "Dependent goods Movement was incorrect". What does that mean?

    There could be a program error in standard SAP. I would suggest you to search in OSS, I found the following notes and error RU523 will be raised for different settings in IMG due to bug,
    458140      RU523: Incorrect grouping of dependent goods movements      
    793058      RU523: Incorrect summary of dependent goods movements      
    389690      Collective order confirmation: Storage location transfer      
    354564      Collective order:dependent goods movement incorrect      
    577515      RU523: Incorrect summary of dependent goods movements      
    374707      Confirmation:goods movement with separate valuation      
    542451      COGI: Entries with C6013 without error date/error time      
    576663      RU523: Unnecessary summary of dependent goods movements      
    412329      COGI: Problems with dependent goods movements      
    331421      Confirmation: Goods movement with split valuation      
    513786      Dependent goods movements are separated      
    327137      Problems with dependent goods movements as of Release 4.5      
    412329      COGI: Problems with dependent goods movements      
    680650      Cannot get initial context or service "FILE".      
    1453716      SXS library: Missing function modules

  • Goods movement / PGI status A inspite of goods movenent having completed

    In an o/b delivery for all items goods movement status is u201CAu201D(Not yet started) and the u201CPost goods issueu201D button is active.
    However, in the document flow, goods issue is completed.
    The document also looks fine with the accounting entries
    It was not possible to reverse the PGI using VL09, there was no message what so ever.
    Why is there a discrepancy and how to solve this.

    Dear Vaibhav,
    This may be related technical issue so please take help of ABAPer to fix the issue.
    I hope it will help you,
    Regards,
    Murali.

  • GI:How to set Indicator:Item Not Relevant for Goods Movements LIPS-NOWAB

    Hi,
    does anybody know what i have to do to get the Indicator: Item Not Relevant for Goods Movements set for a good issue delivey position? (Table LIPS field NOWAB)
    thanks in advance
    Steffen

    Hi,
    the thing is the following (maybe it doesn't work at all, i don't know) :
    a) i have a "Non-stock" material (e.g.material type NLAG)
    b)this material should be picked, so it should be relevant for the delivery (e.g.item category TAX)
    c) for a special reason the "Total goods movement status" in the outbound delivery header shouldn't be "Not relevant", therefore i assigned the item category TAX to a shedule line category that has a movement type (e.g. CN)
    d)but the bad thing is, that the customer has set the indicators "quantity updating" and "value updating" for the material type NLAG, and so the goods issue posting gets some errors. eg.g missing storage location etc.)
    During debugging i found a coding that checks the sign NOWAB of lips, the documentation says:
    "You can use this indicator to control whether the item is relevant for goods movement when the delivery is still being created.
    When this indicator is set, goods movement is not posted for this item - regardless of the movement type assigned  to it."
    So i head the idea it might be possible to set this indication (Lips-nowab) somewhere in the sales order or somewhere else but maybe this conflicts with point c) above .
    Maybe shomeone knows what to do or has a better idea.
    Best regards
    Steffen

  • Need help about Post  goods movement with refernece to Inbound delivery

    Hi All,
    I am using  FMs MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT and commit to create a goods movement. I am successfully creating the MM doc and also posting.But still the Inbound delivery is open for GR.Is there any other function module or BAPI that creates GR with reference to Inbound delivery and update the document flow?Or is there any parameter in the above FM that sets the inbound delivery.Kindly provide your guidance on the same.
    Best Regards,
    Sailaja.

    I used BAPI_GOODSMVT_CREATE and it posted the GR successfully and the document flow was updated also.
    You have to use GM_code '01' and give the delivery number / item number w/o PO (if I gave the PO additionally, it also worked).
    If still your document flow is not updated then have a look at OSS note 1050944 and check your config.

  • Cannot cancel a GR: Goods movement not possible with mvmt type 502

    Hi,
    I was trying to cancel a goods receipt for an inbound delivery. However I ran into trouble with  the following error message.
    Goods movement not possible with mvmt type 502 .
    Is there some configuration that I would be needed to make before I can cancel a goods receipt?
    Thanks,
    Arup

    To expand on the above some,
    check the mvmnt type used for the origanal GR and use the coresponding reversal mvnmt type.
    or confirm for us that the origanal receipt was in fact a 501??
    Edit: or use migo to cancel the GR doc.
    cancelation > material doc
    this will only be possible if the stock is still available (same status as well)

  • Total goods movement status in SD module

    hi all,
    wht is "Total goods movement status" is SD module .
    can u explain me with an example and how can i use it in creating open return orders.
    thanks

    Can we do PGI from VL03N?  I dont think it is possible.  I can see that the PGI option is always in disabled mode in VL03N.
    You can only do PGI from VL02N
    Can you check whether a material document was created by clicking on  the document flow from VL03N ?  What happens when you do the PGI for the same delivery again in VL02N?
    Regards,

  • Goods movement with serial numbers

    Hi,
    1. Is there any report or table where I can see goods movement of material with their serial numbers?
    2. Also in MMBE i can see 'On order stock'. I know this is PO open PO quantity.
    Now this open PO qty will not be there against any storage location. I got some stock on this status in some storage location.
    How I can move to 'unrestricted stock' status?
    Please advice.

    Hi
    Check these tables,
    SER00 General Header Table for Serial Number Management
    SER01 Document Header for Serial Numbers for Delivery
    SER02 Document Header for Serial Nos for Maint.Contract (SD Order)
    SER03 Document Header for Serial Numbers for Goods Movements
    SER04 Document Header for Serial Numbers for Inspection Lot
    SER05 Document Header for Serial Numbers for PP Order
    SER06 Document Header for Serial Numbers for Handling Unit-Content
    SER07 Document Header for Serial Numbers in Physical Inventory
    And in order to move On Order stock to Unrestricted you need to close those POs by doing GR.
    Hope it helps
    Rgds
    ramesh

  • Goods movements of material with serial numbers

    Hi,
    1. Is there any report or table where I can see goods movement of material with their serial numbers?
    2. Also in MMBE i can see 'On order stock'. I know this is PO open PO quantity.
    Now this open PO qty will not be there against any storage location. I got some stock on this status in some storage location.
    How I can move to 'unrestricted stock' status?
    Please advice.

    Hi,
    Is Serial number is the one obtained thro stadard batch management or is it a Zfield.
    On Order stock cannot be converted to unrestircted stock unless a GR is made.
    With regards,
    Jeeva

Maybe you are looking for