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

Get values in selection screen

Former Member
0 Likes
807

Hi friends,

i need to get the values in selection screen to print in the ALV top of the page

suppose if there's a selection for customer range, how can i print the customer name according to the customer number selected in the selection screen in the ALV top of the page?

Thanks.

8 REPLIES 8
Read only

Former Member
0 Likes
773

Hi ,

Yes you can print it at top of page.

If you use FM 'REUSE_ALV_GRID_DISPLAY' to display your ALV ,

first create Form to write your top of page then

on I_CALLBACK_TOP_OF_PAGE = 'F_TOP-OF-PAGE' fill in your form.

Regard,

Ikrar

Edited by: ikrarSAP on Jun 19, 2011 11:19 AM

Read only

0 Likes
773

yes i know how to print something in top of page. but i need to know how can i pass the data in selection if there's a range. so if the user gives customer range like customer 1 to 5, then i need to print it in top of page the names of customer 1 and customer 5.

Read only

Clemenss
Active Contributor
0 Likes
773

Hi venura12,

suppose your selection screen has a selection-options s_kunnr for kna1-kunnr. You can find the customer name in table KNA1field NAME1, i.e. if the ALV TOP_OF_PAGE event is assigned to the FORM with that name, it could be

FORM TOP_OF_PAGE.
  DATA:
    lv_kunnr TYPE kna1-kunnr,
    lv_name1 TYPE kna1-name1.
  SELECT kunnr name1 
    INTO (lv_kunnr,lv_name1)
    FROM kna1
    WHERE kunnr in s_kunnr.
  WRITE: / lv_kunnr,lv_name1.
  ENDSELECT.
ENDFORM.

Please remember for future questions: If you ask something regarding ALV then mention the ALV technique used: Functional LIST or GRID, old-style object-oriented CL_GUI_ALV_GRID, SAP-released-for-customer-use CL_SALV_TABLE, full screen or control.

Regards,

Clemens

Read only

Former Member
0 Likes
773

Hi Clemens,

Thanks for the reply, from your code i'm only getting the customer who selected in the second box of the customer range. I need to get the customer name in first box and second box of the selection screen to print in top of page.

I'm using an ALV GRID DISPLAY

Edited by: venura12 on Jun 19, 2011 2:21 PM

Read only

Former Member
0 Likes
773

Can anyone help me for this matter?

Read only

Former Member
0 Likes
773

Please help me anyone...

Read only

0 Likes
773

please give me a good answer anyone

Read only

0 Likes
773

I am sorry but this is a very simple question and Clemens has given you more than enough to work out the solution for yourself.

Thread locked.