Text Symbol in User exit

Hello Friends ,
I have a z - include ZX45AI91 in an user exit . I do not want to hard code the error message "Not authorized to update sales order  at this level"  instead use a Text symbol from the z - programs that triggers this exit .
When I use the text symbol it gives me an error message that Access key is required .
Please advise if this is possible
Thanks ,
Hari

I think you are not getting my point .
This is what is currently in the code :
if l_user_level < approved_level.
          message e999 with 'Not authorized to update sales order at this level'.
      endif.
I want to be able to use like :
if l_user_level < approved_level.
          message e999 with text-054.
      endif.
The text-054 is a text element in any z program .
Is this possible ?
Thanks

Similar Messages

  • Reg Text symbols in user exit

    Hi,
    I have created 3 new text elements in exit EXIT_SAPMM06E_013. I created them by logging into SAP by language DE this is because when i tried to change the text symbols in EN it was not allowing me to change. Now when I logon in language EN always its giving me information message "Untranslated texts from master language DE will also be displayed." So to avoid this information message do I have do any transaltion? Will there be any issue with this message when I transport this to another server?
    Thank You,
    Juli

    go to the test element list and follow the path GOTO->Translation .. translate the text elements from DE to EN .. this will stop ur error message. It's better you do that the transaltion before you move to the other server.
    Hope That Helps
    Anirban M.

  • Problem in transporting the text elements for user exit EXIT_SAPLV09A_002

    Hi  All,
    I am facing a problem in transporting the text element (text symbol) for the exit EXIT_SAPLV09A_002. It is implemented and transported but the text elements are not transported and even if I try to delete them and then create them again, on activation it doesn't prompts for TO and it version its shows it as local object. I have tried to manually assign the TO by using limu as id of program and rept as type and SAPLXV09 as the name of the object but still it doesn't allows as an error message comes prompting local object cannot be assigned to TO. Kindly suggest solution this problem.
    Regards,
    Sachin
    Edited by: Sachin Dangayach on Nov 15, 2010 4:21 PM

    Hello ,
               In the Quality after you run the report check in the layout option>display text elements> variables and check what value is displayed for the use exit variable , if it is correct then problem may be in the selection you gave when you run the report if the user exit variable value is wrong , then set a break point in the code and run the report from rsrt and check where the error is.
    hope it is clear
    assign points if useful

  • 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

  • Text retrieval in user exit

    Hi,
    Is there any way to retrieve the header text and operation text (if exists) in the user exit 'USER_EXIT_SAVE'  before the work order ( in plant maintenance ) gets saved to the database.
    i.e. we don't have the actual work order number and SAP represents it at this time as '%00000000001'.
    Thanks for any clues
    Ravi

    I think you are not getting my point .
    This is what is currently in the code :
    if l_user_level < approved_level.
              message e999 with 'Not authorized to update sales order at this level'.
          endif.
    I want to be able to use like :
    if l_user_level < approved_level.
              message e999 with text-054.
          endif.
    The text-054 is a text element in any z program .
    Is this possible ?
    Thanks

  • Tab strip push button text change for user-exit screen

    Hi experts
       How can I change the text of Tab strip push button which is maitained by screen user-exit.Such as I maintained the user exit MEREQ001,In the screens of TCODE me51n there have a subscreen named
    "CUSTOMER DATA",Now I want change the text.
    thanks in advance
    BR
    Chris

    create ab push button without any text. In the run time you can assign test to this as follows.
    suppose name of the button is PUSHBUT.
    PUSHBUT = 'EDIT'.

  • 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.

  • Use CREATE_TEXT on VA01 user exits

    Hi,
    I need to write item text using FM CREATE_TEXT in VA01 user exits. The FM required VBELN and I don't have when creating order.
    How can I create item text in VA01 user exits ?
    Thanks,
    Quincy

    Hi,
    i have a similar requirement where i need to copy custom populated fields of vbap table into item->text->item notes tab.
    i tried with both create_text and save_text. but i couldn't see the item in the item->texts->item notes.
    here is my code:
    CONCATENATE vbap-zzrelid vbap-zzsorg2 vbap-zzsorg3
                  vbap-zzsorg4 vbap-zzsorg5 vbap-zzsorg6
                  vbap-zzsorg7 vbap-zzsorg8 vbap-zzsorg9
                  vbap-zzsorg10 INTO gt_textname.
      gt_textobject-tdid  = c_0002.
      gt_textobject-tdname     = gt_textname.
    gt_textobject-tdobject   = c_vbbp.
      gt_textobject-tdspras    = sy-langu.
      APPEND gt_textobject.
      CONCATENATE 'relationship Owner:' vbap-zzrelid INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 2 :' vbap-zzsorg2 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 3 :' vbap-zzsorg3 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 4 :' vbap-zzsorg4 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 5 :' vbap-zzsorg5 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 6 :' vbap-zzsorg6 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 7 :' vbap-zzsorg7 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 8 :' vbap-zzsorg8 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 9 :' vbap-zzsorg9 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 10 :' vbap-zzsorg10 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
    CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            header          = gt_textobject
            savemode_direct = 'X'
          TABLES
            lines    = gt_text
          EXCEPTIONS
            id       = 1
            language = 2
            name     = 3
            object   = 4
            OTHERS   = 5.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    kindly resolve the problem with the above code.
    Thanks,
    Preethi.

  • User Exit or BADi in Purchase Order Regarding

    Hi Friends,
                      i have a requirement like this. If Item Categiry(At Item level, 3 Rd Column) in a Purchase order is type 'L'. We will have an option to enter multiple materials under components screen(It will come by giving on line item with 'Item categiry 'L''. at bottom under Material Data tab if we click Components button.)
                     At this screen i need to validate the component materials with line item material. Can any body tell me the User Exit name or Badi name for this requirement.
    Thanks.
    Sekhar.J

    Hi,
    Enhancement object MM06E005 has screen exits and function module exits that allow you to add customer fields to purchase order processing - both header and item overview.
    Check txn CMOD or SMOD. Use CMOD to create a project with this enhancement object.
    Check these links :
    Re: ME21N - PO Enhancement using BADI
    Re: How make validations before saving a Purchase Order ?
    Re: Accesing Item Line Level Texts from MM06E005 user-exits (ME21N)
    BAPI_PO_CHANGE
    --DECLARATION OF INTERNAL TABLES USED--
    DATA : RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA : HEADER1 LIKE BAPIMEPOHEADER.
    DATA : POHEADERX LIKE BAPIMEPOHEADERX.
    DATA : POITEM LIKE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
    POITEMX LIKE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE.
    --APPENDING THE DATAS IN THE INTERNAL TABLE--
    HEADER1-PO_NUMBER = '4500000001'.
    HEADER1-CREATED_BY = 'divya'.
    HEADER1-CREAT_DATE = '20060407'.
    POHEADERX-PO_NUMBER = 'X'.
    POHEADERX-CREATED_BY = 'X'.
    POHEADERX-CREAT_DATE = 'X'.
    POITEM-PO_ITEM = '10'.
    POITEM-MATERIAL = 'RUBBER'.
    POITEM-SHORT_TEXT = 'RUBBER PRODUCTS'.
    APPEND POITEM.
    POITEMX-PO_ITEM = '10'.
    POITEMX-PO_ITEMX = 'X'.
    POITEMX-MATERIAL = 'X'.
    POITEMX-SHORT_TEXT = 'X'.
    APPEND POITEMX.
    *CALLING FUNCTION MODULE BAPI_PO_CHANGE
    CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
    PURCHASEORDER = '4500000001'
    POHEADER = HEADER1
    POHEADERX = POHEADERX
    TABLES
    RETURN = RETURN
    POITEM = POITEM
    POITEMX = POITEMX.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    --TO DISPLAY MESSAGES--
    LOOP AT RETURN.
    WRITE : RETURN-TYPE , RETURN-NUMBER , RETURN-MESSAGE.
    ENDLOOP.
    Make the above changes.
    Th header is just a work area, not an internal table.
    Refer ths thread and see if it has an answer:
    FM BAPI_PO_CHANGE & new PO line items
    <b>Reward points</b>
    Regards

  • User exit or badi for item text in mir7 transaction

    Hi Gurus,
    Please provide me suitable user exit or enhancement or badi for this requirement.
    client enter TEXT fied data in MIGO transaction for material document and purchase order in where tab.
    in MIR7 i entered reference number as material document number and purchase order number after triggering enter button it gives the list of items but IT IS NOT GIVE THE ITEM TEXT DATA which we entered in MIGO transaction.
    Please provide me suitable user exit or enhancement or BADI for this.
    Thanks A lot in Advance.
    With Regards,
    Radhakrishna.

    Hi RadhaKrishna,
    You can find the BADI by yourself just follow the below any methods you will get the appropriate BADI name..
    Method 1:
    Go to Tranaction: SE24.
    open class CL_EXITHANDLER
    Open the method " GetInstance"
    Put Break point in the statement
    call method cl_exithandler=>get_class_name_by_interface
    Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
    Method 2:
    find the Package name and go to the tranaction SE84.
    Enter the package name
    inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.
    for your reference I am sending you the list of BADI present in MIRO transaction.
    ARC_MM_MATBEL_CHECK --------Check AddOn-Specific Criteria for MM_MATBEL
    ARC_MM_MATBEL_WRITE ---------- Archive AddOn-Specific Data for MM_MATBEL
    MB_CHECK_LINE_BADI  -------------- BAdI: Check Line Before Copying to the Blocking Tables
    MB_CIN_LMBMBU04     --------------- posting of gr
    MB_CIN_MM07MFB7     ---------------- BAdI for India Version exit in include MM07MFB7
    MB_CIN_MM07MFB7_QTY  ------------Proposal of quantity from Excise invoice in GR
    MB_DOCUMENT_BADI     --------------BAdIs when Creating a Material Document
    MB_DOCUMENT_UPDATE   -----------BADI when updating material document: MSEG and MKPF
    MB_MIGO_BADI        --------------------- BAdI in MIGO for External Detail Subscreens
    MB_MIGO_ITEM_BADI    ----------------BAdI in MIGO for Changing Item Data
    MB_RESERVATION_BADI  --------------MB21/MB22: Check and Complete Dialog Data
    Thanks,
    Chidanand

  • User exit/BADi to change the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to change the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the vendor name in Header text field(MIRO -> Details tab -> header text field ). I have tried all the user exits and BADi's related to MIRO. Doesn't work. If anybody knows please share.
    Thanks,
    Pranav

    Try BADI INVOICE_UPDATE.
    If you are in system version is ECC 6.0, you can find out a Enhancement SPOT (ES_SAPLMRMC) under Function module MRM_FINAL_CHECK, which can be used to perform this requirement
    Hope this helps.
    Thanks,
    Balaji
    Edited by: Balaji Ganapathiraman on Mar 14, 2008 4:43 PM

  • User exit/BADi to populate the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to populate the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the some text in Header text field (MIRO -> Details tab -> header text field). I need to populate this field in the MM document as well as FI document (Accounting Document). I have tried all the user exits and BADi's related to MIRO/MRRL. Doesn't work. If anybody knows please share.
    Thanks,
    Santosh
    Edited by: Santosh Ghonasgi on May 13, 2010 4:48 PM

    Hello santosh,
    I am not sure whether a suitable exit / BADI exists to update the header text in MIRO directly.
    there is one related forum:
    User exit/BADi to change the header text in MIRO transaction
    Hope, it may helpful for you to proceed with some other parallel solution.
    Regards,
    Selva K.
    Edited by: Selvakumar Krishnan on May 13, 2010 5:29 PM

  • User Exit / BADI for Header Text in IW21

    Dear All,
    I have an requirement to update a header text of IW21 (Creating Notification) with some condition, ie., Header Text should be updated with different text (some information along with entered text) depends on Notification type and Functional Location.
    Is there any User Exit / Badi to do this ?
    Could any one help on this regard ?
    Thanks and Regards,

    Hi,
    Below are the exits for the Transaction Code - IW21.
    Exit Name Description
    IWO10026 User check on setting status 'Do not perform'
    IWO10027 User exit: Generate user-defined settlement rule
    IWOC0002 PM/SM notification: Check whether status change is allowed
    IWOC0003 PM/SM authorization check of ref. object and planner group
    IWOC0004 Change single-level list editing PM/QM/SM ALV settings
    IWOC0001 Create PM/SM notification: Determine reference object
    Check each which can server your purpose.
    May be EXIT_SAPMIWO0_020 might suit your purpose.
    Regards,
    Vijay V

  • User Exit: Saving data in Production Order Header Long Text

    Hi PP Gurus,
    Can any one let me know which user exit can be used to save some data in the Long Text of Production Order Header.
    We try PPCO0007, it works well on ECC, but my client's system version is 4.7, it does not work.
    In 4.7 version, is there any other User Exit or BADI can be used to comply with this requirement?
    It's quite common requirement, hope someone can help me. Thanks.
    Best regards,
    Sun Qiang

    Hi All,
    Thank for your reply.
    After saving the text using 'SAVE_TEXT' function module and commiting it you need to update the 'ltext' field in AUFK table.
    SELECT SINGLE * INTO wa_aufk FROM aufk WHERE aufnr EQ '000012345678'.
    wa_aufk-ltext = 'D'.
    MODIFY aufk FROM wa_aufk.
    It works in Enhancement PPCO0007.
    This call can be closed. Thanks.
    BR
    Qiang

  • Display a variable d'user exit as text in the title of a colomn

    Hi, experts,
    I would like to calculate the number of days of a certain month. This calculation would be done in the user exit.
    Then in the report, this number will be displayed in the title of the colomn.
    Is it possible to realise this requirement and what is the configuration regarding as this variable?
    Thanks in advance.

    Hi,
    Yes you can do it.
    Create text variable 'ZNO_MNTH', with processing by Customet Exit.
    Variable Entry = Mandatory
    Length of Input field = 0008
    Uncheck ready for input.
    Note: Here I'm using based on SY-DATUM, for your requirement you can change the LOGIC. Insted of SY-Datum you can pass your Date.
    WHEN 'ZNO_MNTH'.
    *ZDATE = SY-DATUM.
    DATA: NODAYS TYPE INT1.
    LOOP AT i_t_var_range INTO loc_var_range.
            IF sy-subrc = 0.
              CLEAR: l_s_range.
    CALL FUNCTION '/OSP/GET_DAYS_IN_MONTH'
      EXPORTING
        IV_DATE       = SY-DATUM
    IMPORTING
       EV_DAYS       =  NODAYS        .
      L_S_RANGE-LOW    = NODAYS.
      L_S_RANGE-SIGN   = 'I'.
      L_S_RANGE-OPT    = 'EQ'.
      APPEND L_S_RANGE TO E_T_RANGE.
      ENDIF.
    ENDLOOP.
    In Report you just gve text variable and check it, don't give any Alphabets in heading, just give this Text Variable.
    Thanks
    Reddy

Maybe you are looking for

  • Help! How can I take out the mini-disc stuck in mac?

    Help! How can I take out the mini-disc stuck in mac? I insert it into the mac, but the OS cannot load the disc and the disc cannot be ejected even i pressed the "eject" button.

  • Upgrading from 4 s to 5s

    Currnetly 4S (sprint) upgrading to 5S (Tmobile) live in CT any opinions? Does calender, contacts, apps,and pictures transfer to new 5S if backed up to cloud?

  • Inserting "Reference Data" tab in CIC Complaints / Item Details

    Dear all, When entering in CIC (WinGUI), and choosing the operation "Complaint", in the correspondent view "Item Details", the tab "Reference Data" is missing. This doesn't happen outside CIC0 (e.g. trx. CRMD_BUS2000126 - Maintain Activities). We fol

  • How can I reset my Pass Code?

    My Ipod touch is Disabled because I have entered the Pass cod wrong too many times. I do not remember the code.

  • Roadmaps

    Hi experts, in fist step of road road map we have  one table and two buttons (back , print buttons). when we select required row in table and press print button , the rows selected in table should get printed in next page (in explorer ). but its gvin