cancel
Showing results for 
Search instead for 
Did you mean: 

doubt in smartform

Former Member
0 Kudos

Hi,

In an custom invoice smartform, text element is given as

IF &ZKA_JEXP& NE '0.00'

Exise duty &KBERT_ZJEXP(11)'%'&

&'Excise duty'KBERT_ZJEXP(Z11)'%'&

ENDIF

here what does that 11 and z11 indicate?

wat does the 2nd line indicate?

There is a space comes between 'Excise duty' and value of KBERT_ZJEXP,hw can i reduce the space?

Accepted Solutions (1)

Accepted Solutions (1)

alex_m
Active Contributor
0 Kudos

Hi,

KBERT_ZJEXP(11), this indicates only 11 charecter length would be printed.

'KBERT_ZJEXP(Z11, Z will eliminate leading zeros and only 11 charecters printed.

Exise duty &KBERT_ZJEXP(11)'%'&, Just remove the space between like below

Exise duty&KBERT_ZJEXP(11)'%'&,

Former Member
0 Kudos

Alexander,

Thanks.

But when i saw the form editor the 2nd line was in comment,third line was the actual line.

I need to reduce space between excise duty and KBERT_ZJEXP.

Can i give as Z10 ( for eg.,KBERT_ZJEXP(z10)?

alex_m
Active Contributor
0 Kudos

You can check by doing that, I doubt the space comes from KBERT_ZJEXP, becasue there is no space between the text and variable.

Former Member
0 Kudos

Hi,

before u printing 'KBERT_ZJEXP' just use CONDENSE to delete the leading spaces then print.

Eg: CONDENSE KBERT_ZJEXP deleting leading space.

Exise duty&KBERT_ZJEXP(11)'%'&.

Hope it helps!!

Rgds,

Pavan

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

You want to suppress the spaces.

TO do this you must add the C option. This compress all spaces to 1 space.

so your command will be:

Exise duty&KBERT_ZJEXP(C)'%'&.

This will work.

Gr., Frank

Former Member
0 Kudos

Hello Thyagu ,

Write this &'Excise duty'KBERT_ZJEXP(C)'%'&

Regards,

Vanu.