‎2005 Jul 13 7:30 AM
Hello everyone,
As a beginner, having a small doubt in relation to reading data from header text.
I wish to know.
1. Where do we define Header texts for purchase orders?? example Header text ID = F06, F14 etc.........
2. How do we use them in the program.
The requirement is to actually display "delivery terms" and "ship via" in a purchase order in a SAP script layout for a purchase order.
delivery terms is to be taken from header txt ID = F14 and ship via from Text ID F06.
Your help wud be appretiated.
‎2005 Jul 13 7:43 AM
Go to the transaction for PO (ME21)then click on the Header> Texts>Texts Over View. Here you can see all the Header Texts and also create them.
‎2005 Jul 13 7:48 AM
To use text in program, you have to use FM 'READ_TEXT' to get the text.
To get the parameter of this function Module, you have to go to the text you want, diplay it in plain page mode and then via the menu 'GO TO' --> 'HEADER' .
A popup window give you : object id, name, ...
The table "t_tdline" contains the entire text .
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = w_id
language = sy-langu
name = w_name
object = w_object
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
tables
lines = t_tdlines
Hope this helps,Erwan.
Message was edited by: Erwan LE BRUN