cancel
Showing results for 
Search instead for 
Did you mean: 

View "Purchase Order Text" in Material Master

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

Please try this OSS note.

Note 942997 - SRM5.0: Faulty sorting of longtext lines in RFC inbound.

Incase it does not help, side-by-side raise your customer message with SAP as well.

Regards

- Atul

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Nimish,

Do you have any information on this question?

Regards

Angie