Application Development 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: 

Why am NOT getting dump, while populating QUAN field with CHAR field?

Former Member
0 Kudos
187

Hi Experets,

Just curious,

Am getting the QUANTITY say, 1.000 from flat file into my_tab-quantity, where my_tab-quantity is a

CHAR(17) field.

Am populating the same value into EBAN-MENGE via BAPI_PR_CREATE, by filling the corresponding BAPI structure/tbl - bapimereqitemimp-quantity field, where this bapimereqitemimp-quantity is QUAN(13,3) filed, WITH OUT ANY DATA TYPE CONVERSION!!!.

So, pls. clarify me that,

1 - Am populating this BAPI - QUAN data type filed with my_itab-quantity CHAR filed, WITH OUT CONVERSION, am NOT getting any dump/error?? Normally, it shuld dump, right?

coz, in my other prog. when am doing the same i.e. moving from a CHAR to QUAN field, I got the dump, but that time, I did NOT used the BAPI,

2- Do U think that, BAPI is taking care of it?

thanq

1 ACCEPTED SOLUTION

Former Member
0 Kudos
67

U'll get dump if the char field contains comma( , ) or a non-

numeric character ..

If char contains 0123456789. it will not give dump ...

5 REPLIES 5

Former Member
0 Kudos
68

U'll get dump if the char field contains comma( , ) or a non-

numeric character ..

If char contains 0123456789. it will not give dump ...

0 Kudos
67

U'll get dump if the char field contains comma( , ) or a non-

numeric character ..

- 1) comma: so, do u mean that, if it runs for europe guys(where comma is used for decimal), it dumps?

2) wht do u mean, non-numeric character, i mean, example for it?

If char contains 0123456789. it will not give dump ...

- 1) u mean, 0123456789 plus "." do not throw dump? bcoz, for decimal am not getting dump!

thanq

0 Kudos
67

If U have a ' , ' it will dump ...

If U have a . it will not dump ...

For europe also .. U need to convert and send the data ...

0 Kudos
67

For europe also .. U need to convert and send the data ...

here, thier USER SETTINGS are set for comma, right? even though, Do I need convert from comma to decimal?

thanq

Former Member
0 Kudos
67

hi check this..

do like this...

data: char(25) value '1.000' .

replace all occurrences of '.' in char with ' ' .

condense char .

write: char.

regards,

venkat.