Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
50Activity
0 of .
Results for:
No results containing your search query
P. 1
Sample Alv Reports

Sample Alv Reports

Ratings: (0)|Views: 4,863|Likes:
Published by Pavan
Sample ALV Reports
Sample ALV Reports

More info:

Published by: Pavan on Oct 16, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/02/2013

pdf

text

original

 
ALV REPORTS
Report for header window and template
*&---------------------------------------------------------------------**& Report ZALV**&**&---------------------------------------------------------------------**&**&**&---------------------------------------------------------------------*Report ZALV .TABLES: ekko.type-pools: slis. "ALV Declarations*Data Declaration*----------------TYPES: BEGIN OF t_ekko,ebeln TYPE ekpo-ebeln,ebelp TYPE ekpo-ebelp,statu TYPE ekpo-statu,aedat TYPE ekpo-aedat,matnr TYPE ekpo-matnr,menge TYPE ekpo-menge,meins TYPE ekpo-meins,netpr TYPE ekpo-netpr,peinh TYPE ekpo-peinh,END OF t_ekko.DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,wa_ekko TYPE t_ekko.*ALV data declarationsdata: fieldcatalog type slis_t_fieldcat_alv with header line,gd_tab_group type slis_t_sp_group_alv,gd_layout type slis_layout_alv,gd_repid like sy-repid,gt_events type slis_t_event,gd_prntparams type slis_print_alv.
 
*************************************************************************Start-of-selection.START-OF-SELECTION.perform data_retrieval.perform build_fieldcatalog.perform build_layout.perform build_events.perform build_print_params.perform display_alv_report.*&---------------------------------------------------------------------**& Form BUILD_FIELDCATALOG*&---------------------------------------------------------------------** Build Fieldcatalog for ALV Report*----------------------------------------------------------------------*form build_fieldcatalog.* There are a number of ways to create a fieldcat.* For the purpose of this example i will build the fieldcatalogmanualy* by populating the internal table fields individually and then* appending the rows. This method can be the most time consuming butcan* also allow you more control of the final product.* Beware though, you need to ensure that all fields required are* populated. When using some of functionality available via ALV,such as* total. You may need to provide more information than if you were* simply displaying the result* I.e. Field type may be required in-order for* the 'TOTAL' function to work.fieldcatalog-fieldname = 'EBELN'.fieldcatalog-seltext_m = 'Purchase Order'.fieldcatalog-col_pos = 0.fieldcatalog-outputlen = 10.fieldcatalog-emphasize = 'X'.fieldcatalog-key = 'X'.* fieldcatalog-do_sum = 'X'.* fieldcatalog-no_zero = 'X'.append fieldcatalog to fieldcatalog.clear fieldcatalog.fieldcatalog-fieldname = 'EBELP'.fieldcatalog-seltext_m = 'PO Item'.fieldcatalog-col_pos = 1.
 
append fieldcatalog to fieldcatalog.clear fieldcatalog.fieldcatalog-fieldname = 'STATU'.fieldcatalog-seltext_m = 'Status'.fieldcatalog-col_pos = 2.append fieldcatalog to fieldcatalog.clear fieldcatalog.fieldcatalog-fieldname = 'AEDAT'.fieldcatalog-seltext_m = 'Item change date'.fieldcatalog-col_pos = 3.append fieldcatalog to fieldcatalog.clear fieldcatalog.fieldcatalog-fieldname = 'MATNR'.fieldcatalog-seltext_m = 'Material Number'.fieldcatalog-col_pos = 4.append fieldcatalog to fieldcatalog.clear fieldcatalog.fieldcatalog-fieldname = 'MENGE'.fieldcatalog-seltext_m = 'PO quantity'.fieldcatalog-col_pos = 5.append fieldcatalog to fieldcatalog.clear fieldcatalog.fieldcatalog-fieldname = 'MEINS'.fieldcatalog-seltext_m = 'Order Unit'.fieldcatalog-col_pos = 6.append fieldcatalog to fieldcatalog.clear fieldcatalog.fieldcatalog-fieldname = 'NETPR'.fieldcatalog-seltext_m = 'Net Price'.fieldcatalog-col_pos = 7.fieldcatalog-outputlen = 15.fieldcatalog-datatype = 'CURR'.append fieldcatalog to fieldcatalog.clear fieldcatalog.fieldcatalog-fieldname = 'PEINH'.fieldcatalog-seltext_m = 'Price Unit'.fieldcatalog-col_pos = 8.append fieldcatalog to fieldcatalog.clear fieldcatalog.endform. " BUILD_FIELDCATALOG*&---------------------------------------------------------------------**& Form BUILD_LAYOUT

Activity (50)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
tabish24 liked this
pkplove liked this
gerardoyacorreo liked this
Edward Kim liked this
bogdan2303 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->