2009 May 14 8:54 AM
Hi Guys,
I've a field on the selection screen to which i've provided f4 functionality using 'F4IF_INT_TABLE_VALUE_REQUEST' fm. I've a comment field besides the field, whenever i select a record from the f4 screen then comment field should show the description of that.
Right now it is showing description when i press enter. But without pressing enter how can i display that directly. Please help me out.
Suppose my f4 screen is like this
field_value description
a aaa
b bbb
c ccc
d ddd
if i click on a record then on the selction screen it should display the description of it automatically.
pls help me out
regards
mallika
2009 May 14 9:07 AM
Try this:
If we use F4 help on one f iled and want to transfer value sfor anotehr 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.
Hi Guys,
I've a field on the selection screen to which i've provided f4 functionality using 'F4IF_INT_TABLE_VALUE_REQUEST' fm. I've a comment field besides the field, whenever i select a record from the f4 screen then comment field should show the description of that.
Right now it is showing description when i press enter. But without pressing enter how can i display that directly. Please help me out.
Suppose my f4 screen is like this
field_value description
a aaa
b bbb
c ccc
d ddd
if i click on a record then on the selction screen it should display the description of it automatically.
pls help me out
regards
mallika
2009 May 14 9:07 AM
Try this:
If we use F4 help on one f iled and want to transfer value sfor anotehr 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 14 9:13 AM
Hi,
Set the Parameters of the Function Module as given below:
RETFIELD = <name of return field in internal table>
Say: your field must be the Description Field of Internal table
DYNPPROG = <Report Name i.e sy-repid>
DYNPNR = <Screen number e.g. 1000 incase of sel.screen)
DYNPROFIELD = <screen field name>
Thanks and regards,
RamaniN
2009 May 14 9:53 AM
Hello Mallika,
Use the following code after the call to the Function - F4IF_INT_TABLE_VALUE_REQUEST
a) import record_tab from memory id 'mcx_record_tab'.
read table record_tab into wa_rectab index 1.
The selected value is stored in this record
where the table record_tab is declared in the following way
data:record_tab like seahlpres occurs 0 with header line,
b) Use the value and update the SECOND Field using FM - DYNP_VALUES_UPDATE
Regards,
Aj
2009 May 14 10:11 AM
Hi Guys,
Thanks for the reply but im not clear.
Lets say i got two fields like this.
Selection-screen: begin of line.
Select-options : field1 for ztable-field1 no intervals no extensions.
selection-screen: comment (50) description.
Selection-screen : end of line.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR field1
perform get_field1 changing field1-low
description.
form get_field1 CHANGING p_field1-low
p_descriotion
Here im populating my internal table containing field1 and description.
Im calling the function module 'F4IF_INT_TABLE_VALUE_REQUEST' and passing field1
but how to pass description?
pls clarify..
2009 May 14 10:14 AM
You have to populate "description " as well in the internal table which you are passing to FM.
2009 May 14 10:16 AM
Yes..my internal table is having description also...im populating field1 and description into that
and calling function module and passing the field1 and internal table. But how to get description on the selection screen????
Edited by: Mallika Chennasamudram on May 14, 2009 11:17 AM
2009 May 14 10:19 AM
Then try the above solution which ihave suggested , map DYNPFLD_MAPPING with the selection paramters.
2009 May 14 10:40 AM
Hey thanks dynpro mapping has resolved the issue
Edited by: Mallika Chennasamudram on May 14, 2009 11:52 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |