Application Development 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: 

dynamically attach include texsts

former_member186143
Active Contributor
0 Kudos

I have a sapscript form in SE72 where I use the INCLUDE option for textobjects.

now I want to use the same form more dynamically so I have made a custom table where I register which text objects I want to use according to which ordertypes.

in my ABAP i put the name of the textobject in a field h_headertext.

If I try to use it in my form it is not working ?

when I do

INCLUDE 'Z_6300_KOSTENRAMING_DISCLAIMER' OBJECT TEXT ID ST

it is working but when I use

INCLUDE &h_headertext& OBJECT TEXT ID ST

it is not working ?

is there someting else I must do to make it work ? I searched and found something about RSTXTRAN but I cant figure out if that is meant for this purpose ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

In the debug mode have checked the variable &h_headertext& is having the value of the stanard text.

Check this.

If useful reward.

Vasanth

3 REPLIES 3

Former Member
0 Kudos

Hello,

In the debug mode have checked the variable &h_headertext& is having the value of the stanard text.

Check this.

If useful reward.

Vasanth

Former Member
0 Kudos

Hi. A de Smith,

do you have debug your sapscript and looked if the

&h_headertext& has the right value (Z_6300_KOSTENRAMING_DISCLAIMER)?

Regards, Dieter

Former Member
0 Kudos

hi Smidt,

first check whether the variable you mentioned is getting the value in script or not.

if it gets it will definetely work.

RSTXTRAN is program which is used to transfer the Standard texts from one client to other( eg: R3D to R3T) i.e we can assign standard text to a transport request.