BAPI to change STO & Delivery

hi gurus,
is there a standard BAPI to change the stock transfer order quantity and delivery quantity in the delivery already created.
thanks in advance.

Hi,
BAPIs are suppose to have same behavior as online transaction. If you can change in ME21N or ME21, BAPI_PO_CHANGE1 and BAPI_PO_CHANGE would behave same way. This behavior has to be consistent.
thanks,
Sanjeev

Similar Messages

  • Supply Side Change STO Delivery Date

    Hello,
    I apologize in advance as I suspect this has been asked somewhere, but the search terms are very generic...
    Every implementation I've been at we've had the request to have the delivery date adjusted on STO's to match the actual availability of material in the supplying plant when known.  Using Scheduling Agreements (LP or LU) I can get close to the desired functionality, but it's still not they are looking for. 
    Plant 1 orders 1000 EA a week for 10 weeks from Plant 2.
    Plant 1 has MRP type P3 non-fixing with time fence, EX lot for lot buckets.
    Plant 2 has MRP type P1 auto-fixing w/time fence, EX lot for lot buckets.
    Running MRP generates the schedule lines in Plant 1 (source list with '2' in MRP field) which transfer demand to Plant 2 via special proc. key 40.
    MRP creates  P. req. in Plant 2 for supply from external vendor
    Over time, some of the PO lines from the vendor get pushed out or pulled in.  Using V_V2, we can adjust the deliveries as required, but we'd like to know if adjusting the delivery date on the vendor PO line items in Plant 2 can reschedule the schedule line on the STO/SA from Plant 1 so that their ATP for sales is always as accurate as possible. 
    SAP documentation implies that it can do this, but aside from checks on manually created items at the time of creation or change (existing POLI) there seems to be no option to do this, but instead the default requested date remains. 
    We're basically asking that the supply side drive the PO LI delivery date instead of the PO demanded date remaining firm. 
    I suspect confirmation control may bring some of that functionality, but we'd like to avoid that step of processing if there is a way. 
    thank you in advance.

    Thanks for the quick reply.  I'm not sure this completely solves the request, but the couple lines near the end on rescheduling infer the results we are looking for, but are not able to produce the results as explained by SAP. ATP works perfectly at creation time or change of the items mentioned, but the schedule line rescheduling seems not to work as expected. 
    I'll re-read with my SD team and make sure we're not missing something in the checks. 
    thanks again

  • BAPI to change Inbound delivery - Delivery Date.

    Hi Expert,
    I wanna change the  Inbound delivery - Delivery Date .
    i have check the BAPI_INB_DELIVERY_CHANGE and WS_DELIVERY_UPDATE but both seems to be not useful for me or i have mis sumthing.
    so kindly suggest BAPI or any other solution.
    thx in advance.

    Hi guys,
    plz get following code,
    REPORT  ztest_inboun_deli.
    TYPES : lty_dead TYPE STANDARD TABLE OF bapidlvdeadln.
    DATA :lt_header_deadlines TYPE lty_dead,
          wa_header_deadlines TYPE bapidlvdeadln,
          wa_header_control TYPE bapiibdlvhdrctrlchg,
          it_return TYPE STANDARD TABLE OF bapiret2,
          wa_delivery TYPE bapiibdlvhdrchg-deliv_numb,
          wa_header_data TYPE bapiibdlvhdrchg.
    write : sy-datum.
    wa_header_deadlines-deliv_numb = '0080000069'.
    wa_header_deadlines-timetype    = 'WSHDRLFDAT'. "Delivery date
    wa_header_deadlines-timestamp_utc = 20120909000000. "YYYYMMDDHHMMSS
    wa_header_deadlines-timezone    = 'ALA'. "Western Europe
    APPEND wa_header_deadlines TO lt_header_deadlines.
    wa_header_data-deliv_numb = '0080000069'.
    wa_header_control-deliv_numb     = '0080000069'.
    wa_header_control-deliv_date_flg = 'X'.
    CALL FUNCTION 'BAPI_INB_DELIVERY_CHANGE'
      EXPORTING
        header_data                = wa_header_data
        header_control             = wa_header_control
        delivery                   = wa_delivery
      TABLES
       header_deadlines           = lt_header_deadlines
        return                     = it_return.
    IF sy-subrc EQ 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.

  • BAPI for changing delivery date and delivery time fields in LIKP table

    Hi All,
         Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
    Please tell me experts if exists.
    Thank you,
    Raghu.

    try these:
    BAPI/FM to update LIKP and VTTK tables
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800

  • Need Fm/BAPI to change Actual GR date(WADAT_IST_LA) in inbound delivery

    Hi ,
    Need a function module/BAPi to change the Actual Goods Receipt date for inbound delivery . Any suggestion would be appreciated . Have tried with WS_DELIVERY_UPDATE and BAPI_INB_DELIVERY_CHANGE . Am I missing something here ?
    Regds,
    Sanjeev

    Hello Sanjeev,
    Need a function module/BAPi to change the Actual Goods Receipt
    date for inbound delivery . Any suggestion would be appreciated .
    Have tried with WS_DELIVERY_UPDATE and BAPI_INB_DELIVERY_CHANGE .
    Am I missing something here ?
    I am not a ABAP expert but may be upon calling BAPI_TRANSACTION_COMMIT, try using UPDATE command to insert the Actual GR date. Please explore around this pointer and post an update on this thread.
    Regards,
    Sarthak

  • HU change on delivery using BAPI

    Hi,
    I am trying to change Outbound Delivery with the packing details by providing HU details(external number assignement).
    BAPI "BAPI_OUT_DELIVERY_CHANGE" could not do the change for the HUs. BAPI "BAPI_OUTB_DELIVERY_CONFIRM_DEC" is not right, as it delete and recreate HUs. We do not want that HUs are deleted!
    Is there any BAPI to do changes on Outbound delivery (also HUs) - changes of item quantity, HUs quantity, delete HUs from delivery or add HUs to delivery?
    Could you provide some help in this regard.
    Thanks Matjaz

    Hi Anand,
    In the BAPI 'BAPI_OUTB_DELIVERY_CHANGE', import parameter HEADER_DATA ( Associated type is BAPIOBDLVHDRCHG ), there is a field called DLV_BLOCK.
    You can get the possible values for this field in table 'TVLS'.
    Please find the example possible values.
    01     Credit limit
    02     Political reasons
    03     Bottleneck material
    04     Export papers missng
    05     Check free of ch.dlv
    06     No printing
    07     Change in quantity
    08     Kanban Delivery
    09     JIT delivery (PDS)
    Regards,
    Vijay

  • BAPI to Create a Delivery

    Hi,
    I have created a STO. I want to create a Delivery for this STO. Can anyone pls let me know the BAPI for creation of delivery and Shipment for a STO?
    Pls help
    Thnaks
    Ram

    U can use the below FM...for the same.
    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.
    <b>--I will get you the BAPI for shipment creation but please assign points for all helpful answers!!</b>
    Message was edited by: Anurag Bankley

  • 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

  • Not able to do GR for STO delivery with packing.

    Hi All,
    Hi All,
    I am not able to do GR for STO delivery.
    I am getting the following error:
    Data for creating a delivery is incomplete (Vendor)
    Message no. M7279
    Business scenario:
    STO between two plants of same company code with packing material.
    Sales Org(Supp)-4444
    Sales Org(Rec)- 3333
    Plant(Supp)-2003
    Plant(Rec)-2002
    ME21N->VL10B->PGI->VF01(Proforma)->MIGO w.r.t outbound delivery(error)
    Note: PGI with packing material-separate line item generated for packing material-movement type for main material-641 and for packing material-601)
    with regards
    Azeez.Mohd

    Hi,
    When the stock is going to be moved between two plants or two storage locations that are under single company code called as stock transfer order business process. Receiving plant raises the purchase order with supplying plant; supplying plant delivers the goods to the receiving plant by raising sales order.
    Config Steps
    Create Vendor: Transaction code: XK01
    Assign Plant to Vendor
    Go to change mode of Vendor [XK02]
    Specify Vendor number that we created in the previous step
    Define shipping data for plants
    Create material by maintaining u201CPurchasingu201D view: Transaction code: MM01
    Extend the material from XXXX to YYYY plants
    As we are extending material from plant XXXX into YYYY plant, system copies all the data into the new plant.So that we have to change the delivering plant in delivering plant field as YYYY in Sales: Sales organization data 1 view.
    Create Purchase order: Transaction code: ME21N
    Activities due for Shipping (Purchase order fast display): Transaction code: VL10B
    Display stock in transit: Transaction code: MB5T
    Goods receipt: Transaction code: MIGO
    Stock movement types: INTRAand INTER
     INTRA
    Stand order type (Document type) = UB
    Delivery type = NL
    Determination of document type:
    Supplying plant + Receiving plant = UB
    Supplying plant + UB = NL
    Movement types:
                      Issuing plant Receiving plant
    Single step    647                        101
    Two step        641                        101
     INTER
    Standard order type (Document type) = NB
    Delivery type = NLCC
    Determination of document type:
    Supplying plant + Receiving plant = NB
    Supplying plant + NB = NLCC
    Movement types:
                            Issuing plant Receiving plant
    Single step              645               101
    Two step                 643                101
    PBXX is the Gross price condition type for Stock Transfer Order
    Vendor = Supplying plant
    Customer = Receiving plant
    NOTE: In single step method updations takes place in both plats simultaneously.
    In two-step method updations should takes place manually.

  • STO delivery date should not be in weekend.

    Hi expert,
    i just want to make sure the STO delivery date should skip weekend or give a warning message in case it is calcuated based on planned delivery time to be the weekend. Now I know that the calendar in receiving plant configuration can reach this request. but what i concern is, if i change this config, the impact is too big. Does any one have better idea?
    also, it looks like that the calendar in unloading point in ship-to master data doesn't work for this.
    Thanks!

    Dear Srinivas,
    Change the check as follows from
    Check: BKPF-BUDAT>SYST-DATUM
    to
    BKPF-BUDAT <= BKPF-CPUDT
    add  BSEG-KOART = 'K' in prerequisite
    Regards,
    NCC  Talluri

  • BAPI_SALESORDER_CHANGE using this i want to change the Delivery Block

    Hi ABAP Gurus,
    i am working on a urgent requirement of changing the Delivery Block of sales order VA02. I am trying to do this using FM            BAPI_SALESORDER_CHANGE .
    Please see the following code which i am giving for the time being.
    it_headerx-updateflag = 'U'.
    append it_headerx.
    it_bapischdl-itm_number = '00010'.
    it_bapischdl-req_dlv_bl = '01'.
    APPEND it_bapischdl.
    it_bapischdlx-itm_number = 'X'.
    it_bapischdlx-req_dlv_bl = 'X'.
    APPEND it_bapischdlx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument               = '0000000560'
       order_header_in             = it_header
        order_header_inx            = it_headerx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
      TABLES
        return                      = it_return
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
       schedule_lines              = it_bapischdl
       schedule_linesx             = it_bapischdlx
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
    But the Delivery block is not changing from Credit limit to Pending Allocation
    But i am getting the following messages in the it_return table
    1     S     V4     233     ORDER_HEADER_IN has been processed successfully
    2     S     V1     041     No data was changed
    I am waiting for your suggestions
    Thanks in Advance

    Hi Prashanthi,
    Check whether delivery number is already created or not for that  order.
    If deliver already  existthen u can not create delivery block on that.
    and also check whther r u calling bapi commit after this.
    Regards,
    Siva

  • STO delivery date and VL10B delivery

    I'm trying to run VL10B to create a delivery for a STO item that is in stock, but no  delivery is created.
    The STO item, however, has a delivery date prior to the current date.  If I change this delivery date on the STO to a future date, the VL10B then picks up the item and creates a Delivery.
    I suspect this is related to an availability check not being performed by VL10B.  Surely I should not have to go back to STO items each time and change the delivery date.  Thoughts??

    Hi Chad
    when you try to create run VL10B, system will check with STO (Purchase Order)  delievry date. If date is falling within Delivery creation date, it will allow you to create.
    regards
    Srinivas

  • Change Inbound Delivery(BAPI_INB_DELIVERY_CHANGE )

    Hi All,
    I want to change Inbound delivery Header and Item Data By useing BAPI- BAPI_INB_DELIVERY_CHANGE. But its not able to change.
    Plz help me for changeing  Inbound delivery by useing BAPI in my program.
    Reagards,
    Sunil Sahoo

    Hi Sunil,
    Have you used BAPI_TRANSACTION_COMMIT after your BAPI ?
    Regards,
    Nitin.

  • STO Delivery type

    Hi
         What will be the impact if we change the delivery type from NL to LF for an STO
    Thanks
    Shriya

    NL delivery type requires the PO but LF required sales order...if it is STO it shoudl have NL not LF.

  • Unexpected issue of error message at time of STO Delivery

    Hi,
    I am trying to create STO Delivery by transaction by VL10B by I am getting error 'Unexpected issue of error message (Output VL 447).
    Please help in order to solve issue.
    Lait

    Hi,
    We have reuired changes in Note but problem was wrong Partner determonation procedure assigned in delivery type.

Maybe you are looking for