Skip to Content

Search help that fills two dynpro fields

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 20, 2017 at 02:05 PM

    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).

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2017 at 02:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded