Skip to Content
avatar image
Former Member

script

Hi sdn,

I have created script, in that script side i want print address as follows

IF &name& = 'x'. -


command line.

&name&. -


default peragraph.

endif. -


command line.

if &street& = 'x'.

&street&

endif.

but the values are not coming to the script side.

please tell me how can i write conditions at script side?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 21, 2008 at 03:27 AM

    Hi Phani,

    Did you check the layout of the window. I think you Layout overflows as a result your output is not coming.

    Please Debug the Script and then only you will get the solution. Activate the debugger and debug the program.

    Thanks,

    Chidanand

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2008 at 04:24 AM

    Hi,

    Check if you are using '/:' for the command line.. You can not use all the key words that you use in SAP ABAP... for addres format you can use ' ADDRESS' and END ADDRESS...

    Make sure you are passing 'X' or 'x' to check the flags (name and street)..

    regds,

    Madan..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 21, 2008 at 04:49 AM

    Hi,

    IF &name& = 'x'. command line.

    &name&. -


    default peragraph.

    endif. -


    command line.

    if &street& = 'x'.

    &street&

    endif.

    but the values are not coming to the script side.

    Why you are checking &name& against 'x', is that does not contain any name other than x and then again you are writing that &name& in script is that correct first. if that is correct means you are writing x in the output of the script both for name and street. please check the variables that you want to check against in order to write the name and address. while checking variable make sure that it is correct 'X' or 'x' which one you want to check.

    Hope this will give you some idea,

    Regards,

    Aswini.

    Add comment
    10|10000 characters needed characters exceeded