Customer exit to modify long text icon

Hi to all.
as you already know, I'm trying to make a program to modify the icon long text in reference to the number of digits in the long text.
I have found the enhancement SEUMP001 with function exit EXIT_SAPLSMPE_002, I have created the include ZXseuu11 and I have written the follow program:
IF rsmpe-menu = 30 .
  rsmpe-icon_id = ' '.
ENDIF.
(that is the nuber of digit in the long text is equal 30 let the icon be blank else let the icon be underlined because in the standard program the icon long text remains blank  unless the user write in).
But I receveid the following error when I execute the syntax check:'Field "RSMPE-MENU" is unknown.' Why?How must I write this program in according to the importing structure 'RSMPE-STATUS'? Thanks in advance bye
Maximilian

It looks like the EXIT_SAPLSMPE_002 does not have RSMPE-MENU as an importing parameter, and the value is not available in the program. The only value passed to the FM is OBJECT (RSMPE-STATUS).
You can use the importing parameter instead, as:
IF object = 30.
ENDIF.
Hope this helps.
Sudha
Message was edited by:
        Sudha Mohan

Similar Messages

  • Horizontal lines on long text icon

    Hi,
    I am working on IW32 transaction. When a long exits for any operation, we will be getting horizontal lines on the "Text"(notepad with pencil) icon. If there is no long text or if we delete the long text then these horizontal lines doesn't appear on this icon. My problem is when I am trying to delete the long text in this transaction through my program, the long text is getting deleted but the horizontal lines on icon are still existing. Can you please help me out how to handle these horizontal lines and where are these maintained.
    Thanks & Regards,
    Adithya M.

    are you using delete_text FM or clearing contents ?
    what is the SAVEMODE_DIRECT ?

  • Custom Infotype with multiple long text fields

    Hi,
    We have a need to create a custom Infotype (in PA or PD) that will contain more than one long-text area.
    I've searched this forum and found that there are generally two approaches :
    1. use the HR clusters for long-text and setting the ITXEX field in PA
    2. using SAP standard text area (SO10) and functions such as READ_TEXT, SAVE_TEXT, etc.
    The problem with (1) is that it can only store one long-text.  We need to have many.  Please correct me if we can hold more than one long text in the cluster...?
    With regard to (2), I'm just not sure that this is the correct place to store the long text...?
    If I was to adopt option (2), could I just use the key of PA9nnn (ie: PAKEY) as the key/TDNAME for STXH?
    Are there any other methods to store long text?
    As well, is it possible to create a custom Infotype in PD?  Can we use PM01 to create PD infotypes?
    Thanks,
    Raj

    Raj
    Sorry I'm not much help on the two questions you have raised...you have probably already got answers by now anyway..however FYI check out link below for enhancing PD infotypes (use transaction PPCI).
    enhance infotypes

  • Long Text Icon in CATS Timesheet Approval View

    Hi:
    Employee created a timesheet in ESS. He/she also keyed in some long text in the timesheet screen.
    When manager goes to the UWL to approve the timesheet, there is no icon to show that there is a long-text attached to the record.
    May I know if there is any place we can configure to have this icon showing for the records which have the long-text, in the portal?
    We can see the icon in T-Code: "CATS_APPR_LITE - Approve Working Times" in the backend. But I'll need the same icon in the portal.
    Please could someone advise me on this?
    Thanks....

    Hi
    Did you try creating a new 'Profile' for Approver's view?
    The config steps are defined at IMG>Cross-Apps Components>Time Sheet>CATS regular>Approve Working Times.
    Pl do reward if this helps.

  • Exit to create long text of notification by IW31

    Hi
      We have requirement , where we have to pass some fixed text to notification's long text when notification is being created by TCS service order(Tcode- iw31).
       Is there any exit/bapi/ fm to achieve same?

    issue is solved.
      I had to do implicit enhancement at end of FM ' IQS0_CREATE_NOTIF_TO_ORDER'.
    Code is as below.
       ENHANCEMENT 1  ZENH_IW31.    "active version
    * Declaration of local variables, workareas and internal tables
    DATA: LTA_LINES  TYPE STANDARD TABLE OF TLINE,
          LWA_LINES  TYPE TLINE,
          ltp_zaccesstime TYPE zaccesstime.
    IF SY-TCODE = 'IW31'.    " Put condition for code
    SELECT SINGLE zaccesstime
               FROM equi
               into ltp_zaccesstime
              WHERE equnr = VIQMEL-equnr.
        IF sy-subrc Eq 0.
         LWA_LINES-TDFORMAT = '*'.
         CONCATENATE 'Access Time:' ltp_zaccesstime INTO LWA_LINES-TDLINE SEPARATED BY space.
         APPEND LWA_LINES TO LTA_LINES.
         CLEAR: LWA_LINES.
        ENDIF.
       CALL FUNCTION 'IQS0_ADD_NOTIFICATION_LONGTEXT'
         EXPORTING
           i_qmnum             = VIQMEL-QMNUM
    *      I_POST              = ' '
    *      I_RESET             =
         tables
           t_inlines           = LTA_LINES
        EXCEPTIONS
          SHOW_MESSAGES       = 1
          OTHERS              = 2
       IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    ENDIF.
    ENDENHANCEMENT.

  • Long text creation in custom screens

    Hi
    Can we add the functionality of adding a long text in the custom screen.
    The long text should be same as the one which SAP provides in standard transactions.
    If possible please tell me the solution.
    Thanks & Regards
    Kapil

    HI,
    yes you can add using TEXT AREA control here is the sample code.
    insert a custom control area in the screen and create a object of the text editor.
    check this code for PBO and PAI.
    here TEDITOR is the custom contorl area name on screen
    <b>MODULE PBO OUTPUT.
      IF EDITOR IS INITIAL.
    *   set status
    SET pf-status '1111'.
    *   create control container
        CREATE OBJECT TextEdit_Custom_Container
            EXPORTING
                CONTAINER_NAME = 'TEDITOR'
            EXCEPTIONS
                CNTL_ERROR = 1
                CNTL_SYSTEM_ERROR = 2
                CREATE_ERROR = 3
                LIFETIME_ERROR = 4
                LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        if sy-subrc ne 0.
    *      add your handling
        ENDif.
        mycontainer = 'TEDITOR'.
    *   create calls constructor, which initializes, creats and links
    *   TextEdit Control
        create object editor
              exporting
               parent = TextEdit_Custom_Container
               WORDWRAP_MODE =
    *               cl_gui_textedit=>wordwrap_off
                  cl_gui_textedit=>wordwrap_at_fixed_position
    *              cl_gui_textedit=>WORDWRAP_AT_WINDOWBORDER
               WORDWRAP_POSITION = line_length
               wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
    *   to handle different containers
        container_linked = 1.
        refresh mytable.
      ENDIF.
    ENDMODULE.                 " PBO  OUTPUT
    MODULE pai INPUT.
    case ok_code.
    WHEN 'SAVE'.
    *   retrieve table from control
    clear: txt.
          call method editor->get_text_as_r3table
                  importing table = mytable.
          loop at mytable into wa.
             concatenate txt wa into txt
             separated by '|'.
          endloop.
          shift txt left.
          length = strlen( txt ).
          ztext-CLUSTR = length.
          ztext-text   = txt.
          modify ztext.
          clear: ztext.
          refresh: mytable.
            call method editor->set_text_as_r3table
                  exporting table = mytable.
          Message s000(zwa).
    when 'DISP'.
          select single * from
          ztext
          where fund = ztext-fund.
         SPLIT ztext-text AT '|' INTO TABLE mytable.
            call method editor->set_text_as_r3table
                  exporting table = mytable.
    endcase.
    clear: ok_code.
    ENDMODULE.                 " pai  INPUT</b>
    Regards,
    Wasim Ahmed

  • How to display Long text in alv output

    Hi,
    I have developed an ALV report.It is displaying the output.
    There is another requirment for alv output text field as below
    From the long text fields show only the first 20 characters and afterwards the long text icon. If the icon is clicked open the long text display screen.
    Please give your suggestion how to work on this requirement.
    Thanks in advance

    Hi,
    Create a hotspot for the long text column of ALV.
    When user clicks on the hotspot, handle the event to display long text screen.
    You may refer sample program of hotspot ALV :
    Goto SE38
    Type BCALV*
    Click F4
    search for HOTSPOT or EVENTS & you will get a sample program.
    Best regards,
    Prashant

  • Long text problem while uploading Inspection plan through BDC.

    Hi,
    I am facing some problem while uploading the inspection plan. There are few MICs for which we are having long text, while uploading the inspection plan through BDC - some other long text is getting copied into the MIC's long text. After checking I came to know that in function module, read_text - some text which is stored in ABAP memory is getting copied into the inspection plan.
    I am working in SAP release 4.7. I have checked with SAP notes: 97419, but it is also not satisfying.
    Waiting for quick solution.
    Thanks in advance.
    Fahié

    Hi a®s,
    Thanks a lot for your kind reply.
    My requirement is I want to maintain long text for few MICs (which are not having long texts at MIC level) in inspection plan (QP01).
    When I am trying to manually assign the MIC's to inspection plan (QP01), long text is copied whereas I am not clicking the long text icon in (QP01). Long text is not maintained in MIC level, still some long text is copied to this MIC. This was also happening while uploading the inspection plan thro' BDC.
    I believe what you have mentioned about function module SAVE_TEXT cannot be used here since long text is already copied before we pass the long text. Also if we pass some long text, still apart from the long text what we have passed there is some other long text copied (extra long text).
    Waiting for quick solution.
    Thanks in advance.
    Fahié

  • Operation Long text creation problem in IW32

    Hi experts,
    I have a requirement of showing a checklist pop up for all the new external operations in creating a MPA work order(IW32). And when the user answers the questions on the checklist, I have to copy all the questions and answers into the long text of the corresponding operation.
    The problem here is,
    for a case when the long text is not yet created for a new line item, when the pop up is shown and answers are filled, I am creating a new standard text using SVE_TEXT(setting the insert paramter 'X'), but the standard text is getting created in the database i.e a record is getting created in STXH with the text id, text name, text object of the operation. But when I go to IW32 and see the operation line it shows the create long text icon which says that the text is not created at all.
    In a case where the long text is already created for the operation, and then the pop up is shown with the questions and answers are filled, the questions and answers are copied into the operation long text which is already created. So this works fine.
    If any pointers regarding this please let me know.
    Thanks and Regards,
    Asha

    Hi,
    Try passing SAVEMODE_DIRECT = 'X' and check..
    also check if the text exists using the function module READ_TEXT once you do the SAVE_TEXT..
    Thanks,
    Naren

  • Error when trying to change Customer Exit Enhancement RSR00001

    Hi Gurus,
    I am getting the following error when I am trying to change the Customer Exit Enhancement RSR00001: "Source Text of Exit Func. not changeable."
    Please help.
    Thanks,
    Ashmith Roy

    Hi ,
    Not sure why u would like to change the text but can u try this way:
    1) go to smod and key in the enhancement
    2) click on change button and reneter the new text after accepting the language option as logon language
    3)save under a transport
    4)go to cmod and recheck the text must be changed.
    kindly award points for the same.
    tx,
    Madhu

  • Long Text not Trasporting in QS41

    When I created code entries for a code group using transacation QS41, I filled in the short text but I also added long text to further clarify which code should be chosen.  When I test this option in our developement system, I can click on "Display Long Text" icon and read the extended text when I am choosing a particular code.
    When I transport these catalog entries up to our staging system, the code groups, codes, short text and long text icons transport great but when I click on the long text icon I get a message "No long text exists".
    Has anyone run into this or can you offer a solution?
    thanks

    Hi
    BAPI_DOCUMENT_CHANGE/CHANGE2/CREATE/CREATE2 (structure BAPI_DOC_TEXT)
    check following
    Re: reg how to retrieve long text
    Re: LSMW long text
    for additional info
    How to transfer long text to excel sheet?
    check wheather it is useful...
    Sujit

  • Problem in viewing long text in QP03

    Hi
        Facing a strange problem while trying to upload long text in QP01 using SAVE_TEXT.
    the long text is getting uploaded properly
    an entry is inserted in STXH with object, id, name, etc.
    but when i try to view the long text in QP03 txn. (Display), there is no icon for view long text
    when i go back to QP02 in change mode, the icon for long text (Create long text without horizontal lines embedded on it) exists, after clicking it am able to see the long text and if i am saving the plan while leaving the txn, then again if i see the same plan in display mode (QP03), i am able to see the long text icon and the long text by clicking it..if and only if i view manually every long text in QP02 and save while coming out the txn., I am able to see the long text icon and the long text in QP03.
    Is it any setting problem or where am i wrong?
    Sathish. R

    hi
       r u sure? bcoz the program was running fine with long text viewable in QP03 all this time
    Sathish. R
    Message was edited by:
            Sathish

  • 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

  • Customer exit  text determination

    Hi,
    my purpose is that the icon of the long text doesn' put in evidence(with the underlines which appear on the icon) the existence of a long text if this long text has a number of digit less/equal 40.
    I use the enhancement V45T0001but I don't know how I can write the program..I think that more or less it would be a program like:
    IF THEAD-TDTXTLINES LE 40.
      NO_DISPLAY = 'X'.
    ENDIF.
    but then, after activating the include,the function module and the function exit,the system does not receive the change..
    can you help me thank you all
    Bye bye
    Maximilian

    Aneesh,
    This is strange, I executed that web template so many times,even logged out and logged in, deleted cache to make sure its not a cache thing.
    Now i executed the query once in RSRT2 and its working.
    Thanks, full points to u.
    raj

  • Custom long text error

    Hi
           We created a long text id 'XYXX' for long text object 'MATERIAL' to store additional material long text like basic data, internal comment , inspection text. When I am creating material/Changing material custom additional long text is saving perfectly with text id 'XYXX'.
          But when we are updating material using IDOC it is giving an error 'ID 'XYXX' for long text object MATERIAL does not exit'.
    Please suggest what might be the issue.

    The easiest solution would be to put a breakpoint or a watchpoint at the error message and analyze the condition while an IDOC is being processed.  Have you tried that?

Maybe you are looking for