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: 

conversion problem

Former Member
0 Kudos

Hi,

After executing the program i am getting error like unble to interpret 920,1 as a number.Already i have used fun mod and replace commands also.

But i am getting this error only for perticular input values which i am giving on selection screen.

Pls give me reply ASAP.I would be thankful to u.

And how can i modify the program based on user settings means userprofile.

Regards.

Haritha.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sriharitha,

This might be due to the miss match of the data types what you are sending to the function module.

Once I have faced the same problem, while trying to move the WA_LIKP-VBELN filed(As per my requirement in the functional spec) I had the same problem. After that I tried to pass the value in this way instead of direct passing.

Look to this example for clarification,

DATA: TLINE LIKE TLINE OCCURS 0 WITH HEADER LINE. "Text lines

DATA: NAME LIKE THEAD-TDNAME.

"this is data type declared in FM for NAME field Do the same in "the program.

MOVE WA_LIKP-VBELN TO NAME.

CALL FUNCTION 'READ_TEXT'

EXPORTING

ID = '3011'

LANGUAGE = 'E'

NAME = NAME " WA_LIKP-VBELN.

OBJECT = 'VBBK'

TABLES

LINES = TLINE .

6 REPLIES 6

Former Member
0 Kudos

hi

check this

" convert internal format to user format

CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'

EXPORTING

if_date = lc_date

IMPORTING

ef_date = lc_date.

regards,

Booh

saranwin
Contributor
0 Kudos

Hi,

Give the Input Value Data Type as Character or String in the internal table and Try to Upload. It might be the problem of data type.

Regards,

Saran

Former Member
0 Kudos

Hi,

This would happen if you are moving numeric values to a character field.

Kindly check that and use appropriate data type , this should resolve this error.

Thanks,

Raghavendra

saranwin
Contributor
0 Kudos

Hi,

It's Problem with the Input Value only. Give the Value with Full Length for Example : 000000920. If you give 920 it will give DUMP or error.

Regards,

Saran

Former Member
0 Kudos

Hi Sriharitha,

This might be due to the miss match of the data types what you are sending to the function module.

Once I have faced the same problem, while trying to move the WA_LIKP-VBELN filed(As per my requirement in the functional spec) I had the same problem. After that I tried to pass the value in this way instead of direct passing.

Look to this example for clarification,

DATA: TLINE LIKE TLINE OCCURS 0 WITH HEADER LINE. "Text lines

DATA: NAME LIKE THEAD-TDNAME.

"this is data type declared in FM for NAME field Do the same in "the program.

MOVE WA_LIKP-VBELN TO NAME.

CALL FUNCTION 'READ_TEXT'

EXPORTING

ID = '3011'

LANGUAGE = 'E'

NAME = NAME " WA_LIKP-VBELN.

OBJECT = 'VBBK'

TABLES

LINES = TLINE .

Former Member
0 Kudos

thanks