on 05-02-2006 9:42 PM
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
Angie
For 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are having the same problem. All the text from the R/3 Material Master comes over into SRM 5.0 except the purchase order text (defined as the BEST type in R/3). Has anyone gotten this text to replicate into SRM from R/3, without doing programming? If you have please provide some guidance.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Angine
For importing the long text you must set the filter EQ material for table STXH and field the TDobject.
Filters are applied in transcation R3AC1
Try for one single material and then check in commpr01.
regards,
Nimish Sheth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nimish,
I filtered EQ material for table STXH and field TDobject=MATERIAL.
I checked in commpr01, but the Purchase Order Text it dosen't appears in COMMPR01.
I don't see the field of purchase order text in COMMPR01,neither.
By the way, How appears this text in the shoppint cart?
Can anybody suggest something about this ?
Regards,
Angie.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.