‎2010 Jan 05 5:04 AM
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
‎2010 Jan 05 12:29 PM
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.
‎2010 Jan 05 5:31 AM
‎2010 Jan 05 12:29 PM
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.