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.

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

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

  • RETRIEVING LONG TEXT IN FB03 TRANSACTION

    Hi all
    Please let me know in FB03 transaction when we click item number where is the long text stored in the database ?
    Regards
    Nivetha.

    Hi
    If you are using smart form  the use include text and
    pass
    Text Name       300001000000132003
    Language        EN
    Text ID         0001 Correspondence    Text ID         0002 Note   0003 and 004
    Text Object     BELEG      Document text
    if not use read_text fm pass the above
    then loop at itab from the FM
    regards
    Shiva

  • I get the long text description 0f transaction fb03

    Hi Gurus,
    How can I get the long text description in the information view (field <b>ZEILE</b>,
    data element EENO_ZEILE) on the G/L account documet overview(transaction Fb03)?
      My prob is, This field stored in a structure called
    Thanks in ad.
    Regds,
    Bala

    Hi,
    a) Find out for which <b>table</b> this long text is linked.
    b) Go to <b>TTXOB</b> table and in the field <b>TDOBJECT</b>, check whether this entry is present.
    c) If present, then use FM READ_TEXT, to get the long text value.
    Important parameters to be passed in READ_TEXT
    a) ID         
    b) Language (EN??)
    c) Name   ( I believe in this case it would be ZEILE)
    d) Object (TTXOB-TDOBJECT value)
    Regards,
    Subramanian V.

  • FB03 Long text to sapscript

    Hi
      My requirement is ,i have to read the long text entered in the FB03 transaction(it may be several lines) in my Z Print program and pass that to the sapscript form that it gets displayed as line item. can you please send sample how to do in program and how it is called in sapscript form..
    Thanks
    Swarna.

    Hi
    You have to use FM READ_TEXT.
    In FB03 Transaction, you can get the Technical information of the Text Area. Use those as inputs to this FM, which will return the text entered into an internal table.
    You can use this Internal table data to write onto script.
    Eg:
    stxl_id-tdobject = 'VBBK'.
    stxl_id-tdname = wa_vbfa-vbelv.
    stxl_id-tdid = '0012'.
    stxl_id-tdspras = 'EN'.
    DATA: BEGIN OF tlines OCCURS 10.
    INCLUDE STRUCTURE tline.
    DATA: END OF tlines.
    clear: i_text.
    *DATA : l_text(120) TYPE c,
    DATA : l_text(1050) TYPE c,
    v_tline LIKE tline-tdline.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    client = sy-mandt
    id = stxl_id-tdid
    language = stxl_id-tdspras
    name = stxl_id-tdname
    object = stxl_id-tdobject
    archive_handle = 0
    local_cat = ' '
    IMPORTING
    HEADER =
    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
    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 TLINES.
    CALL FUNCITON 'WRITE_FORM' with the text element..
    ENDLOOP.
    Regards,
    Raj

  • Populating the long text in equipment

    How do we propose to populate the long txt in equipment?  Is LSMW viable option, or would this be more complicated than it
    sounds?

    hi,
    Long text always create problem either in functional location and equipements.So it becomes difficult in LSMW .the problem you will face is while recording in lsmw either you will get word document when you open long text and in main upload it will be in a format where only 72 characters per line is possible.
    so it is better always if long text is involved to use BDC ..life becomes easy through BDC.

  • Can I populate a text field in one PDF with the modification date of a different file ?

    Rather convoluted problem here but I'm trying to place a text field on a PDF document that serves as the main menu page for a library of interlinked PDF documents
    The complete library contains over 7,000 files and additions are added and documents changed almost daily.
    We currently use batch files to open the main menu from it's shortcut and this runs a check on a sync log file (.txt) to ascertain when the last time the user synchronised with the server to get the latest copy of the files.
    Between a certain time range they are told how long it has been since they sync'ed and are offered the option to sync before opening, after a prescribed timeframe they cannot enter without synchronising. We use Allways Sync to conduct the file synchronisation with our mother files on our server.
    What I'd like to do is take advantage of Allways Syncs automatic synchronisation options to synchronise on log on and at prescribed idle periods there after.
    This works fine but I'd like the text field on the main menu PDF to say when the last synchronisation took place - easy if the main menu is the last file modified .. just use info.modDate.
    However, the main menu is rarely modified therefore I wish to import the text to populate the text field from a different file.. either by interrogating the other files modifictaion data (though I doubt Acrobat can do this) or by simply importing some text stored in another file (a .txt file?) which has previously been created by batch file commands.
    Any assistance would be greatly appreciated.
    Regards,
    Nifty Styles
    (Norfolk, England)
    P.S.  I'm using Acrobat 8.3.1. Professional on Windows XP (SP3).

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

  • How to print long Text & No of page settings in F-58

    Dear Gurus,
    Can anybody guide me reg. below:
    01. user want to print long text also along with document.
    02. When user printing F-58 Payment advice..where we can set no of pages
    Pls guide me.
    REgards,
    Venkat

    Hi,
    a. Display Document FB03 and change current layout (Ctrl+F8) and choose GL Long Text (SKAT_TXT50).
    Rgds.

  • Document header text in Fb03

    Hi all,
    In ml81n transaction there is a field called external number which is stored in ESSR table.
    Now when i go to mrrl and display the fi document i will be taken to Fb03 transaction. If i click the documnet header i will get another window which has documen header text. Now in this document header text i need to display the external number that was used in ml81n transaction.
    I tried with enhancement points at some points. but it was not helpful.
    Hope somebody would reply to this post.
    Thanks in advance
    Veda
    Helpful answers would definitely rewarded.

    Hi,
    You can use READ_TEXT to retreive header text.
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.
    To check your long text header, go into the long text. Click Goto -> Header
    This will give you OBJECT, NAME, ID, and LANGUAGE.
    Pass them in the FM, you will get the header text that you want.
    Also go through the below link:
    http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm
    Hope this will help.
    Thanks&Regards,
    Naresh kumar.

  • Long text in alv

    Hi,
    Iam trying to display alv list with one internal table(itab1).
    I have another itab2 which is having very long text and which is appended as 4 lines.
    Now i want to combine this itab2 into itab1 to dispaly long text.
    Can any one explain me how to append this data.Here is the code.
    My object is to put long text in the ALV list.Iam using QM02 transaction to get the data.
    REPORT  YQM_NOTIFICATION MESSAGE-ID  ZM NO STANDARD PAGE HEADING
                                                          LINE-SIZE 255.
    TYPE-POOLS: SLIS.
    TABLES: QPCT,
            QPGT,
            QMEL,
            QMMA,
            IHPA.
    DATA: FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          ITAB_EXTAB   TYPE SLIS_T_EXTAB.
    DATA: IT_FIELD   TYPE SLIS_T_FIELDCAT_ALV,
          W_LAYOUT   TYPE SLIS_LAYOUT_ALV,
          IT_EXCLU   TYPE SLIS_T_EXTAB,
          GS_EXTAB  TYPE SLIS_EXTAB.
    DATA   : F_TDOBJECT LIKE THEAD-TDOBJECT,
             F_TDNAME   LIKE THEAD-TDNAME,
             F_TDID     LIKE THEAD-TDID,
             ITAB_LINES LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA   :  BEGIN OF ITAB OCCURS 10,
               DESC(72) TYPE C,
             END OF ITAB.
    DATA: BEGIN OF T_HDR OCCURS 0,
            GROUP LIKE QPGT-CODEGRUPPE,
            CODE LIKE QPCT-CODE,
            TEXT LIKE QPCT-KURZTEXT,
            NAME LIKE QPGT-KURZTEXT,
          END OF T_HDR.
    DATA: BEGIN OF T_DET OCCURS 0,
           SNO TYPE I,
           QMNUM LIKE QMEL-QMNUM,       " NOTIFICATION NUMBER(REF NO)
           REFNUM LIKE QMEL-REFNUM,      " CONTRACT NO
           PARNR LIKE IHPA-PARNR,
           QMTXT LIKE QMEL-QMTXT,
           QMGRP LIKE QMEL-QMGRP,
           QMCOD LIKE QMEL-QMCOD,
           OBJNR LIKE QMEL-OBJNR,
           DESC(72),
          END OF T_DET.
    DATA: SNO TYPE I.
    DATA: V_REPID TYPE SY-REPID.
    SELECTION-SCREEN BEGIN OF BLOCK A1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:S_QMNUM FOR QMEL-QMNUM,
                      S_QMART FOR QMEL-QMART,
                      S_QMDAT FOR  QMEL-QMDAT.
    SELECTION-SCREEN END OF BLOCK A1.
    START-OF-SELECTION.
      PERFORM GET_DATA.
    PERFORM 2000_GET_MAIN.
      PERFORM DISPLAY_ALV.
    END-OF-SELECTION.
    *&      FORM  DISPLAY_ALV
          TEXT
    FORM DISPLAY_ALV.
      PERFORM FIELD_CAT USING FIELDCAT.
      V_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = V_REPID
          IT_FIELDCAT        = FIELDCAT
          IT_EXCLUDING       = ITAB_EXTAB
        TABLES
          T_OUTTAB           = T_DET
        EXCEPTIONS
          PROGRAM_ERROR      = 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.
    ENDFORM.                    "DISPLAY_ALV
    *&      FORM  FIELD_CAT
          TEXT
         -->P_FIELDCAT TEXT
    FORM FIELD_CAT USING P_FIELDCAT.
    FIELD CATELOG FOR ALV DISPLAY.
      DATA: I_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
      CLEAR I_FIELDCAT.
      I_FIELDCAT-FIELDNAME    = 'SNO'.
      I_FIELDCAT-TABNAME      = 'T_DET'.
      I_FIELDCAT-NO_OUT       = '   '.
      I_FIELDCAT-SELTEXT_L    = 'S.NO'.
      I_FIELDCAT-OUTPUTLEN    = 4.
      APPEND I_FIELDCAT TO FIELDCAT.
      I_FIELDCAT-FIELDNAME    = 'QMNUM'.
      I_FIELDCAT-TABNAME      = 'T_DET'.
      I_FIELDCAT-NO_OUT       = '   '.
      I_FIELDCAT-SELTEXT_L    = 'REF.NO'.
      I_FIELDCAT-OUTPUTLEN    = 18.
      APPEND I_FIELDCAT TO FIELDCAT.
      I_FIELDCAT-FIELDNAME    = 'REFNUM'.
      I_FIELDCAT-TABNAME      = 'T_DET'.
      I_FIELDCAT-NO_OUT       = '   '.
      I_FIELDCAT-SELTEXT_L    = 'CONTRACT NO'.
      I_FIELDCAT-OUTPUTLEN    = 18.
      APPEND I_FIELDCAT TO FIELDCAT.
      I_FIELDCAT-FIELDNAME    = 'PARNR'.
      I_FIELDCAT-TABNAME      = 'T_DET'.
      I_FIELDCAT-NO_OUT       = '   '.
      I_FIELDCAT-SELTEXT_L    = 'A-DIV'.
      I_FIELDCAT-OUTPUTLEN    = 10.
      APPEND I_FIELDCAT TO FIELDCAT.
      I_FIELDCAT-FIELDNAME    = 'QMTXT'.
      I_FIELDCAT-TABNAME      = 'T_DET'.
      I_FIELDCAT-NO_OUT       = '   '.
      I_FIELDCAT-SELTEXT_L    = 'DESCRIPTION'.
      I_FIELDCAT-OUTPUTLEN    = 25.
      APPEND I_FIELDCAT TO FIELDCAT.
      I_FIELDCAT-FIELDNAME    = 'DESC'.
      I_FIELDCAT-TABNAME      = 'T_DET'.
      I_FIELDCAT-NO_OUT       = '   '.
      I_FIELDCAT-SELTEXT_L    = 'DEFECT'.
      I_FIELDCAT-OUTPUTLEN    = 100.
      APPEND I_FIELDCAT TO FIELDCAT.
    ENDFORM.                    "FIED_CAT
    *&      FORM  GET_DATA
          TEXT
    FORM GET_DATA.
    *TO GET HEADER
      SELECT CODEGRUPPE CODE KURZTEXT FROM QPCT INTO TABLE T_HDR.
      LOOP AT T_HDR.
        SELECT SINGLE * FROM QPGT WHERE CODEGRUPPE = T_HDR-GROUP.
        IF SY-SUBRC = 0.
          T_HDR-NAME = QPGT-KURZTEXT.
          MODIFY T_HDR.
          CLEAR T_HDR.
        ENDIF.
      ENDLOOP.
    *TO GET DETAILS
      SELECT QMNUM REFNUM QMDAT QMTXT OBJNR QMGRP QMCOD FROM QMEL
        INTO CORRESPONDING FIELDS OF TABLE T_DET
                                  WHERE QMNUM IN S_QMNUM AND
                                        QMART IN S_QMART AND
                                        QMDAT IN S_QMDAT.
      LOOP AT T_DET.
        SELECT SINGLE * FROM IHPA WHERE OBJNR = T_DET-OBJNR.
        IF SY-SUBRC = 0.
          T_DET-PARNR = IHPA-PARNR.
          MODIFY T_DET.
          CLEAR T_DET.
        ENDIF.
      ENDLOOP.
      LOOP AT T_DET.
        DELETE T_HDR WHERE GROUP NE T_DET-QMGRP.
      ENDLOOP.
      LOOP AT T_DET.
        SNO = SNO + 1.
        T_DET-SNO = SNO.
        MODIFY T_DET.
        CLEAR T_DET.
      ENDLOOP.
      CLEAR   : ITAB.
      REFRESH : ITAB.
      LOOP AT T_DET.
        F_TDID     = 'LTQM'.
        F_TDNAME   = T_DET-QMNUM.
        F_TDOBJECT = 'QMEL'.
        CALL FUNCTION 'READ_TEXT'
          EXPORTING
            CLIENT   = SY-MANDT
            ID       = F_TDID
            LANGUAGE = SY-LANGU
            NAME     = F_TDNAME
            OBJECT   = F_TDOBJECT
          TABLES
            LINES    = ITAB_LINES.
        DESCRIBE TABLE ITAB_LINES LINES SY-TFILL.
        IF SY-TFILL > 0.
          LOOP AT ITAB_LINES.
            ITAB-DESC = ITAB_LINES-TDLINE.
            <b>APPEND ITAB</b>.    "itab2
            CLEAR ITAB.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
    <b>LOOP AT ITAB.</b>
       T_DET-DESC = ITAB-DESC.
       MODIFY T_DET.
       CLEAR T_DET.  "itab1
    <b>ENDLOOP.</b>
    ENDFORM.                    "GET_DATA<b></b><b></b><b></b>
    points guaranteed
    cheers
    kaki

    Hi again,
    1. I don't think it is directly possible in alv.
    2. bcos Notification is a simple field
    3. But Description  ?
       This is fetched into an INTERNAL Table
       having many rows.
    3. One option is :
       The internal table which uare displaying
       in alv (lets say ITAB)
       Populate it with some home-grown logic.
    4. lets say u have 3 Notifications
      each having Descriptions of 5 lines.
      ie 3 x 5 = 15 lines
    5. So loop thru all descriptions
       and populate both fields one by one.
    itab should something like this -
    make the notification field blank
            for lines starting from 2 (for each notification)
    6. NOT001     line1
                  line2
                  lin3
                  line4
      NOT002      line 1
                  line 2
                  line 3
                  line 4
      NOT0003     line1
                  line2
    etc etc.
    I hope it helps.
    Regards,
    Amit M.

  • Long Text into BI

    Hi Guys,
    I have to bring long text (7000 characters long) from table STXL into BI. I went through the discussions on the forum without much help. One option is to split the text into multiple infoobjects and joining them in analyzer. This option is not practically possible for me because of the text length.
    I enhanced an existing datasource with a new filed and tried to populate the field from the text field in STXL table. The challenge now is to bring the field into BI. Someone mentioned in the forum that we can write couple of function modules (READ_TEXT and GUI_DOWNLOAD) to extract the text into BI as a file and write another program in BI and load the text into documents of infoobject. Is this the only option available?
    Can you please send some sample code on ECC and BI for this purpose? Also, If I want to display the document in excel analyzer, will it be available as a separate column in the report?
    Please help.
    Thanks in advance.

    Hi,
    This type of requirement was there in my previous project which was achieved using FM. Follwoing doc might be useful for you in writing FM:-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33?quicklink=index&overridelayout=true
    Regards,
    Prakash

  • Display long Text in PDF (How to match width of text in TextEdit & Form)

    Hello Experts,
    I have created a PDF where I have to populate a field with Long Text (from a Text Edit UI Element of my Web Dynpro Component). The issue is that when I retrieve the text (using READ_TEXT...) and display it, it occupies just the half of screen width.
    I increased the number of columns of the Text Edit with `Hard Wrap`/`Soft Wrap`, but it had no effect. I also tried setting the width of the Text Edit but it had no effect too.
    Could you kindly suggest any way of achieving this?
    Thanks and best regards,
    Abir

    Hi Abir
    When you use FM READ_TEXT to get the Longtext, you have to somehow serialize the textlines into a single longtext (string). You do it like this?
    LOOP AT tline into ls_tline.
      CONCATENATE l_string ls_tline-tline INTO l_string.
    ENDLOOP:
    I think these line breaks are caused by CRLF (end-of-line) characters inside your longtext. You can find and replace them with the constant CL_ABAP_CHAR_UTILITIES=>CR_LF.
    Edited by: Daniel Sulzer on Nov 23, 2010 2:43 PM

  • Problem in Long text save in CO02

    Hi All,
    I am posting long text for a production order using 'CREATE_TEXT' and its updating in the tables succesfully.
    The same old probelm is it is not appearing in the CO02 or CO03 tcodes.
    I did a direct AUFK-LTEXT update as suggested in many of the threads I searched, but of no use.
    Pls suggest some solutin in this regard.
    thanks in advance.

    I know this is old post but I got few updates like updating Long Text of Production Order using BAPI "BAPI_ALM_ORDER_MAINTAIN".
    First check if Order is having long text maintained by checking AUFK-LTEXT. If blank -> no text.
    For Existing Order(00XXXXXXXXXX) having no text maintained : -
    METHODS TABLE
    REFNUMBER
    OBJECTTYPE
    METHOD
    OBJECTKEY
    1
    TEXT
    CREATE
    00XXXXXXXXXX
    SAVE
    IT_TEXT TABLE
    If you want to add 2 rows, TEXTEND = 2.
    ORDERID
    LANGU
    TEXTSTART
    TEXTEND
    003000036669
    EN
    1
    2
    IT_TEXT_LINES
    TDFORMAT
    TDLINE
    LINE 1
    LINE 2
    Execute BAPI and call BAPI_TRANSACTION_COMMIT after this BAPI
    For Existing Order having text maintained : - only one change in above process, populate other areas similarly
    Methods table
    REFNUMBER
    OBJECTTYPE
    METHOD
    OBJECTKEY
    1
    TEXT
    CHANGE
    00XXXXXXXXXX
    SAVE

Maybe you are looking for