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

how to convert amount

Former Member
0 Likes
951

hi,

i have written one bdc for create invoice.

i am using mr08 tc in which one screen field bseg-wrbtr.

but i have field in internal table is T_AMOUNT(16).

that field have the value 500.00USD.

IF I RUN THAT BDC I AM GETTING ERROR PLEASE ENTER NUMARIC VALUE.

HOW CAN SOLVE THIS ONE

hi,

i have written one bdc for create invoice.

i am using mr08 tc in which one screen field bseg-wrbtr.

but i have field in internal table is T_AMOUNT(16).

that field have the value 500.00USD.

IF I RUN THAT BDC I AM GETTING ERROR PLEASE ENTER NUMARIC VALUE.

HOW CAN SOLVE THIS ONE

7 REPLIES 7
Read only

JozsefSzikszai
Active Contributor
0 Likes
922

hi Venkat,

define a variable (like the field in MR08) and use:

WRITE t_amount TO variable. Than you can put this variable to the batch input internal table (I mean the value inside).

hope this helps

ec

Read only

varma_narayana
Active Contributor
0 Likes
922

Hi Venkat.

you have to Separate this Field '500.00USD' into two fields like '500.00' and 'USD'.

then pass the field '500.00' to BDC Screen field. This field accepts only numeric decimal values.

REWARD IF HELPFUL.

Read only

0 Likes
922

hi,

i already saparated 500.00 and usd.

but 500.00 is decimal value this value is not accepting in bseg-wrbtr .

it is asking only numeric value.

pls solve this one.

Read only

0 Likes
922

move value from t_amount into a field having type bseg-wrbtr.

data zamt type bseg-wrbtr.

move t_amount to zamt.

and den use field zamt in bdc

Read only

0 Likes
922

as I already stated above the solution is to use the statement: WRITE ... TO ...

Read only

Former Member
0 Likes
922

hi,

in internal table declaration.

t_amount like bseg-wrbtr.

fieldvalue = 500.00.

wrbtr can take only Numeric values Since t_amount is like wrbtr.So it will take only numeric values.

Reward with points if helpful.

Read only

former_member188827
Active Contributor
0 Likes
922

use statement

replace 'USD' in t_amount with sapce.

condense t_amount.

den pass dis t_amount field

plz reward points if dis helps.