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

write a Function to remove or added leading Zeros

Former Member
0 Likes
1,149

EXPLAIN.. in Detail

EXPLAIN.. in Detail

8 REPLIES 8
Read only

Former Member
0 Likes
1,127

Reward points..

Read only

Former Member
0 Likes
1,127

Hi,

Use

CONVERSION_EXIT_ALPHA_INPUT :

call function 'CONVERSION_EXIT_ALPHA_INPUT'

exporting

input = v_coinr

importing

output = v_coinr.

CONVERSION_EXIT_ALPHA_OUTPUT :

call function 'CONVERSION_EXIT_ALPHA_OUTPUT'

exporting

input = v_coinr

importing

output = v_coinr.

Read only

Former Member
0 Likes
1,127

Use FM's :

CONVERSION_EXIT_ALPHA_INPUT

CONVERSION_EXIT_ALPHA_OUTPUT

Read only

0 Likes
1,127

Hi

We can able to without using this function .. it is possible pl let me know

Read only

0 Likes
1,127

Hi,

You can use UNpack command for add the zeros and pack command for remove the zeros.

Example :

DATA : TEMP(10) VALUE '10'.

UNPACK TEMP TO TEMP.

WRITE : TEMP.

The output will be 0000000010.

Thanks.

Read only

Former Member
0 Likes
1,127

Hi,

Use SHIFT statement.

SHIFT LV_VAR LEFT DELETING LEADING LV_VAR1.

SHIFT LV_VAR RIGHT DELETING TRAILING LV_VAR1.

Ex:

SHIFT LV_STRING LEFT DELETING LEADING '0'.

if its useful reward points

Read only

Former Member
0 Likes
1,127

use

shift <table-field> left deleting leading '0'.