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

F4 help for field in ALV grid control (using ABAP objects)

Former Member
0 Likes
1,794

Hi All,

I have created a z table ZTAB which is a master table( with single column X). field X should be a input field in ALV Grid through F4 key. I have created searchelp and assigned it to data element of X feild, and in domain level I have assigned ZTAB as value table.

And in ALV field catalog wrote ls_fcat-ref_tab = 'ZTAB'. But still I'm not getting list of values when I press F4.

Can anyone help me to understand what is missing here? How to call standardard F4 help?

This is very urgent..

Regards

Jaker.

Hi All,

I have created a z table ZTAB which is a master table( with single column X). field X should be a input field in ALV Grid through F4 key. I have created searchelp and assigned it to data element of X feild, and in domain level I have assigned ZTAB as value table.

And in ALV field catalog wrote ls_fcat-ref_tab = 'ZTAB'. But still I'm not getting list of values when I press F4.

Can anyone help me to understand what is missing here? How to call standardard F4 help?

This is very urgent..

Regards

Jaker.

4 REPLIES 4
Read only

Former Member
0 Likes
999

Hi,

Check standard report BCALV_GRID_F4_HELP.

Regards,

Himanshu Verma

Read only

Former Member
0 Likes
999

hi check this....

did u used this...LVC_FIELDCAT_MERGE...

and check this....BCALV_TEST_GRID_F4_HELP

http://help.sap.com/saphelp_erp2005/helpdata/en/f2/6cee408a63732ae10000000a155106/frameset.htm

Read only

Former Member
0 Likes
999

Hi Jaker,

Pls provide the standard F4 help name in the ' Entry / Help Check ' tab for the table ZTAB in SE11.

Declare the field on selection screen type ZTAB-<field>

This might help you.

thanks,

teja.

Read only

Former Member
0 Likes
999

u can refer to this standard program :BCALV_EDIT_08

also u wont get the list of values automatically..

declare a class :

CLASS LCL_EVENT_HANDLER DEFINITION.

PUBLIC SECTION.

METHODS :

handle_on_f4 for event onf4 of cl_gui_alv_grid

importing e_fieldname es_row_no er_event_data,

ENDCLASS. "LCL_EVENT_HANDLER

implementation of class

here u pass ur internal table what u want to display as pop up for f4 help.

*& Class (Implementation) LCL_EVENT_HANDLER

&----


  • Text

----


CLASS LCL_EVENT_HANDLER IMPLEMENTATION.

*Method to handle F4 click.

Method handle_on_f4.

  • Function to create a popup and passing the values of internal table in it.

CALL FUNCTION 'POPUP_WITH_TABLE'

EXPORTING

ENDPOS_COL = 60

ENDPOS_ROW = 60

STARTPOS_COL = 5

STARTPOS_ROW = 5

TITLETEXT = 'pop up'

IMPORTING

CHOICE = wa_grid-zfield

TABLES

VALUETAB = ITAB

EXCEPTIONS

BREAK_OFF = 1

OTHERS = 2.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

RETURN.

ENDIF.

endmethod. "handle_on_f4

ENDCLASS. "LCL_EVENT_HANDLER

hope this gives u some idea.