cancel
Showing results for 
Search instead for 
Did you mean: 

Header text in Smartforms

Former Member
0 Kudos

Hi ,

In smartforms I have to print header text like this following.

example: 'amend no: 2541/1258'.

I am getting the text.But if text does not exists the entire line shouldn't print.

I've given 'amend no:' in one text node and include text in another one text node(append directly).

I am checking condition SY-SUBRC for include text.but what can i do not to get the text 'amend no:'. if text does exists.Is there any command/condition to test the existence of Standard text before including it.

Please help me regarding this issue.

Thanks&Regards,

Murthy.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

&Text:VAR1&

Text: is any text u want to be displayed along with the variable

VAR1 is any variable in smartform containing value

e.g:

&Employee ID: G_PERNR&

Former Member
0 Kudos

Hi Amit,

Its ok. But here i have to display standard text (Eg: Text name:&gf_tdname& text object:VBBK Id Z006

language : &CONTROL_PARAMETERS-LANGU& ).

I Am directly including this text by giving the above values.

How can i send it to variable?

Thanks&Regards,

Murthy.

Former Member
0 Kudos

hi kan ,

see frst in ur code put a select query

select * from stxh into table it_stxh where tdobject eq 'VBBK' and tdname eq gf_tdname and tdid eq 'Z006'

if sy-subrc = 0

v_flg = 1

endif

now put this v_flg condition there in include text.

it wil surely help u bcz if v_flg is 1 then onle text will be printed else the label will also not come .

regards,

prashanti

Former Member
0 Kudos

Hi,

Before the text node create a program lines and call FM READ_TEXT with the parameters used in the text include.

And if the Text Not Found exception is triggered set a flag and use it in the conditions of the text node.

Regards

Karthik D

Answers (2)

Answers (2)

Former Member
0 Kudos

Text name:&gf_tdname&

Make it

&Text name:gf_tdname&

Former Member
0 Kudos

Do it like this

&Text:VAR1&

Former Member
0 Kudos

Hi Amit,

Please explain it.

What is VAR1?

Am new to smartforms.

Regards,

Murthy.