Application Development 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: 

Unit of Measure search help for a specific material

Former Member
0 Kudos

Dear all,

I am looking for a search help (F4 press) to bind it with the UOM column in the ALV to display the alternative units of measure that are available for this material only not the whole list.

Thanks a lot.

Regards,

Mohammed Mohsen

4 REPLIES 4

Former Member
0 Kudos

hello,

There is no standard way of getting it. You will have to code the F4 event and write your code there.

See FM 'F4IF_INT_TABLE_VALUE_REQUEST'. Also check the ALV report BCALV_TEST_GRID_F4_HELP.

best regards,

swanand

Former Member
0 Kudos

s/m Mohammed,

Well if you need the F4 you have the reply.. if you need the table of alternate UoM for material you can find the data in MARM

Regards

0 Kudos

I need to merge both F4 and the alternative unit of measure in MARM.

0 Kudos

s/m Mohsen,

On how to attach an F4 to an editable ALV you can refer to below program

BCALV_GRID_F4_HELP / BCALV_TEST_GRID_F4_HELP [on ECC 6.0]

OR

https://scn.sap.com/thread/578843

When you create a method for event "ONF4" of cl_gui_alv_grid you will get the row id.

Read the table with the row id and get the matnr

Read table MARM for this MATNR and then use 'F4IF_INT_TABLE_VALUE_REQUEST' to display the search help.

Regards