2008 May 12 7:41 AM
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.
2008 May 12 7:45 AM
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.
2008 May 12 7:43 AM
2008 May 12 7:45 AM
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.
2008 May 12 7:56 AM
Hi guys,
Yes the cell is editable.
Kumar : are you saying it is not possible ?
Thanks
2008 May 12 8:08 AM
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'.
2008 May 12 8:13 AM
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.
2008 May 12 8:15 AM
ok then give a try create a search help thru this [link|http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm]
2008 May 12 8:36 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |