Skip to Content
0

Search help that fills two dynpro fields

Oct 20, 2017 at 11:43 AM

34

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sandra Rossi Oct 20, 2017 at 02:05 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Sathya Gunasekaran Oct 20, 2017 at 02:06 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded