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

Problem in displaying the text in script

Former Member
0 Likes
463

Hi Experts,

I am working on a script, here is the code which I have done. Now the problem is below two includes are there. from that text has to be written two times but the second include only working , first include is not working . when I was debugging it &PLANTSES& is having 'ZTEST_1435' . but still text is not displaying . help me in this please.

DEFINE &PLANTSES& := u2018ZTEST_&EKPO-WERKS&u2019

INCLUDE &PLANTSES& OBJECT TEXT ID ST LANGUAGE &EKKO-SPRAS&

INCLUDE 'ZTEST_1435' OBJECT TEXT ID ST LANGUAGE &EKKO-SPRAS&

Thanks & Regards

G.S.Naidu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
434

You probably need to define the variable as blank, then do the perform ABAP subroutine that is described in Appendix A-19-A-21 of the SAPScript Made Easy Manual... It's been a while since I did this, so beware...

DEFINE &PLANTSES& := ' '

...

/: perform set_plantses in program <z_programname> "a subroutine pool essentially.

/: using &EKPO-WERKS&

/: changing &PLANTSES&

/: endperform

form set_plantses tables IN_PAR structure itcsy "your EKPO-WERKS is in field value

out_par structure itcsy.

data: xpar type itcsy.

read table in_par into xpar index 1.

read table out_par index 1.

concatenate 'ZTEST_' xpar-value into out_par-value.

modify out_par index 1.

endform.

2 REPLIES 2
Read only

Former Member
0 Likes
434

Any idea please

Read only

Former Member
0 Likes
435

You probably need to define the variable as blank, then do the perform ABAP subroutine that is described in Appendix A-19-A-21 of the SAPScript Made Easy Manual... It's been a while since I did this, so beware...

DEFINE &PLANTSES& := ' '

...

/: perform set_plantses in program <z_programname> "a subroutine pool essentially.

/: using &EKPO-WERKS&

/: changing &PLANTSES&

/: endperform

form set_plantses tables IN_PAR structure itcsy "your EKPO-WERKS is in field value

out_par structure itcsy.

data: xpar type itcsy.

read table in_par into xpar index 1.

read table out_par index 1.

concatenate 'ZTEST_' xpar-value into out_par-value.

modify out_par index 1.

endform.