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

ALV Screen in Module Pool

former_member188791
Participant
0 Likes
2,692

Hi Group,

I am trying to develop pop up screen ( exactly similar to ALV ) can any body help how I can capture Icons design for up and down arrows and search functionality in module pool program.

16 REPLIES 16
Read only

nikolayevstigneev
Contributor
0 Likes
2,593

Hi, Rajiv!

Not sure whether I got you right. You can see available icons (names, codes) in SHOWICON report.

Read only

0 Likes
2,593

Hi Nicholay,

thank you for your reply, but my query is about designing pop up screen like ALV style, which is shown in the pic.

Read only

0 Likes
2,593

Hi, Rajiv!

Still I can't understand what you are trying to implement.

You created some screen. And you want to add some buttons with the mentioned icons (up arrow, down arrow, search). What's the problem in implementing it?

Read only

Former Member
0 Likes
2,593

Hi Rajiv ;

You can find all icons with ICON table.

Regards.

Özgün.

Read only

0 Likes
2,593

Hi Rajiv,

I guess you can use custom container in module pool programming to achieve this. Search on the internet about the steps to create and how to use a custom container.

Regards-

Chirag Keswani

Read only

0 Likes
2,593

Hi Chirag,

I search custom container ,nothing is giving related to module pool.

I need to design the sceen ALV type shown in the pic.

Read only

former_member188791
Participant
0 Likes
2,593

Hi Group,

here my query is how to create those ICONs in my table control , I am using two table controls one on right and another on left ,is there any option to create .

Read only

0 Likes
2,593

You can use   REUSE_ALV_POPUP_TO_SELECT Function in you screen, and exclude the button which you do no need.

Read only

0 Likes
2,592

Hi Rajiv,

You can add push buttons which is showing in above screen, added your required icon by clicking which is highlighted below option .

Thanks,

Ashok.

Read only

AnoopMayamkote
Participant
0 Likes
2,592

You can use   REUSE_ALV_POPUP_TO_SELECT Function in your screen, and exclude the button what and all not needed

Read only

0 Likes
2,592

Hi Group,

I think there is small confusion in the group, my query is I want to create ICONs (serach, down arrow, up arrow  etcc.) on top left corner of each table controls can any body suggest how I can achieve this I cant use menu bar because there are differenct ICONS on two table controls on the same screen , hope this is clear

Read only

0 Likes
2,592


Rajiv,

There are two ways of approaching this.

Method 1

1. Have buttons on the top of both the table controls with the proper ICONS as you want.

Method 2

2. Use CL_GUI_ALV_GRID. Instaniate it inside a docking container / custom container.

    There is an event TOOLBAR for this class. Implement a event handler for this.
    In the implementation create your toolbar as:

    MOVE 'SEARCH' TO it_toolbar-function.
    MOVE ICON_SEARCHTO it_toolbar-icon.
    MOVE 2 TO it_toolbar-butn_type.
    APPEND it_toolbar TO e_object->mt_toolbar.

3. Implement event USER_COMMAND for the same class to handle the button click.

Note:

The screen shot you gave is of function group SKBH subscreen - 610 have a look at it, you will understand more.

Regards

Deepankar Bhowmick

Read only

0 Likes
2,592

Hi Deepankar,

Thank you for your reply, I am designing as push button boxes for each this ICONs  and its coming well in layouts, can any suggest   code in PAI for the below:

Find Button ( when user clicks this button I am desinging one pop up where user enters value

and it comebacks to table control and needs to find value)

ICON_NEXT_VALUE

ICON_PREVIOUS_VALUE

ICON_PREVIOUS_VALUE

ICON_PAGE_UP

ICON_PAGE_DOWN

Read only

0 Likes
2,592

Shouldn't you be doing that yourself ? I mean coding of the PAI event is completely depending on teh requirements which only you really know.

It also depends on how you have set up your program, again only you know.

So try it first before you ask people to give you the complete code.

Do a search or follow an ABAP course, because this is really basic stuff I think.

Read only

0 Likes
2,592

Hi Peter,

Thank you for your reply, but I need general functionality for those buttons like finding entry moving curose up and down etc..

Read only

0 Likes
2,592

Hello Rajiv,

The icons are ICON_COLUMN_LEFT & ICON_COLUMN_RIGHT.

Now to achieve a similar function, in PAI you can use the table_control-current_line to read the row selected in the left table and append it to the right one, vice-versa.

e.g.

READ TABLE gt_left_table INTO lwa_table INDEX table_control-current_line.

IF sy-subrc EQ 0.

APPEND lwa_table TO gt_right_table.

ENDIF.


Regards,

Deepankar Bhowmick