cancel
Showing results for 
Search instead for 
Did you mean: 

field inserting in form

Former Member
0 Kudos

hi experts,

Im inserting lfa1-adrnr, acording to ekko-lifnr, fetcing the data from lfa1 where lifnr = ekko-lifnr, leading zeeros are not coming thats why not fetching the data from lfa1.

how do i add leading zeeros to that value, where can i add this.

thanks in advane,

radhakrishna. madduru.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can also use CONVERSION_EXIT_ALPHA_INPUT to add leding zeros.

CONVERSION_EXIT_ALPHA_INPUT

exporting

input = ekko-lifnr

importing

output = ekko-lifnr.

Thanks,

NN.

Former Member
0 Kudos

Hi,

Write the code as follows.

Data: l_lifnr(10) type n.

l_lifnr = ekko-lifnr.

select adrnr from lfa1 into adrnr where lifnr = l_lifnr.

Thanks,

NN.