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: 

SAP Script error

Former Member
0 Kudos

Hi Experts

I am new to the SAP SCRIPT, can anyone correct the following.I have done the text elements as follows.

/: IF &BSIK-WAERS& EQ 'INR'

/: IN CONNECTION WITH AUDIT OF THE FINANCIAL STATEMENTS OF OUR

COMPANY AS date was Rs.

/: ELSE

/: IN CONNECTION WITH AUDIT OF THE FINANCIAL STATEMENTS OF OUR

COMPANY AS date was $

/: ENDIF.

Inwhich IF condition is not working actually, what cud be the reason.

Please advise me on the same.

Regards

Rajaram

7 REPLIES 7

Former Member
0 Kudos

Hi,

<b>here AS is some paragraph format

chek which paragraph format you are using

and give the same

/: is used only for commands

not to display the data</b>

/: IF &BSIK-WAERS& EQ 'INR'

<b>AS</b> IN CONNECTION WITH AUDIT OF THE FINANCIAL STATEMENTS OF OUR

COMPANY AS date was Rs.

/: ELSE

<b>AS</b> IN CONNECTION WITH AUDIT OF THE FINANCIAL STATEMENTS OF OUR

COMPANY AS date was $

/: ENDIF.

regards,

Venkatesh

Former Member
0 Kudos

Hi Raja,

/: if &bisk-waers& eq 'INR'.

  • IN CONNECTION WITH AUDIT OF THE FINANCIAL STATEMENTS OF OUR COMPANY AS date was Rs.

/: ELSE.

  • IN CONNECTION WITH AUDIT OF THE FINANCIAL STATEMENTS OF OUR COMPANY AS date was $

/: ENDIF.

give like this

0 Kudos

I checked with both of your suggestion, but still its not working yar.

0 Kudos

debug your SAPScript and check atleast whatever conditions you ar echecking in SAPScript are getting fullfilled or not...

For debugging->

1.go to SE71

Utilities->Activate Debugger

2. Execute your TCODE

3. Debug the SAPScript

Former Member
0 Kudos

Hi,

if you are not getting it properly,

then delete all these lines

activate it

then now with no conditions

print the hard code text

and see the output

now put only one if condition

and then se e the output

and then put the next condition

i have done like this and it got resolved for me

regards,

Venkatesh

0 Kudos

Hi yar

i deleted all the lines and trying to display the following line only

According to our records our indebtedness to you as on that date was $.

but it display

According to our records our indebtedness to you as on that date was Rs.

I don't know why its changed automatically, or any other mistake have i done.

Regards

Rajaram

Former Member
0 Kudos

/: IF &BSIK-WAERS& EQ 'INR'

/ IN CONNECTION WITH AUDIT OF THE FINANCIAL STATEMENTS OF OUR

= COMPANY AS date was Rs.

/: ELSE

/ IN CONNECTION WITH AUDIT OF THE FINANCIAL STATEMENTS OF OUR

= COMPANY AS date was $

/: ENDIF.