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

Customize Pop up Screen

Former Member
0 Likes
2,546

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 ?

9 REPLIES 9
Read only

Former Member
0 Likes
1,489

Hi,

may be you want to use something like function module POPUP_TO_CONFIRM.

An example is in report RSSPO120.

Rgds,

JP

Read only

0 Likes
1,489

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

Read only

0 Likes
1,489

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

Read only

0 Likes
1,489

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

Read only

Former Member
0 Likes
1,489

hi

refer to the link below

http://www.geocities.com/victorav15/sapr3/abapfun.html

regards

ravish

<b>reward points if helpful</b>

Read only

0 Likes
1,489

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

Read only

Former Member
0 Likes
1,489

Try this 'EDIT_TEXT' or 'EDIT_TEXT_INLINE'.

Cheers,

Read only

Former Member
0 Likes
1,489

thanks for all ur help,

I have my self resolved it using html viewer.

Read only

Former Member
0 Likes
1,489

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