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

Dynamic F4

david_fryda2
Participant
0 Likes
1,054

Hi everyone,

I created an ALV using OO.

In a cell of the ALV, I implemented the F4 method.

When I click on the search help (F4) of the cell, I get the window and select a row but nothing appears back in the cell of the ALV.

Here is the code:

TYPES: BEGIN OF values,

ebeln TYPE ebeln,

bukrs type bukrs,

END OF values.

DATA: progname TYPE sy-repid VALUE sy-repid,

dynnum TYPE sy-dynnr,

values_tab TYPE TABLE OF values.

DATA: lt_ret_tab TYPE TABLE OF values.

SELECT *

FROM ekko

INTO CORRESPONDING FIELDS OF TABLE lt_ret_tab

WHERE ebelnfikrs = '12345678'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'BUKRS'

dynpprog = progname

dynpnr = dynnum

dynprofield = 'BUKRS'

value_org = 'S'

TABLES

value_tab = lt_ret_tab.

Thanks.

Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,029

Hi,

1.Put a break Point in Select Statement and Check whether the values are coming or not.

2.You are selecting the values for the random Number,for those values the system does not give help.

Regards,

Kumar.

Hi everyone,

I created an ALV using OO.

In a cell of the ALV, I implemented the F4 method.

When I click on the search help (F4) of the cell, I get the window and select a row but nothing appears back in the cell of the ALV.

Here is the code:

TYPES: BEGIN OF values,

ebeln TYPE ebeln,

bukrs type bukrs,

END OF values.

DATA: progname TYPE sy-repid VALUE sy-repid,

dynnum TYPE sy-dynnr,

values_tab TYPE TABLE OF values.

DATA: lt_ret_tab TYPE TABLE OF values.

SELECT *

FROM ekko

INTO CORRESPONDING FIELDS OF TABLE lt_ret_tab

WHERE ebelnfikrs = '12345678'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'BUKRS'

dynpprog = progname

dynpnr = dynnum

dynprofield = 'BUKRS'

value_org = 'S'

TABLES

value_tab = lt_ret_tab.

Thanks.

Regards.

7 REPLIES 7
Read only

Former Member
0 Likes
1,029

Hi,

Is the cell editable(Editable ALV)?

Regards,

Atish

Read only

Former Member
0 Likes
1,030

Hi,

1.Put a break Point in Select Statement and Check whether the values are coming or not.

2.You are selecting the values for the random Number,for those values the system does not give help.

Regards,

Kumar.

Read only

0 Likes
1,029

Hi guys,

Yes the cell is editable.

Kumar : are you saying it is not possible ?

Thanks

Read only

former_member156446
Active Contributor
0 Likes
1,029

Hi check the field catalog of that cell element... its needs to refer to a standard table and std. data element... check this example...


fieldcat-fieldname = 'MATNR'.
fieldcat-ref_tabname = 'MARA'.

Read only

0 Likes
1,029

Hi,

The problem is that I want to create a search help for a field that has no search help. This a field of my own table.

Read only

0 Likes
1,029

ok then give a try create a search help thru this [link|http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm]

Read only

0 Likes
1,029

Thanks guys.

I found that F4IF_INT_TABLE_VALUE_REQUEST return a table RETURN_TAB which has the value selected.

Thnaks for the help.

Regards.