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

convert format with zero

adil
Participant
0 Likes
329

Hi

how to convert 5 ( type I ) into '0005' (Type C) .?

thanks

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
309
REPORT  zj_test LINE-SIZE 162.
DATA: i(4) TYPE i VALUE '5'.
DATA: c(4) TYPE c.

c = i.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input  = c
  IMPORTING
    output = c.

WRITE: c.
1 REPLY 1
Read only

former_member156446
Active Contributor
0 Likes
310
REPORT  zj_test LINE-SIZE 162.
DATA: i(4) TYPE i VALUE '5'.
DATA: c(4) TYPE c.

c = i.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input  = c
  IMPORTING
    output = c.

WRITE: c.