cancel
Showing results for 
Search instead for 
Did you mean: 

header printing in smartforms

Former Member
0 Kudos

plz help me inthat how and where header text stored in any tcode and how to get that header text in smart forms?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To get ur header text write the piece of code in Program lines and Display ur text with the Filed &IT_TLINE-TDLINE&

TDNAME   = IT_VBRK-VBELN.
*--- Call FM Read Text to get the Long Text for Mode of Dispatch Details
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT                        = SY-MANDT
ID                            = 'V007'
LANGUAGE                      = SY-LANGU
NAME                          = TDNAME
OBJECT                        = 'VBBK'
TABLES
LINES                         = IT_TLINE
EXCEPTIONS
ID                            = 1
LANGUAGE                      = 2
NAME                          = 3
NOT_FOUND                     = 4
OBJECT                        = 5
REFERENCE_CHECK               = 6
WRONG_ACCESS_TO_ARCHIVE       = 7
OTHERS                        = 8 .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Here TDNAME, ID all these Fields can be Viewd by clicking on the Header Text node in ur Transaction and Go to -


>Change Header u will get the Technical Details

Regards,

Vijaya Lakshmi.T

Answers (3)

Answers (3)

0 Kudos

Hi,

Once you got the Text ID, Text Object, Text Name as guided by Venkata.

Then to get that header text in Smartforms follow the following steps :

- Create a new text node. A node with text type u2018Text elementu2019 is created by default.

- Change it to u2018Include Textu2019.

- Provide the Text Name, Text Object and Text Name.

Hope this helps.

Regards,

Ashish

Former Member
0 Kudos

Hi,

If you go inside any tcode say for example ME51n there u will find a tab called Texts inside which u can header texts tab. If you doesnot find that texts tab in some tcodes like VA01 then use the following navigation to get the header text tab.

Use the following steps to print the header text in the smartforms. Here I am taking ME52n as an example

1) Go inside the tcode and then navigate to the header text tab by using the above navigation.

2) Double click on the header text window then it will take to a bigger window where u can enter the header text manually.

3) In that window use the following navigation to get the header text details.

Go To -> Header.

In that one retrieve the Text ID, Text Object, Text Name.

4) Use these detials in the include text in Smartforms to display the header text in smartforms.

Regards,

Venkat.

former_member187452
Contributor
0 Kudos

Hi,

You can use Include Text in smartforms.

For that you will require the text ID , text object of the header text.

Regards,

Bharat