Update delivery with material and quantity.

hai abap gurus,
      My requirement is to create a sales order and create a delivery with sales order reference.
      I done both.But now i want to  update my delivery with material and quantity.
      Is there is any bapi or function module.
      can any one help for my request.
                                                         with regards,
                                                              mallik

Hi,
You're on good way while using FM SERNR_ADD_TO_LS and SERIAL_LISTE_POST_LS .
In the second function module you don't need to pass anything.
Don't forget to make a commit work to avoid database error during synchronisation.
I had also one case of updating the serial to the document. It was the Sales order. I have worked with the function module SERNR_ADD_TO_AU which is internally using the function module SERNR_ADD_TO_DOCUMENT. The following is the sample code for it:
  CALL FUNCTION 'SERNR_ADD_TO_AU'
    EXPORTING
      sernr                 = w_sernr
      profile               = c_zd01
      material              = w_matnr
      quantity              = '1'
      document              = w_vbeln
      item                  = '00010'
      debitor               = fs_header-sap_ship_to
      vbtyp                 = 'C'
      sd_auart              = w_doc_type
      sd_postyp             = w_item_cat
    IMPORTING
      anzsn                 = w_anzsn
      zeilen_id             = w_zeile
      serial_commit         = w_serial_commit
    EXCEPTIONS
      konfigurations_error  = 1
      serialnumber_errors   = 2
      serialnumber_warnings = 3
      no_profile_operation  = 4
      OTHERS                = 5.
  IF sy-subrc eq 0.
    CALL FUNCTION 'SERIAL_LISTE_POST_AU'.
    COMMIT WORK.
  ENDIF.
And one more thing, don't forget to have the call to the function module 'SERIAL_LISTE_POST_AU' amd commit work if the return code is 0. This is also mandatory.
regards
Satish

Similar Messages

  • Query on material and quantity updation

    I updated material and quantity updation for a particular material type and plant combination in development server. Before transpoting in transport request, when I View Cluster Maintenance: Data, I am able to see that in table T143M is also updated for some other plant and material types which I had not done in customising. Also note that for the entries in transport for all plant and material type combination other than intended one, there are no qunatity and value updating which had been activated. Can someone throw light as to whether is it a functional or techinal issue which is causing this?

    Hi,
    whenever your copping new material type from existing one it  will copy all the setting ie screen reference , attributes and even quantity / value update also . so it will display like that .

  • From which table can I display PGI (material and quantity)for a spesific cu

    Dear gurus,
    From which table can I display PGI (material and quantity)for a spesific customer order?
    Thanks in advance

    HI
    PGI and material quantity can be available in MSEG table
    for this enter the sales order number in KDAUF or* MAT_KDAUF* fields in MSEG table
    Also try with LIPS delivery item table and LIKP table
    regards
    SAP SD
    Edited by: sapkpit_sd on Jul 22, 2010 8:14 AM

  • With holding tax report with material and qty fields

    Dear All,
    Is there any standard report available with with holding tax data with material and qty fields.
    Thanks,
    Sekhar.

    dear Friend,
    Withholding tax will deduct on services. Hence Material and quantity is not relavent.
    There is no report is available also.
    reg
    Madhu M

  • Need help on enhancement of 0CO_OM_OPA_1 with Material and Plant

    Hi,
    I have a requirement that need to build a BW report which shows Actual costs and Planned Costs of Service Orders. We are getting Actual costs from 0CO_OM_OPA_6 and now i am getting planned costs from 0CO_OM_OPA_1. For actual costs we are getting Service Orders, Material and plant from Satandard DS 0CO_OM_OPA_6. Where as For Planned Costs standard data source 0CO_OM_OPA_1 is not having Material and Plant information. For this we decided to enhance 0CO_OM_OPA_1 with Material and Plant.
    But we are not sure the source tables for material and plant and the logic to extract these data from the tables. Can anybody please help me out.
    Thanks for your supprt in advance.

    It's possible you may need to use a CO-PA (profitability analysis) datasource instead of 0CO_OM_OPA_6.  0CO_OM_OPA_6 extracts data from CO tables. 
    Based on the path you provided "...Profit. segment...", the requested data might exist with CO-PA.
    If you determine the required data resides in CO-PA, you'll have to create a datasource based on the operating concern.  You can perform a search within the online docs for steps to create this datasource.
    Hope this helps.
    Rod

  • To make material and quantity grid out in process order

    Hi ,
    is there any user exit  so that material and quanitiy column in process order can be made grid out................as the material and quantity will flow from BOM ........

    Hi
    Open this link and press Ctrl+F and write component. You will get all possible userexits and Badis relatred to component tab in service or maintenance order. Ask your ABAPER to try those which will be found in this link.
    PM-CS User Exits - ERP Operations - SCN Wiki
    Thank$

  • Updating Outbound Delivery with picking and delivery quantity.

    Hi,
    I have a scenario where in an idoc will come from external system(DELVRY05) and based on the data in the idoc I have to update the picking and delivery quantity for the outbound delivery created in SAP.The idoc has the outbound delivery number and the quantity which is sent from the legacy system.
    I do not want to do googs issue,just updatation.
    How can I update the outbound delivery?
    Please help me.Its needed urgently.
    Thanks,
    Sandeep.

    YOu can make use of the FM:
    WS_DELIVERY_UPDATE_2.
    see the sample code:
    Assume that it_500o has the Delivery Header details and it_5010 has item details
      LOOP AT it_5000.
        CLEAR lx_vbkok.
        CLEAR lv_vbeln.
        REFRESH lt_vbpok.
        REFRESH lt_prott.
        lx_vbkok-vbeln_vl = it_5000-order_number.
        lx_vbkok-vbtyp_vl = 'J'.
        lv_vbeln = it_5000-order_number+0(10).
        LOOP AT it_5010 WHERE order_number = it_5000-order_number.
          lt_vbpok-vbeln_vl = it_5010-order_number.
          lt_vbpok-posnr_vl = it_5010-order_line.
          READ TABLE lt_vbfa WITH KEY vbeln = lt_vbpok-vbeln_vl
                                      posnn = lt_vbpok-posnr_vl.
          IF sy-subrc = 0.
            lt_vbpok-vbeln = lt_vbfa-vbelv.
            lt_vbpok-posnn = lt_vbfa-posnv.
           lt_vbpok-vbtyp_n = 'J'.
          ENDIF.
          lt_vbpok-pikmg = it_5010-quantity. "Picking quantity
          APPEND lt_vbpok.
          CLEAR lt_vbpok.
        ENDLOOP.
    Update the Delivery
        CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
          EXPORTING
            vbkok_wa                           = lx_vbkok
      SYNCHRON                           = ' '
      NO_MESSAGES_UPDATE_1               = ' '
           commit                             = 'X'
            delivery                           = lv_vbeln
           update_picking                     = 'X'
      NICHT_SPERREN_1                    = ' '
      IF_CONFIRM_CENTRAL                 = ' '
      IF_WMPP                            = ' '
      IF_GET_DELIVERY_BUFFERED           = ' '
      IF_NO_GENERIC_SYSTEM_SERVICE       = ' '
           if_database_update_1               = '1'
      IF_NO_INIT_1                       = ' '
      IF_NO_READ_1                       = ' '
           if_error_messages_send             = 'X'
      IF_NO_BUFFER_REFRESH               = ' '
      IF_NO_MES_UPD_PACK                 = ' '
    IMPORTING
      EF_ERROR_ANY                       =
      EF_ERROR_IN_ITEM_DELETION          =
      EF_ERROR_IN_POD_UPDATE             =
      EF_ERROR_IN_INTERFACE              =
      EF_ERROR_IN_GOODS_ISSUE            =
      EF_ERROR_IN_FINAL_CHECK            =
         TABLES
           vbpok_tab                          = lt_vbpok
           prot                               = lt_prott
      VERKO_TAB                          =
      VERPO_TAB                          =
      VBSUPCON_TAB_1                     =
      IT_VERPO_SERNR                     =
      IT_PACKING                         =
      IT_PACKING_SERNR                   =
      IT_REPACK                          =
      IT_HANDLING_UNITS_1                =
      ET_CREATED_HUS                     =
      TVPOD_TAB                          =
    endloop.

  • Update delivery with new material

    <b>Requirement:</b> I need to add new materials to a delivery.  We create an outbound delivery in SAP and send to our warehouse.  They will ship substitute materials that were not originally on the delivery.  I need to update the delivery with the new "substitute" materials.  How can this be achieved?
    It doesn't seem that the BAPI_OUTB_DELIVERY_CHANGE will help.
    Thanks in advance!

    Hi Michael,
    Whenever you are creating a STO and then a delivery, system will carryout the availability check depending on the delivery date mentioned in the STO. If stock exists then system will create a delivery.
    In your case, it seems that there is no availability check carrying out by the system. The system has to be configured for this functionality.
    First you need to add the materials to the STO, then do the delivery. Then only you can do the PGI.
    Hope this helps.
    Thanks,
    Viswanath

  • Tolerance Limits with Date and quantity

    Hi Experts,
    We would like to set the GR Tolerance Limits with Date and qty.
    how to set the Tolerance Limits for Date and quantity..??
    if we created PO 100qty and date 01-05-009.
    if we receive the goods on 20-04-2009 and 50qty...
    For GR .. Migo should be give error message..
    where can i set this Tolerance Limit Configuration.... can u please explin me..
    Thanks in Advance,
    Anthyodaya .

    Go to SPRO - Material Managemetn - LIV - Invoice Block - Set Tolerence limit.
    USe company code and maintain a value for ST
    ST: Date variance (value x days)
    The system calculates for each item the product of amount * (scheduled delivery date - date invoice entered) and compares this product with the absolute upper limit defined. This allows relatively high schedule variances for invoice items for small amounts, but only small schedule variances for invoice items for large amounts.

  • Set up Tolerance Limits with Date and quantity for GR

    Hi Experts,
    We would like to set the GR Tolerance Limits with Date and qty.
    how to set the Tolerance Limits for Date and quantity..??
    if we created PO 100qty and date 01-05-009.
    if we receive the goods on 20-04-2009 and 50qty...
    For GR .. Migo should be give error message..
    where can i set this Tolerance Limit Configuration.... can u please explin me..
    Thanks in Advance,
    Anthyodaya .

    hi,
    You can do one thing...
    Activate the SLED check...
    BY this when the date goes earlier or late from the expected date, then system show you the messages like:
    1. Earliest delivery date is DD.MM.YY..
    2. Expected delivery date was DD.MM.YY...
    In std sap system, the second message is already error message...so when get late delivery then it'll not be possible to maintain the GR...
    For the qty varinace, activate the quantity variance either via over/under delievery tolerances..or
    Via SPRO settings...
    SPRO >> MM >> LIV >> Invoice block >> check for qty tolerances and make the settings as per your requirement...
    Regards
    Priyanka.P

  • Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..

    Dear friends,
    I am attempting write a dymanic Select Statement (with joins).
    And the sleect query looks like this..
      SELECT (LT_SEL_LIST)
      INTO CORRESPONDING FIELDS OF
      TABLE <DYN_TABLE>
      FROM (LT_FROM_LIST)
      WHERE (LT_WHERE3).
    Here the into table is a dynamically created internal table..
    which is created by ...this
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = IT_OUTPUT2[]
        IMPORTING
          EP_TABLE        = DY_TABLE.
    the it_output2 contains the the fieldcatlog information of dynamically given fields :-
    like:-
           TABNAME
           FIELDNAME
           DATATYPE
           LENG
           INTTYPE
           ROLLNAME
           DECIMALS
           REFTABLE
           REFFIELD
    i mean the internal table is constructed with reference to all the bove metadata.
    Problem:- This query run fine with all the fields Except AMOUNT AND QUANTITY fields....
    When the selection list contain VBAK-NETWR or MSEG-MENGE..It throws a runtime error.
    "The data read during a SLECT access couldnt be inserted into the target field,either conversion is not supported for
    the target field's type or the target field is too short."
    after this I even tried to construct the dynamic table with CFILEDNAME and QFIELDNAME in the Fieldcatalog.
    so now my fieldcatlog looks like this:---
    LOOP AT IT_DD03L..
      IF IT_DD03L-DATATYPE = 'CURR'.
           TABLEFIELD-CFIELDNAME = IT_DD03L-FIELDNAME .
           ENDIF.
       IF IT_FIELDCAT3-DATATYPE = 'QUAN'.
           TABLEFIELD-QFIELDNAME = IT_DD03L-FIELDNAME .
      ENDIF.
           TABLEFIELD-TABNAME     = IT_DD03L-TABNAME.
           TABLEFIELD-FIELDNAME   = IT_DD03L-FIELDNAME.
           TABLEFIELD-DATATYPE    = IT_DD03L-DATATYPE.
           TABLEFIELD-INTLEN      = IT_DD03L-LENG.
           TABLEFIELD-INTTYPE     = IT_DD03L-INTTYPE .
           TABLEFIELD-ROLLNAME    = IT_DD03L-ROLLNAME.
           TABLEFIELD-DECIMALS    = IT_DD03L-DECIMALS.
           TABLEFIELD-REF_TABLE   = IT_DD03L-REFTABLE.
           TABLEFIELD-REF_FIELD   = IT_DD03L-REFFIELD.
    APPEND TABLEFIELD.
    CLEAR TABLEFIELD.
    ENDLOOP.
    Note:- this is a test code so ignore performance issues...
    Please help me with some code ...to avoid the Runtime erorr.
    Thanks,
    jeevan.

    Hi Jeevan,
    Why are moving only few fields from DD03L table to your field catalog? Why don't you use move-corresponding? The following code works for me in ECC6.0.
    data: it_dd03l type table of dd03l initial size 0,
          ls_dd03l type dd03l,
          lt_fldcat TYPE lvc_t_fcat,
          ls_fldcat TYPE lvc_s_fcat,
          ls_where(72) TYPE c,
          lt_where LIKE TABLE OF ls_where,
          lt_fld LIKE TABLE OF ls_where,
          lt_data_dy TYPE REF TO data.
    field-symbols: <ft_data> TYPE STANDARD TABLE.
    select * into table it_dd03l from dd03l
        where tabname = 'VBAK'
          and ( fieldname = 'VBELN' or fieldname = 'NETWR' ).
    check sy-subrc eq 0.
    loop at it_dd03l into ls_dd03l.
      move-corresponding ls_dd03l to ls_fldcat.
      append ls_fldcat to lt_fldcat.
      move ls_dd03l-fieldname to ls_where.
      append ls_where to lt_fld.
      if ls_dd03l-fieldname = 'VBELN'.
        clear ls_where.
        concatenate ls_dd03l-fieldname ' <> ''''' into ls_where.
        append ls_where to lt_where.
      endif.
    endloop.
    check not lt_fldcat is initial.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
          EXPORTING
            it_fieldcatalog           = lt_fldcat
          IMPORTING
            ep_table                  = lt_data_dy
          EXCEPTIONS
            generate_subpool_dir_full = 1
            OTHERS                    = 2.
        IF sy-subrc <> 0.
          RAISE no_configuration_data.
        ENDIF.
        ASSIGN lt_data_dy->*  TO <ft_data>.
    check sy-subrc eq 0.
    select (lt_fld) from VBAK into corresponding fields of table
        <ft_data>
        where (lt_where).
    Thanks
    Bala

  • Problem with currency and quantity field

    Hi,
    I have done a couple of BDC and watched that if some currency or quantity field is there and i want to run the BDC the particular currency/quantity field will not populate the value inspite of i have declared the same table field that it refers to in the screen in the internal table.
        But, if i declare a character string in the internal field having same length as the screen field it will populate at run time. Why so?
    Regards
    Sandeep

    Hi,
    Even i have experienced the same problem many a times and use a character string as a work around to solve it.
    I guess one reason for it is for the currency and quantity fields, the actual defined length and the output length are different with output length being 3 or 4 bytes greater than that of actual lenght and also the fact that these fields are always right justified. hence some bytes of the field is getting truncated which the system does not allow and discards the whole value.
    regards,
    Mahesh

  • HT4623 for the first time i bought this iPhone, i was enjoying it....i updated it with iTunes and suddenly message appear on my pc an error occurred.....n my phone is not working.... :-( what should i do?? m helpless...no support from ny side....

    for the first time i bought this iPhone, i was enjoying it....i updated it with iTunes from older version to newer version and after installation when it was updating my iphone then suddenly message appear on my pc an error occurred.....n my phone is not working.... :-( what should i do?? m helpless...no support from any side....  
    and now its not even restoring back....showing me error's
    m getting very irritated and unable to sleep jst because of all this crap....
    instead i lost 1gb internet data in downloading the update

    i tried restoring itz saying error occured 2008 :-(

  • Capture Characteristics with Material and Sales (Really Very Urgent)

    Dear All ,
    I have to capture the charecteristics alongwith the material, these characteristics also flow in the sales order, basically a class has been defined which holds a number of characteristics and this class is assigned to the material and I guess this is done using the variant configurator,
    1) How will be able to capture the same and display
    those ?
    2) Does this characteristics flow in the standard
    extractors of the material and sales order or any
    other cube which can multicubed with those ?
    Plz do suggest me the an viable option.
    Thanks & Warm Regards,
    Fayak.

    Hi Seig,
    You can generate this datasources using TCODE CTBW, You can refer to this note (306046), which xplains the same, I have done that to an extent but data is not flowing in my main DS and I need to understand the mapping of the same in InfoSource structure.
    Thanks & Warm Regards,
    Fayak.

  • Capture Characteristics with Material and Sales Order

    Dear All ,
    I have to capture the charecteristics alongwith the material, these characteristics also flow in the sales order, basically a class has been defined which holds a number of characteristics and this class is assigned to the material and I guess this is done using the variant configurator,
    1) How will be able to capture the same and display  
       those ?
    2) Does this characteristics flow in the standard
       extractors of the material and sales order or any
       other cube which can multicubed with those ?
    Plz do suggest me the an viable option.
    Thanks & Warm Regards,
    Fayak.

    Hi Anil,
    Thanks for your reply, I have checked up the material attributes it does not flow there and I was referrring to one note where you can enhance your datasource using CTBW to capture this characteritsics so I did enhance 0MATERIAL_ATTR, the other attributes are listed as an TEXT DataSource and If I check them using RSA3 data gets populated accordingly but the enhanced datasource 0MATERIAL_ATTR which become 1CL_MAT001 does not return any records shows zero records, I am looking for charcterictics which have been mapped using an Variant Configurator and as far as the note suggests it has to be done thru CTBW to capture this, I have done that but success still eludes me,
    Experts Plz help on this as I am on pressure to complete this.
    Thanks,
    Fayak.

Maybe you are looking for

  • Website not displaying as expected

    A website (blog -  http://www.womenscommunallivingproject.com ) that works ok on someone else's ipad, is not working on mine. I've deleted my bookmark, powered-off, and searched for it again - but it is still showing empty pages and missing informati

  • How to transfer JPG/JPEG from one SAP system to another?

    I am not sure this is something that is easily possible, if even possible, and can't find anything about it. Does anyone know how to transfer a picture (JPG/JPEG) from one SAP system to another (both 7.00+)?  Scenario would be something similar to up

  • Actiontec MI424-WR Rev. E and Windows 8

    Will this router I have funtion with W8. Thanks

  • CRS-1006 : No more members to consider

    I am getting the following error..when I am installaling oracle10g clusterware on RHLinux AS4 VMware...after cluster installation when I am installing VIPCA iam geting error: CRS-1006 : No more members to consider CRS-0215: Could not start resource "

  • Profile name

    Is it possible for either one of you admins to change my profile name? as in my username when people add me.