Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

help:FM save_text

former_member294729
Participant
0 Likes
834

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
795

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

6 REPLIES 6
Read only

Former Member
0 Likes
796

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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
795

Hi, you need to build the TDNAME field in your HEADER structure. Not sure what the convention is, but it is probably vendor and org concatenated together. Check a record for this in STXH, it will show you how to put the NAME together.

Regards,

Rich Heilman

Read only

0 Likes
795

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

Read only

Former Member
0 Likes
795

Hi,

check FM <b>

init_text

</b>

or FM

<b>READ_TEXT</b>

regards,

Kinshuk

Read only

Former Member
0 Likes
795

Hi,

USE FM 'READ_TEXT' in order to build your HEADER.

U can have a look at this report : RPU30AP1

Regards,

GSR.

Read only

0 Likes
795

Thank you everyone.

I will verify exactly it on tomorrow under the help what you supplied.

Eric xu