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: 

Passing values to script

madan_ullasa
Contributor
0 Kudos

Frnds,

I have a variable in ABAP print program and the same is being passed to SAP Script layout.

eg. count type i . ( in ABAP program ).

In Script..

/: IF &count& = 0.

-


/: ENDIF

But this is not working.... YYYY?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Sapscript interprets all values as text.

Just use

/: IF &COUNT& = '0'.

/: ENDIF.

If the above does not work then try passing count to a char field in program and then use this field in script.

Cheers

4 REPLIES 4

Former Member
0 Kudos

Hi

You can pass program data only if those are gloabl data,

so check where count is declared in your program.

Max

Former Member
0 Kudos

hi,

check whether the data declared at globally or not?

and check the value assigned for count is before calling corresponding text elemtnt in write_form

count = 10

write_form

cheers,

sasi

Former Member
0 Kudos

Sapscript interprets all values as text.

Just use

/: IF &COUNT& = '0'.

/: ENDIF.

If the above does not work then try passing count to a char field in program and then use this field in script.

Cheers

0 Kudos

thanks dude...

passed the value as a character n its working fine...

10 pts to u :)-

madan....