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

conversion routine usage

Former Member
0 Likes
1,971

hi

i want to use this conversion routine in my report .

based on my zXXx table (in this i had assigned ebeln = 10004),

based on this i want to get lifnr from ekko and eindt,bedat from ekpo.

problem is their ebeln = '00000010004.

so i want to use this conversion routine'

in first select queiry i had called this ebeln based on again i had written select statement if ebeln = ekko-ebeln .based on this

lifnr will come .again i had written select queiry for ekpo also .

tell me where i have to call fm of conversion routine .

and how to call

send ex: code

thanks a lot

4 REPLIES 4
Read only

koolspy_ultimate
Active Contributor
0 Likes
904

hi , try

when printing just use fieldname+6(5). so that you will get '10004' only.

Read only

0 Likes
904

can u explan me clearly ...

if ebeln will convert to 10004 to 00000010004 only data will come i.e (lifnr and eidnt,bedat).

Read only

0 Likes
904

in your loop before printing just add this to your work area of that particular field


+6(5)." wa_fieldname+6(5)

Read only

Former Member
0 Likes
904

Hi,

first your getting the ztable values right?

in your ztable the ebeln value is 10004. loop the internal table and call the conversion routine the value will be change like 00000010004. below code


select * from ztable into table it_table.

loop at it_table Assigning <fs_table>.
call Function 'CONVERSION_EXIT_ALPHA_INPUT'
Import 
  INPUT = <fs_table>-ebeln
Export
  OUTPUT = <fs_table>-ebeln . "change the value '00000010004'
endloop.

right the select query for EKKO

Select * from EKKO into table it_ekko
    for all etries it_table
    where ebeln = it_table-ebeln.

Regards,

Dhina..