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

Adding the push button to the existing standard program [Working with screen painter]

Former Member
0 Likes
1,143

I have added my push button to the layout and what code should I add in PAI and PBO?

Note : After pressing push button it will goto particular webpage.

I have added my push button to the layout and what code should I add in PAI and PBO?

Note : After pressing push button it will goto particular webpage.

2 REPLIES 2
Read only

0 Likes
1,045

Hello Naveena,

After creating the push button in Screen painter layout, you should add name of the push button as well as mention the Function code also.

for suppose let us look a quick example

1. in layout function code name = 'PRESS1'.

You need to write the logic in PAI module, because the PAI (Process After Input) is executed, when ever user performs any action in the screen layout.

IF SY-UCOMM = 'PRESS1'.

"WRITE THE LOGIC WHAT YOU WANT

Leave screen 0.

set screen 300.

ENDIF.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,045

Do you want to open a new tab in the user's default Web Browser, and to open a given URL? (new tab or new window, depends on the context, this cannot be controlled by ABAP)

What kind of URL is it? A BSP, Fiori, Web Dynpro, or a non-SAP URL?