How to do PGI the delivery

Hi all,
I want to do PGI the Delivery. Suggest any BAPIs. Alredy I used BAPI_GOODSMVT_CREATE and WS_DELIVERY_UPDATE. But these two are not working. I got the error like movement type not supported. Suggest any additional fields I need to pass to the above function modules. Very Urget........

hi,
hope the below code wull be helpful for you
FORM F_GOODSMVT_CREATE .
  LOOP AT I_INPUT_TEMP INTO WA_INPUT_TEMP.
    CLEAR WA_EKPO.
    READ TABLE I_EKPO INTO WA_EKPO
                      WITH KEY MATNR = WA_INPUT_TEMP-MATERIAL
                               WERKS = WA_INPUT_TEMP-PLANT
                               LGORT = WA_INPUT_TEMP-STGE_LOC.
                              MENGE = WA_INPUT_TEMP-MENGE.
    IF SY-SUBRC = 0.
      CLEAR WA_EKBE.
      READ TABLE I_EKBE INTO WA_EKBE
                         WITH KEY EBELN     = WA_EKPO-EBELN
                                  EBELP     = WA_EKPO-EBELP
                                  MATNR     = WA_EKPO-MATNR
                                  WERKS     = WA_EKPO-WERKS.
                                      MENGE.
      IF SY-SUBRC = 0.
        MOVE: WA_EKBE-EBELN                 TO WA_ITEM-PO_NUMBER,
              WA_EKBE-EBELP                 TO WA_ITEM-PO_ITEM,
              WA_INPUT_TEMP-MATERIAL     TO WA_ITEM-MATERIAL,
              WA_INPUT_TEMP-PLANT            TO WA_ITEM-PLANT,
              WA_INPUT_TEMP-ENTRY_QNT     TO WA_ITEM-ENTRY_QNT,
              WA_INPUT_TEMP-MOVE_TYPE     TO WA_ITEM-MOVE_TYPE,
              'B'                         TO WA_ITEM-MVT_IND. "(Goods receipt for Purchase order)
        MOVE: WA_INPUT_TEMP-STGE_LOC      TO WA_ITEM-STGE_LOC,
              WA_INPUT_TEMP-MOVE_STLOC    TO WA_ITEM-MOVE_STLOC.
*Set the VCODE value to '01'.
        V_CODE = '01'.
*Call the BAPI - 'BAPI_GOODSMVT_CREATE'
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            GOODSMVT_HEADER  = I_HEADER
            GOODSMVT_CODE    = V_CODE
          IMPORTING
            GOODSMVT_HEADRET = I_HEADRET
          TABLES
            GOODSMVT_ITEM    = I_ITEM
            RETURN           = I_RETURN.
      LOOP AT I_RETURN INTO WA_RETURN
                       WHERE TYPE <> 'S'.
     move:  WA_RETURN-MESSAGE    to WA_ERROR1-MESSAGE,
            WA_ITEM-PO_NUMBER    TO WA_ERROR1-PO_NUMBER.
      ENDLOOP.
      ENDIF.
    ELSE.
      V_PORREC = V_PORREC + 1.
      V_POEREC = V_POEREC + 1.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " F_GOODSMVT_CREATE

Similar Messages

  • How I can find the  Delivery address changes in purchase order

    Hi Friends,
    How I can find the  Delivery address changes in purchase order
    item details.And how i can find who did ths changes.

    Hi,
    Go to ME22N, here select the line item and click on menu "Environment > Item Changes" to track the changes.
    For multiple POs, go to ME2N, here enter Selection Parameter as "ALLES" and execute the report to check all the changes.

  • Recently I moved from Spain to Australia, how can I change the delivery country of the photo albums?

    Recently i moved from Spain to Australia, how can I change the delivery country of the photo albums?
    I tried to change all my country information in my apple id but when I'm going to pay the photo album in iphoto 11 only can change the addres but not the country.
    thanks.

    iPhoto Menu -> Preferences -> Advanced
    Bottom of the page you can choose your Print Store
    Regards
    TD

  • How to know PGI from Delivery.

    Hi:
    - How can I know if a Delivery has his PGI created?     (PGI=Post Good Issue)
    - If the the Delivery is for example 10 Pcs. Can a PGI be created for less than that, i.e. 6 Pcs.?
    Thanks.

    For fast response post in the relavant forum.
    How can I know if a Delivery has his PGI created? (PGI=Post Good Issue)
    - Goto Document (vl03n) and GIVE DELIVERY AND PRESS F7 TO KNOW THE DOCUMENT FLOW.
    If the the Delivery is for example 10 Pcs. Can a PGI be created for less than that, i.e. 6 Pcs.?
    YES.IF AND ONLY IF IT IS PICKED FOR 6 PEICES ONLY.

  • How to block PGI in delivery?

    I need to block only PGI in delivery documents.
    i.e. we can create delivery note, do picking but not PGI unless block is removed.
    rgds
    AKi

    Hi,
    Go through the following menu path:
    SPRO-IMG-Logistic Execution--Shipping--Deliveries-Define reason for Blocking--Deliveries: Blocking Reasons/Criteria----Tick on last column( PGI Block)
    You can also do the PGI block during credtit check also.
    or for delivery block go thru the following menu path:
    Go to VOV8 --- activate the deilvery block for tht order.
    or
    Go to schdule line categories VOV6 there also activate the block for delivery.
    Reward points if helps.
    Regards
    Ashis

  • How do I set the delivery policy for a queue in iMQ 2.0?

    The list on page 67 of the 2.0 administration guide appears to be
    incomplete. Specifically, I'm interested in knowing how to set
    the default delivery policy for a Queue through the jmqobjmgr command.
    I need the valid attribute name to pass in to jmqobjmgr.

    The "queueDeliveryPolicy" is an attribute of a queue
    created in the broker - not in the administered object
    destination so that is why you are not seeing that
    attribute on the list on page 67.
    By default, the broker by will use the "single" queue delivery
    policy unless you choose to change the values of the property
    "jmq.queue.defaultdeliveryPolicy" to SINGLE, ROUND-ROBIN, or
    FAILOVER. If you would like to do this, see the Chapter 4
    in the admin guide on "Starting and Configuring the Broker".
    It may be easier to set the delivery policy for just one queue.
    To do this, you can use the following command:
    jmqcmd create dst -n myQueue -t q -o "queueDeliveryPolicy=f"
    where valid values to queueDeliveryPolicy is f, s, r.
    You can do a 'jmqcmd -H' to get more info on queue attributes or
    see Chapter 6 in the admin guide on "Creating and Destroying Destinations".

  • How to determine that the Delivery Block in SO is removed manually

    Hi,
    Is there any way to determine if the delivery block is removed manually? Because initially on VA01 we are defaulting the delivery block. Then in VA02, if the user removed the delivery block then save, then goes back to VA02 again, in this, I need to determine that the delivery block was removed manullay.
    Regards,
    Mawi

    Hi,
    You can check out in environment->changes ..you can determine the manual changes made to the order...
    Thanks,
    Shailaja Ainala.

  • How can I customize the delivery screen layout?

    Hi,
    When I create delivery(T-code:VL01N),I want to some fields can not be modified.But I didn't find any IMG such as "field status".
    How to do ?
    Junyan He

    Another extract i found on the net on SHD0
    First
    Link with screen shots [Click Here|http://www.mortenhjorthnielsen.dk/Security/transactionvariants.htm]
    Second
    Case one for creating Transaction Variants
    Step 1:
    Execute transaction SHD0 and create a Transaction Variant against the original transaction.
    Step 2:
    As soon as you press the create button, the original screen of the transaction will appear. After pressing any button/tab on the screen a menu variant screen will appear. Make sure to check any field or tab or any button you want to disappear from the menu functions. Press the exit and save button when you are sure that no further settings are required on sub-screens (if present). After pressing the exit and save button another menu variant screen will appear. Press the save button here and save as a local object or under any development class.
    Step 3:
    When you are back on the Transaction Variant (SHD0) screen, press shift+F6 or click the goto menu and press the create variant transaction button. Through this transaction SE93 will be executed. Enter the transaction name you want to create and any other required field and now press the save button.
    Step 4:
    Now execute the transaction you create through create Transaction Variant and enjoy the results.
    Case two for creating Transaction Variants
    Step 1:
    Create a dialogue transaction through SE93 and enter the program name and screen number of the original transaction you want to make a variant on (e.g., PFCG). Press the save button and check whether the replica transaction (PFCG) has been created successfully by executing it on a new session.
    Step 2:
    Execute transaction SHD0 to create a Transaction Variant. Specify the transaction name (replica of PFCG) which you have just created and create a Transaction Variant against the replica transaction.
    Step 3:
    As soon as you press the create button, the original screen of the transaction will appear. After pressing any button/tab on the screen a menu variant screen will appear. Make sure to check any field or tab or any button you want to disappear from the menu functions. Press the exit and save button when you are sure that no further settings are required on sub-screens (if present). After pressing the exit and save button another menu variant screen will appear. Press the save button here and save as a local object or under any development class.
    Step 4:
    When you are back on the main screen of the SHDO (Transaction Variant) click the edit option on the menu tab and activate Standard Variant. Through this a Standard Variant will be assigned to the transaction specified (replica transaction).
    Note: Make sure you activate the Standard Variant against a replica transaction and not on the original one.

  • How to get the Delivery date in PO line Item in SAPScript

    Hi Gurus,
    I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window.  I put Iem number along with the other line Item informmation like stanadrd PO Script MEDRUCK. I also want to show the delivey date with line Item, so Itried to use EKET-EINDT but it is returning the delivery date of last line item, means while printing the first line and other information it is showing the delivery date of the last line item, I tried with the  PEKPO-EINDT it is also not working.
    Can any body suggest me how i can get the delivery date for the respective line Item  ?
    Regards
    Sony

    actually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
    For Example u can use this code.
    To print you have write the this code in Script item level printing window "MAIN" window
    Following perform is called to get the line item delivery date in PO
    {/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
    /: USING &EKPO-EBELN&
    /: USING &EKPO-EBELP&
    /: CHANGING &DEL_DATE&
    /: ENDPERFORM}
    {* Dellivery date &DEL_DATE& }
    write the below code in the Z program "ZPerform_prog"
    { FORM get_del_date  TABLES in_par STRUCTURE itcsy
                             out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'EKPO-EBELN'.
      CHECK sy-subrc = 0.
      $_po_no = in_par-value.
      READ TABLE in_par WITH KEY 'EKPO-EBELP'.
      CHECK sy-subrc = 0.
      $_po_line = in_par-value.
      SELECT *
      FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
        $_del_date = eket-eindt.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = eket-eindt
          IMPORTING
            date_external            = $_del_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        READ TABLE out_par WITH KEY 'DEL_DATE'.
        CHECK sy-subrc EQ 0.
        out_par-value = $_del_date.
        MODIFY out_par
                    INDEX sy-tabix.
        CLEAR : $_po_no , $_po_line ,$_del_date.
      ENDSELECT.
    ENDFORM.                    "GET_DEL_DATE }

  • Difference between billing and invoice?  How to stop PGI?

    can u please help me in these questions.
    Difference between billing and invoice?  How to stop PGI?

    Invoice is document indicating to delivery goods and Billing is a receipt of payment
    Tables are VBRK & VBRP. For flow, go to transaction VF03, enter document number and hit 'Display Document Flow' button on toolbar
    vbrk and vbrp holds billing/invoice details..
    Billing Document:
    Generic term for invoices, credit memos, debit memos, pro forma invoices and cancellation documents.
    The tables are VBRK and VBRP.
    2)-- once u do PGI the delivery document will be created . there is no way to stop it  .. the thing u can to do go to the list of created deliveries in VL09.. select the delivery doc which u created.there  u have the option of reversing the goods or canceling it.
    let me know if i am wrong...
    thanks,
    madhan
    Message was edited by:
            madhan n

  • Text issue in the delivery

    Hi Experts,
    I have issue with the text, actually at the SO header we maintain text,but It is carried to the Item delivery, which should not happen,
    Please can you guide  me how we get the header text to Item text, what would be causes, how should I rectify that,
    how to check if the delivery Item text config was changed.
    Pls advise
    Thanks

    Hi,
    Relation is like this
    Sales order header text will copy to delivery header text
    sales order item text will copy to delivery item text
    Not header text to item text.  check the access sequence in VOTXN
    Kapil

  • One handling unit wrongly updated to the delivery out put

    Hi gurus,
             Internal handling unit number is showing delivery document number in table *vekp* but real handling unit contains no delivery document number and shipping point. Could any one guide me how to find out the delivery document of this handling unit.
    advance appreciations to all

    use t code   HUMO , give the hU nad execute , display u will get the delivery doc numbet rt side end top
    rew

  • Error when posting the Delivery

    Hello Everybody,
    When I am trying to PGI the delivery, I see the following error -
    "Posting only possible in periods 2008/11 and 2008/10 in company code SCIL"
    When I tried to close the posting period in MMPV, I see this error.
    "Incorrect period in control rec. of CoCd SCIL; no conversion
    The current period (month/year) of the control record is112008"
    My company code Variant is M4.
    Can someone tell me where am I going wrong.
    Thanks,
    Sneha.

    Hi
    Menu path to t code OB52
    img-financial accounting new-financial accounting global settings (new)--ledgers-fiscal year and posting periods-posting periods-open and close posting periods(OB52)
    First of all you must see what the posting period varient maintained for your company code SCIL
    This you can see in OBY6 (in processing parameters tab you can see that) and what the fiscal year varient maintained in your company code SCIL in t code OBY6
    In that take your fiscal year varient say K4
    In that take your posting period varient say 1000
    Then in OB52 you have to maintain like this
    1000--S-blank---zzzzzzzzzz--01-2009-12-2009---13-201016---2010
    1000--A-blank---zzzzzzzzzz--01-2009-12-2009---13-201016---2010
    1000--+-blank---zzzzzzzzzz--01-2009-12-2009---13-201016---2010
    1000--D-blank---zzzzzzzzzz--01-2009-12-2009---13-201016---2010
    1000--K-blank---zzzzzzzzzz--01-2009-12-2009---13-201016---2010
    1000--M-blank---zzzzzzzzzz--01-2009-12-2009---13-201016---2010
    1000--V-blank---zzzzzzzzzz--01-2009-12-2009---13-201016---2010
    If you maintain entries like this your error will be resolved
    There are many more opinions available regarding OB52
    Please make a search
    If it is real time issue please take the opinion of your FI person
    Regards
    Raja

  • Cannot PGI one delivery in a shipment( getting runtime error )

    Dear all,
    I am not able to PGI one delivery in a shipment out of three deliveries. While PGIg I am getting a run time error saying that "cannot calculate percent for the material for this line item". I checked the condition values for that material in the standard order. Values are defined as well.The material also has serial number defined in the packing list. Transfer order is also complete. Not able to identify the reason of getting the error.
    Please advise on this above issue.
    Regards,

    Based on your description, the business process differs to our company. Our company completes the delivery with the PGI and then it creates the shipment. It is required to PGI the delivery before it creates the shipment.
    Ok, now what I am understanding is that you have created a shipment with three deliveries and are now trying to PGI the delivery. Questions to ask are: Are there limits to the shipment in terms of quantity? Are the materials the same for all three deliveries? Is the material new and has all relevant information being set up in master? I'm not sure that the percent question is related to the pricing conditions, but it may be related to the percent in terms of the its ratio to the entire shipment. In other words, what percent of the shipment does that one delivery make up?

  • Photo album: I would like to order this album but has to be sent to my address in Switzerland. How can I change the address?

    How can I change the delivery address from the USA to Switzerland?

    Don't belive you can do that but try changing the Print Produces Store from the USA to Switzerland in iPhoto's Advanced preference pane and see if the order will go thru.  However, I believe you'll need a credit card with a billing address in the same country as the delivery address.  It's worth it a try.
    OT

Maybe you are looking for

  • Network problem after new OSX update download

    Greetings! I've had a new (late 06) Intel 24" iMac networked wirelessly to my older iMac/cable modem/D-Link router very successfully since October. No problems and seamless set-up through the D-Link online wizard software. Saturday I noticed an OSX u

  • AppleTV not recognized by TV

    When I connect my new Apple TV to my Hitachi TV  (about 5 years old)  it is not recognized on any input.  I have tried 3 different HDMI  input ports with nothing coming up except a black screen.  I took the AppleTV unit  back to Best Buy to see if th

  • Adobe reader read with the browser

    I would like to be able to use the extensions of the browser google chrome, like the Google Dictionary or the highlighter, on the pdf document: how can I do that if the document is saved in my computer (not in a webpage)? thank you!

  • Premiere elements13 cant export mts2( AVCHD h.264avc)1920x1080p 50fps? only 25fps?

    Im exploring my new program and some things are seems to be disapointing: Im always pre-edit al the film parts; cut then clean of useless frames. and rename them  te keep them in order of shootingtime for furter editting to a standalone movie or/and

  • Unable to start directory server

    We are getting error when starting directory server : Recovery will take a while Unable to start directory server 5.2