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

Table Maintenance

Former Member
0 Likes
390

I am working on a search help exit. The requirement is, I have 3 fields on the screen. User provides the inputs in first 2 fields.

Now, I would like to search the possible values for the 3rd field based on the values entered in the first 2 fields.

On the search help I have 3 fields. Here, I have to default the first 2 fields with the values entered by the user in the first 2 fields on the

screen. I know that I can do it in the PRESEL callcontrol-step, but the problem is I am not able to capture the values of the first 2 fields from the screen

I have written the code to show the F4 help in the POV event of the screen generated by table maintenance generator. I am not able to capture the values of the first 2 fields using DYNP_READ_VALUES. And I want the values of the first two fields to show the f4 values for the third field using a select query

could you please help me out here?

2 REPLIES 2
Read only

Former Member
0 Likes
365

well my sap help tells me that the data transport has to be done manually from dynpro to ABAP in your case.

It even tells me that you shall use function modules which were coded for exactly THAT requirement.

But it doesnt tell me which are those FM´s. And sorry i dont know em myself.

try SAP help for AT SELECTION-SCREEN ON VALUE-REQUEST.

Message was edited by:

Florian Kemmer

Read only

Former Member
0 Likes
365

Hi Praveen,

You might have tried DYNP_VALUES_READ, but i cant quite see why it hasnt worked for you.

please see this example also.

<b>*give program name and screen number

l_program_name = sy-repid.

l_dynpro_number = sy-dynnr.

*give field name, whose value you want to read into the field 'fieldname' of the

*internal table l_dynp_value_tab

l_dynp_value_tab-fieldname = l_field_name.

append l_dynp_value_tab.

call function 'DYNP_VALUES_READ'

exporting

dyname = l_program_name

dynumb = l_dynpro_number

tables

dynpfields = l_dynp_value_tab

exceptions

invalid_abapworkarea = 04

invalid_dynprofield = 08

invalid_dynproname = 12

invalid_dynpronummer = 16

invalid_request = 20

no_fielddescription = 24

undefind_error = 28.

read table l_dynp_value_tab index 1.

l_functd1_value = l_dynp_value_tab-fieldvalue.

*now you have the field value in the variable l_functd1_value.

*repeat the process for the second screen field.</b>

Thanks

Pranati.

Please reward points if helpful !