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

conversion problem

Former Member
0 Likes
785

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
Read only

Former Member
0 Likes
749

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
Read only

Former Member
0 Likes
749

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

Read only

saranwin
Contributor
0 Likes
749

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

Read only

Former Member
0 Likes
749

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

Read only

saranwin
Contributor
0 Likes
749

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

Read only

Former Member
0 Likes
750

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 .

Read only

Former Member
0 Likes
749

thanks