cancel
Showing results for 
Search instead for 
Did you mean: 

scripts doubt

Former Member
0 Kudos

i have code in script text elements as

/: IF &EKKO-EKORG& EQ 'abcd'

z2 &KOMVD-VTEXT& &KOMK-WAERK& &KOMVD-KWERT&

/: ENDIF

it is giving output as

Tax INR 0.000

Total INR 85,000

i want to eliminate Tax INR 0.000 from printing.

urgent..

Regards,

Ratna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ratna,

check like this

/: IF &EKKO-EKORG& EQ 'abcd'

IF &KOMVD-KWERT& <> '----


0.000 '

z2 &KOMVD-VTEXT& &KOMK-WAERK& &KOMVD-KWERT&

endif

endif

SEE THAT FIELD COPY THE VALUE WITH SPACES AND PASTE IT WITHIN THE QUOTES AND TRY IT AGAIN. Replace --- with the blanck places take the as many spaces n 0.000 equal tohe lenght of the field

~~guduri

Answers (2)

Answers (2)

Former Member
0 Kudos

HEY,

jst learn me as to how u r able to print two line values

while the field jst define singe decription,header currency and condition value.

i think u r writing it explicitly.

jst re check it.

if it is a text element put a condition for that element.

Former Member
0 Kudos

Then put the condition like this

/: IF &EKKO-EKORG& EQ 'abcd'

IF &KOMVD-KWERT& <> ' '

z2 &KOMVD-VTEXT& &KOMK-WAERK& &KOMVD-KWERT&

endif

endif

Check in this way and let me know if u face any problem.

Regards

Former Member
0 Kudos

I am still getting the same output

Former Member
0 Kudos

just go to debugger mode and check from which variable u get this value comment this variable.