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 : Image problem

Former Member
0 Kudos

Dear Friends,

I am working on Check, it is working fine.

Now My requirement is, If the net Amount is more than 50,000. I should populate second signature.

So, I have created other window with second signature and in Script editor.

I wrote

/: IF &REGUD-SWNET& GE 50000

/: BITMAP .........

/: ENDIF

But it is not working. when I remove the condition both signatures are poping up. I dont know where I am doing mistake.

1) Should I put '50000.00' or '50,000' or without inverted commas just 50,000

2) rugud-swnet field contains comma and decimals, so it is making any problem.

3) I have tried even using &REGUD-SWNES&, but this field contains ****50,000.

Please advice me. Also advice me, when should we use inverted commas and when should not.

Thanks & Regards

Venkat.

1 ACCEPTED SOLUTION

sridhar_k1
Active Contributor
0 Kudos

Try

IF REGUD-SWNET& GE '        50,000.00 '

Total length between the single quotes should be 18 chars and adjust the decimal places according to ur requirement.

Regards

Sridhar

Message was edited by: Sridhar K

6 REPLIES 6

Former Member
0 Kudos

Try

/: IF &REGUD-SWNET& GE '50000'

/: BITMAP .........

/: ENDIF

0 Kudos

Did you try this:

IF &REGUD-SWNET& GE '50000'

0 Kudos

Hi Nag & Sridhar,

I got it !! Thanks for your suggestions.

I just put

regud-swnet ge ' 50,000.000'

with 18 charecters between inverted commas.

Sridhar you are right, first time I tried with 2 decimal points.

Nag, I tried your suggestion as well, But that was not working.

Anyway... Thank you very much, I am closing this thread and alloting points.

Thanks & Regards

Venkat

Message was edited by: venkat Kumbham

sridhar_k1
Active Contributor
0 Kudos

Try

IF REGUD-SWNET& GE '        50,000.00 '

Total length between the single quotes should be 18 chars and adjust the decimal places according to ur requirement.

Regards

Sridhar

Message was edited by: Sridhar K

0 Kudos

Thanks Nag & Sridhar for your replies.

However as per sridhar suggestion, both signatures are poping-up even if regud-swnet is less than 50,000.

please advice me further.

Thanks

Venkat

Former Member
0 Kudos

Hi,

Declare a variable similar as type c, lets say <var>.

Now assign <var> = amount.

condense <var>.

now try cheque value gt <var>.

Reward points if helpful.

Regards