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: 

decimal to Char - converts the decinmal value to ##

Former Member
0 Kudos
236

Hi Guys,

field symbol: <new_entry> type standard table.

data: i_temp type table of BAPIXMSPOW .

I have created a field symbol which stores the table entries. When the user tries to maitain any table i am tracking the changes made into the filed symbol. The field symbol is a dynamic structure based on the table entered by the user.

I am passing the records in filed symbols to another table ( i_temp ) of type BAPIXMSPOW ( char 4096 ).

Dump occurs when a decimal value is encountered in the field symbol, the value for decimal field in the field symbol is taken as #.

For eg if the field in the field symbol is 2.12 then while assigning it to i_temp SAp CONVERTS IT TO ###, hence dump.

Can you please let me now if their is any other alternative.

I am passing this i_temp table to an RFC from the program. As this is a dynamic structure i cant define a constant table structure in the RFC hence declared i_temp with 4096 char ( which has a specific reason as well).

Also, RFC requires a refrence for any of the table mentioned in the input output paramenter which is not the case with the normal function module. hence had to declare a refrence i.e BAPIXMSPOW in our case.

Is their any alternative where we can dynamically refer the table entered by user directly in the RFC.

Regards

Litesh.

4 REPLIES 4

Former Member
0 Kudos
156

Hi,

uhmmm, in my system this is not a problem. Have you tried to define I_TEMP as of type STRING ??

Probably it is the decimal sign what is perturbing the data conversion. Perhaps you must transform '2.12' into '2,12' before moving values.

You should also work with a block TRY ... ENDTRY and CATCH for avoiding a short dump.

0 Kudos
156

Jorge ,Thnks for your prompt response.

Again it depends on the user notation. however that would be the final solution where i need to track down the decimal or currency fields indvidually. and modiy the entry as i m refering the export table as character. But would appreciate if i can have a reference which would be a dynamic one in RFC ...

0 Kudos
156

Hi Jorge,

Can you please let me know which system you are working on, as we are working on version 4.7.

Maybe it is because of the older version, we are currently upgrading to 6.0.

0 Kudos
156

Hello Jorge,

Any updates?

Thanks,

Litesh