2007 May 16 10:48 AM
Hello all ,
To view any available document for a ABAP object when we click on documentation.. it provides us the text in a neat formatted way .. coz sap internally stores everything in sapscript format .. with space and headers ...
We can separately call these documentations in a window using standard FM ( where sap calls sapscript editor )
The problem is the window is not a pop up which stops user from anything ..
What my requirement is to get the documentation to appear in a the neat format in a separate pop up window and user can procced ONLY when he clicks OK.
any idea how to achieve this ?
Hello all ,
To view any available document for a ABAP object when we click on documentation.. it provides us the text in a neat formatted way .. coz sap internally stores everything in sapscript format .. with space and headers ...
We can separately call these documentations in a window using standard FM ( where sap calls sapscript editor )
The problem is the window is not a pop up which stops user from anything ..
What my requirement is to get the documentation to appear in a the neat format in a separate pop up window and user can procced ONLY when he clicks OK.
any idea how to achieve this ?
2007 May 16 1:29 PM
Hi,
may be you want to use something like function module POPUP_TO_CONFIRM.
An example is in report RSSPO120.
Rgds,
JP
2007 May 16 1:48 PM
Thanks for replying john .
Yes I want to use pop up to confirm but how do i get the formatted text on the pop up to confirm text box
2007 May 16 2:06 PM
Hi Neelima,
To customize the popup.. i.e., formatted text for example from a standard text created in SO10.
Check this...
create a standard text with name ZTEST in t-code SO10.
<b>
DATA lt_text LIKE tline OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = 'ST'
language = sy-langu
name = 'ZTEST'
object = 'TEXT'
TABLES
lines = lt_text
.
read table lt_text index 1.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'TESTING'
DIAGNOSE_OBJECT = ' '
text_question = lt_text-tdline
TEXT_BUTTON_1 = 'Yes'(001)
ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'No'(002)
ICON_BUTTON_2 = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
USERDEFINED_F1_HELP = ' '
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE =
IV_QUICKINFO_BUTTON_1 = ' '
IV_QUICKINFO_BUTTON_2 = ' '
IMPORTING
ANSWER =
TABLES
PARAMETER =
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.</b>
Regards
SAB
2007 May 16 2:12 PM
Thanks sayed ,
but this is the approach to print simple text in a table on pop up .. my requirement is to print the text in a formated way just as sap prints it when u click on documentation of any abap object.
check out any std sap FM documentation .. the formated text is the reqt for me
2007 May 16 1:53 PM
hi
refer to the link below
http://www.geocities.com/victorav15/sapr3/abapfun.html
regards
ravish
<b>reward points if helpful</b>
2007 May 16 2:09 PM
thanks for the help ravish .. but those FMs i already know and none cater to myr equirement of printing formated text in pop up window
2007 May 31 11:39 PM
2007 Jun 01 2:57 PM
thanks for all ur help,
I have my self resolved it using html viewer.
2007 Dec 27 4:56 AM
Hi Syed
Can anyone tell me whats the use of Diagnose_object in the FM popup_to_confirm and how to use the parameter in the tables importing parameter?
Thanks
Preethi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |