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

Header Text data

Former Member
0 Likes
933

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.

2 REPLIES 2
Read only

Former Member
0 Likes
456

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.

Read only

Former Member
0 Likes
456

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