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

Similar Messages

  • 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

  • Longtext for Routing

    HI,
    I am USing LSMW to upload the longtext for Recipe for transaction C202.
    I am using the
    Object               0001   Long texts
    Method               0001
    to upload the long text and it shows that the data is transfered but when i see the transaction C202 i dont see the long text being updated.
    i have checked that i have passed all the values like TDNAME, TObjectas Routing, TDID as PLKO corrctly.
    Kindly please help why the long text is ot updated or for routing some prior steps are required.
    Thanks

    Hi SAP gurus,
    I have also tried ity with the save_text FM but it doesnt work.
    see the sample code below.
    DATA: e_header  TYPE thead,
      i_header  TYPE TABLE  OF thead,
            w_tline   TYPE tline,
      i_tline   TYPE TABLE  OF tline,
      wa_tline TYPE tline.
    e_header-tdobject =  'ROUTING'.
    e_header-tdid =  'PLKO'.
    e_header-tdspras = sy-langu.
    *   e_header-tdlinesize =  72.
    e_header-tdname =  '1002DE0015070300000003'.
    wa_tline-tdformat = '*' .
    APPEND wa_tline TO i_tline.
    wa_tline-tdline = ' longtext test after the read statemaent'.
    APPEND wa_tline TO i_tline.
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        client          = sy-mandt
        header          = e_header
        savemode_direct = 'X'
    *    INSERT        = 'X'
      TABLES
        lines           = i_tline
      EXCEPTIONS
        id              = 1
        language        = 2
        name            = 3
        object          = 4
        OTHERS          = 5.
    IF sy-subrc <>  0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
      CALL FUNCTION 'COMMIT_TEXT'
        EXPORTING
          object          = e_header-tdobject
          name            = e_header-tdname
          id              = e_header-tdid
          language        = e_header-tdspras
          savemode_direct = 'X'.
      COMMIT WORK AND WAIT.
    *    UPDATE PLKO SET TXTSP = sy-langu
    *    where
    *PLNNR = 'DE001507' AND PLNAL = '02'.
    ENDIF.
    With LSMW it doesnt wrk also with ABAP code its not working .

  • Uploading data for Tcode IW21

    Hi,
    I want to upload data for the Tcode IW21,I tried to make BDC but i was giving only 1 problem that it is not able to capture the screen for Long Text as it is used as script handling.i am able to find a BAPI but i dont know how to use it,i tried to do work through LSMW but there is no information. Pleas provide me guidelines how to solve this problem.. I am providing the link to the code which i had developed(BDC) for the tcode IW21 .
    Here's the code:-
    http://docs.google.com/View?id=dfxswwff_3gtn9qsdp
    Edited by: ricx .s on Jun 24, 2009 6:24 AM

    hi,
    Thanks for your help. Can i use BAPI to upload data for IW21 and how to trace the fields of a BAPI to upload the data .
    Here's the code which i searched on net bu there is no information regarding the fields tobe traced and should i include it in my code which i had provided above ?
    data: i_bapi2080_nothdri type standard table of bapi2080_nothdri with header line.
    data: i_bapiret2 type standard table of bapiret2 with header line.
    data: i_bapi2080_nothdre type standard table of bapi2080_nothdre with header line.
    data: i_bapi2080_notfulltxti type standard table of bapi2080_notfulltxti with header line.
    * create header data
    i_bapi2080_nothdri-refobjectkey = 'PJAREF'.
    i_bapi2080_nothdri-equipment    = '10000030'.
    i_bapi2080_nothdri-reportedby   = 'PJAREP'.
    i_bapi2080_nothdri-short_text   = 'PJA Short Test from BAPI'.
    i_bapi2080_nothdri-priority     = '1'.
    * create header long text
    i_bapi2080_notfulltxti-objtype    = 'QMEL'.
    i_bapi2080_notfulltxti-FORMAT_COL = 'U1'.
    i_bapi2080_notfulltxti-text_line  = 'Long text 1'.
    append i_bapi2080_notfulltxti.
    i_bapi2080_notfulltxti-objtype    = 'QMEL'.
    i_bapi2080_notfulltxti-FORMAT_COL = 'U1'.
    i_bapi2080_notfulltxti-text_line  = 'Long text 2'.
    append i_bapi2080_notfulltxti.
    call function 'BAPI_ALM_NOTIF_CREATE'
      exporting
    *   EXTERNAL_NUMBER          =
        notif_type               = 'M1'
        notifheader              = i_bapi2080_nothdri
    *   TASK_DETERMINATION       = ' '
    *   SENDER                   =
    *   ORDERID                  =
    importing
        notifheader_export       = i_bapi2080_nothdre
    tables
    *   NOTITEM                  =
    *   NOTIFCAUS                =
    *   NOTIFACTV                =
    *   NOTIFTASK                =
    *   NOTIFPARTNR              =
        longtexts                = i_bapi2080_notfulltxti
    *   KEY_RELATIONSHIPS        =
        return                   = i_bapiret2.
    call function 'BAPI_ALM_NOTIF_SAVE'
      exporting
        number            = i_bapi2080_nothdre-notif_no
    * IMPORTING
    *   NOTIFHEADER       =
    * TABLES
    *   RETURN            =
    call function 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    Please provide me guidelines for it.Is there any way to upload  the data for this Tcode IW21 through LSMW?
    Edited by: ricx .s on Jun 24, 2009 10:20 AM

  • 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

  • How do I create an 'upload facility" for my website using Muse.

    How do I create an 'upload facility" for my website using Muse.  We are a print company and is how we receive most of our work.
    Iain

    Hey Iggy,
    These might help:
    Muse
    http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-muse-what-is-business-catalyst
    http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-muse-creating-and-publishing-sites
    -Dave

  • 'Activation error..' message when uploading rules for multiple territories

    Hi All,
    When trying to upload rules for multiple territories using Excel, only a few territories get activated and for the rest an error saying 'Activation Error for Function <hexadecimal values>...N: see following message for details' is displayed. It was found that this is due to the territories getting locked.
    The create_rule() and save_rule() methods of CL_CRM_FDT class and FM  CRM_TERRMAN_LINK_BUFFER_UPDATE are used for this functionality.
    Kindly suggest some ways to unlock or any other alternatives.
    Thanks & Regards
    Jagathshree

    Hi Leonie,
    Thanks for your reply.
    Error message below. The preview is fine . I can discount the first 2messages as its a new computer so plenty of disk space and upload doesn't seem to be interrupted. I have uploaded to iphoto before. have tried to upload 3times with the same error message. I had to photo my slides with a Kaiser Baas photo maker , which apparently doesn't scan but takes photos in megapixels of the slides. I am wondering now if the format is incompatible though they are jpg files or the colour type wrong. The image files are  around 1-3 mb each and  72 ppi. I think  I will now scan them properly with a scanner to 300dpi anyway to improve quality.
    Apple  talks about image files not being too big for uploading but gives no sizing of what too big is?
    Error message
    1. Upload Error. Loss of connection or file corruption during order upload may cause an incomplete order. Resubmitting your order usually resolves this issue.
    2. Low Disk Space. If your computer is running on low disk space, your files may be assembled incorrectly. Create more space by deleting unused files.
    3. Unreadable PDF file or image files. Files are sometimes assembled incorrectly due to CMYK or Grayscale color space. Use the RGB color space for best results.

  • Upload program for Vendor master Partner Data in XK02 needed info

    Hello Experts,
    I need to write data uplaod program for XK02 for vendor master Partner functions. ( Basically we created some custom partner functions and attach it to many existing vendors ).
    So kindly advice me which is the suitable upload method for this.
    1) There is no BAPI available for editing vendors.
    2) BDC is not possible because the Vendor partner screen is having table control and some records are already filled. (No of row not fixed).
    Is there any IDOC available or any standard input pgm?
    Please give suggestion.
    Thanks and rgds,
    Anand

    For the IDOC perspective, you can uses CREMAS.
    For the mass maintenance you still have XK99 (which also uses CREMAS internally)
    True there is NO BAPI
    For the BDC and the table control. Well this is not really true.
    In batchinput, instead of maintaining the rows by there Number, you should select it at the first position.
    OK-CODE /06 will open a selection screen SAPMF02K 2324. The result of the selection screen goes to the first line of the table control.
    Of course this works only in BDC
    reward points if helpful
    Edited by: Alain Bacchi  on Jun 18, 2008 8:48 AM

  • Need upload program for Vendor master partners (XK02)

    Hello Experts,
    I need to write data uplaod program for XK02 for vendor master Partner functions. ( Basically we created some custom partner functions and attach it to many existing vendors ).
    So kindly advice me which is the suitable upload method for this.
    1) There is no BAPI available for editing vendors.
    2) BDC is not possible because the Vendor partner screen is having table control and some records are already filled. (No of row not fixed).
    Is there any IDOC available or any standard input pgm?
    Please give suggestion.
    Thanks and rgds,
    Anand

    Hi,
    You can use LSMW --> Vendor Master which supports bothe XK01 and XK02.
    This is a standard Batch input program (RFBIKR00). Look at this program documentation for more info.
    Regards
    Sudhir Atluru

  • Need to create a mass upload program for appraisal document creation for multiple employee

    Hi Expertise,
    I need to create a mass upload program for appraisal document creation for manager and his multiple employee
    at a time using tcode appcreate.
    Please help me out.
    Best regards,
    Priyaranjan

    Hi Priyaranjan,
    I think you can take the abap'ers help in creating the program. But u need to provide them the exact functionality and the required specifications in creating the appraisal document.
    Even tcode also u can get it prepared by Abap'ers.
    Thanks and Regards
    Balaji

  • Need to create a mass upload program for appraisal document creation for multiple employee in abap hr

    Hi Expertise,
    I need to create a mass upload program for appraisal document creation for manager and his multiple employee
    at a time using tcode appcreate.
    Please help me out.
    Best regards,
    Priyaranjan

    Hi,
    I have done appraisal document creation for bulk using txt file.
    this fm used for single for creation in standard tcode (phap_prepare):  'WZ_HRHAP_0DOC_WZ01_START'.
    So create ztcode  usinh this fm for single form then record BDC for this tcode and called this tcode in that bdc for bulk creation .
    While recording for single I have used manual option instead of automatic .

  • FM for creating longtexts for BP ?

    Hello forum,
    is there an fm for creating/changing longtexts for a business partner ?
    We have customized longtext fields for business partners and now we want to fill them
    with data, but I haven't found anything.
    Hope someone can help me !
    Best regards
    Gerd

    hi, in same to ERP,  in CRM  save the long text need to call function  'SAVE_TEXT'
    several parameter is important to call it, 
    LINES   the contents of your long text
    HEADER  it include the text ID  text language,  text name (normally the name is the document number, in your case it is the BP ID)
    text object(you must know it when you configure the long text)
    if you don't know very clear how to call it, you can set a breakpoint in it, change a long text in SAP GUI or WEB UI to trigger, and  search out how SAP standard call it.

  • Upload request for Quotation  from external data (ME47)

    Hi is there a easy way to upload request for change in SAP from external data.
    Maybe a functionmodule or BAPI.
    Like for transaction ME41 ME42 ME47 etc.
    Edited by: J. Paulina on Sep 23, 2008 3:55 PM

    For things to happen automatically, you'll need to use JavaScript. To import a record, you use the importTextData document method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.502.html
    Note that it can't work with Reader and it must be placed in a trusted function in a folder-level JavaScript file.
    To print programmatically, use the print method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.511.html
    So the script could loop through the records, printing after each one populates the fields.

  • Customized LSMW (Batch Input Recording) to upload data for Vendor

    Hello Fiends,
       can u help me on this object and how to upload in xk01.
            Customized LSMW (Batch Input Recording) to upload data for Vendor Master using Transaction code XK01
    With best wishes,
    Chandu.
    Point will be rewarded....

    Hi,
    Go through the following link, you will find your answer
    http://www.sapbrain.com
    Regards,
    Bhaskar

  • Why can't I buy and upload pages for my ipad2

    why can't I buy and upload Pages for my Ipad2? get error message not compatible with this ipad

    pages v1.5 needs iOS5. So update the IDevice to the latest OS.

Maybe you are looking for