Uploading longtext

Hi,
  I want to upload lontext(purchase order text) by using LSMW.
  In my input file, there are 2  longtext for a particular material number.While I am uploading, first lontext is overwritting by second longtext.
I am using the program  '/SAPDMC/SAP_LSMW_IMPORT_TEXTS' .
How can I solve this problem??Please help me.......
Regards,
Tintu

Hi,
Check with the field mapping as suggested by the other friend of ours. If mapping is correct then try paasing the  first line as blank and then the two lines of your long text which you want to upload. I had faced the same issue and I could solve the same this way.
Reward if you find the answer useful!
Regards,
Lalit Kabra

Similar Messages

  • How can we upload longtext data in BDC?

    Hi All,
    i want to upload data for a transaction QA11.
    In that i have to upload data for fields
    QALS-PRUEFLOS',
    RQEVA-VCODEGRP,
    RQEVA-VCODE'
    and one text field (255) is there in that transction.
    How can i update that text(255) in to database from internal table.
    ie.how can i upload longtext in BDC.?
    Regards,
    Ravi.

    Hi,
    The uploading of the long text into the transaction can be done in the same way as you do it for other fields. If the flat file from which you upload contains the long text refer that field in your recording and the field would get uploaded into the transaction.
    For updating in the database table use the insert statement in case of new records to be updated or the modify statement in case of altering the already existing records in the DB table.
    Reward points if helpful.
    Thanks,
    Archana
    Edited by: Archana Sirsi on Apr 10, 2008 9:30 AM

  • Uploading longtexts for Routings

    Hi,
      I want to upload longtexts for Routing(for each operation)
      by using LSMW object.
      I am using standard Batch input object(0170-Routing) and   method(0001- Batch Input).But longtexts are not uploading.
    How can I solve this problem?
    Edited by: TINTU on Jan 3, 2008 12:13 PM

    Hai,
    Check this.
    Re: upload longtext from excel file  
    REPORT  zupload_excel_to_itab.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
          wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_file
        TABLES
          i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 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.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3.
      ENDLOOP.
    http://www.sapdevelopment.co.uk/file/file_upexcel.htm
    Regards.
    Sowjanya.b

  • Upload longtext in QP01 transaction ?

    Hi All,
    I need to upload long text in qp01 transaction...can anyone tel me how to do it.....both the long text and other data has to be uploaded in a single program or ..... ? can you people tel the procedures involved ?
    thanks,
    Siva

    BDC - Creating Inspections Plans using T-Code QP01
    cheers
    Aveek

  • Material PO text  in Material Master upload

    Hello,
    I want to upload the Material Master and want to upload the Material PO text field as well How do i upload this field. I cant find any technical name of the field nor any field in the object while uploading thru LSMW ?  Kindly respond.
    Thanks,
    Shehryar Dahar

    Hi
    see this
    Re: upload longtext from excel file  
    REPORT  zupload_excel_to_itab.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
          wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_file
        TABLES
          i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 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.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3.
      ENDLOOP.
    http://www.sapdevelopment.co.uk/file/file_upexcel.htm
    Reward  if useful
    Regards
    Anji

  • ECATT for data upload

    Hi,
    We want to use ECATT for data upload. We have created test script, test data container and test configuration. We are uploading the variants from external file from EDIT-> variants-> Upload. But does the text file need to have different variant names against each data record as this becomes cumbersome.  Also for parameter fields which have fixed value, needs to be available in text file with the value?
    Is there any other method for data uploading using ECATT?
    Prashant

    Hi,
    For your later questions I will answer as your previous questions are well answered by others.
    For parameters with fixed values, you dont need to put it in the external file but only if you have used the Fixed values against the Parameter in the test script .
    In Ecatt, TCD Recording mode is widely used.It is comparively faster when compared to SAPGUI Method.
    SAPGUI is very slow. SAPGUI method can be used if you need to upload longtext or if you need to record Active X Controls as these cannot be handled by TCD Method.

  • Problem with long text

    Hi folks,
    iam uploading longtext in transaction KP06 in bdc programing using create_text.
    now my problem is if i pass selection criteria
    case 1:
    Vertion : N0
    fiscal year : 2007
    planner profile: CCPLAN4
    then the budeget plan data uploading successfully along with long text.
    case2: Vertion : N1
    in this case also everthing wrking fine
    case3: Vertion : 001
    in this case budgetplan data uploading sucessfully but longtext is not uploading,
    i debbug the proragm , create_text also returning sy-subrc = 0. but if i check in KP06  the long text is not there.
    data declaration
    vertion : VERSN type C(3)
    can u tell me the problem is in logic or with FM ?
    note : i checked with save_text also.
    regards
    neeru

    HI Naimesh,
    the FM Create_text internally contains both FMs save_text and commit_text,
    even i debug the FM in case of vertion N1, N0 and 001,
    all the cases sy-subrc = 0.
    code:
    CLEAR G_OBJNR.
    LOOP AT RECORD.
    COST = RECORD-BDC01.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = COST
        IMPORTING
          output = COST.
        CONCATENATE 'KS' p_kokrs record-bdc00 INTO g_objnr.
            SELECT SINGLE * FROM COSP WHERE OBJNR = g_objnr
                              AND GJAHR = P_GJAHR
                              AND VERSN = p_ver
                              AND KSTAR = COST.
      IF SY-SUBRC = 0.
          LEDNR = COSP-LEDNR.
          OBJNR = COSP-OBJNR.
          GJAHR = COSP-GJAHR.
          WRTTP = COSP-WRTTP.
          VERSN = COSP-VERSN.
          KSTAR = COSP-KSTAR.
          HRKFT = COSP-HRKFT.
          VRGNG = COSP-VRGNG.
          VBUND = COSP-VBUND.
          PARGB = COSP-PARGB.
          BEKNZ = COSP-BEKNZ.
          TWAER = COSP-TWAER.
    CONCATENATE LEDNR OBJNR INTO OBJNR.
    CONCATENATE OBJNR GJAHR INTO TNAME1 separated BY SPACE10.
    CONCATENATE TNAME1 WRTTP VERSN INTO TNAME2.
    CONCATENATE TNAME2 KSTAR INTO TNAME3 separated BY SPACE.
    CONCATENATE TNAME3 VRGNG INTO TNAME4 separated BY SPACE4.
    CONCATENATE TNAME4 BEKNZ INTO TNAME5 separated BY SPACE10.
    CONCATENATE TNAME5 TWAER INTO TNAME.
    I_THEAD-TDOBJECT = 'CCSS'.
    I_THEAD-TDID = 'COSP'.
    I_THEAD-TDNAME = TNAME.
    I_THEAD-TDSPRAS = 'E'.
    APPEND I_THEAD.
    i_tline-tdformat = '*'.
    I_TLINE-TDLINE = RECORD-LONGTEXT.
    APPEND I_TLINE.
    loop at i_thead.
    CALL FUNCTION 'CREATE_TEXT'
      EXPORTING
        FID               = I_THEAD-TDID
        FLANGUAGE         = I_THEAD-TDSPRAS
        FNAME             = I_THEAD-TDNAME
        FOBJECT           = I_THEAD-TDOBJECT
      SAVE_DIRECT       = 'X'
      FFORMAT           = '*'
      TABLES
        FLINES            = i_tline
    EXCEPTIONS
      NO_INIT           = 1
      NO_SAVE           = 2
      OTHERS            = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.
    CLEAR I_TLINE.
    REFRESH I_TLINE.
    CLEAR I_THEAD.
    REFRESH I_THEAD.
      SELECT SINGLE * from cokp into itab WHERE OBJNR = g_objnr
                              AND GJAHR = P_GJAHR
                              AND VERSN = p_ver
                              AND KSTAR = COST.
    if sy-subrc = 0.
       itab-TXFLG = 'X'.
       append itab.
       write:/ 'Text saved for', record-bdc00 , record-bdc01.
       else.
          write:/ 'Text saved for', record-bdc00 , record-bdc01.
          ENDIF.
    ENDIF.
    my program wrking fine but the long text is not visible for vertion 001.
    regards
    niru

  • LSMW - LF as record separator

    Hi,
    I want to use LSMW to upload longtexts to SAP. Source file is an excel spreadsheet with two columns containing the material no and the longtext. If the longtext contains more lines each line is separated by an LF (word wrap within cell in excel)!
    If I now save the excel file as TXT file and upload it in LSMW each CRLF and LF is recognized as "end of record indicator", but I only want CRLF as "end of record indicator"!?
    Can I prevent LSMW from handling each LF as "end of record indicator"?
    Thanks & Regards
    Daniel
    Edited by: Daniel Brack on Aug 3, 2010 2:01 PM
    I just found the solution by myself. Take a look at note 1464980 - GUI_UPLOAD: Line break LF was accepted!

    Hi,
    I want to use LSMW to upload longtexts to SAP. Source file is an excel spreadsheet with two columns containing the material no and the longtext. If the longtext contains more lines each line is separated by an LF (word wrap within cell in excel)!
    If I now save the excel file as TXT file and upload it in LSMW each CRLF and LF is recognized as "end of record indicator", but I only want CRLF as "end of record indicator"!?
    Can I prevent LSMW from handling each LF as "end of record indicator"?
    Thanks & Regards
    Daniel
    Edited by: Daniel Brack on Aug 3, 2010 2:01 PM
    I just found the solution by myself. Take a look at note 1464980 - GUI_UPLOAD: Line break LF was accepted!

  • How to get the long text into text area

    Hi,
    save_text is working fine .
    Now I want to display the text in text area .
    am using read_text fm for this and data is coming into the internal table of the function module.
    how shd I display that long text into text area and that text shld appear has display mode only and how shd I make all other fields in my subscreen as display mode.
    Pls guide me its urgent.
    thanks,
    krishna

    Hai.
    check this.
    Long Texts are stored in tables
    STXH - header
    STXL - details.
    if you want to read the texts you can use Fun Module  READ_TEXT
    Any Application document Header and Item Long texts are stored in STXH table with the 4 parameters OBJECT,ID,NAME and LANG
    These texts are fetched from database using READ_TEXT fun module by passing the above 4 parameters.
    Double click on the text, from the text editor menu GOTO-> HEDAER
    you will find the all above 4 parameters
    so accordingly you have to pass to the fun module READ_TEXT to fetch the texts.
    example:
    Re: upload longtext from excel file  
    REPORT  zupload_excel_to_itab.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
          wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_file
        TABLES
          i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 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.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3.
      ENDLOOP.
    refards.
    sowjanya.b

  • Need help in Uploading the  longtexts in IE02

    Hi all..
    I got a requirement to upload some long texts of Equiment ( IE02 )...
    The long texts are contained in an excel file..
    have downloaded the excel file to internal table...and using create_text and Commit_text function modules..tried to upload the data...
    But the problem is...when I run the loop..the text are sucessfully uploaded..but when I checked in IE02--> at longtexts ...
    I found only the last record there...
    Frm this I got to know that the records are overwritten with one another...only the last record is displayed..
    please help me out hw to upload all the texts without overlapping.. following is the sample code...
    LOOP AT it_input INTO wa_input.
        READ TABLE it_input1 WITH KEY name     = wa_input-name
                                      object   = wa_input-object
                                      id       = wa_input-id
                                      language = wa_input-language
                                      text     = wa_input-text.
        REFRESH : it_tline .
        LOOP AT it_input1 WHERE id       EQ wa_input-id
                            AND language EQ wa_input-language
                            AND name     EQ wa_input-name
                            AND object   EQ wa_input-object
                            AND text     EQ wa_input-text..
          it_tline-tdformat  = '*' .
          it_tline-tdline    = it_input1-text .
          APPEND it_tline .
        ENDLOOP.
        CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
          EXPORTING
            input  = wa_input-name
          IMPORTING
            output = wa_input-name.
        CALL FUNCTION 'CREATE_TEXT'
            EXPORTING
              fid               = wa_input-id
              flanguage         = wa_input-language
              fname             = wa_input-name
              fobject           = wa_input-object
    *        SAVE_DIRECT       = 'X'
              fformat           = ' '
            TABLES
              flines            = it_tline
            EXCEPTIONS
              not_found         = 4
              OTHERS            = 8  .
        IF sy-subrc EQ 0.
          CALL FUNCTION 'COMMIT_TEXT'
            EXPORTING
              object = wa_input-object
              name   = wa_input-name.
        ENDIF.
    ENDLOOP.
    Sample file..
    Equipment     Object     TDID     Language     Text
    20014418     EQUI     LTXT     EN     035-05 EXZENTER-SCHNECKENPUMPE
    20014418     EQUI     LTXT     EN     LIEFERANT     : SOCSIL-INTER SA  ECUBLENS
    Your help will be highly appreciated..
    Thanks,
    Priya

    try the below code..
    data: li_text type standard table of swastrtab.
      data: wa_text type swastrtab.
        LOOP AT it_input1 WHERE id       EQ wa_input-id
                            AND language EQ wa_input-language
                            AND name     EQ wa_input-name
                            AND object   EQ wa_input-object
                            AND text     EQ wa_input-text..
           clear : li_text[], wa_text.
      call function 'SWA_STRING_SPLIT'
        exporting
          input_string                 = it_input1-text
          max_component_length         = '70'
        tables
          string_components            = li_text
        exceptions
          max_component_length_invalid = 1
          others                       = 2.
      loop at li_text into wa_text.
        if sy-tabix = 1.
          it_tline-tdformat = '*'.
          clear wa_text-str+0(2).
        else.
          it_tline-tdformat = '='.
        endif.
        t_tline-tdline  = wa_text-str.
        APPEND it_tline.
      endloop.
        ENDLOOP.

  • Uploading Basic Data Longtext into Material Master

    Hi Experts,
    While creating material master i need to upload Basic Data Long text into material master.
    For this iam using a BDC.How we can get this long text into sap systen and how we will update in material master.

    Hi,
    you can use the below function module instead of Save_text..
    BAPI_MATERIAL_SAVEDATA.
    in the above function module
        headdata-material = matnr.
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
          EXPORTING
            headdata             = headdata   "contains materail number
          IMPORTING
            return               = return
          TABLES
            MATERIALLONGTEXT = t_longtext   "pass long text here
            returnmessages       = returnmessages.
    Prabhudas

  • Basic Data Upload to MATERIAL  Using LSMW is not working

    HI All,
      we are using LSMW    /SAPDMC/SAP_LSMW_IMPORT_TEXTS  program to upload the  basic text of the material, all steps are executed correctly and shows  records are transfered correctly , but the  in MM03 the text is not uploading..
    EPROC_PILOT - MASTER - TEXT_UPLOAD Basic long text 1line
    Field Mapping and Rule
            /SAPDMC/LTXTH                  Long Texts: Header
                Fields
                    OBJECT                       Texts: Application Object
                                        Rule :   Constant
                                        Code:    /SAPDMC/LTXTH-OBJECT = 'MATERIAL'.
                    NAME                         Name
                                        Source:  LONGTEXT-NAME (Name)
                                        Rule :   Transfer (MOVE)
                                        Code:    /SAPDMC/LTXTH-NAME = LONGTEXT-NAME.
                    ID                           Text ID
                                        Source:  LONGTEXT-ID (Text ID)
                                        Rule :   Transfer (MOVE)
                                        Code:    /SAPDMC/LTXTH-ID = LONGTEXT-ID.
                    SPRAS                        Language Key
                                        Source:  LONGTEXT-SPRAS (Language Key)
                                        Rule :   Transfer (MOVE)
                                        Code:    /SAPDMC/LTXTH-SPRAS = LONGTEXT-SPRAS.
                                                 * Caution: Source field is longer than target field
                /SAPDMC/LTXTL                  Long Texts: Row
                /SAPDMC/LTXTL                  Long Texts: Row
                    Fields
                        TEXTFORMAT                   Tag column
                                            Rule :   Constant
                                            Code:    /SAPDMC/LTXTL-TEXTFORMAT = 'L'.
                        TEXTLINE                     Text Line
                                            Source:  LONGTEXT-TEXTLINE (Text Line)
                                            Rule :   Transfer (MOVE)
                                            Code:    /SAPDMC/LTXTL-TEXTLINE = LONGTEXT-TEXTLINE.
    and at last it displaying as follws
    LSM Workbench: Convert Data For EPROC_PILOT, MASTER, TEXT_UPLOAD
    2010/02/01 - 10:14:25
    File Read:          EPROC_PILOT_MASTER_TEXT_UPLOAD.lsmw.read
    File Written:       EPROC_PILOT_MASTER_TEXT_UPLOAD.lsmw.conv
    Transactions Read:                    1
    Records Read:                         1
    Transactions Written:                 1
    Records Written:                      2
    can any one tell us what could be problem
    Regards
    Channappa Sajjanar

    Hi , thanks for your reply,
      i run the all the steps .
      when i run the program it gives message as follows
    Legacy System Migration Workbench
    Project:                              EPROC_PILOT     eProcurement Pilot
    Subproject:                           MASTER          Master data Upload / Change
    Object:                               TEXT_UPLOAD     Basic long text 1line
    File :                                EPROC_PILOT_MASTER_TEXT_UPLOAD.lsmw.conv
    Long Texts in Total:                  1
    Successfully Transferred Long Texts:  1
    Non-Transferred Long Texts:           0

  • Error while uploading Long Text in IA05 through BDC.

    Dear Team,
    Good Day.
    While we are trying to upload the Long Text through BDC for IA05 operations  the text is updating in Database but it is not visible in the long Text field. Is it possible to upload the long text through BDC or any bapi's which can be used for the same. Any configuration needed for this please do the needful.
    Regards,
    Bhanu.

    Bhanu,
    I've modified the previous message with a correction that, I had used this for uploading Activity lines Longtexts.
    One more thing: After I faced some problem, I used split text  in the code. i.e., Splitting the longtext into several lines (72 char each). Show these code lines to your ABAPer, may be he might be able to draw some clues.
    In the BDC lines alongwith other fields the gold line below
    PERFORM FILL_BDC_DATA       USING  ' '  ' '  ' '  'BDC_OKCODE'  '=MX07'.
    PERFORM FILL_BDC_DATA       USING  ' '  ' '  ' '   'BDC_CURSOR' 'QMICON-LTAKTION(07)'.
    PERFORM FILL_BDC_DATA       USING ' '  ' '  ' '   'VIQMMA-MATXT(07)' FS_FIELD-MNTXT7.
    PERFORM SPLIT_LONGTEXT USING COL_COUNT.
    Code for Form SPLIT_LONGTEXT is attached herewith (MATXT1 to MATXT7 are longtext split into 7lines )
    Best of luck
    KJogeswaraRao

  • How to download and upload long text for project, WBS , Network,

    Hi all,
    I have two isssues.
    1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
    BAPI_PROJECTDEF_GETDETAIL
    BAPI_PROJECT_GETINFO
    BAPI_NETWORK_GETINFO
    BAPI_BUS2054_GETDATA
    I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
    The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
    2)  I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
    All help will be greatly appreciated and rewarded.
    Thanks & Regards,
    Rajanidhi Rajasekeran.

    I don't think there is any BAPI to do it.
    We are doing it by read_text & edit_text . required fields for text name can be fetched by following select
      if not e_activity[] is initial.
        select aaufnr aaufpl baplzl bobjnr b~vornr
          into corresponding fields of table t_longtext
          from afko
            as a
        left join afvc
            as b
            on aaufpl = baufpl
           for all entries in  e_activity
           where a~aufnr = e_activity-network
           and a~aufnr is not null.
      endif.
          txtname = wa_longtext-objnr.
          replace c_nv in txtname with sy-mandt.

  • Problem with OPERATION TEXT(LTXA1) uploading using BDC For C202 Transaction

    Hi Experts,
    Im presently doing a BDC for the trransaction C202 (Change Master Recipe),my task was to upload the 'OPERATION TEXT' field PLPOD-LTXA1 which is actually Long text to an existing master recipe from a flat file during updation of the 'OPERATION TEXT the number of lines i was able to were 34 which we number lines on the displayed page and while updating the 35th line using the concept of bdc table control it is failing to insert the update text.
    I used all the ok codes but failed to update more than 34 lines.So,can someone tell me how to update the longtext beyound it.
    This is the Screenshot of my problem:
    [BDC_C202_error|http://www.freeimagehosting.net/uploads/79af6bac49.jpg]
    Thanx in advance.

    Hi,
    There is a better way of doing the long text upload in SAP. In your BDC, if I change the text editor, the BDC will not work.
    Hence ,
    Use function module " Save_Text" to update long texts in SAP.
    Please check its FM documentation or perform a search for this FM in SDN for more clarity.
    Write back in case you face further issues.
    Regards,
    Rijuraj
    Edited by: Rijuraj Raju on Sep 10, 2010 3:05 PM

Maybe you are looking for