BAPI for PGI against delivery order

Hi Guys:
           In my program, I'd like to use a BAPI to DO PGI, I try to use WS_DELIVERY_UPDATE, but I find it can't return material document number of PGI.
           Is there any BAPI can do BAPI and also return material document number?
           Thanks.
Stephen

Hi Tao,
Please try to see the below code, it may be helpfull for you to create PGI with the belwo FM.
DATA:
  L_VBELN LIKE LIKP-VBELN,
  L_VBKOK LIKE VBKOK,
  L_PROTT LIKE PROTT OCCURS 0 WITH HEADER LINE.
* carry out goods issue
  L_VBKOK-VBELN_VL = L_VBELN.<-- fill this field with your delivery number
  L_VBKOK-WABUC = 'X'.
  CALL FUNCTION 'WS_DELIVERY_UPDATE'
  EXPORTING
  VBKOK_WA = L_VBKOK
  SYNCHRON = 'X'
  NO_MESSAGES_UPDATE = ' '
  UPDATE_PICKING = 'X'
  COMMIT = ' '
  DELIVERY = L_VBELN
  NICHT_SPERREN = 'X'
  TABLES
  PROT = L_PROTT
  EXCEPTIONS
  OTHERS = 0.
  COMMIT WORK AND WAIT.
do an additional SELECT by delivery number to find the Material documents from VBFA table. pass the delivery number  and get data from VBFA.
Regards,
Prasenjit

Similar Messages

  • BAPI for PGI against Delivery

    Hi all,
    I want BAPI for PGI against Delivery or any Function Module ,which Give All Error Message before PGI Posting.
    Thanks & Regards.

    Hi chaitanya,
    Can u please tell me what are the parameters that need to be passed in the BAPI "WS_DELIVERY_UPDATE" to get the PGI done.
    Thanks & Regards,
    Santhosh

  • BAPI For PGI against sales order

    Dear all,
                 I want BAPI for PGI(Post Goods Issue) against sales order.Can anybody suggest BAPI for this?

    Hi,
    Please check the link given below:
    bapi for PGI
    Hope it will help you.
    Thanks & Regards,
    Sarita singh Rathour

  • BAPI For PGI for sales order

    Dear all,
    I want BAPI for PGI(Post Goods Issue) against sales order.Can anybody suggest BAPI for this?

    Hi,
    For delivey, we can use BAPI_OUTB_DELIVERY_CREATE_SLS also, along with those mentioned above bapis.
    Even i too had the same requirement earlier, that is, a BAPI for PGI, but dint find any. Finally we did BDC for the PGI part of the sales cycle.
    Regards
    Kalyani

  • BAPI for creating outbound delivery

    Hi,
    Can anyone please let me know the bapi for creating outbound delivery.I have checked for few bapi's like
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    BAPI_DELIVERPROCESSING_EXEC
    If i use the first one i would like to know whether i need to do the PGI seperately by using any bdc or is it taken care in the same bapi.
    Its basically for the workflow task werein we have all the required parameters like delivery numb, sales order num ...etc
    Iam new to BAPI's.Please consider my request and let me know the details for the same.
    thanks
    keith

    The below is for creating delivery for STO's.
        Delivery creation
          call function 'SHP_VL10_DELIVERY_CREATE'
            exporting
              IF_LEDAT           = I_LFDAT
              IF_NUR_VORGABE_POS = YES
              IT_KEY_ENQUE_READ  = IT_KEY_ENQUE_READ
              IT_KOMDLGN         = IT_KOMDLGN
            changing
              CX_SD_ORDER        = XS_SD_ORDER
              CT_VBSK_ALL        = XT_VBSK_ALL
              CT_VBLS            = XT_VBLS
              CT_KEY_LATE        = XT_KEY_LATE.
    Message was edited by: Anurag Bankley

  • Billing against delivery order from bank

    Dear All,
    If we are giving delivery against Delivery Order given by the bank, do we have to map this scenario in sap or how do map this.
    some suggestions
    Edited by: varada rajan on Jan 15, 2008 9:18 AM

    Dear Mr Varadarajan,
    Could you kindly refer the letter of credit functionality in credit and risk management  of basic function of sales and distribution?
    The sales order may be blocked for delivery unles and until adequate credit is available.
    Once the credit is available, further processing is possible.
    Would this meet your requirement?
    Regards,
    K Gopidas.

  • BAPI for posting outbound delivery (VL01n)

    Hi,
    I need some help in finding correct function module or BAPI for posting outbound delivery (VL01n), the requirement is I need delivery created with reference to sales order and must take following input.
    1. Shipping Point
    2. Sales Order
    3. Selection Date
    4. Delivery type
    I tried some existing ones and some do not have delivery type input and some without Shipping Point input.
    Please let me know.
    Regards
    Ram.

    Hi
    Please avoid the duplicate post .It is not as per the Forum rules.
    You have posted the same question with this title in ABAP General Forum:
    Outbound Delivery BAPI/Function module
    Neha

  • BAPI for Creating a PM order(iw34) with reference to a Notification

    Hi All,
    Could anyone help to find the BAPI for creating a PM order with reference to a notification Number.
    I will explain my requirement :
    I want to create a notification from an external Application where i got the BAPI BAPI_ALM_NOTIF_CREATE and keeping this created notification number as Referece or for this notification number  i need a create a PM order.Usually this process in done transaction IW34 in R/3.
    But with the BAPI BAPI_ALM_ORDER_MAINTAIN i can create a PM order but this BAPI doesn't have a input parameter "Notification number ".So i can't use this BAPI.
    Could any suggest for a BAPI where i can create a PM order with reference to a Notification Number.
    Regards,
    Sid

    Hi,
    I have tried with the FM CO_IH_ORDER_GENER_2 but when i executes it gives a error message
    "<i>Service/maintenance order type PM02 not completely maintained in plant
    Message no. IW216
    Diagnosis
    For the selected order type and plant, no check control is maintained in Plant Maintenance/Service in 'Availability Check for Materials, PRTs and Capacities'.
    Procedure
    A check control must be maintained for this combination of order type and plant</i>"".
    And even have a doubt what to enter in this input parameter "GEWRK_OBJTYP"  .
    Kindly help me to solve this issue.
    Regards,
    Sid

  • Different movt. types for GR against Purchase order and GR against Prd. Ord

    All SAP Gurus,
    Is it possible to have Different movement types for GR against Purchase order and GR against Production Order?
    Regards,

    yes my friend ,
    I dont know abt 131 movement type,i think so it is related to RUN SCHEDULE HEADER(rep scenario),order type is different to that in discrete.
    But you can do one thing for sure,you can try to create a new movement type copy of 101,and make MIGO allowed for the movement type,and you can easily distinguish between two movement type used for receipt two different functions....
    Plz correct me
    Enjoy SAP
    Rahul..

  • Form for Gr against Prod order.

    Hi
    I need a form for Gr against Prod order.. the form be trigerred once the Prod oder is saved...
    Can you pl let me know the smartform for the same which can be used in this ...
    Thanks in advance

    This scenario is new
    Normally during production order creation Order Printing can triggered automatically through spro setting
    I don't think the GR related smartform
    K.Prabakaran

  • BAPI  For PGI

    Dear  All,
                   In My business process, i just want to create sales order , delivery and PGI from the uploaded XML files . Is there any BAPI available for doing the delivery and PGI  ( with Movement Type 601 ) .Please help me.....
    Thanks in Advance
    Geo
    Edited by: Jubi  Peter on Apr 8, 2009 5:04 PM

    Hi,
    it's not possible with 'one time call' to the same Bapi method to create an outbound delivery and post the goods issue.
    My suggestion is:
    1) After the successfully sales order creation, create an outbound delivery using the Bapi method  
        BAPI_OUTB_DELIVERY_CREATE_SLS
    2) Then, if the outbound delivery is generated, post the goods issue with
        BAPI_OUTB_DELIVERY_CONFIRM_DEC
    Kind regards.
    Andrea

  • Bapi for posting Outbound Delivery

    Hi,
    Can anyone please let me know about bapi for posting goods issue of outbound delivery.I have checked bapi like
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    If i use the with this bapi i can't cancellation the outbound with vl09.
    thanks,

    hi,
    i try to doing posting goods issue for outbound delivery out fo the regular progression.
    the posting is automaticly as part of outside program.
    thanks alot,

  • Function Module / BAPI for reprinting a production order

    Does anyone know a Function Module to do a production order re-print?   Not an original, just a copy.
    Thanks,
    --Amy Smith
    --Haworth

    Thanks Kevin,
    Been there.  Couldn't find anything.  Doing a BDC for testing. 
    Looks like you have to do a Production Order change.    So maybe is a BAPI for that.
    I'll post what we find in this thread...
    --Amy Smith
    --Haworth

  • Function module/BAPI for Pgi creation

    hi all,
    any standard function module/ BAPI for create PGI.
    i know BAPI_OUTB_DELIVERY_CONFIRM_DEC, suppose if we are using PGI reverse not possibul.
    regards

    This is not answered

  • Tolerance limit for GI against production order

    HI
    Is there any standard functionality of having tolerance limits at Goods issue level - against the production order?
    Just like GR.
    or can we make this functionality using any Exits?
    -ashok

    Dear,
    Rstriction of excess goods issue against production order is not possible in standard setting.
    For achiving this you have to go for User exit.
    The logic should be
    In MIGO check mvt. type 261
    Pass the order through table RESB and select all the components with quantity.
    Capture the header material of order and use this as input along with the order creation date, plant and BOM application to explode function module CS_BOM_EXPLOSION.
    This will give you the BOM components which were valid at the time of order creation.
    Now compare these BOM components with the components from RESB with quantity.
    Here conditions will come in picture
    If quantity is exactly matching then GI will be possible
    or if you want to keep tolerance limit say for 10% then accordingly you can map the condition.
    Regards,
    R.Brahmankar

Maybe you are looking for

  • Eclipse visual editor does not work.

    If I try to create a new visual class two error messages pop up: "IWAV0138E Remote VM terminated too soon. See .log file for trace of output." "An internal error occurred during: "Create Remote VM for Visual Editor for Java". IWAV0171E Could not crea

  • G5 iMac forgets its Admin password

    My 3½ year-old G5 iMac running OS 10.4.11 forgets its Administrator password after running for a few hours. I discovered this problem when I tried to install the latest Security Update. The computer kept telling me that the password I was entering wa

  • Windows not closing in safari

    whenever I use safari and try to close a window, the red x button does not work. What can I do? Please HELP ME!!!!! ibook g4   Mac OS X (10.4.5)  

  • FP08M error: Key for G/L accounting does not exist

    Hi, I am receiving this error message 'Key for G/L accounting does not exist' when trying to reverse document using t-code FP08M. If you could help me understand the error message, and maybe a way of getting the document reversed I would really appre

  • Issues with sleep/wake feature after 16GB RAM upgrade in my MacBook Pro. Any thoughts?

    Just installed a 16GB RAM upgrade in my MacBook Pro and now it doesn't wake up on it's own when I open the lid. I have to press the power button. It works fine with a smaller RAM upgrade. I've tried putting in just one of the 8GB modules and the slee