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

End user document Icon

Former Member
0 Likes
985

Hi

I want to attach an end user document icon just beside one parameter.Is there any funtion module to do it.

6 REPLIES 6
Read only

Manohar2u
Active Contributor
0 Likes
783

You can add a button in selection screen

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

and you have to add a custom button with same FCODE...and call standard Function module to display the documentation..

Read only

Former Member
0 Likes
783

Hi

Manohar I want an icon with syombal 'i' with blue color that u have might seen in some selction screen.That is basically the end user document icon said.I thing there is one FM for this. But I dont know the name of it. Something like display_popup_text but not exactly same.

Read only

Former Member
0 Likes
783

HI Praveen

I guess, you might be aware of using text-elements in selection-screen. We display icons using text-elements. Proceed as below:

1. Get the icon name for info using program: <b>RSTXICON</b> or from table <b>ICON</b>

2. Declare a text-element with this value

3. Now use selection-screen formatting technique to display the icon.

Something like:

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN (30) text-001 FOR FIELD p_par.

SELECTION-SCREEN END OF LINE.

Note that selection-screen formatting can be done only between statements, BEGIN OF LINE and END OF LINE.

Hope this info helps you...

Kind Regards

Eswar

Read only

Former Member
0 Likes
783

Hi Eswar.

Just open the tcode cv04n. There is one field start date and end date.At the end of the end date there is one icon I want exactly that icon.

Read only

Former Member
0 Likes
783

Hi Praveen

I dont have the provision to access SAP now.

For report program, you have to do as per my earlier post, for dialog program we can do by changing the attributes via SE51.

Regards

Eswar

Read only

Former Member
0 Likes
783

Hi Praveen

Copy the below code to a temporary program and test:

Code:

selection-screen: begin of line.
  selection-screen comment (10) text-001 for field p_date.
  parameters: p_date type datum.
  selection-screen position: 30.
  parameters: p_info type c no-display.
  selection-screen comment (10) text-002 for field p_info.
selection-screen: end of line.

Now define Text-Elements as below:

TEXT-001 -> Date

TEXT-002 -> @0S@

Generate the code and execute to find the selection-screen with the INFO icon.

Hope this helps...

Kind Regards

Eswar