Long text indicator against Notification task & SubOrder creation

Hi all,
We are using BAPI_ALM_NOTIF_ADD to create long texts against the notification tasks. Though the long texts are created and can be viewed through IW22, the long text indicator in QMSM table is not set and hence when I display the notification through IW23 and navigate to the tasks, the long text available icon is not displayed. I tried to use CREATE_TEXT and SAVE_TEXT as well. Somehow the long text indicator doesn't get set. Do I need to explicitly set this indicator after the BAPI call? Please provide your valuable inputs.
Also, I have one more issue. Is there a way of creating Sub Order against the PM order through a BAPI? We have a requirement to create a Sub Order against the superior PM order through transaction IW36. Could you please suggest if any of you have come across any BAPI that supports this requirement?
Thanks & Regards,
Vidya

I know I am posting answer to very old thread as did not find any answer so far, so giving clue. See if new solution seekers this helps you now…
Cause:
As the create_text or save_text  does creation of text at data base level and does not pass through all the screens of the particular transaction, so the text editor icon is not enabled  [like in tcode IW23 (IW33) Notification display text editor, tables holding damage text and cause text indicator qmfe-indtx & qmur-indtx I ]
Solution:
Read existing text using FM READ_TEXT i.e. retain existing text in internal table, say IT_READ
Delete existing text using FM 'DELETE_TEXT'. Remember to set save_direct = x
Perform BDC to add dummy text doing call transaction. This will set text indicator to ‘X’.
Append your new ext to IT_READ.
Now create text again using FM 'CREATE_TEXT'. Remember to set save_direct = x
If you have requirement that created text should not be editable then you need to change format of IT_READ.
Like IT_READ-tdformat = ‘>X’ & IT_READ-tdline = ‘*<one space><your text>’ [may use CONCATENATE '*' IT_READ-tdline INTO IT_READ-tdline SEPARATED BY space.].
Below are above steps code snap shots.
Bdc part for IW22
PERFORM bdc_dynpro USING 'X' 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE' '=TXPS'. "DAMAGE_TXT icon
or   PERFORM bdc_field USING 'BDC_OKCODE' '=TXUR'. "CAUSE_TXT icon
Based on your text editor configured to keep track of timestamp log, use one of the option. My case first two lines of text editor shown timestamp log lines and they are non editable.
*  PERFORM bdc_dynpro USING 'X'  'SAPLSTXX' '1100'.
*  PERFORM bdc_field USING 'BDC_CURSOR'  'RSTXT-TXLINE(02)'.
*  PERFORM bdc_field USING 'BDC_OKCODE'  '=POSF'.
*  PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(02)' '*'.
*  PERFORM bdc_field USING 'RSTXT-TXLINE(02)' 'Dummy text for indicator line 2'.
*  PERFORM bdc_dynpro USING 'X'  'SAPLSTXX' '1100'.
*  PERFORM bdc_field USING 'BDC_CURSOR'  'RSTXT-TXLINE(03)'.
*  PERFORM bdc_field USING 'BDC_OKCODE'  '=POSF'.
*  PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(03)' '*'.
*  PERFORM bdc_field USING 'RSTXT-TXLINE(03)' 'Dummy text for indicator line 3'.
PERFORM bdc_dynpro USING 'X'  'SAPLSTXX' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR'  'RSTXT-TXLINE(04)'.
PERFORM bdc_field USING 'BDC_OKCODE'  '=POSF'.
PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(04)' '*'.
PERFORM bdc_field USING 'RSTXT-TXLINE(04)' 'Dummy text for indicator line 4'.
PERFORM bdc_field       USING 'BDC_OKCODE'  '=TXBA'.
FORM bdc_dynpro USING    value1
value2
value3.
CLEAR bdcdata.
bdcdata-dynbegin = value1.
bdcdata-program = value2.
bdcdata-dynpro = value3.
APPEND bdcdata.
ENDFORM.                               " BDC_DYNPRO
form DELETE_EXISTINGTEXT.
CALL FUNCTION 'DELETE_TEXT'
EXPORTING
CLIENT          = sy-mandt
ID              =   LTXT
LANGUAGE        =   E
name            =   <notification number + suffix>
–  determine from text editor header damage text need suffixed 0001 , cause text need suffixed 00010001
object          =   QMFE = damage or QMUR = CAUSE
savemode_direct = 'X'
*     TEXTMEMORY_ONLY = ' '
*     LOCAL_CAT       = ' '
EXCEPTIONS
not_found       = 1
OTHERS          = 2.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT          = gc_x
endform.                    " DELETE_EXISTINGTEXT
    CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid         = LTXT
flanguage   = E
fname       = <notification number + suffix>
–  determine from text editor header damage text need suffixed 0001 , cause text need suffixed 00010001
object          =   QMFE = damage or QMUR = CAUSE
        fobject     = QMFE = damage or QMUR = CAUSE
save_direct = x
fformat     = ‘>X’
TABLES
flines      = t_editor_text
EXCEPTIONS
no_init     = 1
no_save     = 2
OTHERS      = 3.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = gc_x.

Similar Messages

  • How to embed images in long text of PM Notifications/Orders

    Dear Sir,
    How to embed images in long text of PM Notifications/Orders? Kindly help.
    Thanks & Regards
    PM Team.

    Hi,
      Unfortunately, You will not be able to view the graphics within the Long text editor screen.Only Limited word functionality is available on these editors.
      You will have to store these pictures separately as an attachment, through generic object services and then view them through that.
    Regards
    Narasimhan

  • Editing long text in Quality notification

    I am not able to delete or change long text in quality notification since it is greyed out. Can anybody help ?

    Hi,
    you should check in configuration the part "Overview of Notification Type"  (Quality Management>>Quality Notifications>>Overview of Notification Type).
    When you select your notification type you go to "Format Long text" and there you can disable "No text change". This option is useful when you want to add text but don't want to allow modification of existing text.
    Hope this help,
    Serge

  • Error loading file in the operation long text in the General task list

    Hi all,
    I couldnt upload the detailed check lists in the operations (operation tab) of the general task lists through the long text uplaod via Text->Upload->RTF---> .System is throwing the following Information...
    1.Error loading file " specified path with filename.rtf"
    Could you please give me any idea to eliminate this.The client is having the detailed check list for each and every operation with safety measures to be taken.
    Plz help.
    Regards,
    Suresh.

    Hi all,
    It was an authorisation object missing and the problem got solved.
    Regards,
    Suresh.

  • Printing Long text in Send Mail Task

    Hi All,
    My requirement is to print the long text of particular error message in the send mail task, which will be sent to outlook.
    for this i have an activity beforr the mail task, where i have filled the multiline parameter called 'TEXT' and this is exported to workflow also.
    In my send mail task, in the body of the message, using insert expression i have inserted the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
    But once the WF is executed , i checked the WF log and found that the mail is sent and i have checked the container 'TEXT' in my previous activity where the TEXT container has 10 lines.
    But when i checked the mail in SOST the contents of TEXT is not getting printed.
    What will be the issue?
    Thanks and Regards,
    Swaminathan

    @Rick
    How is TEXT defined in the container? Is it passed in via the binding?
    I think if at all you want to use the container element in the mail then binding is not necessary from workflow to task.
    @Swaminathan PJ 
    the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
    Try to print the entire text continuosly with out line breaks then it works.

  • Show long text for Quality Notification when double click field in alv

    I have an ALV grid called using a FM and I am using the user command routine to do somthing when a particular cell is  clicked.  I want to  call up the root cause text from the action box of the QN via QM03 .  I am building a BDC table to call with a CALL transaction but when I write my BDC up to that point, the program is running the BDC but not going to the point where the long text is displayed is i am in mode 'N'.
    FORM user_command USING r_ucomm LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
      READ TABLE itab INDEX rs_selfield-tabindex.
      CASE r_ucomm.
        WHEN '&IC1'.
          CASE rs_selfield-fieldname.
    * When double click on root cause, display root cause long text
            WHEN 'ZZ_URCOD'.
              PERFORM display_root_cause_text.
              CALL TRANSACTION 'QM03' USING gt_bdc MODE 'N'.
      ENDCASE.
    ENDFORM.                    "user_command
    FORM display_root_cause_text .
      FREE gt_bdc.
      PERFORM fill_bdc USING 'SAPLIQS0'     '0200'      'X'.
      PERFORM fill_bdc USING 'RIWO00-QMNUM'  itab-qmnum  space.
      PERFORM fill_bdc USING 'SAPLIQS0'     '7200'      'X'.
      PERFORM fill_bdc USING 'BDC_OKCODE'  '=10\TAB03'  space.
      PERFORM fill_bdc USING 'SAPLIQS0'     '7200'      'X'.
      PERFORM fill_bdc USING 'BDC_CURSOR'
                             'QMICON-LTURSACHE(01)'     space.
      PERFORM fill_bdc USING 'BDC_OKCODE'  '=UX01'  space.
    ENDFORM.                    " DISPLAY_ROOT_CAUSE_TEXT
    Any one have any suggestions of know of a BAPI that I can achieve the same thing?
    Thanks
    Larissa Maryniuk

    Hello,
    also try to use the messages clause (of type BDCMSGCOLL).
    This will return the system messages.
    call transaction 'XXXX' using BDCTAB
                                            mode 'P'
                                            messages into MSG_TAB.
    Try to change the mode from 'N' to 'P' and try to place a breakpoint and check what happens.
    Alternatively, you can read the Quality Notification text using FM READ_TEXT, and then show this data to the user in pop-up, rather than calling the tx.
    Hope this helps.

  • Issue ith Long text in Quality Notification.

    Hi All,
    I have an Issue with Quality Notification long text change functionality.User reported that he can only append the additional text and can't edit the alaready entered screen. When I verified the config for the notification type it shows that 'Log line' check box have been checked and "No text" change Check Box Not checked. We need log lind and the same time user can edit the alkready entered screen. We are using Ecc 6.0 system.
    Please guide me to fix that Issue.
    Regards,
    Senthil

    Hi,
    you should check in configuration the part "Overview of Notification Type"  (Quality Management>>Quality Notifications>>Overview of Notification Type).
    When you select your notification type you go to "Format Long text" and there you can disable "No text change". This option is useful when you want to add text but don't want to allow modification of existing text.
    Hope this help,
    Serge

  • Activity Long Text from Service Notification

    Hi,
    We are designing a report to fetch some fields from the service notification. I am not able to get 2 fileds which are 'Notification Long Text' and 'Activity Long Text'. Can anyone help us to find out how we can bring these fields into the report?
    (I can get activity text from table QMMA, but from where can I get activity long text?)
    Please let us know the table names or any fucntional module to fetch these field values?
    Regards,
    SAM

    Hi,
    Thank you very much for your input.
    I need to get the notification Activity Long Text .So which are the following parameters I need to pass to the FM READ_TEXT?
    Text Name : ?
    Language : EN
    Text ID : ?
    Text Object : ?
    Please let me knowfrom where and what values I need to pass to the fileds Text name, Text ID and Text object?
    Regards,
    SAM

  • Activity Long Text from the Notification

    Hi,
    We are designing a report to fetch some fields from the service notification. I am not able to get 2 fileds which are 'Notification Long Text' and 'Activity Long Text'. Can anyone help us to find out how we can bring these fields into the report?
    (I can get activity text from table QMMA, but from where can I get activity long text?)
    Please let us know the table names or any fucntional module to fetch these field values?
    Regards,
    SAM

    Hi,
    The same question i think
    Language->EN, Text ID:- LTXT ,Text Object : QMMA , Name :- I think starting with 001Notification Number0001
    But the simple way to identify all these are , open IW22 -> Open that Activity Longtext and goto menu ->Header -u will find Text Header details ..
    Hope this helps u
    regards
    pushpa

  • Copy Long text of a notification to its Follow-up Notification

    Hi,
    Need clarification on
    Copying of PM-Notification Long text to the Long text of its Follow-up Notifcations.
    Regards,
    LSK.

    Hi lalitha
    Pl go through the below link for details regarding copy of long text
    http://help.sap.com/saphelp_47x200/helpdata/en/af/cb5447461411d189f20000e81ddfac/frameset.htm
    Regards
    Suhas

  • FM to get the long text of a notification/CRM order?

    I use select statement into database table BALHDR, but get only the protocol data. Does anybody know how to obtain the longtext (content) of a notification?
    Thanx.
    Nuno

    call function 'READ_TEXT'
          EXPORTING
               id                      = '0001'
               language                = 'EN'
               name                    = document number
               object                  = object name
          TABLES
               lines                   = lines
    cheers,
    sasi

  • Maintain notification long text in IW21

    Hi Expert,
    I have one requirement as follows:
    In TCode IW21: Create PM Notification, client wants Notification Long should appear as a Template from Standard Text (TCode: SO10).
    Now I want to fetch this Std. Text which is maintained in TCode SO10 and show it at Notification Long Text while creating Notification using TCode: IW21.
    Please guide me how to do this functionality using any User Exit or any Enhancement available in SAP.
    Thanks,
    Jay.

    Hi,
    Create SAP standard text
    DATA: IT_TEXTS type standard table of TLINE,
          wa_texts like line of it_texts,
          THEAD    TYPE THEAD.
    **Populate text table
      wa_texts-tdformat = '*'.  "new line
      wa_texts-tdline = 'First line of text'.
      append wa_texts to it_texts.
      clear: wa_texts.
      wa_texts-tdformat = '='.  "continuation line
      wa_texts-tdline = 'still first section of text'.
      append wa_texts to it_texts.
      clear: wa_texts.
    **Also need to Populate THEAD details which can be gathered from the Text Identification Details
          CALL FUNCTION 'CREATE_TEXT'
               EXPORTING
                    FID         = THEAD-TDID
                    FLANGUAGE   = THEAD-TDSPRAS
                    FNAME       = THEAD-TDNAME
                    FOBJECT     = THEAD-TDOBJECT
                  SAVE_DIRECT = 'X'
                  FFORMAT     = '*'
               TABLES
                    FLINES      = IT_TEXTS
               EXCEPTIONS
                    NO_INIT     = 1
                    NO_SAVE     = 2
                    OTHERS      = 3.
    Thanks,
    Abhijit

  • 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

  • Need to assign char in o12c to show long text of the char in PI sheet

    Hi, Trying to learn PP-PI.  in o12c t-code, created instruction category u201Ctextu201D under instruction cattype (0) and trying to assign a characteristic (test) which is having char group as u201Cprocess instruction characteristicsu201D and willing to select u201Clong text indictor- Tu201D against this characteristic, but getting the error that u201Cthis characteristic is not supported for long textu201D. Please advise how to set long text indicator so that we can show long text in the pi sheet. Thank you.

    Hi,
    To Maintain Long text for characteristic in O12C , you need to
    1) create the Char in T-code O25C with Data type character and click on Proc.Mgmt tab
    2) Tick unlimited field situated right of Length and SAVE the char
    3) Assign this char in O12C under instruction cattype (0). You can see the indicator in the field Text. Now it will allow to main long text for that char in O12C.
    Hope this will help
    Regards
    Brahmaji D

  • Copying header text from PM notification to PM order

    Hi!
    My task is to copy the header long text from the notification into the PM order (made from/attached to the notification). I've checked the customizing, but there is only an option to copy standard texts into the order.
    So I would like to put the text into a memory ID, during notification saving, and put the text into the PM order. And of course without modifying the standard...
    How can I insert text into an order, which does not have its document number yet? I think I can not use the SAVE_TEXT...
    Thank you..
    Tamá

    Hi,
    Try to find userexit after SAVE. so you have document number, then you can use
    SAVE_TEXT.
    aRs

Maybe you are looking for

  • Macbook video output

    I want to connect my macbook to my flat screen TV to display photos. What kind of cables can I use to accomplish this? Thanks for any help...

  • Where is the phone location database?

    Today's WSJ reported the following story (in part): Two researchers have uncovered a secret file on iPhones that keeps a record of where the phone has been and when it was there - a file that is unencrypted and stored by default.  The security expert

  • [ProjectServer 2013] Resource authorization data lost on PSI Resource Update

    Hi, as the title says I noticed that sometimes resource authorization data of a resource/user is lost in ProjectServer 2013 on a PSI resource update. Since it did not happen every time for every resource (user) I tried to investigate this issue in mo

  • FCP 5.0 crash OSX 10.4

    Run FCP 5.0 Studio on OSX 10.3.9 with no problem a year back. Powermac dual 2.0, 1.5 ram. After upgradering to OSX 10.4.6 quicktime, automator, compressor, soundtrack won´t launch. Did a install and archive and then a least quicktime worked again on

  • Query regarding Check Printing

    Hi All, I have a query regarding check Printing. Once I am printing the Check with Transaction FBZ5, the roller of the printer is not being stopped after the printing of first check and four to five checks are coming out.But I want one check will pri