2011 Jun 19 7:21 AM
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.
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
2011 Jun 19 10:09 AM
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
2011 Jun 19 10:56 AM
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.
2011 Jun 19 11:11 AM
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
2011 Jun 19 1:17 PM
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
2011 Jun 19 4:20 PM
2011 Jun 19 8:07 PM
2011 Jun 20 3:53 AM
2011 Jun 20 4:27 AM
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.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |