Application Development 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: 

help:FM save_text

former_member294729
Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi,

check FM <b>

init_text

</b>

or FM

<b>READ_TEXT</b>

regards,

Kinshuk

Former Member
0 Kudos

Hi,

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

U can have a look at this report : RPU30AP1

Regards,

GSR.

0 Kudos

Thank you everyone.

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

Eric xu