Skip to Content

Passing values to script

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2005 at 01:10 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2005 at 01:07 PM

    Hi

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

    so check where count is declared in your program.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2005 at 01:10 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.