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.

Similar Messages

  • LSMW to upload Material Characteritics and BOM info

    Hi,
    I am using LSMW to upload Material Characteristic and BOM info for the first time. It would be of great help if someone can provide me with an example with screenshots. Thanx in advance for your help.
    Sachin

    Hi Sachin,
    1) BOM and Classification Datacan not be uploaded together.
    We have Standard Programs available to these uplaods.
    BOM upload
    Object - 0030
    method -0001
    Program - RCSBI010(AUTOMATIC)
    Classification uplaod
    Object -0130
    Method- 0002
    Program-RCCLBI03
    http://www.megaupload.com/?d=578KUG4X
    please follow the link and download  the file.
    It has all the critical steps, screen shots, sample load file.
    let me know if it helps.
    Have fun,
    Satheesh.

  • Error in doing LSMW for uploading in Sale order

    Dear Sir,
    While doing test run for LSMW for uploading 15 Sale order , first order saved with no error and from second order the following error is displayed.
    Exchange rate of 1 in INR 2  for date 25.05.2009 3 could not be determined.
    Kindly do the needfull.

    Sir,
    If we manually enter, order getting saved for all the sale order.
    Why it is not possible while doing LSMW. 
    Please clarify.
    Regards
    Sethuraman

  • How to upload and download Long text for WBS, Project, 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.

    One thread in the correct forum is good enough, no need to double post across ABAP forums.  Thanks.
    Regards,
    Rich Heilman

  • LSMW - RMDATIND Upload material master

    Hi All,
    I'm using LSMW direct input method (RMDATIND) to upload material master. However, I'm having issues on uploading material prices (eg: moving average price) where the format uploaded was incorrect.
    LSWM Data Source I've declared for VERPR (Moving Average Price) is character with 14 Length size. Values populated in upload file is eg: 132.93.
    The value been created in material master is-> 13  293,00.
    Can anyone advise on this issues? Is there any wrong to input value or data source declaration? Thanks.

    Hi Blue Sky,
    execute the whole process of LSMW in direct input  and go to SM35 to check and process the session manually,,
    -Regards
    Sid

  • Cannot upload QM Catalog long text

    All,
    Can you help with entering QM catalog code group long text into the Production System?
    It works correctly in the Test System but I cannot edit the catalog using QS41 in Production (basis will not grant QS41 edit permission for client).
    I understand that long texts cannot be transported but have not found the correct method to enter, import or upload the texts.
    My question is similar to Long Text not Trasporting in QS41 but I'm not a programmer and cannot create new ABAP in SAP.
    Can you assist or suggest a guide/tutorial to use?
    Thank you! Any guidance and help would be greatly appreciated.
    Ranny

    To resolve this problem you have to work with ABAPer. Please refer following link, if it would help you..
    [Link1|http://www.sapfans.com/forums/viewtopic.php?f=27&t=246646]
    Thanks!!!

  • Standard LSMW to load Routing Long text

    We are migrating data to sap for Routings. We are using SAP best practices to load the data into sap using idocs. But we dont have idoc structure to load Long Text.
    Do you know a LSMW standard direct input to upload the routing long text.
    Please help me out.

    Yes, you can upload long texts to pretty much any application, routings, boms, material masters, etc.
    In LSMW select the following direct input method:
    Object               0001   Long texts
    Method               0001   (No selection)
    Program Name         /SAPDMC/SAP_LSMW_IMP
    Program Type         D   Direct Input
    You can define the following as constants in field mapping and conversion rule.
    TDOBJECT C(010) Text: 'ROUTING'
    TDID C(004) Text ID : 'PLKO'           <<< if you're uploading to header
    TDSPRAS C(001) Language : 'EN'
    TDFORMAT C(002) Paragraph format for text line : '*'
    If you want upload to operations etc look at the following table
    ROUTING     PLFH     Long Text
    ROUTING     PLFL     Long Text
    ROUTING     PLFT     Long text
    ROUTING     PLFV     Long Text
    ROUTING     PLKO     Long Text
    ROUTING     PLPH     Long text
    ROUTING     PLPO     Long Text
    internally SAP stores, routing group with zeros padded on the left. For example if your routing group is 200 it will be stored as 00000200 so in your flat file either you have to pad the zeros or in the LSMW you need to use the conversion exit function module.
    You can following link below if you want to deeper understanding on this subject.
    Re: LSMW : Long text not visible after the import of data

  • Mass upload of characteristics and long text for Object Links in DIR

    hello all
    I want to upload characteristics and long text of Linked Objects in Documents: i wanted to use BAPI_OBJCL_CHANGE and family but, it is a class that is on a different level than the DIR as it does not belong to the DIR directly, but to objects that are linked TO the dir, via the tab linked object.
    any idea on how I can do that?
    LSMW and recordings do not work (or at least I did not find a way to make them work);
    have you encountered such a situation?
    thanks

    Dear,
    After call BAPI call also
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING wait = 'X'.
    Please refer this thread also,
    BAPI_OBJCL_CHANGE.
    Regards,
    R.Brahmankar

  • I am trying to upload the purchase order long text in mm01 using BAPI

    Hi All,
    I am trying to upload Purchase Order Long text (which is in chinese Language) and Language field with  ZH(chinese) in MM01 using BAPI_MATERIAL_SAVEDATA.
    It is uploading properly, But in the Language field it is showing Z1(Customer reserve) instead of ZH(Chinese).
    What could be the reason for this and how it can be resolved.
    Thanks in advance,
    Raja

    Hi,
    Which input parametr did you use? See table T002
    LANGU = '1'
    LAISO = 'ZH'
    Rgds,
    JP

  • Loading Long text longer than 132.

    Hi,
    I am trying to load Material Master long text (Basic data, Purchase order Text) . The LSMW (a standard batch / direct input) for Long text only allows 132 chars and my long text is longer than 132?
    What can i use to load the long text?
    Regards,
    K.

    Hi
      Within the program, structure TLINE loads the text.
    This structure consists to fields TDFORMAT and TDLINE.
    The text exists in field TLINE-TDLINE.
    Whereever, we need to give extended text we can use '=' symbol for TDFORMAT. Just like in SAP Script Form(Extended Line).
    Alternatively you can use FM: SAVE_TEXT for loading the texts.
    Insert a convert routine to split the text in several lines.
    You can use the following function module to split your long text into multiple lines.
    QADB_DOCU_CONVERT_TO_SAPSCRIPT
    You can refer this link for further information
    Re: insert it into the next line in internal table
    Thanks.

  • BAPI - Long Text

    Hi,
    My queries as below. Hope anyone may know the answer.Thanks.
    1) What are the maximun characters in BAPI Parameters can passed in? 265?
    2) Could I do the upload 8000 of long text to SAP by passing the data via BAPI from external system?
    Please advise the method.

    Hi,
    My requirement is used the BAPI and perform upload of 8000 of long text to SAP.
    These 8000 long text are sending from external system to BAPI as in below table format. It is possible?
    Table in BAPI:
    Vendor_No (Char 10)
    Long text (Char 8000)

  • Upload Material master with long text using LSMW

    Hello,
    i want ot upload material master data via MM01 using LSMW in following views: basic data 1 ,2,  purchasing, purchase order text, plant data 1,2.
    i have to upload long text in purchase order text with length more then 132 char. (approx 700 char long text). and i have text file in which long text is maintained in a single row. then how can i do it without formating text file or anyother possible solution.
    please help.

    ca u clarify how can i do it.
    suppos i have longtext   "Air cooled type air-conditioning unit complete with following components & distance between indoor & outdoor unit is  10 RMT.  A).Indoor evaporating unit comprising of cooling coils,insulated drain tray,20 micron HDPE washable filters,blower,motor,electical junction box etc. B).Outdoor condensing unit comprising of hermatic/semiharmetic compressor's.condenser coils,propeller/axial fans,motors,pressure switches/cutout etc.C).Charging of refrigerant gas & oil.D).Inter connecting refrigerating piping  of copper duly insulated with EXPANDED POLYETHYLENE tubing.E).Complete electical power wiring of AL.&Control wirng of copper required from indoor & outdoor units.Earthing of the complete system with 8 G G.I.wire.  F).Electrical panel will be completed with necessary starter,fuses,switches,timers,over-load relays,contactors,push button and indicating lamps,single phasing preventer etc..and also with remote control with cording. G).The panel should have 1 no.potential free contactor to connect with central fire detection system.The panel should have voltage scanner to ensure stabilized power input to the machine.H).Outdoor unit shall be mounted on MS angle base frame structure duly black painted with synthetic epoxy paint.I).The frame structure shall be mounted on MS plate & serrated rubber pads."
    then what i have to do changes in lsmw.?

  • Problem in Uploading sales order text data using LSMW

    Hi All,
    I am facing Problem in uploading open sales order data from legacy to SAP using LSMW.
    We are trying to upload sales order data using LSMW Standard Batch/Direct input using program name RVINVB10 and program type D. We are not able to upload item text but have no problem in uploading remaining data.
    the details we are passing to BTEXHKOM structure are......
    BTEXHKOM-OLDNR = IHEADER-OLDORD_NO.
    BTEXHKOM-LAISO = 'EN'.
    BTEXHKOM-TDID = 'Z009'.
    and the for structure BTEXLKOM
    BTEXLKOM-OLDNR = IHEADER-OLDORD_NO.
    BTEXLKOM-TXPARGRAPH = '/'.
    CONCATENATE LITEM-DEPTID LITEM-DEPTNAME
    INTO BTEXLKOM-TXLINE SEPARATED BY ' '.
    we have three input source structures.
    IHEADER Header structure
    LITEM Line item structure ( Material data )
    IPARTN Partners structure
    The structure relationships are
    BTEXHKOM <<< IHEADER.
    BTEXLKOM <<< IHEADER.
    Please let me know if I am doing some thing wrong or some thing else need to be done.
    Thanks,
    Chindam.

    you can pass below values also
    OLDNR         :  order number and item nuber
    TXPARGRAPH  : VBBK
    TXLINE        : your text.....

  • Re:Uploading Long text of 500 characters through LSMW

    Can any1 help me out in uploading long text of 500 characters thru LSMW...Please reply ASAP..We have used Direct Input method 0004...We have a structure for long text ,but still unable to upload.

    I have the same problem where the long text is not being updated through a AC02 BDC session.  Did you find a solution to the problem yet?
    Thanks
    Johan

  • How to upload material text  in mm02 using bdc table control

    i have problem to upload material Description in mm02 using bdc.
    my text file is like
    2000251     AF     A12345               
    2000251     AR     B12345               
    2000251     BG     C12345               
    2000252     AF     F12345               
    2000252     AR     G12345               
    2000252     AF     H12345     
    i want to upload material number, language, and material description, how can i upload pls help me.

    Hi,
    Try with bapi , bapi_material_save_data.. didn't exactly remember it,Please check the same.
    Regards,
    Nagaraj

Maybe you are looking for

  • Captions in photo albums

    I used to have a downloaded version of Create Photo Album (2.3?) which allowed me to add captions to my photo pages. With my old Dreamweaver now installed on a new PC I have lost this download. Anyone know where I can get it?

  • Burned DVD freezes.. any ideas?

    Here's my problem, I hope someone might have a thought: I've burned about 10 DVDs now, each of which are resulting in pretty much the same errors.. a) won't play the 3rd of 4 chapters, and b) freezes to a still frame in random areas (and occasionally

  • HT1766 Are my backed up files accessible (Texts, photos, videos, etc) ? and can I delete them?

    Thanks!

  • Can't receive file of the idoc

    hello,anyone, i had created an ALE from client400 to client600,the status of  the client400 is "Data passed to port OK", but there is not received any data in the client600.what is the problem? Message was edited by:         yongrong xu

  • Apache Tomcat 7

    Hi, I saw different folder options for installing Apache Tomcat 7 on a Mac: /opt, /usr/local and /Applications. What is the recommended folder to install it on OSX? Thanks.