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

Check for Valid UOM

Former Member
0 Likes
2,166

Hello ,

I wanted to know whether any function module exists to check for the valid unit of measurement (UOM) entered.

thanks,

Rashmi.

3 REPLIES 3
Read only

Former Member
0 Likes
1,043

You can check the entry with the table T006 or attach a check table in the dictionary for the field.

Manoj

Read only

Former Member
0 Likes
1,043

Hi,

SELECT-OPTIONS: s_MSEHI FOR  t006-MSEHI.         "UOM      
AT SELECTION-SCREEN.

*Validate uom
  PERFORM validate_uom.
FORM validate_uom.
DATA: v_MSEHI LIEK t006-MSEHI.
  SELECT SINGLE MSEHI INTO v_MSEHI
         FROM T006
         WHERE MSEHI IN s_MSEHI.

  IF sy-subrc NE 0.
    MESSAGE i128.
    LEAVE LIST-PROCESSING.
  ENDIF.

ENDFORM.

Hope this is clear.

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,043

Hello Rashmi

You could use function module <b>CF_TA_T006_READ</b> or <b>CO_TA_T006_READ</b>.

Regards

Uwe