cancel
Showing results for 
Search instead for 
Did you mean: 

convert CURR data type to _________

Former Member
0 Kudos

Hi experts,

I have two doubts ....... In the smartform i take a templet and inside the templet i m printing basic salary in the colun of templet. But,Problem is it takes so much space (its aCURR field and size is 13) .

I need to do this space minimize. and tell me how we convert this CURR data type to another datatype for print.

now taking space like this /_________________/ i need like that /_______/

Thanks,

Swapnika

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

you can use &amount+0(10)&

Former Member
0 Kudos

Hi,

Take a new character variable and check out how much length you can provide it for this variable.

Now move the amount field into the new variable and the print it

convert curr to char

SHIFT GWA_INPUT_TABLE-VALUE LEFT DELETING LEADING SPACE.

TRANSLATE GWA_INPUT_TABLE-VALUE USING ', '.

CONDENSE GWA_INPUT_TABLE-VALUE NO-GAPS.

G_AMOUNT = GWA_INPUT_TABLE-VALUE.

now condense this g_amount.

But you need to find out how much big the value may come into the amount field. Depending on this you need to create the new variable.

Regards,

Venkatesh