Populate long text in transaction QM01

Hi,
I'm trying to populate long text in transaction QM01, meaning, when the user creates a new notification, a constant text should appear automatically.
I currently use enhancement QQMA0007 user exit EXIT_SAPMIWO0_001.
I found FM IQS0_ADD_NOTIFICATION_LONGTEXT which works fine when the notification already exists, but when creating a new notification I still have no number to put in the FM parameters.
Does anyone has an idea?
Thank's,
Hagit.

Hi Hagit,
First, in the userexit that gets triggered when saving the notification, call a subroutine via PERFORM .... ON COMMIT.
In this subroutine, you will put the code to update the text and access the notification number using field symbols.
When a subroutine is called ON COMMIT, it means that the subroutine waits in memory until the transaction issues a COMMIT WORK.  Once the transaction has issued a COMMIT WORK, the subroutine is called.
At this point, the notification number will have been generated.
In this subroutine, put a break point so you can examine all the memory areas to find the notification number.  I suggest that the field VIQMEL-QMNUM in program SAPLIQS0 should have it [type (SAPLIQSO)VIQMEL-QMNUM in the watch fields to check its contents]. 
As an alternative, whilst looking at the transaction, I noticed some BADIs, the BADI CL_EX_NOTIF_CREATE_OBJ looks promising.  Have you tried this one?  Maybe the notification number is passed to you here.
Cheers,
Brad

Similar Messages

  • How to Populate long text(item text)  from BOM CS01 to CJ20N transaction

    I have requiremnt  in which i need to Populate long text/item text  of  BOM  from CS01 to CJ20N transaction(PS network)

    Hi Naveen,
    for anylong text related work use the functions READ_TEXT and SAVE_TEXT.
    read the long text of the BOM item using the proper header and then populate the same text lines to the PS network using the new header specific to the PS network.
    Prabhas.

  • Populate long text in the 'Confirm. text' of the confirmation data

    In our requirement, we are able to create an order confirmation using RFC 'BAPI_ALM_CONF_CREATE' (plant maintenence) but we are not finding anyway to populate the long text OF  'Confirm. text' of the  the confirmation(transaction IW41). Please suggest how to populate Long text. in 'Confirm. text' using any RFC or  thrugh 'BAPI_ALM_CONF_CREATE' .
    Edited by: Rohit Kumar on Oct 7, 2008 3:25 PM

    V_OBJ = SY-MANDT.
        SELECT SINGLE RUECK RMZHL INTO (V_RUECK, V_RMZHL) FROM AFRU WHERE AUFNR EQ Order_No AND GRUND = 'WORK'.
        CONCATENATE V_OBJ V_RUECK V_RMZHL INTO V_OBJ.
        l_header-tdobject = 'AUFK'.
        l_header-tdname = V_OBJ.
        l_header-tdid = 'RMEL'.
        l_header-tdspras = 'EN'.
        if strlen( TEXT ) GT 40.
        update AFRU set TXTSP ='E' WHERE AUFNR EQ Order_No.
        endif.
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            CLIENT          = SY-MANDT
            HEADER          = l_header
            INSERT          = 'X'
            SAVEMODE_DIRECT = 'X'
          TABLES
            LINES           = t_textlines.
        CALL FUNCTION 'COMMIT_TEXT'
          EXPORTING
            name            = V_OBJ
            savemode_direct = 'X'.
        CLEAR : V_RUECK, V_RMZHL,  V_OBJ , L_HEADER.
    Here, t_textlines is a long text( set of lines in th elong text)

  • Modifications in field LONG TEXT in transaction IW22

    Hello friends!
    I have the following problem:
    I need to allow modifications in field LONG TEXT in transaction IW22 until the notification is realeased, the thing is that this field gets inactive and it doesn't accept further modifications, can anybody help me??
    Thanks in advance,
    Frinee

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

  • Populate long text in FB03

    Hi All,
    We are using tcode FF_5 to update the Account statement .After execution of tcode,one FI document(FB03) will be created in SAP with the data from the file we uploaded.
    Currently only short text field only getting updated,but my requirement is to update the long text field.
    I used the user exit EXIT_RFEBBU10_001 to populate the long text.But could not succeeded.
    Please let me know if any one came across the same requirement before.
    your help is highly appreciated
    Thanks
    Naresh B

    Hello Naresh,
    After R&D i observed standard text name is the combination of companycode+document number + year + line item.
    Which object(stxh-tdobject) = 'DOC_ITEM' and text id(stxh-ttid) = '0001'.
    When you are uploading file and saves data. Atfter updation of all fields use function module 'CREATE_TEXT' to create new text.
    After this when you check document in transaction 'FB03' you will get the long text you uploaded.

  • How to store long text in transaction f-65

    Hi all,
    I need to add long text in the transaction f-65 for a particular document number. I have used the FM CREATE_TEXT. There are no errors but the text is not getting updated.
    Pointers on this will be really helpful.
    Regards,
    Praveen

    Not that familiar with RTF, but you could try and create a field of type (x)string in your table and store the data there.

  • How to read the long text in Transaction Code : VA02 at runtime??????

    Hi,
    I am undable to find the long text in TC: VA02 at runtime. Actulally my requirement is like how to compare between the item level long text at runtime and existing long text for that item.
    If any body has soluntion, please provide me. I would really be  greatfull if any body provide the solution.
    Deepak Kumar
    E-Mail: [email protected]

    Hi Sudheer,
    Actually my requirement is to read the text at runtime. Example: If saved text is 'ABC' and it is changed by '123'. Now before saving changed text '123', I need to capture it so that I can compare it with saved text 'ABC' whether it is changed or not?
    Couuld you send me some sample code? I would appreciate if you reply at the earliest.
    Deepak Kumar.

  • Symbols getting in Long Text  IW32 Transaction

    Hi All,
    Getting Unwanted Symbols When assigning Character Formats to Long Text (Say Character Format
    For Underline or Bold Text )
    Any Solution or Note ..
    Please Helpful
    Thanks & Regards,
    Manish..

    Hi All,
    Getting Unwanted Symbols When assigning Character Formats to Long Text (Say Character Format
    For Underline or Bold Text )
    Any Solution or Note ..
    Please Helpful
    Thanks & Regards,
    Manish..

  • Long text Custom container is moving

    Hi Experts
    I am getting Strange problem
    I have added Long text container in QM01 transaction using screen Enhancement ( QQMA0001 )
    In Transaction this Long text container is moving  when ever i click on Enter
    Please kindly advise how to avoid this problem.
    Regards
    Vinay Rao

    Hi Ravi,
    Its like Original Container is there as it is, Replica container is created dynamically and and it is moving here and there.
    Regards,
    Vinay Rao

  • Problem in getting long text in Cash receipt.

    Hi all,
    I want long text in my form print but as a programming i am not getting long text in description Field I am getting short text.  So can you please kindly tell me when we entered long text in transaction FBCJ this long text save in which table. And how can i fetch this data in my smartforms.
    Thanks in Advance.

    Hi Keyur,
    when you see the detail text in the transaction, use menu goto -> header. Here you see the details to use for an include staement in sapscript. Note that the text name may be a concateneation of client and document number. Prepare the details in print program, fill in variables to be used in sapscript.
    Hope these details are enough.
    Regards,
    Clemens

  • Defaulting long text in fmbbc

    Hi to all experts,
    I have requirement of defaulting long text in transaction FMBBC . when the user clicks on long text button some text should be defaulted is it possible. Im thinking of using enhancement points to achieve this .

    you are right that the only way to do it.
    Atul

  • How to get text name text object and text id for long text

    Hi,
    I am trying to fetch Long text for a given order number from transaction CO04 in SAPScript. I know that I have to use Include X (OBJECT) XX ID XXX.
    How do I get the text name, text object and text id for the order header long text from Transaction CO04.
    Points will be awarded..
    Tushar

    Tushar,
    When you are in CO02, and are at the Long Text Tab,click on the Icon that is next to the Order Number at the top of the screen (this icon looks like a Pencil and a Pad of Paper and is called "Change Long Text"). When you click on this it will take you to the SAPscript Editor. Now hit Goto->Header and you will get the data you require.
    Hope this helps.
    Cheers,
    Pat.
    PS. Kindly award Reward Points as appropriate.

  • How to update CC02 Chng Header Long Text?

      Hello everyone,
         I'm trying to better understand how to dynamically update the long text in transaction CC02 from a custom program. I have debugged through CC02 and found that it uses SAVE_TEXT and COMMIT_TEXT so I too, have tried the same.
    What I've found is that as long as a Change Header Long Text was created first in CC02, the code below works successfully without issue, and is reflected when I go into CC02 - I can see my changes.
    On the other hand, if the Change Header Long Text was not already created, and I create it for the first time, this text is stored and I can successfully read it using READ_TEXT Function Modules. However CC02 does not show this saved text. Therefore, any changes made in CC02 will then overwrite my changes made in my custom program.
    I have explored the INSERT parameter of SAVE_TEXT, and pass an X if the Change Header Long Text does not already exist (Determined using READ_TEXT). However, this did not seem to yield any success.
    Can anyone explain why this works correctly when it is already created, but does not work correctly if I am creating the long text for the first time in my program?
    CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            client          = sy-mandt
            header          = lwa_thead
            savemode_direct = c_x
    *        insert          = i_new_longtxt
          TABLES
            lines           = lwa_ltext_tmp
          EXCEPTIONS
            id              = 1
            language        = 2
            name            = 3
            object          = 4
            OTHERS          = 5.
        IF sy-subrc = 0.
          CALL FUNCTION 'COMMIT_TEXT'
          EXPORTING
            object          = lwa_thead-tdobject
            name            = lwa_thead-tdname
            id              = lwa_thead-tdid
            language        = s_lang
          IMPORTING
            commit_count    = iv_updated_texts.
        ENDIF.
    Useful hints or tips will be rewarded! Thank you!

    Hi Custodio,
    Thanks for the reply. To further elaborate, the parameters I've tried passing through lwa_thead are the following:
    CONSTANTS:
        w_tdid            TYPE thead-tdid       VALUE 'AENR', " Change Master Table
        w_tdobject        TYPE thead-tdobject   VALUE 'CHANGE', " Static Object
        w_linesize        TYPE thead-tdlinesize VALUE '72', " 72 characters per line
        w_tdform          TYPE thead-tdform     VALUE 'ECM_LTXT', " Form Name in CC02 Header Long Text
       * Setup header information
      lwa_thead-tdid        = w_tdid. " AENR (Change master table)
      lwa_thead-tdobject    = w_tdobject. " CHANGE
      lwa_thead-tdname      = w_tdname. " Client + ECM
      lwa_thead-tdspras     = s_lang. " Language
      lwa_thead-tdlinesize  = w_linesize. " Characters per line
      lwa_thead-tdform      = w_tdform. " Form ECM_LTXT
      lwa_thead-TDLUSER     = SY-UNAME. " Changed by User
      lwa_thead-TDLDATE     = SY-DATUM. " Date changed
      lwa_thead-TDLTIME     = SY-UZEIT. " Time changed
      lwa_thead-TDLRELES    = SY-SAPRL. " SAP Release
      lwa_thead-TDTXTLINES  = l_records. " Number of records
    For testing purposes, I even mocked the following tran code and program name from CC02 in tdmacode1 to see if that triggered a different result. This did not visibly change anything as far as I could tell.
        w_tdmacode1       TYPE thead-tdmacode1  VALUE 'CC02SAPMC29C',
        lwa_thead-tdmacode1   = w_tdmacode1.

  • How to save long text for IA01 Transaction using BDC

    Hi All,
    In my requirement I have to create a Task List Equipment and Task List Functional Location using BDC.Here I need to upload the long text for both IA01 and IA11 transactions.I am using SAVE_TEXT function module to save the text and COMMIT_TEXT also after save text.But I am not able to see the text in IA12 and IA02 transactions.But using READ_TEXT I am able to get the text what updated using SAVE_TEXT.
    Please answer for this if any one worked on this requirement <Priority normalized by moderator>
    Thanks,
    Satya.
    Edited by: Vinod Kumar on Jan 2, 2012 9:02 PM

    Hi Satya,
    There is a simple way to update the long text. There is  direct input object in the LSMW for long text.
    Object            : 0001
    Method          : 0001
    Program type : D
    SImply go and create the LSMW with first option and follow the steps. No need to call the function modules separately. This standard program will take care of every thing.
    If you have multiple lines to populate in the equipment master at the header level then you need two set of files. Then key will be equipment number with leading zeros if it will not be alpha numeric.
    1) First file with field EQUNR.
    2) Second file will be
    EQUNR                          C(018)    Technical identification number
    TXPARGRAPH                     C(002)    Tag column
    TXLINE                         C(072)    Text editor text line
    TEXT_MARK                      C(001)    Description Indicator for RIIBIP00 (IBIP) Processing
    Please let me know if you need more in detail.
    Thanks,
    Satheesh

  • Entering long text in BDC on QM01

    Hi
    Can anybody tell me, how to enter the long text in bdc.
    i am doing bdc on QM01 transaction in which i need to upload the long text.
    can any body tell me how to do that.
    Regards

    Hi
    First do recording from SHDB transaction... After u enter the transaction click on new recording,give a name and the tcode..then the tcode will open..
    Give one value in the fields and also in the long text and then save it..
    Now, come back to the recording....select the recording and then click on Program tab...to generate a program, in that select option transfer from recording..
    Now, upload the flat file into SAP, using GUI_UPLOAD or ALSM_EXCEL_TO_INTERNAL_TABLE.
    Then pass the internal table using LOOP-ENDLOOP to the subroutines..
    Regards,
    VIshwa.

Maybe you are looking for