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

Similar Messages

  • Sales Text of material master using create_text

    Hi All,
    I need to update Sales Text field for existing materials in material master.
    (mm02->sales Text view>sales text)
    This text will be of 40-50 char length.
    Now if i use CREATE_TEXT with following paramters, no text is getting updated in the material master.
    Import Paramters:
    FID: 0001
    FLANGUAGE: EN
    FNAME: <material no><sales org><Dist channel>
    FOBJECT: MVKE
    SAVE-DIRECT : X
    FFORMAT: *
    Tables:
    FLINES: <Sales text>
    After execution of this FM, no error message is popped up.
    Is it the right way to update the sales Text or any changes need to be done in defining paramters in Function module?
    Kindly Guide me.....
    Regards
    Pavan

    MArtin,
    Can you inform me what all paramters to be passed in SAVE-TEXT module?
    Regards
    Pavan

  • Material Master upload - LSMW direct input method - Internal Number problem

    Dear friends,
    I am uploading material masters with LSMW - Direct Input Method.
    The materials have internal numbers.
    I have four plants and I want to extend the same material in all plants.
    But LSMW is creating a new material for each row.
    Is there any way out or any indication I put in file to repeat the internal numbers created for all other plants?
    I can create another LSMW for material extension. But I want to know whether the problem can be solved in the current LSMW?
    Regards,
    Avinash

    http://www.sap123.com/a/98/
    Check the internal number range once.... before extending mateial...

  • Problem while Creating BOM using LSMW Direct Input

    Hi  all ,
    I am trying to create the BOM Using LSMW Direct Input Method .
    I am getting problem at step 9 that is Read Data.
    It is able to read the values from header and item files .
    but it is not able to write , so the Written is 0 always .
    I put the field names first in the flat file and correcponding values below it with tab delimited.
    Please let me know where the Problem would be.... I am trying this from long time ..
    Regards ,
    Raj

    hi ,
    Yes i am specify files i am attaching 2 files .
    ones is header and the other is line item data .
    my strucure is :
    Hi ,
    I am still getting problem while for writing the records after reading the data .....
    my header structure :
    STYPE
    MATNR
    WERKS
    SELAL
    STLAN
    DATUV
    ZTEXT
    my item structure :
    STYPE
    MATNR
    WERKS
    SELAL
    POSTP
    MENGE
    my header data :
    STYPE     MATNR     WERKS     SELAL     STLAN     DATUV     ZTEXT
    1     388     0110     20     1     06.01.2009     SAMPLE ZTEXT     
    my item data :
    STYPE     MATNR1     WERKS     SELAL     POSTP     MENGE
    1     388     0110     20     N     1234
    1     382     0110     20     N     12345
    Above text files are delimited by tabulator.
    Please guide me . The files are reading but unable to write .....
    Regards,
    Raj

  • Lsmw direct input method for ct04

    Hello Friends,
    Im using lsmw direct input method RCCTBI01 obj 0150 method 000 for creating characteristics value.
    In lsmw im getting erro at "specify file" stage as "no logical path has been specified. I have come to conclusion tht i have to define some logical path in FILE transaction code but im not clear what needs to be done .
    Pls let me know how to define logical file path for ct04 transaction.
    Regards,
    Sunny

    Hi,
    First choose or create a directory by selecting say TMP as the logical file path and then click the assignment of physical paths to logical paths.Double click your operating system eg. UNIX then specify the directory followed by a generic filename e.g. /tmp/<FILENAME>
    Now click logical file name definition and create a new name, say ZCT04_FILE give the logical path as TMP and then specify the file name e.g. CT04.TXT and the format ASC.
    The file will then be created as /tmp/CT04.TXT
    Regards,
    Darren

  • LSMW - Direct Input Method - AS91 - RAALTD11

    Hi All,
    I am trying to master data upload of assets into SAP. I am doing it using LSMW - Direct Input method.
    I am getting a lot of errors:
    - No valid cost center was entered --- Whereas the cost center entered is valid.
    - Unexpected record type: B --- whereas I have not specified any record type.
    - Company code 0315 already contains assets in the number range T4 --- Whereas I have run the LSMW only for company code 0312 and with just a single record.
    - And many more such errors.
    Please advise if I am doing something wrong.
    Also I want to know to which field shall I pass the Cumm Acquis Val and the Net Book Value.
    I want to know the corresponding fields in the BALTD and BALTB structures for these fields.
    My flat file contains the below fields:
    - ANLKL    Asset Class
    - BUKRS   Company Code
    - TXT50     Description
    - AKTIV    Capitalized On
    - KOSTL   Cost Center
    - ORD42    Allowed Capital Allowances?
    - EAUFN   Investment Order
    - NDJAR   Planned Useful Life in Years
    - NDPER  Planned Useful Life in Periods (months)
    - NDABJ   Expired Useful Life in Years
    - NDABP  Expired Useful Life in Periods (months)
    - ??    Cumm Acquis Value
    - ??    Net Book Value
    I don't know how to map the last two fields. Although I could find another field ANBTR01 in BALTB structure. But then which field tomap to this structure and to which field shall I map the remaining one.
    Please advise.
    Thanks & Regards,
    Namrata

    Hi All,
    I have now removed the BALTB structure and am filling only teh BALTD structure. I am not getting any errors and  the asset is getting created.
    But when I go and check for the asset in AS93 / AS92, the depr areas (planned and expired life in years and planned and expired life in periods) are not getting populated in SAP. Also in the Takeover Values tab, ***.acquis.val and the Net book value fields are not getting populated.
    Below is the mapping of all the fields:
    BALTD-MANDT = 600 (GETTING POPULATED ITSELF)
    BALTD-BUKRS = SOURCE-BUKRS
    BALTD-ANLKL = SOURCE-ANLKL
    BALTD-TCODE = AS91 (HARDCODING IN LSMW)
    BALTD-RCTYP = A (GETTINGPOPULATED ITSELF)
    BALTD-AKTIV = SOURCE-AKTIV
    BALTD-ORD42 = SOURCE-ORD42 (ALWD)
    BALTD-EAUFN = SOURCE-EAUFN
    BALTD-TXT50 = SOURCE-TXT50
    BALTD-KOSTL = SOURCE-KOSTL
    Below are the dep areas fields values and the takeover values.
    BALTD-NDJAR01 = SOURCE-NDJAR01 (PLANNED LIFE IN YEARS)
    BALTD-NDPER01 = SOURCE-NDPER01 (PLANNED LIFE IN PERIODS)
    BALTD-NDABJ01 = SOURCE-NDABJ01 (EXPIRED LIFE IN YEARS)
    BALTD-NDABP01 = SOURCE-NDABP01 (EXPIRED LIFE IN PERIODS)
    BALTD-KANSW01 = SOURCE-KANSW01 (CM.ACQUIS.VALUE - IN TAKEOVER VALUES TAB)
    BALTD-KANSW02 = NET BOOK VALUE IN TAKEOVER VALUES TAB.
    BALTD-WRTMA = SOURCE-WRTMA (SUGGESTED BY SOMEONE ON SDN FOR NET BOOK VALUE)
    None of the above dep areas and takeover values fields (fields in bold) are getting populated in SAP.
    Please help and advise how to proceed with this.
    Regards,
    Namrata

  • LSMW Direct input method: 0150 Characteristics with Values

    I am trying to upload several characteristics with Values using LSMW Direct Input method 0150.I have defined 2 level structure for Characetristic header and values. Have set the relevant indicators as 1 for characterisitc data and 2 for Values. I have set the T-code to CT04.I am trying to upload the data but only Characteristic data is getting generated and not the values. Can anyone help me out as to what may be the reason.
    The fields I have in my uploading template is as below:
    LINK     NAME     DESCRIPT     STATUS     FORMAT     LENGTH     DECIMALS     UNIT     WERT
    1     TON     WEIGHT LIFT CAPACITY     1     NUM     8     0     ton     
    2                                        20
    2                                        50
    2                                        60
    2                                        70
    2                                        100
    The Fields I have mapped in Source structre are:
    Source Fields
            CHARACTERISTIC            PM Characteristics
                LINK                           C(001)    Identify Field Content:1
                                               Identifing Field Content: 1
                NAME                           C(030)    Characteristic Name
                DESCRIPT                       C(030)    Characteristic description
                STATUS                         C(001)    Status of a characteristic
                FORMAT                         C(004)    Data Type
                LENGTH                         C(002)    Number of Characters
                DECIMALS                       C(002)    Number of Decimal Places
                UNIT                           C(006)    Unit of Measure, Language-
                CHARACTVALUE              Characterisitc Values
                    LINK                           C(001)    Identify field content
                                                   Identifing Field Content: 2
                    BLANK1                         C(001)    Blank1
                    BLANK3                         C(001)    Blank3
                    BLANK2                         C(001)    Blank2
                    BLANK4                         C(001)    Blank4
                    BLANK5                         C(001)    Blank5
                    BLANK7                         C(001)    Blank7
                    BLANK6                         C(001)    Blank6
                    WERT                           C(030)    Characteristic Value
    Source Structure is:
    Source Structures
            CHARACTERISTIC           PM Characteristics
             CHARACTVALUE             Characterisitc Values
    Structure relation is as below:
    Structure Relations
            BGR00 Batch Input Structure for Session Data                       <<<< CHARACTERISTIC PM Characteristics
                  Select Target Structure BGR00 .
                BIMST Batch input for characteristics                              <<<< CHARACTERISTIC PM Characteristics
                      Select Target Structure BIMST .
                    BIMZW Batch Input: Allowed Characteristic Values                   <<<< CHARACTVALUE   Characterisitc Values
    Can anyone help me resolve this issue.....
    Thanks in advance
    Murad

    Hi,
    Go through this links its might helpfull to you.
    Re: Porblem during characteristics LSMW
    Assigning Characteristics to a class using LSMW
    Issues Uploading Characteristics Data into SAP Using LSMW
    LSMW: CHaracteristics Load
    Thank you,

  • LSMW - DIrect Input Method --PO

    HI All,
    I am using LSMW Direct input method to upload Purchase orders.But my probelm is i am using Two files for header and items. In my case i have to upload so many Purchase orders with multiple item data at a time.
    Example.
    Header file
    H1  ......
    H2 .......
    H3 ......
    H4 ......
    Item File
    I1  ....
    I1 ....
    I2 ....
    I2 ....
    I3 ....
    I3 ....
    I3....
    I4....
    But my question is How the program will identify Which items are related to particular Header.
    Please help me on this.
    What will be the identification for header and item.
    Thanks in advance,
    Bhanu P R Gattu.

    I usually use a single file for both header and item:
    When you specify your source file, contents must be "Data for Multiple Source Structures (Seq. File)", and header record must precede item(s) record(s):
    H1
    I1-1
    H2
    I2-1
    I2-2...
    Regards,
    Guillermo.

  • LSMW direct input method - Equipment BOM

    Hi Experts,
    We have already written program for equipment BOM master in LSMW direct input method. I do not know about this direct input method.
    Here they have maintained 2 source structures and relavant source fields. one for BOM header and other for BOM items. The first field they maintained is LINK in both the source fields. I really do not know what that field is all about. I checked in step specify files and found that they have previously mentioned two files, one for BOM header and other for BOM items. but when I tried to save in this step it gives me error that " No logical path specified". Can anybody tell me what is this error is all about.Please heip me to get out of this problem.
    Thanks and best regards,
    Praveen

    Hi praveen,
    LSMW does not accept two files.
    In the step create source strcture
    crte one structure with BOM header like with ZBOM_H.
    Under that create another structure for item ZBOM_I.
    ZBOM_H
      ZBOM_I like this structure will will be.
    In the step source fields.
    crate onne variable with indicatoe header.While creating the variable we have field 'identify field content ' field in pop up screen 'H'.
    assign all header files under identifier 'H'.
    then under ZBOM_I create identifier with 'I'.
    Assign all the item fields to this.
    then map the fields.
    In the file should be H header fields.
                                  I item fields.
                                  I
                                  I.
    Then Header .It should be like this.
    in saptechnical u will get the examples go though them once.
    Thanks

  • 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

  • How to upload PO text of material master ?

    dear gurus,
    how to upload PO text in material master in mass , can i use LSMW or BDC ? if yes then how?
    I have done the recording but LSMW is not working for PO text.
    Upesh khairnar.

    Hi!
    try using Purchasing Inforecord for this. in here you maintain master data linkage for Material Master and Vendor Master. You will just have to input the Material Number, the Vendor Account, and the Purchasing Org. In here you can maintain the PO text defaulted per Material Number. After the maintenance of Inforecord, the PO text will be reflected on the PO document.
    Here is the ff Transaction Code:
    - ME11 (Create Inforecord)
    - ME12 (Change Inforecord)
    - ME13 (Display Inforecord)
    Hope this helps, Thank you.
    Mik

  • Sales Text in material master

    Hi All,
    I am creating material master using LSMW.
    i am using lsmw with recording option.
    After recording, i am unable to find the the sales text field in the recorded code.
    How to find out?
    Regards
    Pavan

    Hi
    U can t access the sales text and PO text directly.
    U have to use the Function modules READ_TEXT, CREATE_TEXT, DELETE_TEXT.
    U have to pass TDID,
                           TDOBJECT
                           TDNAME
                           TD SPRAS
    to the above Fun Mods to read/ create/ delete the long text.
    Narendra

  • Sales text on Material master

    Hi,
    Can sombody let me know the logic to determine the  Sales text from material master. I need to poppulated the material desc field on the order with the sales text.
    I tried using STXH and FM read_text, but i doesn't help.
    Thanks in Advance guys

    Hi,
    Do you want the Text from the Material master to be copied into the ORDER CONFIRMATION Output ?
    If so then you can try with the  READ _TEXT  function module.
    If you want to copy the text maintained in the Material master to Sales order then try VOTXN transaction as suggested above
    thanks,
    santosh

  • LSMW Direct Input Method - Change Documents

    Hello experts,
    Could anyone please tell me how to enable the change documents(not just runtime) for LSMW direct Input method? There is also one option "Change Documents" in the last step of the process, will this write into any table that I see the changes later If I run the last step with selected this  option? If yes, What are the application (customer master data, vendor master data, material master data, etc) specific tables?
    Is there anyway that I could populate this method changes into the CDHDR & CHPOS tables?
    SAP documenation on this:
    To enter the data into the *corresponding database tables directly*, the system calls a number of function modules that execute any necessary checks. In case of errors, the direct input technique provides a restart mechanism
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/fa/097174543b11d1898e0000e8322d00/content.htm
    Since this tool writing data into database tables directly skips the CDHDR & CDPOS recording..
    Is there any other possible way for the complete change logs (change pointers???)? ( Or only table logging?)
    Please share your experience on this.
    Thanks,
    Himadama

    No response received..

  • LSMW FOR MATERIAL MASTER USING BAPI_MATERIAL_SAVEDATA -Adding Custom Fields

    Hi Gurus,
    I'm developing LSMW for Material Master Upload using BAPI method.
    Object:BUS1001006
    BAPI:BAPI_MATERIAL_SAVEDATA
    MESSAGE TYPE: MATMAS_BAPI
    BASIC TYPE : MATMAS_BAPI03.
    There is a requirement to use/map a custom field. Upon research custom field can be added to the parameter EXTENSIONIN and EXTENSIONINX, but I have no Idea on how to do it with LSMW. Please advise what approach is needed.
    Thanks and Regards,
    Jay

    Hi Gurus,
    I got the following code below.
    The custom field won't get updated.... Please advise on what should I do... I've checked different forums and still can't come up with the solution... Please advise..
    REPORT ztest_extend_matmas1.
    STRUCTURE
    TABLES:
    bapimathead, "Headerdata
    bapi_mara, "Clientdata
    bapi_marax, "Clientdatax
    bapi_marc, "Plantdata
    bapi_marcx, "Plantdatax
    bapi_makt, "Material description
    bapiparex, "Extensionstruktur
    bapiparexx,
    bapiret2. "Return messages
    DATA:
    bapi_te_mara LIKE bapi_te_mara,
    bapi_te_marax LIKE bapi_te_marax,
    v_file TYPE string.
    INTERNAL TABLE
    *to store the output data
    DATA:BEGIN OF it_material_number OCCURS 0.
            INCLUDE STRUCTURE bapimatinr.
    DATA:END OF it_material_number.
    *for materialtext
    DATA:BEGIN OF it_materialdesc OCCURS 0.
            INCLUDE STRUCTURE bapi_makt .
    DATA:END OF it_materialdesc.
    *für z-feld
    DATA:BEGIN OF it_bapiparex OCCURS 0.
            INCLUDE STRUCTURE bapiparex.
    DATA:END OF it_bapiparex.
    *für z-feldx
    DATA:BEGIN OF it_bapiparexx OCCURS 0.
            INCLUDE STRUCTURE bapiparexx.
    DATA:END OF it_bapiparexx.
    *to return messages
    DATA:BEGIN OF it_return2 OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA:END OF it_return2.
    DATA:BEGIN OF it_return OCCURS 0.
            INCLUDE STRUCTURE bapiret1.
    DATA:END OF it_return.
    DATA
    lt_messages      TYPE bapiret2_t.
    PROCESSING
    *bapimathead-material = it_material_number-material.
    bapimathead-material = '100-2520'.
    bapimathead-ind_sector = 'P'.
    bapimathead-matl_type = 'AEM'.
    bapimathead-basic_view = 'X'.
    bapimathead-purchase_view = 'X'.
    bapimathead-inp_fld_check = 'I'.
    *bapimathead-BASIC_VIEW = 'X'.
    *bapimathead-SALES_VIEW = 'X'.
    *bapimathead-PURCHASE_VIEW = 'X'.
    *bapimathead-MRP_VIEW = 'X'.
    *bapimathead-FORECAST_VIEW = 'X'.
    *bapimathead-WORK_SCHED_VIEW = 'X'.
    *bapimathead-PRT_VIEW = 'X'.
    *bapimathead-STORAGE_VIEW = 'X'.
    *bapimathead-WAREHOUSE_VIEW = 'X'.
    bapi_mara-matl_group = '0001'.
    bapi_mara-old_mat_no = '100-251'.
    bapi_mara-base_uom = 'ST'.
    bapi_marax-matl_group = 'X'.
    bapi_marax-old_mat_no = 'X'.
    bapi_marax-base_uom = 'X'.
    bapi_marc-plant = '1000'.
    bapi_marcx-plant = '1000'.
    it_materialdesc-langu = 'EN'.
    it_materialdesc-matl_desc = 'DESC'.
    APPEND it_materialdesc.
    *bapi_te_mara-material = it_material_number-material.
    bapimathead-material = '100-2520'.
    *bapi_te_mara-zzforst = '4148'.
    bapi_te_mara-material = '100-2520'.
    bapi_te_mara-zzmar_field1 = '4148'.
    *bapi_te_marax-material = it_material_number-material.
    bapimathead-material = '100-2520'.
    *bapi_te_marax-zzforst = 'X'.
    bapi_te_marax-material  = '100-2520'.
    bapi_te_marax-zzmar_field1 = 'X'.
    it_bapiparex-structure = 'BAPI_TE_MARA'.
    it_bapiparex-valuepart1 = bapi_te_mara.
    APPEND it_bapiparex.
    it_bapiparexx-structure = 'BAPI_TE_MARAX'.
    it_bapiparexx-valuepart1 = bapi_te_marax.
    APPEND it_bapiparexx.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata            = bapimathead
        clientdata          = bapi_mara
        clientdatax         = bapi_marax
        plantdata           = bapi_marc
        plantdatax          = bapi_marcx
      IMPORTING
        return              = it_return2
      TABLES
        materialdescription = it_materialdesc
        extensionin         = it_bapiparex
        extensioninx        = it_bapiparexx
        returnmessages      = lt_messages.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    THanks and Regards,
    Jay
    Edited by: jhayyy on May 17, 2011 6:54 AM

Maybe you are looking for

  • EXCEL ONLINE - Automaticly refresh data in excel from the online data

    Hi Love some help with this one QUESTION Is their anyway 5 users can use excelonline fileA and also keep a uneditable version fileA open in desktop excel and manually refresh the desktop version to see the latest version of the document in uneditable

  • Select * query with alias

    Hi there, I want to retrive all the field with select * from table query but i just wnt to give alias for one column is there any ways to do this?

  • Does BT support more than one Vision+ box in one h...

    My teenage son was given a BT Vision+ box for Christmas for his own room.  As a family we already have a BT vision box in the living room.  But The new box seems to have 'taken over' the older box.  All of our recordings disappear and reappear on the

  • Headset SBH52 Notification Volume Problem

    Hello. I can not hear the notifications or hear the spoken message when I receive. By the time I get the alert facebook for example, the volume is down automatically to almost 0, and when the message finished talking the volume returns to normal. I'm

  • Worried about My new Hardrive in my T400 :(

    Hello I just got an Hitachi HardDrive http://www.newegg.com/Product/Product.aspx?Item=N82E16822145275 When I installed it and restored evrt with the DVD, I noticed that the Hard Drive is always doing a small ( small) vibration, it is not really annoy