Application Development 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: 

icons and pop-up window

Former Member
0 Kudos

how to create the ff:

1. toolbar and icons (like the one on windows)

2. pop-up window which asks for yes/no response or asking to give some text. pls show me also how to catch the event for this.

3. table control (no wizard). pls give me just simple way of creating this.

<b>thanks to all of you. </b>

1 ACCEPTED SOLUTION

former_member219399
Active Participant
0 Kudos

Hi,

Do u have this coding in ur screen flow logic?

if not copy this flowlogic to your screen in SE51. it shd work

regards,

Vamsi

10 REPLIES 10

Former Member
0 Kudos

Hi

1. U have to use the command SET PF-STATUS <MY_BAR> in PAI of a screen or before writing an abap list in order to create a toolbar.

Do a doubleclick on the name of the bar and the system'll open the menu painter to create your menu.

2. Try to see the std fm like POPUP_TO_CONFIRM*

3. These are the main steps:

-


> TOP declarations:

* Internal table to store the data to be displayed
DATA: BEGIN OF ITAB OCCURS 0,
              FIELD1 LIKE .....
              FIELDN LIKE .....
           END    OF ITAB. 

* Table control declaration (check the help, I'm not sure the code is right):
CONTROL <TABLE CONTROL> TYPE TABLEVIEW USING SCREEN <SCREEN NUMBRE>.

By screenpainter insert the element table control with the same name u have indicated in the top and insert the fields of ITAB.

The flow of the screen should be:

PROCESS PBO.

   LOOP AT ITAB WITH CONTROL <TABLE CONTROL> CURSOR <TABLE CONTROL>-CURRENT_LINE.
   ENDLOOP.

PROCESS PAI.
   LOOP AT ITAB.
      MODULE SAVE_ITAB.
   ENDLOOP. 

* This module is to same the modifications made in the screen by the user.
MODULE SAVE_ITAB.
   MODIFY ITAB INDEX <TABLE CONTROL>-CURRENT_LINE.
ENDMODULE.

Max

Former Member
0 Kudos

to be honest, i find it hard to create a menu or icon toolbar. i dont know where to start. i dont find some tutorials online friendly. PLS SHOW ME WHERE TO START. all i want is to see the detailed steps on how to create menus and toolbar icons. <u>im a newbie. </u>

<b>big thanks to all</b>

Message was edited by:

Boy Dawson

Former Member
0 Kudos

Hi

In SE38 transaction write the code

using

SET PF-STATUS 'AAA.

save and activate the program

double click on AAA

it will take you to a GUI screen , where you can design your application tool bar, menu bar etc.

also in the SE38 Code itself you have to use the function module

POPUP_TO_CONFIRM to display the messages

and execute the program, it will ask with popoup.

Reward points if useful

Regards

Anji

0 Kudos

I have created 2 items on the menu and 2 icons on the toolbar. neither of them is showing when I execute my program BUT on the menu painter test, it displays the changes. why is that? and how can I assign a task on each icon or on each menu item?

thanks again

former_member219399
Active Participant
0 Kudos

hi,

Can u plz tell me the steps u have followed. I guess ur not calling the menu from ur screen.

insert this coding in ur screen

set pf-status 'status-name'.

for the functionality, u have to assign FCODE,

and in flow logic in PAI, code the following

if sy-ucomm = "ur fcode".

ur logic shud come here.

endif.

with regards,

Vamsi

Former Member
0 Kudos

Hi,

For Tool bar, go to SE38 and use SET PF-STATUS <control name>.

For POP-Up, try with following program:

*

  • To pop-out a box for the user to confirm

*

REPORT ZPOPUPCONFIRM.

DATA: X_ANS(1) TYPE C.

call function 'POPUP_TO_CONFIRM_STEP'

exporting

  • DEFAULTOPTION = 'Y'

textline1 = 'Do you want to continue'

  • TEXTLINE2 = ' '

titel = 'Please Confirm'

  • START_COLUMN = 25

  • START_ROW = 6

  • CANCEL_DISPLAY = 'X'

IMPORTING

ANSWER = X_ANS.

WRITE: / X_ANS.

*-- End of Program

Regards,

Bhaskar

Former Member
0 Kudos

forgive me if i am so dumb. im new to this. this is my code:

-


call screen 101.

module PBO.
SET PF-STATUS 'AAA'.
endmodule.

module PAI.
  case SY-UCOMM.
    when 'BTNEXIT'.
      leave program.
  endcase.
endmodule.

-


menu painter screenshot:

http://i150.photobucket.com/albums/s116/painkiller2007/SAP/menu001.jpg

former_member219399
Active Participant
0 Kudos

Hi,

Do u have this coding in ur screen flow logic?

if not copy this flowlogic to your screen in SE51. it shd work

regards,

Vamsi

0 Kudos

this is what i have in FLOW LOGIC SCREEN:

___________________________________

PROCESS BEFORE OUTPUT.
  module pbo.

PROCESS AFTER INPUT.
  module pai.

___________________________________

menu painter screenshot:

http://i150.photobucket.com/albums/s116/painkiller2007/SAP/menu001.jpg

Former Member
0 Kudos

i got it displaying now. the fix is kinda weird:

http://i150.photobucket.com/albums/s116/painkiller2007/SAP/menu002.jpg

<b>big thanks to all</b>