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

Datadialog button

Former Member
0 Likes
521

Hey guys,

i got a problem. This is my Dynpro ( [Look here|http://b.imagehost.org/download/0731/problem1] ) . How can i realise that the marked field has a selection button ( like this here in a report [Look here|http://f.imagehost.org/download/0851/problem2] ) and that it shows a data dialog (like this: [Look here|http://b.imagehost.org/download/0077/problem3] ).

Second question (I think this is very easy to handle but I dont found an answer yet) :

How can I change the title of my Dynpro ( [Look here|http://b.imagehost.org/download/0823/problem4] ).

Thank you very much

Markok

3 REPLIES 3
Read only

Former Member
0 Likes
482

Hi,

For your first question please see this thread -->

-Abhijit

Read only

0 Likes
482

I knew the solution with the function before but you can only use this in a report not in a dynpro?!Or is there a possibility to use this in relation to my dynpro-field?

Thanks

Markok

1. Edit: Sorry in this function is an export parameter. I didnt saw that before. I try it

Thanks

Edited by: markok on Feb 22, 2010 11:42 AM

2. Edit: This is not the solution because my field is not a parameter. With function KD_GET_FILENAME_ON_F4 u can only refer to Parameters but my field is a normal i/o field in a dynpro.

Thanks anyway

Has anybody else an idea???

Thanks Greetings

Edited by: markok on Feb 22, 2010 11:55 AM

3. Edit: Furthermore no idea???

Edited by: markok on Feb 22, 2010 2:18 PM

Read only

Former Member
0 Likes
482

Hi Mark,

A few basic things about SAP Terminology before we attack your problem. The snapshot of the Dialog Screen which you have uploaded is known as a Value Help or F4 Help. It will ask you for a value from a list of probable values. Have a look at the link below for a complete details.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm

You can also have a look at the demo code for a better working:

DEMO_DYNPRO_F4_HELP_DICTIONARY.

Now for the first part of your code:

You can assign the value help from the event in a module pool program event like PAI,PBO..etc. You can use

PROCESS ON VALUE-REQUEST.

...

FIELD <f> MODULE <mod>.

Have a look at the following link:

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/frameset.htm

OR

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/frameset.htm

Demo Report Program : DEMO_DYNPRO_F4_HELP_DYNPRO

For the later part of the problem, you can use the System field SY-TITLE to change the Screen Title. You need to use the PBO event, and then using the MENU PAINTER you can achieve the same.(SE41 - Tcode).

Hope this will help.

Thanks,

Samantak