Delivery change function module

Dear all
Can anyone tell me the Function module for Out bound Delivery Deletion.
How can we delete the delivery through the following function module.
What data  needs to be populated in to the FM!
BAPI_OUTB_DELIVERY_CHANGE
Could u please some one help me.
Regards
raj

Hi,
For deleting the delivery I think it would be sufficient to set the DLV_DEL of the Header control data flag to 'X'.
Pass the HEADER_CONTROL-DELIV_NUMB and HEADER_CONTROL-DLV_DEL = 'X'
You might also have to pass the delivery number to HEADER_DATA-DELIV_NUMB. Not sure of this, you test this in transaction SE37.
But if you want to delete a single item, then you will have to pass data to
ITEM_CONTROL-DELIV_NUMB
ITEM_CONTROL-DELIV_ITEM
ITEM_CONTROL-DEL_ITEM = 'X'.
You might also have to pass the delivery number and item number to ITEM_DATA-DELIV_NUMB and ITEM_DATA-DELIV_ITEM. Also not sure of this, you test this in transaction SE37.
regards,
Advait

Similar Messages

  • New and enhanced or changed function modules in Ecc6.0 compare to 4.6C

    Hi all Experts,
    Now i am at the middle phase of my upgrade project. How can i list module wise (like SD, FI, MM) function modules which modified or newly came to ecc 6.0 or deleted in ecc?
    I already visited the sap site and taken the delta functions. but its not having this function modules.
    where i can find and list?
    Kindly help please....
    points will awarded.
    Raghav

    Hi Sriram,
    It also helps. but my need is only what are the new/changed function modules in ECC6.0 when compared to 4.6C. How to list this?
    Kindly anyone also answer to me.
    Regards,
    Raghav

  • How Can You Add an Item to an Existing Delivery? (Function Module?)

    We are currently using function module GN_DELIVERY_CREATE to create deliveries (shipping notifications) from ASN data. 
    We're also using function module BAPI_INB_DELIVERY_CHANGE to change quantities on existing deliveries and to delete line items on existing deliveries.
    Does anyone know if there's a function module to add a new line item to an existing delivery?
    Best Regards, Scott

    Is BAPI_DELIVERYPROCESSING_EXEC what you need?
    Rob

  • Packing a Delivery via function modules or BAPI's

    Does anyone know the correct function modules to call in order to pack an outbound delivery.  The HU is already been entered into the delivery.  I just need to pack all the items into this HU and PGI the delivery.  I've tried the following function modules:
    SD_DELIVERY_UPDATE_PACKING
    V51P_FIND_HEADER
    V51P_NEUE_HU_PRO
    I'm not sure what I'm doing wrong but the delivery doesn't get packed.  Anyone have a clue?
    Thank you,

    The problem resides in external unique number assignement for handling units:
    in SPRO:
    > Logistics - General
      > Handling Unit Management
        > External Identification
          > Set Unique Number Assignment for HU Identification
    Simply flag the checkbox and Save!
    Without this flag BAPI's raise this info message (HUDIALOG 038). Even if it is an info message and the number is returned at the end the handling unit won't be created!
    Just flag it!

  • Batch determination process in SD- Delivery: any Function module?

    Hi All,
    I want to use the logic used in SD-Delivery for batch determination in Batch Search Strategy report.
    Is there any function module avaialable for batch determination process done in SD so that I can make use of it?
    Thanks in advance,
    Rgds,
    MAdhuri

    Hi Madhuri,
    My requirement is to select that batches that were picked up by the delivery (i.e. those that passed the search strategy) using the Material and Plant combination, Customer as an optional parameter.
    Could you please provide the function modules that are required to make use of the function module "VB_BATCH_DETERMINATION"? Also, could you please let me know if we need to take into consideration any other factors when using the function module VB_BATCH_DETERMINATION
    Thanks in advance!
    Thanks,
    Manohar. Dubbaka.

  • When change Function Module, how to ensure JAVA sees it

    I added a new TABLE to a remotely-callable Function Module.  I added a new table to the "TABLES" tab of the function module.  The table is then populated by the code in the FM. 
    I now want the JAVA code to be able to access this new TABLE.  I am using the "adaptive RFC" model to make calls to SAP.
    After making a change such as this, do I need to
    1. stop and start the JRA factories?
    2. stop and start the J2EE java application?
    3. stop and start the whole server?
    Thanks,
    Kevin

    1. stop and start the JRA factories? <b>If you are working ARFC then nothing to do with JRA factory.</b>
    2. stop and start the J2EE java application? <b>If you have used Enterprise Connector then Re Impor the Model </b>
    3. stop and start the whole server?<b>After re import you need to restart the server</b>
    Regards
    Abhilash

  • Is it possible to change function module?

    Hi ABAPER's
       Once we activate smart form we will get one system generated fuction module.
    my question ? Is it possible to make changes in that function module.
    Thanks & Regards
    sathsih

    Hi,
    You cannot do directly in the FM, if you want you can modify the smartform. Automatically you will have the changes.
    Thanks,
    Sriram POnna.

  • Process Order Change function module in 4.6B

    I'm used to working in >= 4.6C where we have a plethora of BAPIs available.
    Is there a function module in 4.6B to modify process order header and items ?
    Thanks,
    Roger

    Hi Purnima,
    Try the code like below.
    FUNCTION ztest440.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(IM_BANKKEY) TYPE  BANKL
    *"     REFERENCE(IM_BANKACTNO) TYPE  BANKN
    *"  EXPORTING
    *"     REFERENCE(EX_IBGBANKACCT) TYPE  CHAR16
    *"     REFERENCE(E_ERRORMSG) TYPE  CHAR20
      DATA : im_bankcd TYPE char4.
      im_bankcd = im_bankkey+0(4).
      IF im_bankcd EQ '7339' OR
         im_bankcd EQ '7232'.
        ex_ibgbankacct = im_bankactno+3(15).
      ELSE.
        ex_ibgbankacct = im_bankactno+0(16).
      ENDIF.
      ENDFUNCTION.
    Hope this will resolve your problem.
    Reward if it is helpfull..

  • Function Module to update Serial Numbers in Delivery

    Hello there,
    I am attempting to update serial numbers in an outbound delivery using function module SERNR_ADD_TO_LS followed by a perform of serial_liste_post_ls IN PROGRAM saplipw1. However I am struggle with error messages of inconsistancies in status management of the serial numbers. I have verified that the serial numbers I'm using are valid and available. Has anyone had any experience with this FM or others to post serial numbers into an outbound delivery?
    Many thanks!

    That is very helpful and turns out to be true, the delivery is updated with the serial numbers however LIPS is not. I have started to write a routine to correct this.
    On another note in my application I'm noticing that the when I call FM serial_liste_post_ls IN PROGRAM saplipw1 that the internal tables being passed that were built in the FM SERNR_ADD_TO_LS contain serial data from all deliveries and consequently I'm getting errors.
    My program loops at the delivery then the item and for each item I call the FM SERNR_ADD_TO_LS and then I call the serial_liste_post_ls IN PROGRAM saplipw1 once all lines have been passed and the first delivery updates fine. However the subsequent delivery receives an error of " Inconsitancy in status management for serial ". I have confirmed that the serials are good and when I go into debug I see the first delivery goes fine and then I noticed on the FM call of serial_liste_post_ls IN PROGRAM saplipw1 that the internal tables contains data from that delivery and the previous one.
    Below is psuedo code replicating how I call the FM's
    loop at i_likp.
    loop at i_lips
           where vbeln = i_likp-vbeln.
          CALL FUNCTION 'SERNR_ADD_TO_LS'
               EXPORTING
                    profile               = 'Z002'
                    material              = i_lips-matnr
                    quantity              = i_lips-anzahl
                    j_vorgang             = 'PMS3'
                    document              = i_likp-vbeln
                    item                  = i_lips-posnr
                    debitor               = i_likp-kunnr
                    vbtyp                 = i_lips-vgtyp
                    bwart                 = '601'
               IMPORTING
                    anzsn                 = anzsn
                    zeilen_id             = l_zeile
                    serial_commit         = serial_commit
               TABLES
                    sernos                = sernr
               EXCEPTIONS
                    konfigurations_error  = 1
                    serialnumber_errors   = 2
                    serialnumber_warnings = 3
                    no_profile_operation  = 4
                    OTHERS                = 5.
    endloop.
        PERFORM serial_liste_post_ls IN PROGRAM saplipw1.
        COMMIT WORK.
    endloop.
    Any help is very much appreciated!!!

  • Function Module where-used list does not find update rule programs

    We have function modules called in update rules. The where-used list in the function builder does not find the update rule programs.
    For example, function DATE_GET_WEEK is called in an update rule to InfoCube YCUBE001. The activated program name for this update rule is GP3PWI6PKM5Y3K75A370DIS8I77. When I goto SE37, enter the function DATE_GET_WEEK, click the where-used button, check the programs option and search. The system does not find the program GP3PWI6PKM5Y3K75A370DIS8I77.
    Without this search capability it is difficult to do an impact analysis of changing function modules. Does anyone know of a solution?

    hi,
    i think the reason is the code of update rules' generated program are stored line by line in table(rsaabap), update rules program itself stored in table rsupdrout, link with field codeid, another useful table is rsupdinfo which store infocube, infosource related.  other info may stored in some other rs* and rsa* tables.
    try to create following program in your system, and run, type in the function module name, and will display out the update rules program id, with additional useful info : which infoprovider, infosource, and detail info of the routine and infoobject in the update rule that using that function module. you may modify the program to have better display out list.
    hope this helps.
    REPORT  Z_FM_UPDRUL_WHEREUSED.
    data : lv_sfm,
           lv_line type string,
           lv_where type string.
    tables : rsaabap,RSUPDROUT,rsupdinfo.
    select-options:
    s_fm for rsaabap-LINE.
    start-of-selection.
      loop at s_fm.
        concatenate s_fm-low ' ' into lv_sfm.
        concatenate '%' s_fm-low into lv_line.
        concatenate lv_line '%' into lv_line.
        write : / 'function module', 'update rule id', 'routine id', 'infoobject', 'infocube', 'infosource'.
        select * from rsaabap
        where line like lv_line and objvers = 'A'.
           select * from rsupdrout
           where codeid = rsaabap-codeid and objvers = 'A'.
             select single * from rsupdinfo
             where updid = rsupdrout-updid and objvers = 'A'.
               write: / lv_sfm, rsupdrout-updid, rsaabap-codeid,
                        rsupdrout-iciobjnm, rsupdinfo-infocube,
                        rsupdinfo-isource.
        endselect.
        endselect.
      endloop.

  • Function module RSD_ZIO_ALM02_TXT_GET does not exist

    Hi
    I am trying to copy the data from one info cube to another info cube with the read master data in transformation rule for some of the info object. This exercise I have done many times successfully for the same structure but suddenly I am getting this error without doing any changes
    'Function module RSD_ZIO_ALM02_TXT_GET does not exist'
    After getting this error I have delete the transfer rule for above object than the some error are coming for the another info object which also used for read master data.
    Kindly help me .(we are working on ECC 6)
    Thanks and Regards
    Vinay

    Hi Vis
    I tried this one also but it’s not working. All the info objects are active and I tried after reactivating also but still error exits.
    Thanks and regards
    Vinay

  • Function Module for Changing delivery date

    Hi Friends ,
        I am held up with a scenario of changing the delivery date while creating purchase order. Could you please suggest any function module to change the delivery date in purchase order if it is less than 5 days.
    With Regards ,
    Sudhir S
    Moderator message: please do some own research before asking.
    Edited by: Thomas Zloch on Feb 21, 2011 11:45 AM

    Hi praveen for u r requirement there is no need of any FM
    Try this code
    parameters:
      p_date like sy-datum,
      p_no type i.
    data:
      w_date like sy-datum.
    w_date = p_date - p_no.
    write: / w_date .
    it is enogh for u r requirement
    plzz reward if it is usefull...
    for any further quiries my mail id is [email protected]
    plzz dont forget to reward

  • Function modules for delivery creation, change, deletion.

    hi all,
    anyone know and worked on function module to create/change/delete deliveries with reference to sales order/without reference of sales order.
    if any one knows about the function modules please let me know.

    BAPI_DELIVERYPROCESSING_EXEC will allow you to create an outbound delivery, but this is <b><u>not released</u></b> for customer use yet(Rel.47). Type that function module in the forum search area and you will get some sample code.

  • Function Module (BAPI) for Delivery Change

    Dear All,
    We have a Function Module "BAPI_SALESORDER_CHANGE" for changes in sales order, wherein we also can enter Texts in sales order.
    Please tell me similar such function module for Outbound Delivery, wherein I can enter / insert / change the Texts (both Header & Item) in a deivery document.
    Regards,
    Dhananjay

    Thanks
    Where in this Function Module do I find the table / parameter for adding text at item & header level.
    Regards
    Dhananjay

  • Function Module to Change Delivery?

    Dear All,
    Is there any Function Module to Change Delivery?
    Regards

    Hi,
    There are two BAPI's for it, one for inbound and other for outbound.
    BAPI_INB_DELIVERY_CHANGE
    BAPI_OUTB_DELIVERY_CHANGE
    Please use the respective one.
    If its useful, award points pls..
    Regards,
    Raju

Maybe you are looking for