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: 

Change Text Header in PurchaseOrder

Former Member
0 Kudos
87

Hi all,

I need to change the header text of the PurchaseOrder (ME22N), Some body could give me a suggestion about how to do it, Please?

Thanks in advance.

regards Marisol

1 ACCEPTED SOLUTION

Former Member
0 Kudos
54

Hi,

Use the following FM's :

EDIT_TEXT or SAVE_TEXT

To know the input parameters of those FM, go in the text, <u>in plain page mode</u>, then do, via the menu, <b>GoTo -> Header</b> .

Here you get the needed info ( ID, Name, ... )


U have to use the FM like this.

CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = po_head
INSERT = ' '
savemode_direct = 'X'
OWNER_SPECIFIED = ' '
IMPORTING
FUNCTION =
newheader = po_head
TABLES
lines = pt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.

Hope this helps,

Erwan

1 REPLY 1

Former Member
0 Kudos
55

Hi,

Use the following FM's :

EDIT_TEXT or SAVE_TEXT

To know the input parameters of those FM, go in the text, <u>in plain page mode</u>, then do, via the menu, <b>GoTo -> Header</b> .

Here you get the needed info ( ID, Name, ... )


U have to use the FM like this.

CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = po_head
INSERT = ' '
savemode_direct = 'X'
OWNER_SPECIFIED = ' '
IMPORTING
FUNCTION =
newheader = po_head
TABLES
lines = pt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.

Hope this helps,

Erwan