‎2011 Aug 04 9:28 AM
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
‎2011 Aug 04 9:46 AM
hi , try
when printing just use fieldname+6(5). so that you will get '10004' only.
‎2011 Aug 04 9:53 AM
can u explan me clearly ...
if ebeln will convert to 10004 to 00000010004 only data will come i.e (lifnr and eidnt,bedat).
‎2011 Aug 09 8:30 AM
in your loop before printing just add this to your work area of that particular field
+6(5)." wa_fieldname+6(5)
‎2011 Aug 04 10:10 AM
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..