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: 

how to move a character field to quantity field

Former Member
0 Kudos

how to move a character field to quantity field

1 ACCEPTED SOLUTION

Former Member
0 Kudos

convert the character to amount then you can use the FM HRCM_STRING_TO_AMOUNT_CONVERT

4 REPLIES 4

Former Member
0 Kudos

convert the character to amount then you can use the FM HRCM_STRING_TO_AMOUNT_CONVERT

anversha_s
Active Contributor
0 Kudos

hi,

data: v_char_field(100),
v_qty_num type rl03t-pickm.

call function 'MOVE_CHAR_TO_NUM'
exporting
chr = v_char_field
importing
num = v_qty_num
exceptions
convt_no_number = 1
convt_overflow = 2.

if sy-subrc <> 0.
"write/throw error message
endif.


2)QSS0_CHAR_FLTP_CONVERSION.

Regards

Anver

Former Member
0 Kudos

HI,

data: quan like VBBE-VMENG

data:char(16).

char = quan.

Move the quantity value into a variable of type Characrter.

Regards,

Ram

Former Member
0 Kudos

Try this FM

CONVERSION_EXIT_QUANT_OUTPUT