BAPI or FM to create an outbound delivery?

Hi all,
does anyone know of a BAPI or a Function Module that given only the sales order document number and the posting date to create an outbound delivery?
(I am looking for something that creates automatically a delivery just like when I create a sales order with automatic delivery creation.)
Regards,
GB

Hi,
check these function modules for sales order document no.
<b>In case of smartform:</b>
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZFORMNAME'
IMPORTING
fm_name = v_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
i_otf[] = w_return-otfdata[].
<b>In case of sapscript:</b>
options-tdgetotf = 'X'.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
options = options
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
otfdata = i_otf
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
OTHERS = 5.
i_otf -
Regards,
Sakthi.

Similar Messages

  • Help! how to create an outbound delivery from a project using a FM/BAPI?

    Hi,
    I need help to find a BAPI or FM which can be used to create an outbound delivery from a project similar to tcode CNS0?
    The following data will be used in creating the outbound delivery from a project:
      Project definition
      WBS Element
      Network
      Shipping Point
      Ship_To_Party
      Plant
      Storage Location
      Planned Goods Movement Date
      Delivery Type  : LP
      Sales Organization
      Distribution Channel
      Division
      Item Number
    Please help me find the appropriate BAPI or FM to create the delivery from project.
    Any help on this would be greatly appreciated.
    Thank you.
    with regards,
    Muthu Ganapathy.

    Hi Ferry Lianto,
    Thank you for your response.  Do you have a sample code to call this FM? Or can you please provide me what all parameters I need to pass to create delivery from project?    My input parameters are as given below:
    Project definition
    WBS Element
    Network
    Shipping Point
    Ship_To_Party
    Plant
    Storage Location
    Planned Goods Movement Date
    Delivery Type : LP
    Sales Organization
    Distribution Channel
    Division
    Item Number
    Please help me on this.
    Thank you.
    with regards,
    Muthu Ganapathy.

  • IDoc for creating VL01N (outbound) delivery

    Hi,
    I have an interface which provides a SO and need to create an outbound delivery (VL01N) in SAP. This Idoc will be inbound to SAP and requires to create an delivery (vl01n). I tried using delvry03 with message type desadv....but nothing is successful. pls can anyone provide ome help here?

    Hi,
    Check Line number 96 of This bapi
    perform delivery_replicate tables gt_komdlgn
    and the code written inside this sub-routine.
    call function 'GN_DELIVERY_CREATE'
           exporting
                vbsk_i         = gs_vbsk
                no_commit      = gc_true
                if_synchron    = gc_false................
    Though I have not used this BAPI, by going through the BAPI code, i think delivery will be created.
    Regards
    Vinod

  • Create an outbound delivery with reference to a purchase order

    Hi folks, would you tell me if I can create an outbound delivery with reference to a purchase order?
    I tried to use the transaction VL10B but after I run there is no data is selected. Should I set up anything else for that?
    Thanks in advanced.

    Hi,
    Yes, you can create outbound delivery with reference to a PO.
    In transaction VL10B, if you are not sure about the shipping point leave it blank. ALso, you can check the shipping point from the shipping data and enter it here.
    Leave the field Condition rule to create delivery blank so that it will consider PO with delivery date falling within one year.
    In the Purchase order tab, enter the PO number.
    Execute.  It should fetch you the PO list due for delivery.
    Before doing the above, make sure PO is not subjected to release strategy. Check the quantity in the PO due for delivery.
    Thanks and Regards,
    Maheshwari

  • Need to create One outbound delivery against multiple PO and Schedule lines

    Hi Experts.
    I needed your help in regards to creating one single outbound delivery for multiple PO/SA lines(in one shipment) using either FM GN_DELIVERY_CREATE or
    W_FRM_DELIVERY_CREATE_GENERAL.
    I have tried setting up the indicator XKOMDLDN-KZAZU = 'X' in the interface to combine orders in one delivery but I am still getting multiple deliveries.
    If somebody had sucess with  the above then can you please let me know what other parameters do I have to set or let me know if I have to code this in a user exit/badi which will be called inside these FM's.
    OR
    Please let me know if there are any other alternatives to the above FM's to post one single delivery against mupltiple PO's.
    Thanks
    Raj

    Hi,
    I am little bit disappointed since I did not get even a single reply for the issue that I raised. Anyways finally after couple of days debugging VL10d and going thru SAP support website I found couple of solutions. Here it is in case anybody else needs it in the future.
    I am using solution 2 below.
    Solution 1.
    From SAP portal website u2013 Apply SAP note 386340 (Grouping purchase orders into one delivery using VL10*)
    Note- This solution will affect all your plants and delivery types that is using VL10d transaction or any other transactions calling FM GN_DELIVERY_CREATE
    Solution 2.
    This is the solution that I am using and it is done by implementing BADI  u2018LE_SHP_GN_DLV_CREATEu2019 method MOVE_KOMDLGN_TO_LIKP.
    1) Here I am checking for two fields (IS_XKOMDLGN-WERKS and IS_XKOMDLGN-LFART) are equal to the plant and delivery type that I need to combine deliveries for.
    2) If step 1 above is true then I am updating the header structure CS_LIKP-LFDAT (delivery date) to todays date (sy-datlo).
    Thanks
    SHR.

  • Output type not created for outbound delivery while using SHMNT05 idoc type

    Hi Experts,
    Please help me to solve the below issue.
    Problem:- I want to to generate an IDOC(using type SHPMNT06) once the PGI is done for an outbound delivery.
    Already it is working fine when used DESADV.DESADV01 or DESADV.DELVRY07. But now the output type is not getting created when used SHMNT.SHPMNT06. I have created a separate output type ZPJ7 just as a mirror copy of the earlier output type(ZPJ6) used for DESADV.DELVRY07.
    Question:- Is it possible to use idoc SHPMNT06 instead for DESADV01 or DELVRY07? If yes then what are steps to be followed?
    The reason why SHPMNT06 idoc is planned:- We have a scenario to send outbound delivery to 3rd party system via XI. If the outbound delivery is for National(Not for Export) and PGI is completed then send the idoc straight forward to XI otherwise DO NOT generate the idoc, but just create the delivery. Collect all the deliveries in a transport and send it in a shipment. The shipment details can be sent using SHPMNT idoc. Now from XI perspective, if we can utlitze the same SHPMNT idoc for the National delivery(1st case) then perhaps this will require less effort. Hence shipment idoc is required to be generated when the delivery is created and PGI is done.
    Also it would be great if you can advice some better way to solve above mentioned scenario.
    Many Thanks,
    Sanjay

    There could be several reasons. Go to the document and in the extras-output check output determination analysis in the processing log.
    If the output has been created successfully then you need to see your printer determination. Ask basis to check it up. If the problem is that even the print preview is not coming. Check your communication in the output analysis and ensure LOCL is selected. Any other printer will need to be configured.
    If thats done already then check whether you have maintianed the condition record.
    If that too is done then check whether your output type has been assigned to the output procedure and that the output type is listed in the procedure.
    regds
    Jude

  • IDOC to create from outbound delivery from sales order as INBOUND process

    Hi Experts,
    We have third party interface for sales processing. Sales order, Outbound delivery and PGI will be done in Third party software and XML files will be send to SAP.
    We have to process this XML file into SAP with IDOC.
    Sales order processing is done but i am not able to find correct IDOC type for creating outbound delivery.
    Can you suggest Basic IDOC type / Message type and process code for the same.
    Regards,
    Sahadev Abhyankar

    Good morning !
    In the transaction WE20 to create the customer EDI  KU with EM function.
    Output parameter: message type DESADV and basic IDOC DESADV01.
    I associate the IDoc message type to LAVA, you should link it to the XML file, that is not how.
    Please : Could you please explain how you linked the XML file to IDOCS to create sales order ?
    Sorry for my poor English
    A greeting.

  • BAPI for MIGO with respect to Outbound delivery or Stk trfer pur order

    please let me know is there any standard BAPI for MIGO transaction with respect to Outbound delivery or Stock transfer purchase order

    try these...
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    BAPI_OUTB_DELIVERY_SPLIT_DEC

  • Create dummy Outbound delivery order & Outbound delivery in EWM

    Dear Gurus ,
    Please suggest if following is possible in EWM and does not have any impact on ERP system :
    1. On click of a button create ODO
    2. Assign multiple components to this ODO
    3. Assign Wave and release the wave
    4. Once task is created and confirmed .
    5. Should be able to mark the ODO for deletion
    6. Delete the ODO/OD in EWM
    During all these steps no communication should happen to ERP.
    Thanks,
    Abhishek

    Dear Petr ,
    I want to trigger the cartonization planning for the components. These components i am moving from one bin to another Bin.
    Cartonization planning does not support without Outbound delivery. I tried to run the cartonization planning for Internal stock transfer document but it is not working.
    Hope it clarifies the scenario.
    Please let me know in case you need more clarification from my side.
    Thanks,
    Abhishek

  • How to create an outbound delivery for an repair order (RA)

    Hi Guys,
    Please let me knoe the steps to outbound delivery. Now, i have created repair order and inbound delivery, request you to explain on further stps.
    Thanks in advance.
    Shankar

    Hi,
    Refer this link:
    http://help.sap.com/saphelp_erp2005/helpdata/en/0d/fa0a415e37d349e10000000a1550b0/frameset.htm
    Regards,
    Gayathri

  • Badi for create/change outbound delivery

    Hi,
    I want to write a custom code on the create/change of outbound delivery.
    found a badi def: DELIVERY_PUBLISH and method: delivery_publish_after_save.
    I want to know if this is correct place to write my include or any other place?
    Thanks & regards,
    Ravish

    Hi,
    Check SAP Note 415716 - User exits in delivery processing also.
    Regards,
    Eduardo

  • Plan order created for Outbound delivery

    Hi Gurus,
    For some materials, When MRP is run it generates plan order for Outbound material with same qty as that of outbound delivery.
    What setting should be done as not to generate plan order for outbound delivery.
    thnx in advance.

    Hi,
    There is nothing in message control tab for outbound parameter(we20) and even there are multiple changes in delivery.
    What we do is as soon as the delivery is created .  Z trnx is executed  which changes the dec whse status A(Relevent ) to  B (distribution) simulteneously outbound Idoc is created and delivery details send to whse.
    Normally there will be one outbound idoc per delivery , but in this case there are 2 (duplicate)

  • Duplicate outbound Idoc created for outbound delivery

    Hi Gurus,
    We use decentralised whse system for goods movement.
    For couple of outbound deliveries there are double idocs created (messge type SHP_OBDLV_SAVE_REPLICA).
    I have no idea how the duplication taken plcae. Any body come accross this kind of issue .
    Please help to reslove the issue .
    Thanks in advance

    Hi,
    There is nothing in message control tab for outbound parameter(we20) and even there are multiple changes in delivery.
    What we do is as soon as the delivery is created .  Z trnx is executed  which changes the dec whse status A(Relevent ) to  B (distribution) simulteneously outbound Idoc is created and delivery details send to whse.
    Normally there will be one outbound idoc per delivery , but in this case there are 2 (duplicate)

  • Bapi or FM, to create an inbound delivery with the VL31N (ASN) Urge transac

    Hi
    To all, in this forum and abap programming are new, but I have a requirement that I occupy automate the generation of an inbound delivery (ASN). in the transaction vl31n generates an asn but I occupy do in automatic and ando seeking a BADI, BAPI, or an MF to record in the sap tables after the validations that goal in my program.
    Many thanks in advance and I hope that someone I can help or guidance on this issue.
    Best regards.

    Hi,
    check these function modules for sales order document no.
    <b>In case of smartform:</b>
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'ZFORMNAME'
    IMPORTING
    fm_name = v_form_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION v_form_name
    EXPORTING
    control_parameters = w_ctrlop
    output_options = w_compop
    user_settings = 'X'
    IMPORTING
    job_output_info = w_return
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    i_otf[] = w_return-otfdata[].
    <b>In case of sapscript:</b>
    options-tdgetotf = 'X'.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    options = options
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT =
    RDI_RESULT =
    TABLES
    otfdata = i_otf
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    OTHERS = 5.
    i_otf -
    Regards,
    Sakthi.

  • Function Module to create AFS Outbound delivery for sales order

    Guys,
    I am looking for a function module to create deliveries for a sales order IN IS-AFS.
    I cannot make BAPI_DELIVERYPROCESSING_EXEC work. Also, if I use the IDOC type /AFS/DELVRY03 via message type WHSCON and function module IDOC_INPUT_DELVRY it doesn' work either.
    Does anyone know which function module I could use? I need to select specific AFS schedule lines though, but at this point I am not able to make any work.
    Thanks
    Leonardo

    This will not help .
    Edited by: Amit Khare on Aug 7, 2008 3:49 AM

Maybe you are looking for