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

Passing values to script

madan_ullasa
Contributor
0 Likes
537

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
Read only

Former Member
0 Likes
505

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
Read only

Former Member
0 Likes
505

Hi

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

so check where count is declared in your program.

Max

Read only

Former Member
0 Likes
505

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

Read only

Former Member
0 Likes
506

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

Read only

0 Likes
505

thanks dude...

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

10 pts to u :)-

madan....