Update Delivery qty via user exits

Hello all,
I need to replace the delivery qty that is copied from sales order with another qty during delivery creation (or) at the time of saving the delivery. I have tried replacing the field LIPS-LFIMG in various user exits. But none had updated the delivery qty(somehow SAP again replaces the new value with the original value). If you know how to update a delivery qty thru an user exit, please give me details.
Thanks a lot

Hi Bala;
   Have you tried this through the routines in transaction VOFM?  An example routine is in the VOFM menu path "Data Transfer -> Deliveries".  Check the code under routine 101, that may help you.
Best Regards,
John

Similar Messages

  • STO - Delivery Qty Check - User exit

    Dear Friends,
    Is there any User Exit for the Checking / Control of the Delivery qty not exceed against  STO Order , and also to check the Price for the Material before Billing.
    Thanks and Regards
    T.Arulvanan

    Hi,
    Check whether any Negative postings is allowed for that material.
    If there system will allow you to post the delivery if the stock is not there in the system.
    Check the material master whether negative postings is allowed.
    rgds
    Chidanand

  • Change employee group via user exit ?

    Hello,
    I would like to know if it is possible to change the field
    PSPAR-PERSG in infotype "action" -0000
    via user exit ZXPADU01/2 ?
    When I get p0000-MASSN = 10 ,i need to move 0 to
    PSPAR-PERSG but via the user exits it is not possible.
    Only when I debug and put in PSPAR-PERSG  the value 0 it works.
    Please let me know if there is away ...
    Thank you,
    Boaz

    Hi,
    Customizing 0184 could not met our requirements.
    We need to keep the original settings (ELN...), and we'd like to change the inbounde delivery item category according to specific purchase order informaiton, so MV50AFZ1 is required.
    Kindly please advise again.
    With regards.

  • Shipment cost - change customization of item categories via user exit

    hey ,
    is it possible to manpiulate the item categories customization to open manually/ automaticly via  user exit
    even if i customized them to open manually ?
    for example :
    if the shipment type is X - open manually , else automaticly .
    Regards
    ASA  .
    Edited by: ASA MOKED on Dec 23, 2009 11:38 AM

  • Im trying to update db table in  user exit, with the internal table

    Im trying to update db table in user exit, with the internal table
    my scenario:
    loop at itekpo.
    updating itekpo -
    > at the end of user exit the db table ekpo have to be updated
    endloop.
    Im updating internal table, using 
    MODIFY itekpo TRANSPORTING INCO1 INCO2  WHERE ebeln = itekpo-ebeln
    where itekpo is internal table, but it is not updating the db table 'ekpo'.
    i also tried updating ekpo directly !
    Thanks in advance

    Hi,
    you can search in the forum itself,
    Try this link for instance
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=tocreateaBADI&adv=false&sortby=cm_rnd_rankvalue
    You can find a code for finding BADI as a report with the following Transaction
    finding badis
    How to find BADIs
    Reward if helpful
    Regards
    Byju

  • Updating BKPF table using User-Exit

    Hi,
    In User-exit, i am trying to modify Document date and Posting date of Accounting Document (Table : BKPF ) by using the following stmt:
       modify bkpf from table it_bkpf1.
       if sy-subrc = 0.
          commit work and wait.
      endif.
    But the modification is not done for some Accounting Document's.
    While debugging it is updating but not for Normal execution.
    Please suggest on this.
    Regards,
    Aruna.

    Hi,
      The Document Date is the date in which the business transaction for the Documente(e.g., a transfer of posting) took place. The document date is the date on which the original document was issued.
    The document date can, for example, refer to the creation date of the delivery note issued by the vendor or the internal goods receipt slip.
    Note: It is possible that an invoice was issued with a Document Date of 6/15/98, entered into R/3 on 7/15/98 (Entry Date) with a Posting Date of 6/30/98 (to post the Document in the previous fiscal year). Many times, all three of these dates are the same
    Are you sure that the <b>exit SAPLF051</b> was active. You may need to activate it through transaction CMOD.
    <b>Reward points</b>
    Regards

  • Update vbup/vbuk from user-exit for sales document

    Dear All.
    Is it possible to update the sales document status for an item (vbup) from a user exit , customer function, badi, or other, in the billing document?
    We'd like to make the control of updating the status tables dynamic, rather than based on the confiuration for an exception process.
    For example, when service item (order related billing) is partially billed, depending on some conditions we would set the sales order service item to fully invoiced. 
    In this case vbup-FKSAA = C.
    Many thanks!

    There is a BAdI LE_SHP_ITEM_STATUS that can change the item status in VBUP. Be sure to read the documentation first. It states
    If you use this BAdI to change the delivery item status that was set in delivery
    processing, it can affect further processing of the delivery extensively, and
    lead to data inconsistencies. Therefore, SAP recommends that you only use
    the BAdI to modify your own status fields.
    Regards,
    Brenda

  • Ztable not updating in sales order user exit

    Hi Genius Abapers.
    We want to take text ID data of sales order into Ztable. For taking the data we have used user exit in sales order. Now the problem is if we go through debug mode then the Ztable is updating but if we remove the break point Ztable is not getting updated.
    Please give solution for this problem
    Regards
    Narayana

    Hi Gurus,
            I am basically from SD and we used commit statements in the programme and this is the code we used
    Include name --- MV45AF0B_BELEG_INITIALISIEREN
    **********************************Code Addd by paresh 8.10.2007 starts *******************************
      DATA : BEGIN OF itab_so OCCURS 0,
             vbeln LIKE vbap-vbeln,
             posnr LIKE vbap-posnr,
             spras LIKE t002t-spras,
             END OF itab_so.
      DATA : BEGIN OF itab_so1 OCCURS 0,
             vbeln LIKE vbap-vbeln,
             posnr LIKE vbap-posnr,
             spras LIKE t002t-spras,
             END OF itab_so1.
      DATA : BEGIN OF it_tabid OCCURS 0,
             tdid LIKE stxh-tdid,
             tdspras like stxh-tdspras,
             END OF it_tabid.
      DATA : is_stxh TYPE stxh.
      DATA g_header TYPE string .
      DATA wa_plain_text TYPE zplain_text.
      DATA t_lines LIKE tline OCCURS 0 WITH HEADER LINE.
      DATA g_item(16)." type i.
      data :it_ztable type table of  ZPLAIN_TEXT .
      data wa_ztable type zplain_text.
      data flag.
    *****************************Read Header text***************************************
    *loop at vbak.
       itab_so1-vbeln = vbak-vbeln.
       itab_so1-posnr = vbak-posnr.
       itab_so1-spras = vbak-wklnd.
       APPEND itab_so1.
       CLEAR itab_so1.
    ENDLOOP.
    refresh it_tabid.
    clear it_tabid.
    refresh it_ztable.
    clear it_ztable.
      LOOP AT xvbap.
        itab_so-vbeln = vbak-vbeln.
        itab_so-posnr = xvbap-posnr.
        itab_so-spras = xvbap-wklnd.
        APPEND itab_so.
        CLEAR itab_so.
      ENDLOOP.
    LOOP AT itab_so.
        SELECT tdid tdspras FROM stxh INTO TABLE it_tabid WHERE tdobject = 'VBBK' AND tdname = vbak-vbeln  .
    ENDLOOP.
    *loop at it_ztable into wa_ztable.
      LOOP AT itab_so.
        LOOP AT it_tabid.
          is_stxh-tdobject = 'VBBK'.
          is_stxh-tdname   = vbak-vbeln.
          is_stxh-tdid     = it_tabid-tdid.
          is_stxh-tdspras  = it_tabid-tdspras.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
              id                      = is_stxh-tdid
              language                = is_stxh-tdspras
              name                    = is_stxh-tdname
              object                  = is_stxh-tdobject
            TABLES
              lines                   = t_lines
            EXCEPTIONS
              id                      = 1
              language                = 2
              name                    = 3
              not_found               = 4
              object                  = 5
              reference_check         = 6
              wrong_access_to_archive = 7
              OTHERS                  = 8.
          IF sy-subrc = 0.
            LOOP AT t_lines.
              CONCATENATE g_header t_lines-tdline INTO g_header SEPARATED BY space.
            ENDLOOP.
            wa_plain_text-application = 'SO'.
          wa_plain_text-key1 = itab_so-vbeln.
            wa_plain_text-key1 = vbak-vbeln.
            wa_plain_text-key2 = 'HDR'.
            wa_plain_text-sub_application = it_tabid-tdid.
            wa_plain_text-text = g_header.
            wa_plain_text-last_date = sy-datum.
            MODIFY zplain_text FROM wa_plain_text .
       wait up  to  60 seconds.
             commit work.
            CLEAR: wa_plain_text.
            CLEAR : g_header,t_lines.
            refresh t_lines.
          ENDIF.
      if sy-subrc <> 0.
       delete from zplain_text where key1  = vbak-vbeln    and
                                  key2  = itab_so-posnr    and
                                  SUB_APPLICATION = it_tabid-tdid.
                                   commit work.
       endif.
        ENDLOOP.
      ENDLOOP.
    *endloop.
    Please do me the needfull
    Regards
    Manam.Narayana

  • Update infotype 0032 in user exit ZXPADU02

    Hi All,
    I have the following requirement.
    Telephone extension number is stored in IT0105 and IT0032. When the extension number is updated through ESS, this is stored in IT0105 but it does not update IT0032 which is displayed in MSS.
    I need to update infotype 0032 based on the data in 0105.
    I thought I could update infotype 0032 in userexit ZXPADU02 whenever infotype 0105 was saved using the function module HR_INFOTYPE_OPERATION but it is not working for me.
    Any help would be appreciated.
    Elaine

    You have to make the function call a separate unit of work.One other option is to put the function call in a report & SUBMIT it from the User exit.
    ~Suresh

  • PORDCR - Inbound IDOC via User-Exit

    Hi All,
    I would like to create a Purchase Order via an inbound Idoc with a message type PORDCR.
    I would like to make use of the enhancement MM06E001 and the function module EXIT_SAPLEINM_002 to populate data segments.
    Please advise if this is the correct user-exit to process an inbound idoc.
    Any input appreciated.
    Meghna

    Hi Meghanarrao,
    IDOC_INPUT_ORDRSP-->PERFORM fill_data_ordrsp-->and find the below user exits for each segment...
    List of user exits available for --
    EXIT_SAPLEINM_001   
    EXIT_SAPLEINM_002   
    EXIT_SAPLEINM_003   
    EXIT_SAPLEINM_004   
    EXIT_SAPLEINM_005   
    EXIT_SAPLEINM_006   
    EXIT_SAPLEINM_007   
    EXIT_SAPLEINM_008   
    EXIT_SAPLEINM_009   
    EXIT_SAPLEINM_011   
    EXIT_SAPLEINM_012   
    EXIT_SAPLEINM_013   
    EXIT_SAPLEINM_014   
    EXIT_SAPLEINM_015   
    EXIT_SAPLEINM_016   
    EXIT_SAPLEINM_017   
    EXIT_SAPLEINM_018   
    EXIT_SAPLEINM_019   
    EXIT_SAPLEINM_020   
    IDOC----- Dir -Enhancemnt --Description
    ORDCHG -O -MM06E001   -- Purch. Ord. Change
    ORDCHG- I -VEDB0001     --Sales Ord. Change
    ORDERS- O -MM06E001   --Purchase Orders
    ORDERS -I- VEDA0001     --Sales Orders
    ORDRSP -O- SDEDI001    --Order Confirmation
    ORDRSP -I- MM06E001    --Order Response for Purchase Order   "This is the Right one for Purchase order create
    IDOC           Msg        ANSI EDIFACT I O
    ORDERS01 ORDCHG 860 ORDCHG X X
    ORDERS01 ORDERS 850 ORDERS X X
    ORDERS01 ORDRSP 855 ORDRSP X X
    IDOC_INPUT_ORDRSP--Function module-BUS2012-Inbound-Purchase order / order confirmation
    regards,
    Prabhudas

  • How to pass in GR qty in user exit (EXIT_SAPLEINR_003)

    Hi,
    How to pass in GR qty MIGO transaction (ERFMG field) into user exit EXIT_SAPLEINR_003?
    thanks..
    Lina

    Hi Mayank,
    Thanks for your response, but I don't think it corresponds to my problem.
    I my case, I use a user exit variable to filter some data. It seems BPS offers the possibility to the user to select several values amongts the pre-selected values presented by the user exit variable, but it doesn't work. We can use a popup in which we enters the required values, but in final, only the first value is taken into account.
    I don't know if it is due to a BPS bug or if it is not a good solution in regard to BPS philosophy. In this case, the concerned caracteristic isn't in the header but in lead columns.
    I must present a solution to my client next monday, so I have not enough time to open an OSS message.
    An alternate solution should be interesting too.
    My need is to present to a user a selection of values amongst all values from an infoobject (the user exit variable seemed to be a good solution) and the user must have the possibility to select some values amongst these as filter.
    Regards

  • Need to change SD Pricing Procedure or Doc Pricing Procedure via User Exit

    I have a need to override the SD Pricing Procedure that is determined via standard Pricing Determination Config.....what user exit
    can I use to accomplish this...
    OR
    is there a user exit prior to the Pricing Determ code that I can use to override the Doc or Customer Pricing Procedure that would
    have been retrieved from the Order Type and Customer Master
    Thank you for any prompt replies.
    I'm on SAP ECC 6.00

    Dear John
    Try with any of these User Exits
    -  USEREXIT_PRICING_CHECK (module pool SAPMV61, program MV61AFZA)
    -  USEREXIT_CHANGE_PRICING_RULE (module pool SAPMV61A, program MV61AFZA)
    thanks
    G. Lakshmipathi

  • Best practice on integration message augmentation via user exit or rfc call

    I am looking for documentation that would provide best practices on whether to use user exits to augment the data on an IDOC or to forward the standard SAP produced IDOC to PI where rfc calls are made to augment the data as required for the specific target system.
    I am sure there are pros and cons for both solutions, but I am hesitant to use user exits since we now have moved the knowledge of what a target system wants from the integration layer to the source layer.  If a second target system comes along in the future, the user exit becomes more complicated with additional target specific requirements. 
    Any links to best practice documentation on this subject is greatly appreciated.
    Edited by: Sean Sweeney on Oct 15, 2009 6:59 PM

    Hi Steve,
    Might be trying for solution for a long time, If i understood your question clear let me clarify you few points.
    You are trying to access the bex query which is designed with the exit's in the background based on the logic and trying to call the entire dimensions and key-figures in a single connection. Then you are trying to map those data in the charts.
    Steve, try to make more connections based upon the logic and split them. use the same query but split them by sales per customer group, sales per day, sales per week by making three different connections and try. You can merge the prompts from all connections.
    Hope this Helps!!!
    Sorry if i misunderstood your question.
    --SumanT

  • Copy header text from DO to billing via user-exit

    Dear Experts,
    We have a requirement to copy one text field in the DO header to Billing header text field. I've searched the forum before posting this one but none seems to fit my requirement. I am using RV60AFZC form USEREXIT_FILL_VBRK_VBRP for this. From VF01, I see the header text was populated but after saving, it is being cleared out. I suspect the copy control from sales order to billing header text is doing this, nothing is saved in the SO.
    Any idea how to do this by configuration or by user-exit/enhancement spot?
    Looking forward for your responses.
    Thanks in advance.
    nEnE

    Can you please check VOFM>Copying Requirements>Texts, Routine 1. The documentation states:
    "This requirement checks if the reference document header has a text entry.  If so, it is automatically transferred. This requirement is assigned in the detail of the access sequence for header text determination."
    You can copy this in a 9XX routine number and write your specific code there.
    Hope this helps!

  • Stock placement strategy via user exit

    Hello,
    I'm tring to change putaway strategy by using a user exit.
    In customizing i enter:
    Logistics Execution u2013 Warehouse Management u2013 Strategies u2013 Putaway Strategies u2013 Define strategy for fixed bins.
    Table V_T301S.
    When i enter one of the movements i can put V next to User exit act.
    How can I make the connection between the strategy and the user exit?     
    Thank you,
    Lilah.

    Hi,
    In the ST masterdata (config: WM - Masterdata - Define ST) you must activate the User Exit field for putaway and/or removal for the specified ST you want to use with a user exit. See view: V_T3010-USEIN or Table T331-USEIN. When this indicator is set and you go through the TO creation log, you will see that at some stage there will be an entry where is states that you are using an user exit to place/pick stock.
    Cheers,
    Hein

Maybe you are looking for