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

Validation for Amount fields..very urgent

Former Member
0 Likes
470

hI ALL.

I want Validation like Right justify amount decimal point and 2 decimal places.

this is Work area

TYPES: BEGIN OF T_DATATAB,

COL01(60) TYPE C,

COL02(60) TYPE C,

COL03(60) TYPE C,

end of T_datatab.

data: g_t_dbt like table of dbt initial size 10,

wa_dbt type dbt.

DATA : VAL TYPE STRING.

Now i want move value from VAL to wa_DBT-CURRENCY as follows,

move wa_datatab-col07 to wa_DBT-CURRENCY.

MOVE VAL TO wa_DBT-CURRENCY.

so if i give input 100, i need display like 100.00

Help me

helpful answers will be get rewarded.it is very urgent

Regards.

Bhanu

Message was edited by:

bhanu

hI ALL.

I want Validation like Right justify amount decimal point and 2 decimal places.

this is Work area

TYPES: BEGIN OF T_DATATAB,

COL01(60) TYPE C,

COL02(60) TYPE C,

COL03(60) TYPE C,

end of T_datatab.

data: g_t_dbt like table of dbt initial size 10,

wa_dbt type dbt.

DATA : VAL TYPE STRING.

Now i want move value from VAL to wa_DBT-CURRENCY as follows,

move wa_datatab-col07 to wa_DBT-CURRENCY.

MOVE VAL TO wa_DBT-CURRENCY.

so if i give input 100, i need display like 100.00

Help me

helpful answers will be get rewarded.it is very urgent

Regards.

Bhanu

Message was edited by:

bhanu

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
438

Use FM PSSV_TEXT_INTO_FIELD_CURRENCY

regards

Read only

Former Member
0 Likes
438

Hi bhanu,

1. simple

2. just use

WRITE numberfield to charfield.

(it will put the field

in the SAME FORMAT as DISPLAY FORMAT)

eg. YYYYMMDD will put as dd.mm.yyyyy

256 will put as 256.00

regards,

amit m.