Mass upload of Sales Text

Hi I have an issue were I need to upload a text message for around 1000 customers.
I mention the text in Sales Data --> Extras --> Text.
The text lengh is around is 75 letters. So i am planning to use the long text filed.
Now my doubt is:
1) How can I upload the data for 1000 customers. In XD99 (mass change) I could not find this field.
    So where can i upload this.
2) If I use the long text using the word file, Will it appear in Sales Order and printout.
Please kindly help me in this.
Regards,
DSK

In case it is a 1 time effort go for a LSMW recording. it wont restrict you to enter maximum number of characters. Also whatever is in the customer master it will get copied to SO based on Text determination. It will even copy a whole word document.

Similar Messages

  • Mass upload of sales orders in crm

    Hi gurus,
    Could any one help me out in mass upload of sales orders in CRM
    thanks in advance
    Regards
    [email protected]

    Hi Nitin,
    From which system do you want to mass upload Orders to CRM? If its from a connected R3 sysem, you can use Middleware adaptors to do it.
    If your data is in form of files, then you can use an abap program to do the same. If you want to write an ABAP program , do let me know & I could tell you the useful FMs.
    - Alin

  • To upload into sales text in MM01

    Hi,
    In MM01 i have to upload sales text from .xls format.
    I tried using BDC for it but i dont think it works bcos
    in session method (SHDB) the sales text part will not get
    recorded since the sales text field does not have field name for it.
    Can anybody tell me how to upload the sales text ( in text editor) from excel file.
    Thank you,
    Deepak

    hi
    this is regarding to the topic which i posted yesterday for loading long text in mm01 in sales text.
    DATA: l_head LIKE thead.
    DATA: t_lines TYPE TABLE OF TLINE WITH HEADER LINE.
      l_head-tdid = '0001'.
      l_head-tdspras = 'E'.
      l_head-tdname = record-matnr_001.
      l_head-tdobject = 'MVKE'.
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        header                = L_HEAD
       INSERT                = 'X'
       SAVEMODE_DIRECT       = 'X'
       tables
        lines                 = T_LINES
    from the above sample code i think the text has to be stored in the internal table t_lines.
    but over here t_lines in empty.
    can anybody tell me what the error is????
    With regards
    Deepak

  • Mass Upload OF Inforecord Text

    Dear All,
    Pelase let me know any way is available to upload INFORECORD TEXT in MASS.
    Like price, date by using LSMW or MASS/MESSAIN.If it is available in LSMW, pl let me know the procedure to do it..
    Please help me out.
    Regards,
    Nagaraj S
    Edited by: Nagaraj  S on Jan 1, 2010 1:39 PM

    it is certainly possible to load long text to info records with LSMW.
    double click a long text in an existing info record to get to the long text editor. beeing there choose from menu GOTO > header
    to find the key. Usually the info record number with leading zeros, plus the organisation (evtl. including plant) plus the info record indicator.
    Then define a standard direct input with object 0001 and method 0001 in LSMW
    more details can be read here:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/fb/787039172511d2b428006094b944c8/frameset.htm

  • Mass Upload Of Sales Orders

    Hi all,
    Is there any tool/technique in SAP with the help of which I can upload mass sales orders in the SAP system? Each order contains a minimum of 10 line items.
    Regards,
    Allabaqsh G. Patil

    Hi Allabaqsh,
    I would recommend CATT tool for mass updation especially when a lot of tables would have to be updated while creating a sales order. The CATT tool would use the normal transaction screens like how an user would be creating an order so it is much more safe and if there is any error during the updation it is easier for tracing them..
    Regards
    Nadarajah Pratheb

  • Uploading Sales Text Through BDC

    hi friends,
    i want to upload Material Sales Text Through BDC Program.
    Please let me know how to do this.
    regards,
    srinivas

    hi friends,
    i want to upload Material Sales Text Through BDC Program.
    Please let me know how to do this.
    regards,
    srinivas

  • Mass maintenance of Long Text in Material Master

    Hi,
    We require to do mass uploading of long text in Basic Data 1 view, Sales Text view, Purchase Order Text view for a particular material type.
    Is there any tcode to do the same?
    We tried creating BDC / LSMW for the same but it did not work.
    Since one of our division is going live shortly, we need to do master data upload urgently. No. of records are more.
    Hence pl. suggest what is to be done.
    Regards
    Ratna Palit

    Hi Ravi,
    Pl refer the part of coding in BDC given below, we are passing 5 text lines thro 5 diff cols. It is entering the line value and symultaneously replacing the content of previous line with that of current line.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'RSTXT-TXLINE(02)'.
    *perform bdc_field       using 'BDC_OKCODE'
                                 '=EDNP'.
    perform bdc_dynpro      using 'SAPLSTXX' '1100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RSTXT-TXLINE(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=EDNP'.
    perform bdc_field       using 'RSTXT-TXLINE(02)'
                                  ITAB-TXLINE2.  "'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
                                "& "'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'.
    perform bdc_dynpro      using 'SAPLSTXX' '1100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RSTXT-TXLINE(03)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=EDNP'.
    perform bdc_field       using 'RSTXT-TXLINE(03)'
                                  ITAB-TXLINE3. "'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB'
                                "& 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB'.
    perform bdc_dynpro      using 'SAPLSTXX' '1100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RSTXT-TXLINE(04)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=EDNP'.
    perform bdc_field       using 'RSTXT-TXLINE(04)'
                                  ITAB-TXLINE4. "'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'
                                "& 'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'.
    perform bdc_dynpro      using 'SAPLSTXX' '1100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RSTXT-TXLINE(05)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=EDNP'.
    perform bdc_field       using 'RSTXT-TXLINE(05)'
                                  ITAB-TXLINE5.  "'DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD'
                                "& 'DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD'.
    perform bdc_dynpro      using 'SAPLSTXX' '1100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RSTXT-TXLINE(06)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TXVB'.
    perform bdc_field       using 'RSTXT-TXLINE(06)'
                                  ITAB-TXLINE6.  "'EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE'
                                "& 'EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE'.
    perform bdc_dynpro      using 'SAPLSTXX' '1100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RSTXT-TXLINE(07)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TXBA'.
    perform bdc_dynpro      using 'SAPLMGMM' '4300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  'test ztrd6'.
    *perform bdc_transaction using 'MM02'.
    PERFORM bdc_insert.
    CALL TRANSACTION 'MM01' USING bdcdata MODE 'N' UPDATE 'S'.
    Pl. help.
    Regards
    Ratna Palit

  • Uploading sales text and Purchase order text for material master

    Hi,
      I have created, material master with LSMW  byt not updated SALES TEXT and Purchase order text with LSMW  now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text  when i have done the recording with SHDB  i have not found filed in recording.
    regards,
      zafar

    Hi,
    I have made the code in se38
    as below but still it is not working
    REPORT  ZTEST_TEXT.
      data: headerl like thead occurs 0 with header line.
      data itab3 like tline occurs 0 with header line.
    headerl-tdobject = 'MATERIAL'.
    headerl-tdname = '00000000000LSMW123'.          "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
    headerl-tdid  = 'BEST'.
    headerl-tdspras = 'E'.
    append headerl.
    move '*' to itab3-tdformat.
    move 'Testing PO text' to itab3-tdline.
    append itab3.
    call function 'SAVE_TEXT'
      exporting
        header                = headerl
      insert                = ' '
       savemode_direct       = ' '
      tables
        lines                 = itab3
    exceptions
       id                    = 1
       language              = 2
       name                  = 3
       object                = 4
       others                = 5.
       IF SY-SUBRC = 0.
         CALL FUNCTION 'COMMIT_TEXT'
           EXPORTING
                OBJECT   = headerl-tdobject
                NAME     = headerl-tdname.
       ENDIF.
       break-point.
    regards,
    zafar

  • LSMW, to upload material sales long text , MM02

    Hi
    I have not been able to upload long the long text of the material master record related to view Sales text (see tcode MM02). The upload should use the tcode LSMW, below is the steps that I used to create my LSMW codes:
    Step 1: Maintain Object attributes
    Object : 0001
    Method: 0001
    Program name: /SAPDMC/SAP_LSMW_IMPORT_TEXTS
    Program type: D
    Step 2: Maintain source structure
    I create two structures
    MAT_LONGTEXT (Material Long text)
    TEXT_LINES (Text lines)
    Step 3: Sources fields
    MAT_LONGTEXT with 3 fields: Identifier (C, 1, H), MATNR (C, 18, material), TXTID (C, 132, Text ID)
    TEXT_LINES with 2 fields:  IDENTIFIER (C, 1, I), LINE (text Line)
    Step 4: Field Mapping and rule
    OBJECT:
    constant, /SAPDMC/LTXTH-OBJECT = 'MVKE'.
    NAME:
    Source: MAT_LONGTEXT-MATNR (Material)
    Move, /SAPDMC/LTXTH-NAME = MAT_LONGTEXT-MATNR.
    ID:
    Source: MAT_LONGTEXT-IDENTIFIER (Identifier)
    Move, /SAPDMC/LTXTH-ID = MAT_LONGTEXT-IDENTIFIER.
    SPRAS : Language Key
    Constant, /SAPDMC/LTXTH-SPRAS = 'E'.
    TXTFORMAT:
    Constant
    /SAPDMC/LTXTL-TEXTFORMAT = '*'.
    TEXTLINE :
    Source:  TEXT_LINES-LINE (Text Line)
    Move,  /SAPDMC/LTXTL-TEXTLINE = TEXT_LINES-LINE.
    please help

    I had these settings before, but nothing happened ...
    Here is the code:
    *& Report  ZREADVERTRIEBSTEXT
    REPORT  ZREADVERTRIEBSTEXT.
    data : tbody like TLINE occurs 0 with header line.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT                        = SY-MANDT
        ID                            = '0001'
        LANGUAGE                      = SY-LANGU
        NAME                          = '5007093           101101'
        OBJECT                        = 'MVKE'
    *    ARCHIVE_HANDLE                = 0
    *    LOCAL_CAT                     = ' '
    *  IMPORTING
    *    HEADER                        =
      TABLES
        LINES                         = tbody
    *  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.

  • Upload sales text for material master using LSMW direct input method

    Hello Experts,
    I was trying to upload sales text for a material master using LSMW direct input method.
    I followed the following steps for the same
    Tab dlimited Text file format
    MATNR           LONGTEXT                                                     LINE       
    MATERIAL1    LONGTEXT FOR MATERIAL MATERIAL1       1
    Step1 -> Maintain object attributes
    Object -> 0001
    Method-> 0001
    Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
    Program type -> D
    Step2 -> Maintain Source Structure
    Source structure -> LONG_TEXT            Source structure for long text
    Step 3-> Maintain souce file
    Source Fields
    ZLONG_TEXT             Source structure for long text
                           MATNR                         C(018)    MATNR
                           LTEXT                          C(132)    LTEXT
    Step 4-> Maintain structure relationship
    Structure Relations
    /SAPDMC/LTXTH Long Texts: Header                                           <<<< ZLONG_TEXT Source structure for long text
                  Select Target Structure /SAPDMC/LTXTH .
    /SAPDMC/LTXTL Long Texts: Row                                              <<<< ZLONG_TEXT Source structure for long text
                 Select Target Structure /SAPDMC/LTXTL .
    Step 5-> Maintain Field mapping and conversion rules
    Here i have assigned constan rules to couple of them like
    /SAPDMC/LTXTH                  Long Texts: Header
    Fields
       OBJECT                Texts: Application Object
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTH-OBJECT = 'MVKE'.
       NAME                  Name
                                    Source:  ZLONG_TEXT-MATNR (MATNR)
                                    Rule :   Transfer (MOVE)
                                    Code:    /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
       ID                         Text ID
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTH-ID = '0001'.
       SPRAS                 Language Key
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTH-SPRAS = 'E'.
    /SAPDMC/LTXTL                  Long Texts: Row
      Fields
        TEXTFORMAT     Tag column
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTL-TEXTFORMAT = '/'.
        TEXTLINE             Text Line
                                    Source:  ZLONG_TEXT-LTEXT (LTEXT)
                                    Rule :   Transfer (MOVE)
                                    Code:    /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
    Step6 -> Specify file
    Legacy Data          On the PC (Frontend)
                 Data                           D:\Sales_Longtext.txt
    Step7 -> Assign File
    ZLONG_TEXT Source structure for long text
                  Data D:\Sales_Longtext.txt
    Step8 -> Read data
    Output result
    Source Structure             Read      Written        Not Written
    ZLONG_TEXT              1                1              0
    Transactions Read:            1
    Records Read:                   1
    Transactions Written:         1
    Records Written:                 1
    Step 8 -> Display read data
    Field Name                    Field Text Field Value
    MATNR                          MATNR      MATERIA1
    LTEXT                            LTEXT      SALES TEXT FOR Material MATERIAL1
    Step 9 -> Convert data
    File Read:          ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
    File Written:       ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Transactions Read:                 1
    Records Read:                        1
    Transactions Written:              1
    Records Written:                     2
    Step 10 -> Display converted data
    1 /SAPDMC/LTXTH                   1MVKE      MATERIAL1                                                                   0001E
    2 /SAPDMC/LTXTL                   2/ SALES TEXT FOR Material MATERIAL1
    Step 11 -> Start direct input program
    Output result for the same
    Legacy System Migration Workbench
    Project:                              ZNRD_PRJ1       ORH
    Subproject:                        ZNRD_SUBPRJ2    Upload long text
    Object:                               ZNRD_LTEXT      Long text tru direct input
    File :                                   ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Long Texts in Total:                                1
    Successfully Transferred Long Texts:  1
    Non-Transferred Long Texts:                 0
    Now when i check the material master sales view -> sales text it is empty.
    Please help me with the same.
    Regards,
    Ranjith N

    Hello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
    I followed the following steps for the same
    Tab dlimited Text file format
    MATNR             LONGTEXT                                              LINE
    MATERIAL1     LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
    Step1 -> Maintain object attributes
    Object -> 0001
    Method-> 0001
    Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
    Program type -> D
    Step2 -> Maintain Source Structure
    Source structure -> LONG_TEXT Source structure for long text
    Step 3-> Maintain souce file Source Fields
    ZLONG_TEXT Source structure for long text
    MATNR C(018) MATNR
    LTEXT C(132) LTEXT
    Step 4-> Maintain structure relationship
    Structure Relations 
    /SAPDMC/LTXTH Long Texts:  Header <<<< ZLONG_TEXT Source structure for long text
    Select Target Structure
    /SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
    Select Target Structure /SAPDMC/LTXTL .
    Step 5-> Maintain Field mapping and conversion rules
    Here i have assigned constan rules to couple of them like
    /SAPDMC/LTXTH Long Texts: Header
    Fields
    OBJECT            Texts: Application Object
                             Rule : Constant
                              Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
    NAME               Name
                             Source: ZLONG_TEXT-MATNR (MATNR)
                             Rule : Transfer (MOVE)
                             Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
    ID                     Text ID
                             Rule : Constant
                             Code: /SAPDMC/LTXTH-ID = '0001'.
    SPRAS             Language Key
                             Rule : Constant
                            Code: /SAPDMC/LTXTH-SPRAS = 'E'.
    /SAPDMC/LTXTL Long Texts: Row
    Fields
    TEXTFORMAT  Tag column 
                             Rule : Constant
                             Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
    TEXTLINE          Text Line
                             Source: ZLONG_TEXT-LTEXT (LTEXT)
                             Rule : Transfer (MOVE)
                             Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
    Step6 -> Specify file Legacy
    Data On the PC (Frontend)
                 Data D:\Sales_Longtext.txt
    Step7 -> Assign File ZLONG_TEXT
    Source structure for long text
              Data D:\Sales_Longtext.txt
    Step8 -> Read data
    Output result
    Source Structure            Read                Written                Not Written
    ZLONG_TEXT                  1                       1                            0
    Transactions Read          1
    Records Read:                1
    Transactions Written:      1
    Records Written:             1
    Step 8 -> Display read data
    Field Name             Field Text                      Field Value
    MATNR                    MATNR                         MATERIA1
    LTEXT                     LTEXT                            SALES TEXT FOR Material MATERIAL1
    Step 9 -> Convert data
    File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
    File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Transactions Read:    1
    Records Read:           1
    Transactions Written: 1
    Records Written:         2
    tep 10 -> Display converted data
    1 /SAPDMC/LTXTH     1    MVKE        MATERIAL1 0001   E
    2 /SAPDMC/LTXTL     2/   SALES TEXT FOR Material       MATERIAL1
    Step 11 -> Start direct input program
    Output result for the same
    Legacy System Migration Workbench Project:
    ZNRD_PRJ1  ORH
    Subproject:   ZNRD_SUBPRJ2     Upload long text
    Object:          ZNRD_LTEXT          Long text tru direct input
    File :              ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Long Texts in Total:                                1
    Successfully Transferred Long Texts:  1
    Non-Transferred Long Texts:                0
    Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
    Regards,
    Ranjith N

  • Upload purchase order text through LSMW

    Please tell me procedure for uploading sales order & purchase order text in material master through lsmw

    Hi
    Long Texts are stored in STXH table with 4 parameters TEXTNAME,OBJECT,ID and LANGUAGE
    You can't find the complete text in any table
    You will find these 4 parameters in the table STXH.
    Texts are created using the fun module CREATE_TEXT and SAVE_TEXT and these texts are fetched using READ_TEXT fun module
    For uploading these long texts using LSMW see
    for Long texts Upload
    Please take a look at this..
    http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Mass upload of batch chracteristic Values using LSMW

    Hi,
    Is there any way from which I can mass upload the characteristic values of batch class.
    LSMW- Bapi issue full in this case or have to go with recording or BAPI programming?
    Please let me know the process.
    Thanks in advance
    Ravi Kumar

    Hi
    Thanks For the help. I have used LSMW Direct input method.
    I have used the below format in text file
    Class/mat    batch             class                              char                                 Char Value
    023     Bunny 1011010     ZZ_COTTON_CLASS     ZZ_BALE_QUANTITY     164.95
    023     Bunny 1011011     ZZ_COTTON_CLASS     ZZ_BALE_QUANTITY     164.61
    023     Bunny 1011012     ZZ_COTTON_CLASS     ZZ_BALE_QUANTITY     162.71
    Its giving below error,
    Error Changing Classification Data
    Other
    ( CLAP_DDB_UPDATE_CLASSIFICATION: exception    13  )
    023 Bunny 1011010                                      ZZ_COTTON_CLASS
    Error Changing Classification Data
    Other
    ( CLAP_DDB_UPDATE_CLASSIFICATION: exception    13  )
    023 Bunny 1011011                                      ZZ_COTTON_CLASS
    Thanks & Regards
    Ravi Kumar

  • Mm02 - Sales text view update?

    Hi Friends,
    I am working on the material master change (i.e MM02 transaction) and I need to upload Material master u2013sales text view and purchase order text view and all other additional data views.
    I have updated one material in recording mode (i.e through SHDB transaction).
    I am unable to find the sales text field name. But I find BDC_SUBSCR in my recording.
    Pls find the below recording log.
    SAPLMGMM     4040     X                                                                               
    BDC_OKCODE               =BU
                BDC_SUBSCR               SAPLMGMM                                 2010TABFRA1
                BDC_SUBSCR               SAPLMGD1                                1004SUB1
                MAKT-MAKTX               test material desc XXX
                BDC_SUBSCR               SAPLMGD1                                2121SUB2
    Pls let me know how to update sales text view and po text view in MM02 transaction.
    Thanks in advance.
    Regards
    raghu

    You have to use FM SAVE_TEXT to upload sales text and purchase order test.
    You can't record a BDC for custom controls like text editor.
    MOVE V_MATNR TO tname-tdname.
    MOVE 'MARA' TO TNAME-TDOBJECT.
    MOVE 'SL1 TO TNAME-TDID.
    MOVE SY-LANGU TO TNAME-TDSPRAS.
    APPEND TNAME
    TXTLINES-TDFORMAT = '*'.
    TXTLINES-TDLINE = 'This is your purchase order text'.
    APPEND TXTLINES.
    CLEAR TXTLINES.
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    HEADER = TNAME
    INSERT = 'X'
    SAVEMODE_DIRECT = 'X'
    *OWNER_SPECIFIED = ' '
    *LOCAL_CAT = ' '
    IMPORTING
    *FUNCTION =
    NEWHEADER = TNAME
    TABLES
    LINES = TXTLINES
    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.
    ENDIF.

  • Problem for uplaoding sales text using LSMW

    Hi,
    I have use LSMW for uplaoding material masters sales and purchase order text ,  first I have done for purchase order text  with object : MATERIAL  and ID : BEST  it works fine for this  after that when I am trying same for uploading sales text    OBJECT : MVKE  and ID : 0001  it is picking file proerly  and till final BDC step it is not giving any error  but  in material master  sales text is not getting updated for that material.
      what canb be the problemm
    also for pO text for matnr i have given only material code  18 Chr.
    and for sales text  i hva egiven MATNR + SALES ORG. + DISTRIBUTION CHANNEL  as it required for sales text.
    regards,
      zafar

    Dear Zafar,
    I found a similar problem while uploading Porduction order long text. May be this information is useful for you.
    The common task of changing the long text of a production orderu2019s operation can bring some surprises.
    The first problem that is usually encountered is that after updating the long text with the function SAVE_TEXT, the new text is not visible in standard SAP transactions like CO03. The new text can be read with the function READ_TEXT though. The trick is that SAP uses the u201Clong text existsu201D indicator, the field TXTSP in the table AFVC. To make the text u201Cvisibleu201D to standard transactions, we have to set the TXTSP value to the current language (or the textu2019s language). Unfortunately, this has to be done with the direct UPDATE on the AFVC u2013 there are no known workarounds.
    Another problem can be seen when the same order is processed by users that use different languages. While SAP allows to store the long text for the same operation in several languages, actually, only one text object will be active at the same time in regard to standard transactions u2013 the object in the last saved language. That means, when SAP writes the text back, the TXTSP will be overwritten with the current language (say, language A). If the next user is working in another language (language B), SAP will present the text in the u201Cfirstu201D language (A) in the CO03 (even if the text in language B exists!). But after saving, the text will be written in the new language and TXTSP will be set accordingly.
    So, when working with long texts directly, you have to read with READ_TEXT using the language stored in TXTSP, NOT with the current language. When saving, you save in the current language and set the TXTSP to the current language. This way you are consistent with what SAP does and this will prevent you from surprises in a multilingual environment.
    Regards,
    Kamal

  • Mass upload of commodity code VEU4

    Hi,
    While doing Mass uploading of commodity codes using VEU4 for Non European Clountry, for the Additional Info field NIHON , system by default generates =2 but our requirement it has to have a default value=0 which is to be used for both Import and Export.
    How to make the field NIHON value=0?
    Is it in the Text file or somewhere in the config?
    Regards,
    Vengat

    Hi Jurgen,
    Thanks Very much, it helped.
    Actual my requirement is to load the Commodity codes with the Field NIHON = 0 so that the commodity can be used for both Import and Export.
    If I upload the text file in VIU4, by default system takes to NIHON = 1,
    If I upload the text file in VEU4, by default system takes to NIHON = 2.
    As mentioned in the OSS 1034696
    If you confirm the dialog box with 'Yes', the system checks whether the 'Additional information' indicator of the old entry and the new entry are set differently. If this is the case, the system sets the 'Additional information' field to value 0 (Receipt / Import and Dispatch / Export).
    Hence I have to execute the file in VIU4 or VEU4 for the first time to mass load of the commodity code ( by default it takes 1 or 2)
    So to change the value from 1 or 2 to 0, need to execute the same file second time with YES in the dialog Box for the same data.
    Note sure why SAP is so rigid here in this field NIHON as the same can be one of the Selection field.
    Regards,
    Vengat
    Edited by: Vengata Raghavan on Aug 12, 2011 4:54 PM
    Edited by: Vengata Raghavan on Aug 12, 2011 4:55 PM

Maybe you are looking for