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

How to get the table Value unconverted using SELECT

Former Member
0 Likes
18,165

In ABAP program, a SELECT is written to find a value being imported from spreadsheet. The value doesn't find match because the table stores an unconverted value. How can I code for this?

For example:

The spreadsheet value is GAL, the table T006 has the Val. as GAL, but the unconverted value is GLL. The select statement is coming back without success.

i_rpt_line-VOLUME_UOM = 'GAL'.

select single MSEHI INTO w_uom

from T006

where MSEHI = i_rpt_line-VOLUME_UOM.

After this call, sy-subrc = 4.

Thanks,

In ABAP program, a SELECT is written to find a value being imported from spreadsheet. The value doesn't find match because the table stores an unconverted value. How can I code for this?

For example:

The spreadsheet value is GAL, the table T006 has the Val. as GAL, but the unconverted value is GLL. The select statement is coming back without success.

i_rpt_line-VOLUME_UOM = 'GAL'.

select single MSEHI INTO w_uom

from T006

where MSEHI = i_rpt_line-VOLUME_UOM.

After this call, sy-subrc = 4.

Thanks,

2 REPLIES 2
Read only

Former Member
0 Likes
7,765

please do check in SDN..

Check out the MSEHI and MSEH3 fields in T006A... there is a conversion routine for Unit of measure (CUNIT) check out the domain MEINS and the convers routine(there are FMs for the conversion) and you can also use that...

Read only

Former Member
7,765

By going to the table, find the domain for the field. Conversion is CUNIT which then shows two conversion. The correct one for my situation was CONVERSION_EXIT_CUNIT_OUTPUT.

Thanks,