cancel
Showing results for 
Search instead for 
Did you mean: 

How to read header text from VF03 into smartfrom

Former Member
0 Kudos

Hi all,

i want to print header text from vf03 in smartforms

bye

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Venkatrami,

Tcode VF03 enter Billing Doc no -


>goto header-----> select header texts

When you get the values Textname, text id, textobject to the smartform.

call the FM read_text in the programing lines to get the long text in the internal table. Another way to retrieve the long text is to use INCLUDE but for your requirement is better to uses READ_TEXT function module.

Once you get the data in the internal table.

Create table and loop the long text internal table. Now in the table when create a text node, keep a condition on the text node in the conditions column that when sy-tabix = 3. Which means you are skipping two lines (Administrative data).

Procedure:

1. Right click > create-> programming lines.

2. In the Input parameters pass TEXT NAME, TEXT ID, Text Object and Interanal table(itab) and In output paramaeters the Internal table (itab).

3. call function Read_text and pass the values.

4. create a table for Itab.

5. create a text node.

6. Keep a condition on the text node sy-tabix = 3 in the condition tab of the text node.

7. &itab-line&

Former Member
0 Kudos

Hi,

Tcode VF03 enter Billing Doc no -


>goto header-----> select header texts

When you get the values Textname, text id, textobject to the smartform.

call the FM read_text in the programing lines to get the long text in the internal table. Another way to retrieve the long text is to use INCLUDE but for your requirement is better to uses READ_TEXT function module.

Once you get the data in the internal table.

Create table and loop the long text internal table. Now in the table when create a text node, keep a condition on the text node in the conditions column that when sy-tabix = 3. Which means you are skipping two lines (Administrative data).

Procedure:

1. Right click > create-> programming lines.

2. In the Input parameters pass TEXT NAME, TEXT ID, Text Object and Interanal table(itab) and In output paramaeters the Internal table (itab).

3. call function Read_text and pass the values.

4. create a table for Itab.

5. create a text node.

6. Keep a condition on the text node sy-tabix = 3 in the condition tab of the text node.

7. &itab-line&

<b>Check this link for sample program</b>

Regards,

Maha

Former Member
0 Kudos

use READ_TEXT FM in print program,

Goto VF03>, header> texts click on the text and use Call log icon, which willl show u the Object , ID details of text

Former Member
0 Kudos

Hi sreejit,

How to use it in smartforms and how to get the fields name to pass into that FM.