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 scripts conditions

Former Member
0 Likes
671

i want to determine the tax with the following conditions. is it right what i wrote here.

Determine Tax

IF <KO>-KNTYP EQ 'D'

and <FS>-loekz <> 'L'.

ADD <KO>-KWERT TO GV_TAX.

CLEAR GV_KWERT.

ENDIF.

4 REPLIES 4
Read only

Former Member
0 Likes
644

where are you writing this Conditions?

in script layout editor?

if so you have place & symbol before and end of each variable.

like &V1&.

Regards

Srikanth

Read only

0 Likes
644

i am working on smartforms. is the variables to be kept beteen &&! in smartforms too..

Read only

0 Likes
644

then its not required to place &. your IF logic seems to be fine.

Regards

Srikanth

Message was edited by: Srikanth Kidambi

Read only

Former Member
0 Likes
644

if ur writing this logic in the Print program then Its okie..and If u wants to populated through SAP script form then U have to write this code in the Editor and U have to Use &Var_Name&..