Application Development 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: 

Search help that fills two dynpro fields

Missschaaa
Participant
0 Kudos

Hello guys,

I'm facing the following problem. I want to use the ddic search help MRM_HELP_RBKP_REFERENCE which gives me as exporting parameter the fields BELNR and GJAHR.

Now I have a custom report with a custom dynpro where I got both fields (BELNR and GJAHR) displayed on the dynpro. I implemented the search help for the field BELNR in SAP Screen painter. It works fine but of course it only fills my field BELNR after selecting a value. How do I get the field GJAHR filled as well?

I know about these F4* functions where you can create your own search help and the DYNPRO_UPDATE function that updates the dynpro fields. But how do I get the result/exporting parameter (selected value) of this SAP standard search help for my dynpro fields? The search help gives back the value without any custom coding. How can I get this information?

Regards

Michael

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

The names of the two dynpro fields must be the names of ddictable-fieldname. In the ddictable (or ddicstructure), the search help should be assigned to the BELNR component, and assign the two export parameters to the 2 fields of the ddictable (if there's no such standard ddictable or structure, create a custom ddicstructure with these two fields only).

sathyags
Active Participant
0 Kudos

Hi Michael,

If it is a module pool screen, you can try creating a zstrcuture with both the fields and assign the search help to them. The structure-field can be used on the screen painter of your program.

Sathya