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

itob table

Former Member
0 Likes
1,220

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

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
928

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

Read only

Former Member
0 Likes
928

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

Read only

Former Member
0 Likes
928

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

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
928

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.

Read only

0 Likes
928

Thank you jayanthi.

full points alloted.

kaki

Read only

Former Member
0 Likes
928
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.