2009 May 12 6:12 AM
hi all,
i have to to give f4 for one field in table maintainence of my custom table.
say i have two fields a, b. say some value is entered a and then f4 is pressed on b.then i need to show f4 based on the value entered in a.
i have written the code in process on value request event but i need to have only that particular record that is having the currten line on which f4 is pressed so that i can fetch on the basis of value of a only.
if any one can tell me if there is any structure that holds the current record.
regards
vj
hi all,
i have to to give f4 for one field in table maintainence of my custom table.
say i have two fields a, b. say some value is entered a and then f4 is pressed on b.then i need to show f4 based on the value entered in a.
i have written the code in process on value request event but i need to have only that particular record that is having the currten line on which f4 is pressed so that i can fetch on the basis of value of a only.
if any one can tell me if there is any structure that holds the current record.
regards
vj
2009 May 12 6:21 AM
Try this:
You use F4 help on one field and want to transfer values for another field on the screen with values from this
data loto TYPE TABLE OF dselc.
data ls_loto TYPE dselc.
Fill DYNPFLD_MAPPING with fieldname and screen-name
ls_loto-fldname = 'CARRID'.
ls_loto-dyfldname = 'ABC'.
APPEND ls_loto to loto.
CLEAR ls_loto.
ls_loto-fldname = 'CONNID'.
ls_loto-dyfldname = 'ABCD'.
APPEND ls_loto to loto.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = 'SFLIGHT'
retfield = 'CARRID'
* PVALKEY = ' '
DYNPPROG = sy-repid
DYNPNR = sy-dynnr
DYNPROFIELD = 'ABC'
VALUE_ORG = 'S'
tables
value_tab = it_sflight
FIELD_TAB = lot
RETURN_TAB = ret
DYNPFLD_MAPPING = loto.
2009 May 12 6:49 AM
Hi
As per your query i understood that When table maintainance is done for a table from SM30, on selection of F4 help value of Field1 should determine the F4 help values for field2.
This can be done in below approach
1) For Field 1 and Field 2 create a new application master table and maintain all the possibilities of F4 help values for field 1 & field 2- say table is A
2) use field 1 & field 2 as part of other fields in any table and maintain check table relation ship for both fields with table A
2009 May 12 6:54 AM
2009 May 12 7:01 AM
Use FM DYNP_VALUES_READ to get the display component of the table maintenance generator.
Regards,
Joan
2015 Sep 20 12:55 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |