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

SAP Script error

Former Member
0 Likes
767

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

Former Member
0 Likes
735

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

Read only

Former Member
0 Likes
735

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

Read only

0 Likes
735

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

Read only

0 Likes
735

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

Read only

Former Member
0 Likes
735

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

Read only

0 Likes
735

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

Read only

Former Member
0 Likes
735

/: 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.