2006 Apr 17 3:54 PM
hi,everyone.
I want to using FM:save_text to edit the header text data of vendor master data at purchasing org level.
ls_header-tdspras = sy-langu.
ls_header-tdobject = 'LFM1'. "purchasing org level
ls_header-tdid = pf_id.
ls_header-tdtitle = pf_title.
lt_lines-tdline = pf_title .
lt_lines-tdformat = '*'.
APPEND lt_lines.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = ls_header
savemode_direct = 'X'
TABLES
lines = lt_lines
EXCEPTIONS
OTHERS = 1.
who can tell me how to pass purchasing org data to parameter(header,table)?
ths
Eric xu
2006 Apr 17 3:58 PM
Hi
I think you have to transfer the organization in the name of the text:
CONCATENATE P_LIFNR P_EKORG INTO LS_HEADER-TDNAME
Max
hi,everyone.
I want to using FM:save_text to edit the header text data of vendor master data at purchasing org level.
ls_header-tdspras = sy-langu.
ls_header-tdobject = 'LFM1'. "purchasing org level
ls_header-tdid = pf_id.
ls_header-tdtitle = pf_title.
lt_lines-tdline = pf_title .
lt_lines-tdformat = '*'.
APPEND lt_lines.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = ls_header
savemode_direct = 'X'
TABLES
lines = lt_lines
EXCEPTIONS
OTHERS = 1.
who can tell me how to pass purchasing org data to parameter(header,table)?
ths
Eric xu
2006 Apr 17 3:58 PM
Hi
I think you have to transfer the organization in the name of the text:
CONCATENATE P_LIFNR P_EKORG INTO LS_HEADER-TDNAME
Max
2006 Apr 17 4:00 PM
2006 Apr 17 4:05 PM
Hi,
The TDNAME field should be the concatenation of the key fields in LFM1.
The key fields in lfm1 are (LIFNR)Account Number of the Vendor and
Purchasing Organization(EKORG).
Regards,
Ravi
2006 Apr 17 4:04 PM
Hi,
check FM <b>
init_text</b>
or FM
<b>READ_TEXT</b>regards,
Kinshuk
2006 Apr 17 4:08 PM
Hi,
USE FM 'READ_TEXT' in order to build your HEADER.
U can have a look at this report : RPU30AP1
Regards,
GSR.
2006 Apr 17 4:15 PM
Thank you everyone.
I will verify exactly it on tomorrow under the help what you supplied.
Eric xu
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |