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 Control Command

Former Member
0 Likes
661

Hi Ppl,

I have a SAP Script command like this :

/: IF &W_VAT& NE C_INITIAL

C1 Recoverable VAT Amount :,,,,,,,,,,,, &w_vat&

/: ENDIF

C_INITIAL is type KBETR value is INITIAL.

But if W_VAT is initial, still the control is going into the IF Statement.

Can anyone tell me why?

Thx in Adv.

- Raj

6 REPLIES 6
Read only

Former Member
0 Likes
624

can we clear state ment before chechiking?

regards,

padma.

Read only

Former Member
0 Likes
624

try this

/: IF &W_VAT(C)& NE C_INITIAL

C1 Recoverable VAT Amount :,,,,,,,,,,,, &w_vat&

/: ENDIF

regards

shiba dutta

Read only

0 Likes
624

Thx Shiba,but not helpful...it is not happening...

Read only

former_member508729
Active Participant
0 Likes
624

Hi Rajshri,

Have you seen in dubugging mode the variable w_vat is initial.

Regards,

Ashutosh

Read only

Former Member
0 Likes
624

i think in C_INITIAL also some space problem may be there so can you try with

/: IF &W_VAT(C)& NE '0'

regards

shiba dutta

Read only

0 Likes
624

Thank you all,I have solved the problem by my own.As the W_VAT is a QUAN field we need to check it by '0.00'