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

F4IF_FIELD_VALUE_REQUEST

Former Member
0 Likes
1,211

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

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,176

I don't think you can use it that way. Exactly what is your requirement, what fields do you want in what search help.

Regards,

Rich Heilman

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,177

I don't think you can use it that way. Exactly what is your requirement, what fields do you want in what search help.

Regards,

Rich Heilman

Read only

0 Likes
1,176

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

Read only

0 Likes
1,176

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

Read only

0 Likes
1,176

I'm a little confused as to what exactly you are trying to do. I need a bit deeper explaniation, and maybe you can post the selection screen code and the AT selection-screen code.

Regards,

Rich Heilman

Read only

0 Likes
1,176

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

Read only

0 Likes
1,176

hellow, thank you for all, but i have decided to do it finding the description in another table,

thanks and regards

Read only

0 Likes
1,176

Ok, Are you saying that column 1 and column 2 in the search help are not at all related. What search help is it that you are calling or is it custom? Post some relevant code.

Regards,

Rich Heilman

Read only

0 Likes
1,176

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