2005 Jul 18 4:23 PM
I am using F4IF_FIELD_VALUE_REQUEST function for executing standard help, i can see the results in the screen, but the returntab, only contains the fieldname especified on the fieldname, and i can only put there one field, i need at least two params of the selected line, can i use this function in the way i want or does anybody knows another function more suitable for me?,
Thanks in advance
2005 Jul 18 5:57 PM
That's what I was trying to show you in my example above.
I'm pretty sure that the functionality that you are looking for does not exists with this function module. But if you know what the value is, you can surely get the description from the DB.
Regards,
Rich Heilman
2005 Jul 18 5:57 PM
2005 Jul 18 6:23 PM
Here is an sample program using company code search help.
Implement the following program and run thru debugger.
report zrich_0002 .
parameters: p_bukrs(4) type c,
p_butxt(50) type c.
data: dynfields type table of dynpread with header line.
data: return type table of ddshretval with header line.
at selection-screen on value-request for p_bukrs.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = 'T001'
fieldname = 'BUKRS'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'P_BUKRS'
tables
return_tab = return
exceptions
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
others = 5.
read table return with key fieldname = 'P_BUKRS'.
* Add it back to the dynpro.
dynfields-fieldname = return-retfield.
dynfields-fieldvalue = return-fieldval.
append dynfields.
* Get the company code from db and add to dynpro
dynfields-fieldname = 'P_BUTXT'.
select single butxt into dynfields-fieldvalue
from t001
where bukrs = return-fieldval.
append dynfields.
* Update the dynpro values.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
tables
dynpfields = dynfields
exceptions
others = 8.
start-of-selection.
Regards,
Rich Heilman
2005 Jul 18 6:40 PM
Hello Rich, i have seen your example, but my problem is that the relation between my two fields are not unique,so i need the both, i am trying to do it with F4IF_INT_TABLE_VALUE_REQUEST, but my problem now is that in the return table is a recordpos field, but it doesn´t change when i select another line,
Thanks in advance
2005 Jul 18 7:03 PM
2005 Jul 18 7:10 PM
i am in a dynpro, i don´t have a selection-screen and my problem exactly is that when i execute my help-request with a function, i only know to return one colum value and i want to know the selected line or two columns value..
thank you very much
2005 Jul 18 7:15 PM
hellow, thank you for all, but i have decided to do it finding the description in another table,
thanks and regards
2005 Jul 18 7:15 PM
2005 Jul 18 7:18 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |