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
Similar Messages
-
Printing long text from material master in from MM07ET
Hello,
I'm using WEE1 output condition to print labels for gr. I'm using the standard object MM07ET and I need to include in the label the long text from material master - table STXL. I know that there is a function READ-TEXT in ABAP for this but I don't have access to abap development. I need to know if it's possible to include a command in the sap scrip to retrive the long text without modifing the program SAPM07DR.
Thank you!Hi,
Sorry for the late Reply, Please use the following code in SAPSCRIPT
/: INCLUDE &EKPO-EMATN& OBJECT MATERIAL IDGRUN LANGUAGE EN
&EKPO-EMATN& material Number ( Here please maintain the Field value which is used to print Material Number )
MATERIAL is the Object Name
GRUN Is Text ID
EN Language
You can use the above code for priting long text in the SAPSCRIPT FORM. to find the object name and ID please follow the below Steps
Go to the window were you have maintained Long text... Double click on the text, then it will open a new window.. there Click on the top Goto-->Header.. here you will find the relevant data as follows:
Language: EN
Text ID : GRUN
Text Object: MATERIAL
Name: Material Code
Regards
GK. -
Mass change of PO text in Material Master
Hi,
1) Need to find list of materials which has PO text maintained
2) Need to mass change of the PO text view in material master record.
Kindly help
VengatHi,
Thanks for your reply.
However still I could not extract the materials that are maintained with PO Texts.
In SE16n STXH or STXL to key in material number also we don't know, so how to find the list of materials(preferably for plant specific) that are maintained PO Texts?
Regards,
Vengat -
Which table do "Basic data text" of material master record in?
Hi All:
There is tab with name of "Basic Data text" in additional data of material master, my question is which table record this information?
BR
KevinHi Kevin,
Please check this:
Read the long text of material master
Regards,
Csaba -
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 -
How to add basic data text into material master?
Hi anybody,
I want update only basic data text into material master. how to update basic data text ?
is it any bapi or functional module is there in abap?
anybody please tell me.
tks
s.muthuHi Subramanyan,
Check this function module:
CREATE_TEXT
Check out this sample program:
REPORT ZMM_INSERT_LONGTEXT.*Internal table to hold long text...
DATA:
BEGIN OF T_UPLOAD OCCURS 0,
MATNR LIKE MARA-MATNR, " Material number
ID(2) TYPE C, " Identification
LTEXT LIKE TLINE-TDLINE, " Long text
END OF T_UPLOAD,*Internal table to hold long text....
T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.DATA:
W_GRUN LIKE THEAD-TDID , " To hold id
W_OBJECT LIKE THEAD-TDOBJECT VALUE 'MATERIAL',
" To hold object id
LV_VALUE(70). " Value to hold material number
START-OF-SELECTION.* This perform is used to upload the file
PERFORM UPLOAD_FILE.* This perform is used to place the text in MM02 transaction
PERFORM PLACE_LONGTEXT.
*& Form create_text
This routine used to create text in MM02 transaction
Passed the parameter w_grun to P_C_GRUN
and lv_value to P_LV_VALUE
FORM CREATE_TEXT USING P_C_GRUN
P_LV_VALUE. DATA:
L_ID LIKE THEAD-TDID,
L_NAME(70). MOVE : P_C_GRUN TO L_ID,
P_LV_VALUE TO L_NAME. CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = L_ID
FLANGUAGE = SY-LANGU
FNAME = L_NAME
FOBJECT = W_OBJECT
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES = T_LINE
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
CLEAR LV_VALUE.
ELSE.
DELETE T_LINE INDEX 1.
ENDIF.ENDFORM. " create_text&----
*& Form upload_file
This routine is used to upload file
No interface parameters are passed
FORM UPLOAD_FILE . CALL FUNCTION 'UPLOAD'
EXPORTING
CODEPAGE = ' '
FILENAME = ' '
FILETYPE = 'DAT'
ITEM = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
LINE_EXIT = ' '
USER_FORM = ' '
USER_PROG = ' '
SILENT = 'S'
IMPORTING
FILESIZE =
CANCEL =
ACT_FILENAME =
ACT_FILETYPE =
TABLES
DATA_TAB = T_UPLOAD
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. SORT T_UPLOAD BY MATNR ID.
ENDFORM. " upload_file
*& Form place_longtext
This routine places the text in MM02 transaction
No interface parameters are passed
FORM PLACE_LONGTEXT . LOOP AT T_UPLOAD. T_LINE-TDFORMAT = 'ST'.
T_LINE-TDLINE = T_UPLOAD-LTEXT.
APPEND T_LINE. IF T_UPLOAD-ID EQ 'BT'.
MOVE T_UPLOAD-MATNR TO LV_VALUE.
MOVE 'GRUN' TO W_GRUN. "Test ID for Basic data text
PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
ENDIF. IF T_UPLOAD-ID EQ 'IT'.
CLEAR W_GRUN.
MOVE T_UPLOAD-MATNR TO LV_VALUE.
MOVE 'PRUE' TO W_GRUN. "Test ID for Inspection text
PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
ENDIF. IF T_UPLOAD-ID EQ 'IC'.
CLEAR W_GRUN.
MOVE : T_UPLOAD-MATNR TO LV_VALUE,
'IVER' TO W_GRUN.
"Test ID for Internal comment
PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
ENDIF.
ENDLOOP.ENDFORM. " place_longtext
Hope this helps you.
Regards,
Chandra Sekhar -
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 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. -
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 -
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. -
Excel file to be added to Maintenance Item long text
Hello,
Do you know by any chance whether excel file can be pasted to Maintenance item long text?
I'm not talking here about adding attachment to maintenance plan itself...
Thanks for your clues
GrzegorzGrzegorz,
You should be able to paste the same , as long as you are not concerned about the formatting. If formatting is of importance,you will have to manually format the contents as only limited formatting is supported by long text editor in SAP.
Regards
Narasimhan -
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. -
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 -
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
Maybe you are looking for
-
New ITunes Update Is Giving Me an Error Message for some of my songs
I just did the recent ITunes update. While syncing my IPod Touch, I got an error message saying I wasn't authorized to play certain songs - even though I purchased them and this laptop is an authorized laptop. In fact, I play these song alot. I don't
-
Connecting Excel 2010 64 bit on Windows 7 64 bit to Oracle 11gR2 on Linux
Using: Excel 2010 64 bit Windows 7 64 bit Oracle instant client 11.2.0.1 64 bit connecting to Oracle 11gR2 64 bit on Linux 5.8 64 bit I have created a User DSN in Windows called "NITRO Oracle 11gR2 DB" using the Oracle 64 bit instant client driver 11
-
Hi experts, i have a simple table selection "select * from xxx" having 2.5 Lakhs of data. when i check the cost it shows appx 4000. i analysed / rebuild the table also. how to reduce the cost. Any suggestion? thanks.
-
Hi I am creating a graphic intensive presentation in Keynote, and wish to export this to i-web for an upload. How do I reduce the size of the export as a PDF. I have tried to drag the PDF export into photoshop but it splits all the frames out and i c
-
Using Time Lapse function after importing video
Hello! I have IMovie 08 and import my video via a sony handycam. I want to edit the video to reflect the time lapse style. The video would be too long and boring otherwise and my handycam won't allow me to record this way. Is it possible to do this i