‎2006 Feb 07 7:56 AM
Hi experts,
Iam trying to extract the data from ITOB-TPLNR.
While iam extrcting the data, iam getting 00?000000000002.
If i check conversion exit box iam getting proper data.
How can i get proper value? into my ITAB?
thanks
kaki
‎2006 Feb 07 8:18 AM
Hi Kaki,
have a look to the table IFLOS.
The domain use a field exit. If you double-click on the data element, it will give you the domain. Double click on the domain. There is a Exit conversion routine : TPLNR.
If you double-click SAP will show you the two function code.
You could use this two function directly
Rgd
Frédéric
‎2006 Feb 07 8:20 AM
Hi kaki,
try this code it may help you
tables: itob.
data: begin of itab occurs 4.
include structure itob.
data: end of itab.
select * from itob into table itab
where equnr = 'H10ACB-1'.
loop at itab.
write:/ itab-tplnr.
endloop.
Regards
Manohar
‎2006 Feb 07 8:24 AM
Use the conversion exit FM in ur program before you use the data. Depending upon ur requirement u can use CONVERSION_EXIT_TPLNR_INPUT or CONVERSION_EXIT_TPLNR_output
‎2006 Feb 07 8:27 AM
Hi,
Once you get TPLNR data into itab,just loop the itab as below.
loop at itab into wa.
call function 'CONVERSION_EXIT_TPLNR_INPUT'
importing
input = wa-tplnr
exporting
output = wa-tplnr.
modify itab from wa transporting tplnr index sy-tabix.
endloop.
KIndly reward points if it helps.
‎2006 Feb 08 8:24 AM
‎2006 Feb 07 8:29 AM
TABLES: ITOB.
DATA itab LIKE TABLE OF ITOB WITH HEADER LINE.
DATA m(7).
DESCRIBE FIELD itob-tplnr EDIT MASK m.
SELECT * FROM ITOB INTO TABLE itab.
LOOP AT itab.
WRITE ITAB-TPLNR TO ITAB-TPLNR USING EDIT MASK m.
ENDLOOP.