LSMW loading Sales Text to Material Master
My BI recording is not showing the Long Text for Sales Text at all. Can anybody help?
MM02 Change Material &
SAPLMGMM 0060
BDC_CURSOR RMMG1-MATNR
BDC_OKCODE =ENTR
RMMG1-MATNR 17783622846 MATNR Material Number
SAPLMGMM 0070
BDC_CURSOR MSICHTAUSW-DYTXT(08)
BDC_OKCODE =ENTR
MSICHTAUSW-KZSEL(08) X KZSEL_08 Checkbox
SAPLMGMM 0080
BDC_CURSOR RMMG1-VTWEG
BDC_OKCODE =ENTR
RMMG1-VKORG jp01 VKORG Sales Organization
RMMG1-VTWEG 01 VTWEG Distribution Channel
SAPLMGMM 4040
BDC_OKCODE =TEAN
BDC_SUBSCR SAPLMGMM
BDC_SUBSCR SAPLMGD1
MAKT-MAKTX POLYSILAZANE NP110-0 MAKTX Material Description (Short Text)
BDC_SUBSCR SAPLMGD1
SAPLMG19 1000
BDC_CURSOR DESC_LANGU_NEW
BDC_OKCODE =ENTR
DESC_LANGU_NEW ;
SAPLMGMM 4040
BDC_OKCODE =BU
BDC_SUBSCR SAPLMGMM
BDC_SUBSCR SAPLMGD1
MAKT-MAKTX POLYSILAZANE NP110-0 MAKTX Material Description (Short Text)
BDC_SUBSCR SAPLMGD1
BDC_CURSOR LANG_TC_TAB_TC-SPTXT(
SAPLSEUO 0300
BDC_CURSOR G_LINE_1
BDC_OKCODE =YES
Instead of BDC Recording, why don't you use Standard Batch/Direct Input Object 0001 (Long Texts), Method : 0000 ?
Similar Messages
-
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 guysHi,
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 -
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 NHello 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 -
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
PavanHi
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 -
LSMW - Purchase Order Text in Material Master
All MM Experts,
I tired to create simple Batch Input Recording but the screen does not get recorded for Purchase Order text maintenance in mass for article master data. we are maintaining Purchase Order Text in article master data in basic data screen on additional data button under purchase order text tab.
Any suggestion on creating LSMW for purchase order text.LSMW has a standard direct input for long texts, hence it is not necessary to do a recording.
help.sap.com gives real good help for loading loading long texts with LSMW, further has this been discussed many many times here in MM and in the data migration forum.
try to search a bit, you dont really need more than the words you already have used on the subject to get a good variety of answers -
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
PavanMArtin,
Can you inform me what all paramters to be passed in SAVE-TEXT module?
Regards
Pavan -
Sales Order Text from Material Master
Hi All,
I have a request to configure sales orders so that they will display the text maintained in the sales text tab in material master. I believe I have to use tcode VOTXN, and do something with the access sequence there, but I am a bit confused.
Could someone help me out with this? And where in the sales order will this text be displayed? Will this text show when the order is printed?
Thanks,
JHello,
Follow this procedure:
1. Go to tcode VOTXN
2. Customer-->Sales document Item ->click the Text types> Check 0001 Material sales text is there and copy or create in text type Z001 Material sales text
3. Come back to initial screen or press F3
4. Check Sales document Item and click Change mode
5. Check Text procedure 01 - Sales item copy like Z1
6. Click on Z1 and select Text ID's in Textprocedure
7. Assign sequence Seq1/ ID Z001- Material Sales text/ check Ref field/ select field Text is obligatory or not obligatory/Acc 21 - header note
8. Select Access sequence and click 21 Material Sales then select Access sequence for Text ID's
9. Assing seq 10, Text object MVKE, ID Z001- Material Sales Text
10. Assign text procedure 01 to your Item Category.
Note: You have to specify Sales text in Material master to show in sales order.
Go to Sales order Item and select Text tab... there you can see your text type Material sales text.
regards
rc gopi
Edited by: Gopi Chandrakesan on May 9, 2009 4:23 AM
Edited by: Gopi Chandrakesan on May 9, 2009 4:24 AM -
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,
zafarHi,
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 -
Function Modules or Methods to Retrieve texts in Material Master
Hi All,
Can you get me a list of Function Modules which retrieve the text from Material Master.
My requirement is to extract texts:
Basic Text - at material level
Purchase Order text - at material level
Sales Texts - at material-sales org level
Thanks in Advance.
Sure Points for all Valuable answers
Regards
Vinayakhi
u can get using read_text FM ask ur functionl person to give you the ID and other details required..
u can also get it from STXH table... from which even the FM gets data.. -
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 -
Hello,
When I enter a material in the sales order it throws the following error:
Material ABCD is not defined for sales org XXXX, dist ch. YY, language EN
Please check whether
A short text with the appropriate language exists in the material master record (a short text must be available in the language of either the customer or the sales org)
I have entered the correct material and have maintained the material in the correct sales org, dist. ch. The problem is due to this short text in material master.
The question is where is this short text in the material master?
Thanks,
ShankarDear Shankar,
Please go to MM02 transaction enetr your material number then select the Basic data 1 view go in to that from here you click on Additional data Tab or Cntrl+F6 here you can maintaion the Language for that material under Discriptions tab.
Once again the check the material master is maintainig for sales org XXXX, dist ch. YY or not.
I hope it will help you,
Regards,
Murali. -
Re: Creation of sales order without material master
Hi All,
Is it possible to create sales Order, without material master. In case if so please provide the details.Hi,
It is possible to save order without any material.
But if you want to restrict it, go to VOV8 and select your Sales Document Type and see if any incompletion procedure is assigned.
Now go to SPRO - SD - BASIC FUNCTIONS - LOG OF INCOMPLETION ITEMS - SALES ORDER ITEM -
and for your incompletion procedure maintain VBAP under table and MATNR under field name. Also you can tick on warning message, if user now tries to save the order without any material.
So now you can restrict saving order without having any material.
I am sure this will help you, if it does, please dont forget to reward points for contribution.
Regards
Ravi -
How to Update the Basic Data text in Material Master.
Hi Abapers,
I have more than 5000 materials for update basic Data text inside Material Master.
how to update basic data text using abap programe? is there any bapi or normal program?.
anybody give me sample of this.
Thanks
S.Muthu.
IT Dept.Hi
You can do by using the FM SAVE_TEXT.
Just populate text into table i_tline.
Local data declaration
DATA: l_wa_thead TYPE thead, " Header
l_wa_tline TYPE tline. " Work area for tline
Populate header
l_wa_thead-tdobject = c_obj_material.
l_wa_thead-tdname = wa_data-matnr.
l_wa_thead-tdid = c_id_best.
l_wa_thead-tdspras = sy-langu.
l_wa_thead-tdluser = sy-uname.
l_wa_thead-tdfdate = sy-datum.
l_wa_thead-tdtxtlines = '1'.
IF i_tline[] IS NOT INITIAL.
l_wa_tline-tdformat = c_slash.
APPEND l_wa_tline TO i_tline.
ENDIF.
Text shd start from next line
l_wa_tline-tdformat = c_slash.
CONCATENATE c_text wa_data-text
INTO l_wa_tline-tdline SEPARATED BY space.
Append the new text to the int table
APPEND l_wa_tline TO i_tline and l_wa_thead
C* Local data declaration
DATA: l_wa_thead TYPE thead, " Header
l_wa_tline TYPE tline. " Work area for tline
Populate header
l_wa_thead-tdobject = c_obj_material.
l_wa_thead-tdname = wa_data-matnr.
l_wa_thead-tdid = c_id_best.
l_wa_thead-tdspras = sy-langu.
l_wa_thead-tdluser = sy-uname.
l_wa_thead-tdfdate = sy-datum.
l_wa_thead-tdtxtlines = '1'.
IF i_tline[] IS NOT INITIAL.
l_wa_tline-tdformat = c_slash.
APPEND l_wa_tline TO i_tline.
ENDIF.
Text shd start from next line
l_wa_tline-tdformat = c_slash.
CONCATENATE c_text wa_data-text
INTO l_wa_tline-tdline SEPARATED BY space.
Append the new text to the int table
APPEND l_wa_tline TO i_tline.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = l_wa_thead
savemode_direct = c_check
TABLES
lines = i_tline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc = 0.
COMMIT WORK.
endif. -
View "Purchase Order Text" in Material Master
Hi,
I need replicated text of view "Purchase Order Text" in ECC to Material Master in SRM.
Or When We create a shopping cart in the way in which the text replicated "Purchase Order Text" from the the Material Master(ECC).
Regards
AngieFor Purchase Order text in Material Master:
use this code for Purchase Order text,
DATA: l_lsize(3) TYPE n VALUE '132'.
DATA: lwa_tline TYPE tline,
lwa_thead TYPE thead,
lwa_valid TYPE ty_input(flat file data),
lwa_temp TYPE ty_input.
DATA: lit_tline TYPE STANDARD TABLE OF tline.
lwa_thead-tdobject = 'MATERIAL'.
lwa_thead-tdid = 'BEST'.
lwa_thead-tdspras = 'E'.
lwa_thead-tdlinesize = l_lsize.
LOOP AT pu_it_valid INTO lwa_valid.
lwa_temp = lwa_valid.
AT NEW matnr.
CLEAR: lwa_thead-tdname,
lwa_tline-tdformat.
lwa_thead-tdname = lwa_temp-matnr.
ENDAT.
IF lwa_tline-tdformat IS INITIAL.
lwa_tline-tdformat = ' \ '.
ELSE.
lwa_tline-tdformat = '='.
ENDIF.
CLEAR lwa_tline-tdline.
lwa_tline-tdline = lwa_valid-text_line.
APPEND lwa_tline TO lit_tline.
AT END OF matnr.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = lwa_thead
insert = c_x
savemode_direct = c_x
TABLES
lines = lit_tline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc = 0.
REFRESH lit_tline.
ENDIF.
ENDAT.
CLEAR: lwa_temp,
lwa_valid.
ENDLOOP. -
List of material number with PO text from material master
I want to get a list of materials number with PO text from material master. Can anybody help ?
The purchase order texts maintained in the material master are stored
as SAPScript text files in tables STXH (header) and STXL (lines). For
material master records:
Field TDOBJECT = 'MATERIAL'
Field TDNAME = material number (MARA-MATNR).
So you should be able to write a small report to extract the data.
Maybe you are looking for
-
Mobile Sales- The manger is unable to see activities in the calender view
Hi, I have a Manager when he clicks on the calender option he is unable to see all the activities scheduled for a particular employee in his calender viwe whereas if i check that particular employee's calender he has all the details of the activities
-
Hi All, there is a big problem in Inconsistency between Condition Base Value in Rebate Monitor / Semi Automatic Bypass / MIS. We have discovered issues with inconsistent figures. Condition Base Value Rebate Monitor until Feb 29th is not equal with v
-
My itunes freezes when I sync my Itouch
HELP! My itunes account freezes at step 3/3 determining tracks to sync, whenever I plug in my itouch 2nd generation. I've tried uninstalling and reinstalling itunes and I don't know what to do! I can't call tec support because my warranty is expired
-
Apple news mails in wrong language
For a while I keep receiving mails from [email protected] in dutch whereas my appled Id preferences indicate english as communication language. How / where do I have to set up the language for these mails ?
-
Hi All On my form i have RadioButtonList with one radio button in it. I want to do next, on button click new radio button into the RadioButtonList should appear. I tried something like this: var oNode = xfa.form.createNode("radioButton"); questionary