Function module to create and change delivery

Hi,
I need to create a function module to create and change delivery using the same function module.
For this I want to call the bapi's BAPI_OUTB_DELIVERY_CREATE_SLS
and BAPI_OUTB_DELIVERY_CHANGE.
So what are the variables I need to declare in source code of my function module.
Can anybody please suggest me.
thanks,
Sudheer

Hi Sudheer,
                  Check this out
In the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS
You need to provide
SHIP_POINT - Goods receiving point for the returned goods.
DUE_DATE - Delivery creation date selected as december 12
           9999 unless specified.
DEBUG_FLAG makes analysis of the process earlier .
call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
DESTINATION logsys
EXPORTING
SHIP_POINT = 'MD01'
DUE_DATE = sy-datum
DEBUG_FLG = 'X'
importing
*delivery = lf_vbeln
*num_deliveries = lf_num
*tables
*sales_order_items = lt_order
*extension_in = lt_extin
*deliveries = lt_deli
*created_items = lt_itm
*extension_out = lt_extout
*return = lt_return
For the BAPI_OUTB_DELIVERY_CHANGE.
Please read the documentation of the function provided there.
A Wiki To support your need.
Link: [Wiki|https://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+%28VL02%29]
hope your query resolves soon.
Have a best day ahead.

Similar Messages

  • Function Module to Create or Change or Delete

    Hi Friends,
       Is there any function module to create or change or delete the business partners, there is a possiblity to do with CRMXIF_PARTNER_SAVE, but we are having some issue while calling in ISA applications.
    So please let me know is  there any possibility to get the functionality.
        We need to create the BP with all the details means central data, address data and communication data as well as some sales area data.
    Please share the helpful suggestions.
    Thanks,
    Bhaskar

    Try following Functions:
    BAPI_BUPA_FS_CREATE_FROM_DATA2
    BAPI_BUPA_CENTRAL_CHANGE
    or combination of both these FMs.
    Good Luck.

  • 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

  • Function Module for creating Functional Location BOM and Equipment BOM

    Hi All,
    Is there any function module for creating and changing Functional Location BOM and Equipment BOM ???

    Hi,
    Tables for Eq., BOM: EQST, STKO, STPO.
    Tables fro Fun., Loc., BOM: TPST, STKO, STPO.
    You can use FMs: CS_BOM_EXPL_TPL_V1, CS_BOM_EXPL_EQU_V2 & CS_BOM_EXPL_MAT_V2 for extracting the appropriate BOM related data.
    And for the Alternatives please check the customizing or check with your respective Module experts for the appropriate configuration.
    Hope this helps.
    Best Regards, Murugesh AS

  • Can we use IDOC_INPUT_ Message type for creating and changing the document

    Hi,
    I have a requirement to create or change the requisition data.
    Can I use IDOC_INPUT_PREQCR01 function module for both the purpose.
    OR shall I go for custom function module by using BAPI function modules to create or change the data.
    Please help me in this regarding.
    Answers will be rewarded.
    Thank you.
    Eswar

    Hello Eswar
    You could use the IDoc processing function module if you had the data already available in the IDoc specific format (which is unlikely). This would mean you are receiving the IDoc data from another SAP system.
    Instead, check the BAPI explorer (transaction BAPI) if you can find an appropriate BAPI.
    Regards,
      Uwe

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • Function module to create Inbound delivery with reference to Purchase Order

    Hi experts,
    I want to create Inbound delivery with refernce to Purchase Order. But I want to create item wise. For example If one purchase order is there with 10 line items. 10, 20, 30, 40, 50......100.
    If I am showing report for Purchase Order with select option and if I select first 5 line items 10, 20, 30, 40, 50 then my program should be create one Inbound delivery for selected line items only. I have tried BDC for Tcode VL31N, but its not worked. Is there any Function module to create Inbound delivery with reference to Purchase Order for selected line items????????

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Function Module to create Delivery with JIT Calls

    Hi SAP Guru's,
    We are working on SAP 4.6C version.
    I am looking for a function module to create delivery with JIT Calls.
    We are currently using the SAP standard function module "SHP_VL10_DELIVERY_CREATE" to create Delivery with JIT Calls. Each JIT Calls has apx 60-80 materials in it and each material refers to a unique Scheduling Agreement. This function module is taking very long time in production server to create delivery, it does not take much time in dev or quality server.
    We have JITV setting profile (For Sold To Party and Partner Description Profile) set as RELACE (to summarize the line items in JIT Call).
    Is there another function module that we can use to create delivery with JIT Calls?
    Thanks in Advance,
    Amit

    Hi there,
    There is no such function module.
    Regards
    Sanju

  • Function module to create Invoice from the Delivery no ?

    Hi All,
    Is there any way (function module) to create an Invoice from the Delivery no and the Billing Type ? We do not want to go with BDC for transaction VF01.
    Details:
    We want to generate a pro-forma invoice while saving the delivery. We will have 'Special Function' (NAST-NACHA = 8) in the output determination and a routine would be called from there. That routine would contain the code to generate the Invoice. We will have only the 'Delivery no and the Billing Type'  in that routine. So trying to find any function module which can create an Invoice from the Delivery no and the Billing Type.
    Any suggestion / hint  is welcome.
    Thanks,
    Ashok

    Hello Ashok Satapathy ,
                                        The only option  for you is to call the FM "GN_INVOICE_CREATE" .
    There is no special FM availaible to pass only the delivery number at this point.
    You need to retrieve all the delivery information details and need to pass it to the FM "GN_INVOICE_CREATE".
    Thanks,
    Greetson

  • L_TO_CREATE_DN function module for creating TO for a delivery

    Hi,
    I am using L_TO_CREATE_DN function module to create a TO for a delivery and it is working fine as long as the HU, I am picking has quantity less than the delivery quantity or equal to delivery qty. But whenever I try to pick a HU whose qty is little more than the delivery quantity, its throwing an error. Also, there is tolerance set on the delivery line item (and the qty I want to pick is within the tolerances). When I am trying to do it manually using LT03, it throws a popup about conversion error and is creating the TO taking the rouding into account. Here is the example of the above scenario.
    Delivery Qty = 1300 LB (pounds, base unit of measure)
    Alternate Unit of measure for this material is Roll (RL)
    I am trying to pick a HU which is 1350 LB.
    Manual Case : When I use LT03 it throws a popup (saying conversion error) and accepts only
    0.963 RL which is equal to 1300 LB and creates a TO. when I see the delivery after creating the TO, the picked qty is 1300LB.
    Function Module : When I use the function module, it does throw me the same popup but does not create the TO. Rather it throws an error "Available quantity in bin is zero".

    hi , it will create only 1 TO with multiple line items
      CALL FUNCTION 'l_to_create_multiple'
        EXPORTING
          i_lgnum                      = ls_9001_scrn-lgnum
          i_bwlvs                      = lc_bwartwa
          i_bname                      = sy-uname
        IMPORTING
          e_tanum                      = ltak-tanum
        TABLES
          t_ltap_creat                 = li_ltap_creat
    ls_9001_scrn-lgnum = warehouse number
    lc_bwartwa = movement type
    li_ltap_creat = itab containing the line items with diff material
    Just check if it helps
    Thanks

  • Bapi's or function modules to create, change( delete) partner functions

    Hi,
       Can anyone suggest BAPI or Function Modules for creating , changing the Partner Functions of the customer
    eg: To create customer XYZ as  bill-to-party of customer ZYX , i need  either a BAPI or Function Module.
    Thanks in Advance,
    Sabu

    Hi The following are the BAPI's to create and change the Partner Function.
    BAPI_BUS2001_PARTNER_CHANGE_M
    BAPI_BUS2001_PARTNER_CREATE_M
    Regards
    Vijay

  • Function modules to create a movement type 105 and 104

    Hi folks,
             I have created a custom screen and attached to MIGO Transaction. If my user enter data and click 'PASS' on my screen, a movement type 105 to be triggered in back ground. And if he click 'FAIL', movement type 104 need to be triggered. is there any BAPI or Function Module to create goods movement type. I have searched some function modules in SE37 and found some stuff. But i am confused which one to use...Could you pls guide me regarding this...
    for ur information, i am thinking to use these FM's
    MB_READ_GOODS_MOVEMENT
    MB_CREATE_GOODS_MOVEMENT
    MB_CANCEL_GOODS_MOVEMENT
    Will it be useful for me.
    Thanks in advance,
    Shyam.
    Edited by: shyam prasad on Jan 7, 2009 10:24 AM

    Hi
    Yes you can use this function modules.
    Thanks & Regards
    Kishore

  • CRM - function module to create card account in deposit mangement

    Hi All,
    I need to function module to <b>display the details of business patner in CRM sytem</b>
    1. Function module to display address details of Business patner
    2. FM to display details of Identification number and identification type of Business patner.
    3. FM to display tax details of business patner.
    4. FM to display card details of Business patner
    5.)<b> Fm to create card account in deposit Mangement.</b>
    what is the transaction code to create card account in deposit management.
    Points will be awarded.
    Regards,
    vinoth.

    Hi Stefan,
    Thanks for the quick response.
    As you have suggested i am using the same set of Function Modules to create the service contracts.
    However can you please suggest how can i also change the address of the business partners i.e ship-to-party, sold-to-party, payee etc..
    And can you also suggest how to upload the header status of the service contract. (the value is getting set to default 'open')
    Thanks in advance

  • Function Module to create Outbound IDoc

    I have created a segment (ZSEGPRO), basic type (ZIDOCPRO) and message type (ZMSGPRO) to create a custom IDoc. Now I have to write a Function Module to create Outbound IDoc.
    I want to know what will be in Import, Export, Changing, Tables, Exceptions and Source code of that function module. The fields used in the segment ZSEGPRO is given below:
    Fld NameSource Data Elmn     Description
    PRODUCT MARA MATNR     Material number
    TEXT     MAKT     MAKTX     Material description
    PRN     MARA     YYBCEZNDR     Print Field
    Additional information: Export parameter will be BAPIRETURN for holding error message(if any).
    These Function Module need not require to be RFC enabled.

    Hi ,
    Refer these:
    There are two main reasons
    1) Make sure you call COMMIT WORK after the MASTER_IDOC_DISTRIBUTE
    http://help.sap.com/saphelp_nw04/helpdata/en/78/21783151ce11d189570000e829fbbd/content.htm
    2) The rest of the setting of the ALE IDoc might not have been done
    http://help.sap.com/saphelp_46c/helpdata/en/78/2177c951ce11d189570000e829fbbd/frameset.htm
    You can use the Area Menu WEDI and do the rest of the settings.
    ALE Quick Start guide and ALE Programming Guides for your reference
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    Recent discussion which could be helpful,
    About WE21, BD64, sm59
    Regards
    Shiva Kumar

  • Create and change hierarchies via ABAP

    Hi,
    I'm searching for a function module or class which allows me to create and change hierarchies from a abap report.
    regards,
    Karen

    There a number of Standard Function Modules in SE37 :
    BUPA_HIERARCHY_BW_CATALOG      Transfer of Hierarchy Directory
    BUPA_HIERARCHY_BW_CONSTRUCT    Transfer of BP Group Hierarchy to BW Adapter (Full Upload)
    BUPA_HIERARCHY_BW_GET_DETAIL   Delivers Program Names of Exit Routines
    BUPA_HIERARCHY_BW_GET_INTRVALS Validity Intervals for Hierarchies That Can Be Loaded
    BUPA_HIERARCHY_BW_READ         Read Partner Hierarchy
    BUPA_HIERARCHY_BW_TRANSFER     Transfer of BP Group Hierarchy to BW
    Do a seach on HIER in se37

Maybe you are looking for

  • Problem with BDC on VA02

    Hi All, I am facing a problem with bdc on va02. After hitting enter on the first screen it pops an info message "consider subsequent douments". It doesn't get recorded in recorded. Hence I am not able to run the transaction with no screen mode. Pleas

  • Can't post to Craigslist using iPhone?

    Seems you cant post to Craigslist using iPhone. All go's well until your asked to enter the "Verification Word" which is not an option with the iPhone. Does this have something to do with the lack of Jave or something. It's no big deal I'm just curio

  • CD Drive disabled after installing Elements 11 on Windows 7

    I realized a couple of days after I installed Elements 11 on my Dell laptop running Windows 7 that the CD/DVD drive on my laptop was no longer visible to the operating system.   After fooling around for an hour trying to get a disc out, I remembered

  • Help view to get two table entries in search help

    Hi, I have created the help view for join two tables and that help view was  called in the selection method for creating search help of the custom table field. since it has show inthe selection screen , it is fetching only one table entries. and the

  • You are not authorized to call up line item display (FB03)

    Hi, actually; I am facing a problem; one user is getting error message "You are not authorized to call up line item display" when he is trying to view the payment usage of document no in FB03 transaction code. I have checked and found that user is al