2013 Jul 23 5:54 PM
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
2013 Jul 23 5:59 PM
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
2013 Jul 24 4:22 AM
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
2013 Jul 25 5:52 PM
I need to merge both F4 and the alternative unit of measure in MARM.
2013 Jul 26 4:02 AM
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