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

Function Module for Header Text

Former Member
0 Likes
2,277

Hi,

Does anyone know if there is a function module that will be used in retrieving the header text? I will be displaying the data in SMARTFORM format. Your help is highly much appreciated.

Thanks!

5 REPLIES 5
Read only

amit_khare
Active Contributor
0 Likes
1,189

use READ_TEXT.

You can use the Include Text by adding a Text Node in the smartform...then u will not require any other FM.

Read only

0 Likes
1,189

u can use Fm Read_text for that

Read only

Former Member
0 Likes
1,189

I will be retrieving the order header text... for every order, it changes the header text..

Read only

Former Member
0 Likes
1,189

Hi ysera,

You can use READ_TEXT to retreive header text.

READ_TEXT provides a text for the application program in the specified work areas.

The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.

After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.

You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.

To check your long text header, go into the long text. Click Goto -> Header

This will give you OBJECT, NAME, ID, and LANGUAGE.

Pass them in the FM, you will get the header text that you want.

Also go through the below link:

http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm

Hope this will help.

Regards,

Nitin.

Read only

Former Member
0 Likes
1,189

Do I still need to do coding for retrieving the order header text or just passing the function module for SMARTFORMS?