Put Fixed guide line in long text of Notification: IW21

Hi,
I have an requirement where I need to put some fixed guide line in the notification long text whenever notification order gets created.
For an example below guidelines need to be incorporated automatically in the long text of notification whenever they get created
Ex:
Long Text Template as follows:
Detailed description of fault:
What caused the fault?
Action taken to date:
          Who:
Suggested Repair / resourcec:
Please suggest how can I implement this requirement?
Appreciate your help in advance.
Thanks,
Jay.
Moderator message : Duplicate post locked. Continue with original thread.
Edited by: Vinod Kumar on Sep 14, 2011 11:29 AM

Hi,
     Check the user exit :- QQMA0025 PM/SM: Default values when adding a notification
For wiring into longtext i think u can update via WRITE_TEXT
You should also ensure that this information  should not be changed
regards
pushpa

Similar Messages

  • Incress the lines in long text

    hi experts,
    can we incesss the the number of lines in long text,right now i am able to enter only 5 line i want to make it 10......the t-code is a customized one.

    Hi
    There is no limit as such for entering long text lines.
    In the Text editor you can enter any number of lines.
    we have to fetch it using READ_TEXT fun module and to display in the report/script.
    Reward points if useful
    Regards
    Anji

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

  • How can I print long text in Notification

    Dear All,
    I want to take Long Text of notification in my printout . Please tell me where this is stored and how can I access it as I am unable to find out it in notification table.
    Regards

    In the long text screen
    Go to header
    Here all the details of the text are available.

  • Update long text in notification

    Hi experts,
    I try to update (add next entry) to the long text in notification header. I tried with BAPI 'BAPI_ALM_NOTIF_DATA_ADD' to fill table NOTFULLTXT, but it seems that it can only add an entry and not append another one (one entry already exists). In 'BAPI_ALM_NOTIF_DATA_MODIFY' there is no table NOTFULLTXT. Could you advice me how to do it? Thank you in advance.
    BR
    Paul

    Just found something. Have a look at class CL_ILM_BE_WOC, Method NOTIF_TEXT_UPDATE, as they do this here.

  • Empty line in long text in order

    Hi,
    I'm using BAPI_SALESORDER_CREATEFROMDAT2 to create orders. Long texts can be added to the BAPI with the parameter ORDER_TEXT.
    I know want to add different information. Therefore I need to insert an empty line between the different lines. How can I do that? If I add a line with just a space in the data element TD_LINE (text_line), it is not working. The BAPI might remove that while order creation.
    Any advices?
    Thank you

    hi,
    Do not append this to the internal table. Instead concatenate twice from where you want the blank link.
    Example
    The table contains the three lines as shown below
    This report is required as to submit to the Govt. Department as a Statutory Report.
    Manually preparing this form is very difficult. After this development user can get form with minimal efforts as well accuracy regarding data will be more.
    But we required to display/update as
    This report is required as to submit to the Govt. Department as a Statutory Report.
    Manually preparing this form is very difficult. After this development user can get form with minimal efforts as well accuracy regarding data will be more.
    Just you need to cancatenate the cr_lf twice at the end of 1st line
    This report is required as to submit to the Govt. Department as a Statutory Report.0D0A0D0A
    while displaying the long text in the Order it will show the effect.

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

  • FI document Line item Long text store in which table .

    Respected Members,
    During posting of the FI document through Tcode F-02 i m giving the some text in the long text not in the text field.
    Please anybody can be help me out where exactly this long text is going to be stored or in which table.
    Through F1 it is saying Field is TXLINE and Structure is RSTXT.
    But  i want the table name.
    Please give me the answer as soon as possible .
    Thanks a lot.

    Hi Lee,
    I am also facing problem in getting the long text information into my on e of the custom report, i need onformtion in longtext field of the accounting document number which is against item posted to vendor.here i am sending you the screenshot of the document number and long text filed and READ_TEXT function module parameters, i  tried with lot of options,but no luck, it would be great if you could provide me some hint on this..

  • Empty long text in notification

    Hello Everyone,
    Here is my problem.
    We create a notification via IW21following these steps :
      - Fill the mandatory fields
      - Fill the Subject LONG Text
      - Create the order
    After saving the created notification and while trying to display/modify our notification, we find that the LONG Text previously filled EMPTY.
    Can you please propose a solution to get the LONG Text once we save the notification?
    For you information, I tried the solution Import FROM MEMORY ID 'SAPLSTXD000001' but the customer isn't satisfied with it and wants something more efficient.
    Thank you for your help.
    Kima

    Hi kima,
    I feel this thread has the answer. Long text not saving data
    Jogeswara Rao K

  • Allow modifications over  "Long Text" in notifications until it's released

    Hi friends!!!
    It is possible to allow modifications over field LONG TEXT until the notification is released??, I know you can disable a field in customizing but I don't know how to restrict the action just until the notification is released,
    I need your help!!!!!
    Thanks so much,
    Frinee

    Peculiar - I was just looking at this (for a different problem). Look at OSS note #876698.
    Rob

  • CLIENT_TEXT_IO : cannot insert new line into a text file

    Facts:
    Developer 10g
    AS 10g
    Web utility
    Problem:
    i am traying to
    Open a text file. using CLIENT_TEXT_IO.FOPEN
    insert a record in to a text file using CLIENT_TEXT_IO.PUTF
    insert a new line using chr(10) or CLIENT_TEXT_IO.NEW_LINE
    or CLIENT_TEXT_IO.put_line
    insert the next record
    Close the file.
    all work except insert a new line
    Why !!!
    it was Working fine in 6i, but now in 10g and Webutil is not working
    plz help

    Hi you can put a new line in a text file using System.getProperty("line.separator"). This implementation will work for every OS.
    import java.io.*;
    class Demo{
    public static void main(String args[]) throws Exception {
    FileWriter fr = new FileWriter("FileDemo.txt");
         fr.write("AAAAAAAAAA");
    fr.write(System.getProperty("line.separator"));
    fr.write("AAAAAAAAAAA");
    fr.close();
    }

  • How to insert new line in a text file

    hi all,
    i wnat to know how can i insert a new line in a text file using java.
    for example i want the formate of the text like this
    1 2 3
    4 5 6
    until now i know only how to insert data but not new line.
    Thanks in advandce

    Hi you can put a new line in a text file using System.getProperty("line.separator"). This implementation will work for every OS.
    import java.io.*;
    class Demo{
    public static void main(String args[]) throws Exception {
    FileWriter fr = new FileWriter("FileDemo.txt");
         fr.write("AAAAAAAAAA");
    fr.write(System.getProperty("line.separator"));
    fr.write("AAAAAAAAAAA");
    fr.close();
    }

  • Issue with Capturing Long text using CALL METHOD EDITOR- GET_TEXT_AS_STREAM

    HI Experts,
    Standard Long text is capturing using CALL METHOD EDITOR->GET_TEXT_AS_STREAM
         but not working for Custom Long text – Only changes
    Here is the Issue:
    1)      Created Custom Long text in TAB. --> Good
    2)      Entered few lines in custom Long text  --> Good
             Click on Standard Tab , Leaving Custom tab and Custom Long text-->Good
    4)      In PAI of Custom Tab – Changes captured using CALL METHOD 1 ( See below Code 1)--> Good
    5)      Entered few lines in Standard Long text in Standard Tab -->Good
    6)      Click another Standard Tab
    7)      In PAI of Standard Tab – Changes captured using CALL MEHTOD 2 ( See Below Code 2)-->Good
    8)      Come back to Standard Tab / Standard Long Text , Enter few more lines.
    9)      Change the Tab , IN PAI of Standard Tab/Standard Text , Changes Captured using CALL METHOD2 ( See Below CODE 3) --> Good
    10)   Go to Custom Tab , Custom Long text , Entered few more lines--> Good
    11)   Click on any other tab, Triggered again PAI of Custom tab / Custom Long text using Call Method1 ( See Below Code 4) -->Good triggered PAI same CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM.
    12)   But additional lines are not captured , saying ZERO LINES in Internal Table and IF_MODIFIED = NO  -->Issues lies here.
    CODE1 ( Custom Long text entry capturing – First Few Lines )
    Custom Long text Entries are stored in LS_OUTTAB-TEXT first time when entered few lines and LV_MOD is 1.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT ( FIlled with Lines entered in custom long text )
              IS_MODIFIED            = LV_MOD ( Value 1 , Modified )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    CODE2 ( Standard Long Text Entry Capturing – First Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT first time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE ( Value 1 , Modified )
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED.
    CODE 3 ( Standard Long Text Entry Capturing – Second time Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT  second  time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED. ( Value 1 , Modified )
    CODE4 ( Custom Long text entry capturing – Second Time Few Lines )
    Custom Long text Entries are not stored in LS_OUTTAB-TEXT Second Time when entered few lines and LV_MOD is 0.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT  ( ZERO ENTRIES )
              IS_MODIFIED            = LV_MOD   ( NOT MODIFIED Flag )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    Can anyone help me out of this.
    With Regards,
    Bala M

    Excellent Eitan,
    Here is what I am trying to Achieve.
    In Create Notification IW21 , They need 5 Long Text in Custom Tab ( Say Tab Name is MBR ).
    TAB1 NOTIFICATION Standard Information , TAB2 REFERENCE OBJ , TAB 3 MalFunction , Breakdown Standard one...... TAB 7 ( Custom Tab ).
    In Custom Tab , I added 5 LONG TEXT ( its 5 WHY Concept ).
    When the User enters data in 5 Long text , it should store long text along with Notification number when save.
    But Notification number will be generated @ the time of SAVE , but before that its just shows as
    %0000000001 ( and Number will be generated 1000065479) at Save.
    How to achive this .
    I did this:
    Added 5 Custom Container. and In PBO / PAI
      PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    IN PBO
       CREATE OBJECT TEXT_EDITOR1 ,    CREATE OBJECT TEXT_EDITOR2,    CREATE OBJECT TEXT_EDITOR3 like wise 5
       CALL METHOD TEXT_EDITOR1->SET_TEXT_AS_R3TABLE ,    CALL METHOD TEXT_EDITOR2->SET_TEXT_AS_R3TABLE .. Like wise 5 , So when the user Click on Custom Tab ( MBR ).
    It give 5 Long text.
    When he click tab1 or tab2 or tab3 .. and again tab MBR , still data is available.
    How to store this data for future retrival ( IW22 or IW23 ) ?
    Its working fine when I enter first time and goes here and there and finall save .
    IN SAVE BADI , I imported the Long text and created Standard Text SO10 with Notification Number with LONG1 , LONG2 .. means 1000065479LONG1 as standard text.
    But not working when I entered first time and go to tab1 and tab2 and then to MBR tab and added few more lines , its not exporting full lines and in IMPORT ( SAVE BADI ) giving ZERO Lines.
    Please help and thanks for your quick response.

  • Short Text and Long Text for WBS

    HI All,
    I am working on Interface Project where I need to enter Short description and long text for a WBS with external text.
    Let me know if any FM Module is exist for same where I can Put this Short Description and Long Text seprately for a WBS Element.
    Regards,
    Atul R. Rajmane

    Hi Atul,
    I think you can enter short description & long text seprately for a WBS while creating entire struture of project in PS only. I don't think other than PS you will be able to enter short & long text for individual WBS.
    Regards,
    Sandeep

  • Long text problem in sap script

    Hi Experts,
    I have craeted sap script for payment print progrem.. in my sap script one window is text window... client want more then 300 char for that window. for that i use read_text function module... its working fine... but problem is it retrive only one line from long text editor. only 70 char i got.
    below is my coding......
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = '0001'
        LANGUAGE                      = sy-langu
        NAME                          = NAME
        OBJECT                        = 'DOC_ITEM'
      TABLES
        LINES                         = LINES          .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT LINES.
      n = 0.
      l = 132.
      text+n(l) = lines-tdline.
      n = n + 132.
      l = l + 132.
    ENDLOOP.
    in sap script i have direct pass lines-tdline
    *&lines-tdline&
    Please suggest me which point i missing?
    Thanks
    Jigar

    Hi All,
    The standard text will be stored in Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division)
    Text ID = ZSD
    Examples: ORDCONF_TEXT_4000_01_01 , ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01.
    Requirement :
    The print program /form will need to pick up the appropriate standard text based on the Sales Area (combination of Sales Org / Distribution Center / Division) of the sales order [VBAK-VKORG / VTWEG / SPART], provided a standard text has been created for that Sales Area. Itu2019s not required that every sales area have a standard text, so if one is not found, this step should be skipped and the rest of the print program executed.
    The new text should print after 2 blank lines after the Printable Notes text (which is after the line items and the Total Net Price prints).
    The font should be the same size as the Printable Notes, but bolded rather than italicized.
    The text should print in the same columns as the Printable Notes currently print in (Material Description / Scheduled Ship Date / Quantity) .
    So the logic i have used is this below code:
    I used a subroutine in the layout of the main window becoz i need to print it in the main window below after 2 blank lines of line items.
    This is logic in the layout:
    /:PERFORM GET_OBJECT IN PROGRAM ZSDRP001_ORD_CONF_IRE
    /:USING &VBDKA-VBELN&
    /:CHANGING &ORDCONF_TEXT&
    /:ENDFORM
    /:INCLUDE &ORDCONF_TEXT& OBJECT TEXT ID ZSD PARAGRAPH A1
    I called this subroutine in the print program:
    Logic in the print program:
    FORM GET_OBJECT TABLES INPUT_TAB STRUCTURE ITCSY
                                                 OUTPUT_TAB STRUCTURE ITCSY.
    DATA : TMP_VBELN LIKE vbdka-VBELN,
                TMP_VKORG LIKE VBAK-VKORG,
                TMP_VTWEG LIKE VBAK-VTWEG,
               TMP_SPART LIKE VBAK-SPART,
               TMP_TXNAM1(40) TYPE C VALUE 'ORDCONF_TEXT',
               TMP_TXNAM2(100) TYPE C.
    DATA: v_text LIKE tline-tdline.
    DATA : P_V_TEXT LIKE tline-tdline.
    CLEAR : TMP_TXNAM1, TMP_TXNAM2, TMP_VBELN, TMP_VKORG, TMP_VTWEG, TMP_SPART.
    READ TABLE INPUT_TAB WITH KEY NAME = 'vbdka-VBELN'.
    IF SY-SUBRC = 0.
    tmp_vbeln = input_tab-value.
    ENDIF.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING INPUT = TMP_VBELN
    I
    MPORTING OUTPUT = TMP_VBELN .
    CLEAR VBAK.
    SELECT SINGLE VKORG VTWEG SPART INTO (TMP_VKORG, TMP_VTWEG, TMP_SPART)
                                            FROM VBAK WHERE VBELN EQ TMP_VBELN.
    IF NOT TMP_VKORG IS INITIAL
    AND NOT TMP_VTWEG IS INITIAL
    AND NOT TMP_SPART IS INITIAL.
    CONCATENATE TMP_TXNAM1 TMP_VKORG tmp_vtweg tmp_spart into TMP_TXNAM2 SEPARATED BY '_'.
    endif.
    CONDENSE TMP_TXNAM2 NO-GAPS.
    PERFORM read_order_text USING TMP_TXNAM2 CHANGING v_text.
    READ TABLE output_tab WITH KEY NAME = 'ORDCONF_TEXT'.
    IF SY-SUBRC = 0.
    output_tab-value = P_V_TEXT.
    MODIFY output_tab index sy-tabix.
    endif.
    endform.
    FORM READ_ORDER_TEXT USING P_TMP_TXNAM2 CHANGING P_V_TEXT LIKE tline-tdline.
    DATA: ztdid LIKE thead-tdid,
              zlang LIKE thead-tdspras,
              zobj LIKE thead-tdobject,
              zname LIKE thead-tdname.
    DATA: tlines TYPE STANDARD TABLE OF tline WITH HEADER LINE
              thead LIKE thead.
    CLEAR P_V_TEXT.
    ztdid = 'ZSD'.
    zlang = 'E'.
    zobj = 'TEXT'.
    zname = P_TMP_TXNAM2.
    CLEAR tlines.
    REFRESH tlines.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    object = zobj
    name = zname
    id = ztdid
    language = zlang
    IMPORTING
    header = thead
    TABLES
    lines = tlines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    not_found = 4
    object = 5
    reference_check = 6
    wrong_access_to_archive = 7
    OTHERS = 8.
    LOOP AT tlines WHERE NOT tdline IS INITIAL.
    MOVE tlines-tdline TO P_V_TEXT.
    ENDLOOP.
    ENDFORM.
    But still its not getting printed .Plz tell me where i am going wrong.
    Thanks,
    Suman

Maybe you are looking for

  • Html output genreated by the xsl should have a single quote

    hi i am trying to convert the xml into html . For one particular field i need to invoke a javscript method on click. a value has to be passed to this javascript method. for this i need a single quote or a double quote to come in the output. <a href =

  • Upgraded to FF 26.0, now links don't work in MS Outlook. But work in IE9

    Had FF as default browser. After upgrade to FF 26.0, can no longer link to website from email received in MS Outlook 2010. Get error msg that "needs to know what program to open xxxx" If able to copy hyperlink from right-click, can paste it into FF a

  • Clean up of the roll area by program

    Hi all! My customer is running a program by a communication user which accesses functionality via RFC. This program runs a whole week. In some cases this program allways has access to old data. This comes probably from buffering information in functi

  • Tiger NetBoot Questions

    I read through the docs and setup netboot on our new XServe (running 10.4.3) last night. It appears to be basically working, but... 1) I notice that the Server Admin tool -- after an hour or two -- lists the NetBoot Service as "Not Available". Once t

  • Detailed Level Navigation missing post NW 7.31 portal SP12 upgrade

    Hi, We are on NW 7.31 portal . We have recently upgraded portal from SP 9 to SP12. Post upgrade the the detailed level navigation panel is missing . I have checked the role and workset setting and its absolutely fine. Any idea what might be the issue