Footer problem in alv print
Hi All,
I have a problem in footer of alv printing.
When i m taking a print of alv with a footer its omit blank line space whole. While i have a requirement to put some space line after alv and then footer should print.
How can i achieve this ?
Hi Rajesh,
You mean printing is displaying the list or what ?
If the problem is while displaying the list then do this.
In subroutine of 'END_OF_LIST' before write statement you just use SKIP <lines>. Then blank space is displayed between ALV list and footer.
Regards,
Rajitha.
Similar Messages
-
Hi,
I am using alv grid, there is a problem with print, when i look at print preview it shows only 1 row and even the values in that row are incorrect.
Please help me solv the problem.
Thanks,
Sai.Here is the code
*& Form DISPLAY
text
FORM display.
DATA : fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
*data : wa_fieldcat type slis_fieldcat_alv.
DATA : t_header TYPE slis_t_listheader,
wa_header TYPE slis_listheader.
DATA : cnt(3) TYPE c VALUE 0.
cnt = cnt + 1.
fieldcatalog-fieldname = 'XBLNR'.
fieldcatalog-seltext_m = 'Invoice No'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 8.
fieldcatalog-tabname = 'it_final'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
cnt = cnt + 1.
fieldcatalog-fieldname = 'BLDAT'.
fieldcatalog-seltext_m = 'Invoice Date'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 9.
fieldcatalog-tabname = 'it_final'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
*CT3 No.
cnt = cnt + 1.
fieldcatalog-fieldname = 'SGTXT'.
fieldcatalog-seltext_m = 'CT3 No'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 8.
fieldcatalog-tabname = 'it_final'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
cnt = cnt + 1.
fieldcatalog-fieldname = 'MBLNR'.
fieldcatalog-seltext_m = 'GRR No.'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 10.
fieldcatalog-tabname = 'it_final'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
cnt = cnt + 1.
fieldcatalog-fieldname = 'BUDAT'.
fieldcatalog-seltext_m = 'GRR DATE'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 9.
fieldcatalog-tabname = 'it_final'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
cnt = cnt + 1.
fieldcatalog-fieldname = 'NAME1'.
fieldcatalog-seltext_m = 'Vendor Name'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 30.
fieldcatalog-tabname = 'it_final'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
cnt = cnt + 1.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material No'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 18.
fieldcatalog-tabname = 'it_final'.
fieldcatalog-no_zero = 'X'.
fieldcatalog-key = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
cnt = cnt + 1.
fieldcatalog-fieldname = 'MAKTX'.
fieldcatalog-seltext_m = 'Matdesc'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 30.
fieldcatalog-tabname = 'it_final'.
fieldcatalog-key = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
**Excise Duty
cnt = cnt + 1.
fieldcatalog-fieldname = 'EDUTY'.
fieldcatalog-seltext_m = 'EXCISE DUTY '.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 30.
fieldcatalog-tabname = 'it_final'.
fieldcatalog-do_sum = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
*Excise Duty
cnt = cnt + 1.
fieldcatalog-fieldname = 'DBDTY'.
fieldcatalog-seltext_m = 'DEBIT DUTY '.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 12.
fieldcatalog-tabname = 'it_final'.
fieldcatalog-do_sum = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
*Excise Duty
cnt = cnt + 1.
fieldcatalog-fieldname = 'CRDTY'.
fieldcatalog-seltext_m = 'CREDIT DUTY '.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 12.
fieldcatalog-tabname = 'it_final'.
fieldcatalog-do_sum = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
*Credit Date
cnt = cnt + 1.
fieldcatalog-fieldname = 'CRDAT'.
fieldcatalog-seltext_m = 'Cr. DATE'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 9.
fieldcatalog-tabname = 'it_final'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
*Closing Balance
cnt = cnt + 1.
fieldcatalog-fieldname = 'CL_BALANCE'.
fieldcatalog-seltext_m = 'BALANCE AMT'.
fieldcatalog-col_pos = cnt.
fieldcatalog-outputlen = 15.
fieldcatalog-tabname = 'it_final1'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_top_of_page = 'TOP-OF-PAGE'
it_fieldcat = fieldcatalog[]
i_save = 'X'
TABLES
t_outtab = it_final[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. "DISPLAY
Form TOP-OF-PAGE *
ALV Report Header *
FORM top-of-page.
*ALV Header declarations
DATA: t_header TYPE slis_t_listheader,
wa_header TYPE slis_listheader,
t_line LIKE wa_header-info,
ld_lines TYPE i,
ld_linesc(10) TYPE c,
v_date1(10),
v_date2(10).
Title
wa_header-typ = 'H'.
wa_header-info = 'B-17 BOND REGISTER - INDIGENOUS RAW MATERIALS'.
APPEND wa_header TO t_header.
CLEAR wa_header.
Date
wa_header-typ = 'S'.
wa_header-key = ' Report generated on Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
APPEND wa_header TO t_header.
CLEAR: wa_header.
opening balance
wa_header-typ = 'S'.
wa_header-key = ' Opening Amount: '.
wa_header-info = gv_op_balance. "Opening amount
APPEND wa_header TO t_header.
CLEAR: wa_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header.
i_logo = 'ENJOYSAP_LOGO'.
ENDFORM. "top-of-page -
ALV printing error - Footer on 3 different pages
Hi all,
I created an report which outputs an ALV grid (full screen) with a header and a footer. The ALV grid is created with class CL_SALV_TABLE (incl. methods set_top_of_list for the header, resp. set_end_of_list for the footer). This all works correctly and the print preview looks fine too.
Problem is a very strange print output:
In most cases, printing works fine. But sometimes the output is wrongly formatted: is the footer to be printed on two different pages (i.e. the footer is partly printed on the current page, the rest on the next page), the footer will be printed on three pages! The first part on the current page (correct), only one line at the bottom of the second page (wrong) and the rest of the footer on the third page (wrong)! Could it be that this is a print setting problem? Should I add special footer settings?
I already checked SDN forums and looked at SAP Notes for solutions but could not found any tip on how to solve this.
Does anyone of you had the same issue before? Or does anyone has an idea how this problem could be solved?
Thanks a lot!!Need suggestions please.
-
Hi All,
I have used the following code...Header is getting displayed properly.
But Footer is not getting printed.....
perform build_event.
perform build_comment.
FORM build_event .
CLEAR: GT_EVENTS. REFRESH: GT_EVENTS.
CLEAR: FS_EVENTCAT.
FS_EVENTCAT-NAME = 'gt_list_top_of_page'.
FS_EVENTCAT-FORM = 'build_comment'.
APPEND FS_EVENTCAT TO GT_EVENTS.
CLEAR: FS_EVENTCAT.
FS_EVENTCAT-NAME = 'gt_list_end_of_page'.
FS_EVENTCAT-FORM = 'f_write_summary'.
APPEND FS_EVENTCAT TO GT_EVENTS.
ENDFORM. " build_event
FORM build_comment .
DATA: lv_info TYPE string,
l_comcode type string,
l_plant type string,
ls_line TYPE slis_listheader.
CLEAR ls_line.
**-- Title
ls_line-typ = 'H'.
ls_line-info = 'List of Sales Orders Blocked from Production and Delivery'.
APPEND ls_line TO gt_list_top_of_page.
clear ls_line.
ENDFORM. " build_comment
FORM F_WRITE_SUMMARY.
data: v_date1(12) type c.
data: v_time(10) type c.
data: v_dtime(25) type c.
concatenate sy-datum6(2) sy-datum4(2) sy-datum+0(4) into v_date1 separated by '-'.
concatenate sy-uzeit0(2) sy-uzeit2(2) sy-uzeit+4(2) into v_time separated by '.'.
concatenate v_date1 v_time into v_dtime separated by ' / '.
ls_line-typ = c_s.
ls_line-key = 'Date/Time:'.
ls_line-info = v_dtime.
append ls_line to gt_list_end_of_page.
ENDFORM. " F_WRITE_SUMMARY
Please help me....Refer this example -
http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm
Regards,
Amit
Reward all helpful replies. -
T.code FBL5N: a problem with the print of the output list
Hi All,
with reference to the t.code FBL5N, I have a problem with the print of the output list of the report.
When I execute the print, I obtain one customer for each page printed.
I wonder if is possible to obtain more customers for each page printed.
Could anyone help me?
Thanks
Gandalf
Edited by: Umberto Gandalf on Dec 21, 2008 10:36 PMHi,
Though personally i havent tried this option, check the same
Go to Menu: Settings >> Switch List
This will make the value displayed in ALV format and then try taking print outs.
Regards,
Sridevi -
Excel sheet download problem from ALV
Hi all,
when i am trying to download an ALV report into localfile... Excel, two middle coloum values are not appeared in excel sheet but headings are available.
last three coloums values are overlapped in these headings.
Where might be the problem exist?Hi,
Reprots
http://www.sapgenie.com/abap/reports.htm
http://www.allsaplinks.com/material.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
ALV
1. Please give me general info on ALV.
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
2. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
3. How do I add subtotals (I have problem to add them)...
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
4. How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
5. How to print page number / total number of pages X/XX in ALV? http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
7. How can I set the cell color in ALV? http://www.sapfans.com/forums/viewtopic.php?t=52107
8. How do I print a logo/graphics in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=81149
http://www.sapfans.com/forums/viewtopic.php?t=35498
http://www.sapfans.com/forums/viewtopic.php?t=5013
9. How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
10. How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
11. How can I display an icon in ALV? (Common requirement is traffic light icon).
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
12. How can I display a checkbox in ALV? http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
Check this for basic concepts of OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
Tabstrip
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf
Editable ALV
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc
Tree
http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
General Tutorial for OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
http://www.sapdevelopment.co.uk/reporting/alvhome.htm
http://www.sap-img.com/abap/what-is-alv-programming.htm
http://www.sap-img.com/abap-function.htm
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm
http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf
http://www.sap-img.com/abap-function.htm -
Problem with HP printer hplip is not starting
My daemons line
DAEMONS=(syslog-ng portmap dbus hal network netfs hplip cups clamav alsa acpid !crond kdm)
I have installed it using pacman. If I run pacman -S hplip I get a message saying it is already there.Okay, after a search I come up with the preferred printer installation method using the hp-setup command line tool. As this is supposed to be the 'HP' way to setup the printer and use hp-toolbox I decided to go this route. Naturally, the output is not promising:
# hp-setup
HP Linux Imaging and Printing System (ver. 0.9.8)
Printer/Fax Setup Utility ver. 0.7
Copyright (c) 2003-5 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
[ERROR]: No devices found.
[ERROR]: Error occured during interactive mode. Exiting.
Now, why the heck would it not find the device when it is already set up via CUPS and working properly in the desktop environment? The latest hplip version is 0.9.10, but I somehow doubt using the 0.9.8 would cause this type of problem as the printer I use is not a recent piece of machinery. -
Problem with HP Printer Utility and Mac OSX 10.5.4
I have a problem with HP printer Utility. When a standard user adds a new paper profile HP Printer Utility asks to type an administrator's name and password to allow HP printer Utility to make changes. Is it possible to avoid this? Otherwise I have to give admin rights to every user because they have to be able to add new papers. HP printer Utility sharing and permisssions are set to read and write to everyone.
HP designjet Z3200
MacOSX 10.5.4 (Mac pro intel)
HP printer utility 3.6.0.Just found an email HP Support sent to me back in January 2008, about this issue
"Hello Hunter,
Thank you for contacting HP Total Care.
There currently is not proper driver for 10.5, so it is surprising that the printer is printing correctly on your Mac from any application.
Your issue cannot be resolved until the 10.5 driver is developed and released.
To sign up for an update as soon as it is available ...click on the link below:
HP's subscriber's choice is a free service where you can select to receive timely email notifications ranging from software and driver updates to creative ways to do more with your HP products.
http://h71036.www7.hp.com/hho/html/3618-0-0-225-121.html
If you need further assistance, please reply to this message and we will be happy to assist you further.
You may receive an e-mail survey regarding your e-mail support experience. We would appreciate your feedback.
For information on keeping your HP and Compaq products up and running, please visit our Web site
at:
http://www.hp.com/go/totalcare
Sincerely,
Dave
HP Total Care"
I just sent them an email today on any updates regarding a release date on the Leopard driver for P1005, i'll post any info i receive. -
Need to add Header and footer in an alv grid display output.
How can I add header and footer in an alv grid dispay output.
For the grid display, I am using the function module "REUSE_ALV_GRID_DISPLAY".HI,
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE'
i_callback_html_end_of_list = 'END_OF_LIST_HTML'
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
FORM end_of_list_html USING end TYPE REF TO cl_dd_document.
DATA: ls_text TYPE sdydo_text_element,
l_grid TYPE REF TO cl_gui_alv_grid,
f(14) TYPE c VALUE 'SET_ROW_HEIGHT'.
ls_text = 'Footer title'.
adds and icon (red triangle)
CALL METHOD end->add_icon
EXPORTING
sap_icon = 'IL'.
adds test (via variable)
CALL METHOD end->add_text
EXPORTING
text = ls_text
sap_emphasis = 'strong'.
adds new line (start new line)
CALL METHOD end->new_line.
display text(bold)
CALL METHOD end->add_text
EXPORTING
text = 'Bold text'
sap_emphasis = 'strong'.
adds new line (start new line)
CALL METHOD end->new_line.
display text(normal)
CALL METHOD end->add_text
EXPORTING
text = 'Nor'.
adds new line (start new line)
CALL METHOD end->new_line.
display text(bold)
CALL METHOD end->add_text
EXPORTING
text = 'Yellow '
sap_emphasis = 'str'.
adds and icon (yellow triangle)
CALL METHOD end->add_icon
EXPORTING
sap_icon = 'IC''.
display text(normal)
CALL METHOD end->add_text
EXPORTING
text = 'Mor'.
*set height of this section
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = l_grid.
CALL METHOD l_grid->parent->parent->(f)
EXPORTING
id = 3
height = 14.
ENDFORM. "end_of_list_html.
This will solve it. Post if you need more help in this.
Regards,
Madhu. -
How to place header and footer in OO-ALV program using class
How to place header and footer in OO-ALV program using class tell me wat r the class we shold use and their attributes as well
Hi Venkatesh,
Take a look at this how to [ABAP Objects - ALV Model - Using Header and Footer|https://wiki.sdn.sap.com/wiki/x/xdw]
it's explaining how to define the classes and use it for display an ALV with Header and Footer.
Regards,
Marcelo Ramos -
Hi Friends,
I have the following 2 problems in ALV report
1) Logo is not getting displayed in the report.
2) When i click on the Purchase order number in the report the interactive report is not working,i am not able to see report of First interactive level.
can you help it out friends.
Thanks and regards
Dinesh
REPORT YSDBALV1
tables: ekko , ekpo .
type-pools: slis .
Table for Display Header
data:i_header type slis_t_listheader with header line.
*Fieldcat Declaration
data:fieldcatalog type slis_T_fieldcat_alv WITH HEADER LINE.
*Table of Events
data:i_event type slis_t_event with header line .
For Layout
data:i_layout type slis_layout_alv .
data: text(30) .
*Internal Table Declaration
data: begin of it_final occurs 0 ,
ebeln like ekko-ebeln , "Purchasing Document No.
bedat like ekko-bedat , "Purchasing Document Date
matnr like ekpo-matnr , "Material No.
netwr like ekpo-netwr , "Net Order Value in PO Currancy
meins like ekpo-meins , "UOM
chk(1) ,
light(1) ,
change like ekpo-menge ,
end of it_final .
**select option Declaration
selection-screen begin of block block.
select-options: s_ebeln for ekko-ebeln .
selection-screen end of block block .
selection-screen begin of block block1 .
parameters:grid radiobutton group r .
parameters:list radiobutton group r .
selection-screen end of block block1 .
at selection screen
at selection-screen .
select single * from ekko where ebeln in s_ebeln .
if sy-subrc <> 0 .
message e000(8I) WITH 'No Data Exists' .
endif .
start-of-selection .
if grid = 'X' .
perform get_data .
perform event using i_event[] .
perform field using fieldcatalog[] .
perform layout using i_layout .
perform grid_display .
endif .
*& Form get_data
text
--> p1 text
<-- p2 text
form get_data .
*DATA Retrieval from tables
SELECT EKKO~EBELN
EKKO~BEDAT
EKPO~EBELP
EKPO~MATNR
EKPO~NETWR
EKPO~MEINS
EKPO~MENGE
EKPO~BPRME
INTO CORRESPONDING FIELDS OF table IT_FINAL
FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
WHERE EKKO~EBELN IN S_EBELN.
APPEND IT_FINAL.
endform. " get_data
*Getting the Event for Top of Page display.
*& Form event
text
-->P_I_event[] text
form event using p_i_event type slis_t_event.
clear p_i_event .
refresh p_i_event .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = p_i_event
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2
read table p_i_event with key name = slis_ev_top_of_page into i_event.
if sy-subrc = 0.
move 'TOP_OF_PAGE_PO' to i_event-form.
modify p_i_event from i_event index sy-tabix transporting form.
endif.
clear i_event.
endform. " event
*Display Top-of Page Details and Logo
form top_of_page_po .
clear i_header .
refresh i_header .
write sy-datum to text.
i_header-typ = 'H'.
i_header-info = 'PURCHASE OREDER DETAILS'.
append i_header.
*Logo Display
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = i_header[]
I_LOGO = 'ENJOYSAPLOGO'.
endform .
*Field Catalog Append
*& Form field
text
-->P_fieldCATALOG[] text
form field using p_fieldcatalog type slis_t_fieldcat_alv.
clear fieldcatalog.
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order No'.
fieldcatalog-col_pos = 1.
append fieldcatalog .
clear fieldcatalog.
fieldcatalog-fieldname = 'BEDAT'.
fieldcatalog-seltext_m = 'PO Date'.
fieldcatalog-col_pos = 2.
append fieldcatalog .
clear fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material No'.
fieldcatalog-col_pos = 4.
fieldcatalog-outputlen = 20.
append fieldcatalog .
clear fieldcatalog.
fieldcatalog-fieldname = 'NETWR'.
fieldcatalog-seltext_m = 'Net Value '.
fieldcatalog-col_pos = 5.
fieldcatalog-outputlen = 20.
fieldcatalog-do_sum = 'X'.
append fieldcatalog .
clear fieldcatalog.
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Units'.
fieldcatalog-col_pos = 6.
fieldcatalog-outputlen = 4.
append fieldcatalog .
clear fieldcatalog.
endform. " field
*& Form layout
text
form layout using p_i_layout TYPE SLIS_LAYOUT_ALV .
i_layout-zebra = 'X'.
i_layout-lights_fieldname = 'LIGHT'.
i_layout-lights_tabname = 'IT_FINAL'.
i_layout-box_fieldname = 'CHK'.
i_layout-box_tabname = 'IT_FINAL'.
i_layout-edit = ' '.
endform.
*To display Buttons in the MENU BAR if needed
FORM SET_PO_PF_STATUS USING P_I_EXTAB TYPE
SLIS_T_EXTAB.
SET PF-STATUS 'MENUPO'.
ENDFORM.
*Event for Interactive display of ALV report
form USER_COMMAND using r_ucomm like sy-ucomm
rs_selfield type slis_selfield .
if r_ucomm = '&IC1'.
READ TABLE IT_FINAL index rs_selfield-tabindex.
write:/ IT_FINAL-ebeln.
endif.
endform .
*Parameters of FM REUSE_ALV_GRID_DISPLAY
*& Form grid_display
text
--> p1 text
<-- p2 text
form grid_display .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'SET_PO_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = FIELDCATALOG[]
IT_EVENTS = I_EVENT[]
TABLES
t_outtab = IT_FINAL.
endform. " grid_display*& Report YSDBALV1
REPORT YSDBALV1.
tables: ekko , ekpo .
type-pools: slis .
Table for Display Header
data:i_header type slis_t_listheader with header line.
*Fieldcat Declaration
data:fieldcatalog type slis_T_fieldcat_alv WITH HEADER LINE.
*Table of Events
data:i_event type slis_t_event with header line ,
wa_event type line of slis_t_event.
For Layout
data:i_layout type slis_layout_alv .
data: text(30) .
*Internal Table Declaration
data: begin of it_final occurs 0 ,
ebeln like ekko-ebeln , "Purchasing Document No.
bedat like ekko-bedat , "Purchasing Document Date
matnr like ekpo-matnr , "Material No.
netwr like ekpo-netwr , "Net Order Value in PO Currancy
meins like ekpo-meins , "UOM
chk(1) ,
light(1) ,
change like ekpo-menge ,
end of it_final .
**select option Declaration
selection-screen begin of block block.
select-options: s_ebeln for ekko-ebeln .
selection-screen end of block block .
selection-screen begin of block block1 .
parameters:grid radiobutton group r .
parameters:list radiobutton group r .
selection-screen end of block block1 .
at selection screen
at selection-screen .
select single * from ekko where ebeln in s_ebeln .
if sy-subrc <> 0 .
message e000(8I) WITH 'No Data Exists' .
endif .
start-of-selection .
if grid = 'X' .
perform get_data .
perform event using i_event[] .
perform field using fieldcatalog[] .
perform layout using i_layout .
perform grid_display .
endif .
*& Form get_data
text
--> p1 text
<-- p2 text
form get_data .
*DATA Retrieval from tables
SELECT EKKO~EBELN
EKKO~BEDAT
EKPO~EBELP
EKPO~MATNR
EKPO~NETWR
EKPO~MEINS
EKPO~MENGE
EKPO~BPRME
INTO CORRESPONDING FIELDS OF table IT_FINAL
FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
WHERE EKKO~EBELN IN S_EBELN.
APPEND IT_FINAL.
endform. " get_data
*Getting the Event for Top of Page display.
*& Form event
text
-->P_I_event[] text
form event using p_i_event type slis_t_event.
clear p_i_event .
refresh p_i_event .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = p_i_event.
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2.
read table p_i_event with key name = slis_ev_top_of_page into wa_event.
if sy-subrc = 0.
move 'TOP_OF_PAGE_PO' to i_event-form.
modify p_i_event from i_event index sy-tabix transporting form.
endif.
clear i_event.
endform. " event
*Display Top-of Page Details and Logo
form top_of_page_po .
clear i_header .
refresh i_header .
write sy-datum to text.
i_header-typ = 'H'.
i_header-info = 'PURCHASE OREDER DETAILS'.
append i_header.
*Logo Display
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = i_header[]
I_LOGO = 'ENJOYSAP_LOGO'.
endform .
*Field Catalog Append
*& Form field
text
-->P_fieldCATALOG[] text
form field using p_fieldcatalog type slis_t_fieldcat_alv.
clear fieldcatalog.
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order No'.
fieldcatalog-col_pos = 1.
append fieldcatalog .
clear fieldcatalog.
fieldcatalog-fieldname = 'BEDAT'.
fieldcatalog-seltext_m = 'PO Date'.
fieldcatalog-col_pos = 2.
append fieldcatalog .
clear fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material No'.
fieldcatalog-col_pos = 4.
fieldcatalog-outputlen = 20.
append fieldcatalog .
clear fieldcatalog.
fieldcatalog-fieldname = 'NETWR'.
fieldcatalog-seltext_m = 'Net Value '.
fieldcatalog-col_pos = 5.
fieldcatalog-outputlen = 20.
fieldcatalog-do_sum = 'X'.
append fieldcatalog .
clear fieldcatalog.
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Units'.
fieldcatalog-col_pos = 6.
fieldcatalog-outputlen = 4.
append fieldcatalog .
clear fieldcatalog.
endform. " field
*& Form layout
text
form layout using p_i_layout TYPE SLIS_LAYOUT_ALV .
i_layout-zebra = 'X'.
i_layout-lights_fieldname = 'LIGHT'.
i_layout-lights_tabname = 'IT_FINAL'.
i_layout-box_fieldname = 'CHK'.
i_layout-box_tabname = 'IT_FINAL'.
i_layout-edit = ' '.
endform.
*To display Buttons in the MENU BAR if needed
FORM SET_PO_PF_STATUS USING P_I_EXTAB TYPE
SLIS_T_EXTAB.
SET PF-STATUS 'MENUPO'.
ENDFORM.
*Event for Interactive display of ALV report
form USER_COMMAND using r_ucomm like sy-ucomm
rs_selfield type slis_selfield .
if r_ucomm = '&IC1'.
READ TABLE IT_FINAL index rs_selfield-tabindex.
set parameter id 'VL1' field it_final-ebeln.
call transaction 'ME23N'.
endif.
endform .
*Parameters of FM REUSE_ALV_GRID_DISPLAY
*& Form grid_display
text
--> p1 text
<-- p2 text
form grid_display .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'SET_PO_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = FIELDCATALOG[]
IT_EVENTS = I_EVENT[]
TABLES
t_outtab = IT_FINAL.
endform. " grid_display
Regards,
Rusidar S. -
Problems with my printer HP Officejet pro 8600 Plus + Yosemite
Hi got problems with my printer HP Officejet pro 8600 Plus till I installed Yosemite it is not recognized so what can I do now.. No new drivers found by HP
Thanks for this AnnRT!
I've spent the best part of a day trying to figure this out. Everything was fine and then one day nothing worked! I have narrowed the issue down to Bonjour via WiFi as everything worked fine via USB, and via IP over WiFi.
I've now set a static IP for the printer and things seem to be working fine again
Thanks!
Chris -
Problem with Direct printing of PDF with Barcodes in R12
Hi All,
We are facing a problem in direct printing in EBS R12 with xml pdf reports which contains some barcode fonts. We are using fonts from IDAutomation for barcodes. Printing from request output is working fine. But when it is printed directly everything get printed other than the barcodes. Did anybody face this problem before and fixed it?
Regards,
BennyBenny,
Output from XML Publisher comes out correctly. The barcodes are stripped off during pdftops conversion. Any idea?
How did you verify the above?
PASTA 3.0 Release Information (Doc ID 239196.1)
BIP PDF Output Does Not Print MICRD Barcode Font - View Output Ok (Doc ID 747195.1)
Thanks,
Hussein -
Problem with pdf-printing in Adobe Acrobat Pro
Hi,
I have Adobe Acrobat Pro 9.4.3.
PDF-printing has always worked great but suddenly there is some kind of problem.
After printing a excel-document from "Print to pdf" built-in function in MacOS OR Adobes Printer I have corruptet pdf-files when showing them in Adobe Reader/Acrobat, but the MacOS Preview-software shows them correct.
So, there cannot be any problem with the printing, but the local preview on my computer using Reader or Acrobat. I dont even use the Myriad font in the document, I use Verdana.You say you're using Verdana but you're not. The error message clearly shows you're using MyriadPro Bold.
You probably recently installed the Mac OS X 10.6.7 update which has a bug with OpenType PostScript fonts like MyriadPro Bold. Either use Verdana or another TrueType or PostScript font, or revert to Mac OS X 10.6.6.
Read about the problem here: http://www.tidbits.com/article/12078 -
I have an HP Officejet Pro 8600+ that is coming up with an error message. This just happened out of the blue yesterday. The printer is just over a year old.
It says:
"There is a problem with the printer or ink system. Print head missing not detected incorectly installed or incompatable"
I have removed and reinstalled ink cartridges, the head, unplugged, cleaned, etc. etc.
HP Officejet Pro 8600+
Product Number CM750A
Serial Number {Content Removed}
Not under warranty
Please advise.
This question was solved.
View Solution.Sorry that you are experiencing this problem. Here is a link that may assist you with the ink system.
http://goo.gl/BXDFf
It seems to be a bad print head, or it needs manually cleaned with lint free cloth and water. If these steps do not resolve the issue, contact HP Support (1800-474-6836).
**Click the KUDOS star on the left to say 'Thanks'**
Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.
Maybe you are looking for
-
So today when I plugged in my iphone 4 to my laptop I discovered that all my music had been deleted from my library. So then when I would download my music again and try adding music to my phone it wouldn't do it. I would drag a song over to the "on
-
I dont remember my apple id or my password i bought it made the account an never really used it in the beginning and forgot the information and i turned it off while it was downloading new software and i havent been able to use it since what can i do
-
HT5312 i need to change my security questions holy **** it should not be this hard
seriously what the ****
-
Is there any entry should be passed for asset capitalisation from CWIP
Hi all, I have done the screens AIAB & AIBU. I would like to know whether these are enough to capitalisation from CWIP or I have to pass any entry apart from that. If any please explain me in detailed manner. Any other method availb
-
If I can suggest something to apple with a whole design of a new product how can I?
If I would like to suggest a new kind of product to apple with a design and all, how may I do that? someone please answer