Delivery text updation using user exits

Hii All
Our client has a requirment where we need to update text in delivery header when we save the delivery.
The delivery text needs to be updated when we save the delivery.
Can anyone help me in letting me know steps to be followed to do the same.
Thanks & Regards,
Gaurav Manocha

First of all identify the text id associated with your delivery. Once you identify the text id, change the text id in the sample program below. You can have this logic coded within your MV50AFZ1 user exit
data: w_txt_hdr  LIKE thead,
      i_text  LIKE tline  OCCURS 0 WITH HEADER LINE,
                     i_text-tdformat = '* '.
                     i_text-tdline = 'sample'.
               append i_text.
              w_txt_hdr-tdobject = 'VBBK'.
              w_txt_hdr-tdname   = likp-vbeln.
              w_txt_hdr-tdid     = '0008'. "text id
              w_txt_hdr-tdspras  = sy-langu.
             CALL FUNCTION 'SAVE_TEXT'
                   EXPORTING
                        client          = sy-mandt
                        header          = w_txt_hdr
                        savemode_direct = 'X'
                   TABLES
                        lines           = i_text
                   EXCEPTIONS
                        id              = 1
                        language        = 2
                        name            = 3
                        object          = 4
                        OTHERS          = 5.
              IF sy-subrc <> 0.
              ENDIF.

Similar Messages

  • Screen field Updation using user Exit

    Dear all
    In VA11, in the Services Tab, there is a table control  . Through Configuration , Functional consultant added one filed. The added field has to be filled by the customer Exit     SRVESLL .   In the debugging mode , claculation is working properly. But in the screen , the calculated value is not appearing .
    Can  anyone suggest me any solution???
    Thanks and Regards
    Karthikeyan.P

    Ya, I have extended .
    SRV_ESLL-ZIELWERT  =  SRV_ESLL-NETWR  /  SRV_ESLL-MENGE.
    but still its not appearing in the screen.
    thnkz
    Edited by: karthikeyan palaniayya on Apr 15, 2010 8:00 AM

  • How to update old records of LIPS used user exit MV50AFZ1

    To All Experts,
    I have used User Exit MV50AFZ1 and in this user exit i updated the fields
    USEREXIT_MOVE_FIELD_TO_LIPS.
    LIPS-ETENR = VBEP-ETENR.
    Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
    How to update old records ? Pl. guide me.
    Yusuf

    Hi Yusuf,
    See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
    Regards
    Eduardo

  • Creating delivery, can I check the sales order's field using user-exit or ?

    Hi dear.
    When I create a delivery in VL01N or other transactions, I want automatically to check the sales order's some field and to decide whether create or not.
    Can I use user-exit for that?
    Or other solutions is there?
    Thanks regards

    Yes your requirement can be achieved thru a User Exit.
    There are many User Exits available in Delivery as listed in the link below:
    https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
    The selection of necessary User Exit is based on your specific requirement.
    Also if you want to check some feild of Sales Order whether it is completed or not, then you can also use Incompletion Procedure in Sales Order, which will make sure that no Sales Order is saved until the end-user enter data in those feilds.
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • Is it good practice to define text elements in User exits & there by using?

    Hi Experts,
    Simple doubt that, am wrting code in a User Exit. So, here my code works only, if the DOC TYPE = 'XXX'.
    So, instead of using hard coding as 'XXX', I wuld like to use a text element, like
    if DOC TYPE = text-xxx.
    my logic.
    endif.
    and creating the same text element.
    so, let me know that,
    Is it safe/recommended to use text-element in exits?
    Is it good practice to define text elements in User exits?
    thanq

    u can also use SET ID's if u dont want to hardcode like that in ur program.
    if u use SET ids , no need of transport request in case of change in the DOC types , directly u can change values in that set it , its like a master id.
    sytax will be like this
    doc_type in g_doc_type(this is set id ).
    for creation of set ids see tcode GS01.
    regards
    Prabhu

  • Change gl account in MIGO by using user exit

    Dear all,
    Could you tell me how to use user exit to change the gl account in MIGO?
    I have searched in SDN and found some code.
    In user exit: MBCF0002 ( EXIT_SAPMM07M_001 ).
    FIELD-SYMBOLS <F2> TYPE ANY."Field Symbol for the GL ACCOUNT
    DATA : W_KONTO_NAME(50) VALUE '(SAPMM07M)DM07M-KONTO'.
    ASSIGN (W_KONTO_NAME) TO <F2>.
    MOVE "GLACCOUNT" TO <F2>.
    "GLACCOUNT" is the new GL account you want to change.
    but thecode doesn't work, it can not change the BSEG-HKONT.
    Could you help me solve this problem?
    Many thanks
    Message was edited by:
            Chen Zhonghua

    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    No of Exits:          8
    Rewards if useful.........
    Minal

  • Text Variable using Customer Exit .

    Hello Friends. I have a requirement to create Text Variable using Customer Exit . So I created the Text Variable as "ZVRBMS" and assigned that with YTD &ZVRBMS& in the Structure of Query Desigener . so that Out put will YTD AUTO
    OR YTD RETAIL
    Now this Auto And Retail comes from Version that user choose via variable ZFIBMSVER IN User Promt. if ZFIBMSVER = 10
    then ZVRBMS = auto . and if ZFIBMSVER = 20
    then ZVRBMS = RETAIL
    Please correct my ABAP code in customer exit and let me know to make this work
    when 'ZVRBMS'.
        if I_STEP = 2.
          clear LOC_VAR_RANGE.
          loop at I_T_VAR_RANGE into LOC_VAR_RANGE.
            if LOC_VAR_RANGE-VNAM = 'ZFIBMSVER'.
          if SY-SUBRC = 0 OR LOC_VAR_RANGE-LOW = '10'.
            L_S_RANGE-LOW = 'AUTO'.
          elseif LOC_VAR_RANGE-LOW = '20'.
            L_S_RANGE-LOW = 'RETAIL'.
          L_S_RANGE-SIGN ='I'.
          L_S_RANGE-OPT  = 'EQ'.
          append L_S_RANGE to E_T_RANGE.
      endif.
      endif.
      exit.
          endloop.
    endif.
    Thanks
    Soniya

    The code should be:
    when 'ZVRBMS'.
    if I_STEP = 2.
    clear LOC_VAR_RANGE.
    loop at I_T_VAR_RANGE into LOC_VAR_RANGE.
    if LOC_VAR_RANGE-VNAM = 'ZFIBMSVER'.
    if LOC_VAR_RANGE-LOW = '10'.
    L_S_RANGE-LOW = 'AUTO'.
    elseif LOC_VAR_RANGE-LOW = '20'.
    L_S_RANGE-LOW = 'RETAIL'.
    endif.
    L_S_RANGE-SIGN ='I'.
    L_S_RANGE-OPT = 'EQ'.
    append L_S_RANGE to E_T_RANGE.
    endif.
    exit.
    endloop.
    endif.

  • How to use User Exit for SD...

    Hi there,
    My client's requirement is to block the overall status of the Sales Order header under status tab to be blocked when user r-enters a new scheduled date in the "First Date" column in the SO.
    When they goto VA02, & put a new date it must automatically put a delivery block in the header as well as make the order header status to be blocked.
    I see the “First date” field in the SO is in a Structure “RV45A”, the field name is ETDAT.
    Can you let me know how to use User exit MV45AFZZ?
    When doing it, it must put the Delivery block in table VBAK – LIFSK.
    Rgds,
    Pri

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • Inbound idoc values when updated from user exit not saved

    I'm trying to process some user exits of an inbound idoc from WE19.
    The values get correctly populated to IDOC_DATA internal tables of IDOC_INPUT_ORDRSP function module in debug kode
    but when the new idoc is generated from WE19 , those segment values (populated by exit) are not shown/saved.
    The user exit is EXIT_SAPLEINM_007.
    Is it not possible to populate segment values of inbound idocs from using user exits. If yes , then during testing using WE19 , every time a new idoc is created it should display those values into the concerned segments. Please help.

    Hello,
    yes is possible it ...
    I think the problem is:
    or
    you have something wrong when to append the new line on internal table
    or
    the exit used is not correct: read the documentation on EXIT_SAPLEINM_0**

  • Can i use user exits

    Hi,
    Can anybody tell me if i can use user exits for not applying cost centre fields for Assets and liabilites gl a/c when we post transcations in fb60 0r fb50 f-22 etc
    warm regards
    Manjunath

    hi Manjunath,
    you can try to set up a substitution and see if it is working. On the other hand P/L accounts must have a CO object by posting, of course cost center is just one option.
    ec

  • MIRO using user exit  EXIT_SAPLFYTX_USER_001

    We are using user exit EXIT_SAPLFYTX_USER_001 for both ME21N and
    MIRO.  ME21N works fine in that we added an item number field to I_INPUT_USER  and it populates with the current item number on the po so we are able to get the gl account from EKKN.  The problem is for tcode
    MIRO.  The data in the I_INPUT_USER is all header data.  There is no material number, qty, item number, etc.  So we cannot go back to the po/item to get the gl account number to pass to vertex.  I used note 302998 to try and add fields EVRPT and EVRTN to the  I_INPUT_USER but they are not populated and when I look at KOMP those fields are also blank there. 
    For MIRO the I_INPUT_USER-KPOSN always has a value of 999999 where for ME21N it has the actual item that it is processing on the po.  I have looked and tried multiple OSS notes and nothing seems to work.  It seems that the MIRO transaction will only pass header data to vertex.  Any help is greatly appreciated!!!! thanks  - deb

    Martha - I did have an OSS note out there but I found the solution for us.
    To get the line item info in I_INPUT_USER and I_TAX_ITEM_INPUT for MIRO we had to go to transaction OBCO and turn on line item processing for our external tax system.  As for your question  - the header information should be in I_TAX_ITEM_INPUT and in I_TAX_HEADER_INPUT.  the I_INPUT_USER is for users to add their own fields that are currently in KOMP.  Look at OSS note 302998 it explains how to extend the I_INPUT_USER  and how to export and import data that you might need.  If this note does not help - go to OSS and do a search on EXIT_SAPLFYTX_USER_001 and some of the other notes should help you. thanks - deb

  • How to use User exit for MM_MATBEL

    Hi
    I want to exclude some material documents while archiving a range of material document through archive Object MM_MATBEL.
    Can you please suggest how to use user exit for this to exclude the material document while archiving.
    Please brief me details.
    Thanks,
    Debadatta

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • Can I use User Exit u2013 IWOC0004 u2013 Change Single-Level List for TCODE IW37N?

    Hi All,
    Can I use User Exit u2013 IWOC0004 u2013 Change Single-Level List for TCODE IW37N?
    In documentation of the User Exit I can see that I  can use this user Exit for IW37(Program - RIAFVC20) , but I want to use this for IW37N (RIH_ORDER_OPERATION_LIST).
    Please tell me is it possible.
    With best regards,
    Narendra

    Hi Pete Sir,
           I am on 4.7 , how to work with it. I am going to use screen exit IW0110018 and I want to add User fields in the IW37N.
    Thanks with best regards,
    Narendra

  • Using user exit. ( LVMPTZZ, LVKMPFZ1). used in Credit Management

    Hi
    How to find  using user exit. ( LVMPTZZ, LVKMPFZ1). used in Credit Management .
    Plz provide path
    Regards
    Rohit

    Hi,
    You can find exits through transactions# SMOD & CMOD also.
    Regards
    Chandra

  • Geography based industry scenario which can be implemented using user exit

    Hi All,
    I am searching for a geography based industry scenario which can be implemented using user exit strategy.
    Please let me know me if anyone knows about any such scenario.
    Thanks & Regards,
    Pranjali.

    Hi Amith,
                   IDOC configured throgh CHANGE pointers.So no need to worry about IDOCS and all.My work was trigger idocs by user exits.Wen  ever i change venodr no.. idocs shoud be triger.
                 Now my question was Insted of going transaction( from there we can  go to debuging mode) i want to check this Exit by RBDMIDOC programe(ofter excute this programe and give Message type as CREMAS,from there i want to go debugging mode).
    Just now i checked,i put breakpoint in Include programe(INCLUDE ZXF05U01) and excute from XK01,it goes to debuging mode,so its fine.But i want triger from RBDMIDOC programe.Ofter excute RBDMIDOC programe,we can enter CREMAS.From there i want to go debuging mode.
    Pls help me,
    Thanks

Maybe you are looking for

  • How can i move the itunes appdata from music folder to another folder?

    I want to get rid of all the database files in my music folder as other applications scan this folder for new music and it takes them forever to scan the itunes folder in the music folder because of all the folders for artwork etc. i thought that is

  • How do I change the apple ID my iPad is associated with

    I'm trying to figure out how to change the Apple ID our iPad is associated with. My husband bought the iPad and set up a new Apple ID instead of using mine. Now we cannot use iCloud to sync all of our devices. Any help out there?

  • Attachments in posts on the PC Suite board (Sticky...

    Hi folks. You are now able to post some attachments to the PC Suite board. This is primarily so people can post their logs files when they are having issues with PC Suite. You should be able to see option to attach at the bottom of the page when crea

  • User exit or Badi to add custom fields in selection screen of tcode CATS_AP

    Hi Guys, I want to add a custom field to the selection screen of report RCATS_APPROVE_ACTIVITIES (tcode CATS_APPR_LITE). I also want to display filtered by this custom fields.  Please let me know the user-exit (prefebly) or BADI. I will appreciate if

  • EDI invoice and posting date

    Hello, We are implementing EDI invoice using BAPI_INCOMINGINVOICE_SAVE and MRBP (background engine). We would like the posting date be set at the date when the invoice is posted. At the present time the posting date is set at the date when the invoic