How to Display Page wise Data
Dear friends,
I am displaying my reprot in ALV GRID display but as per new requirement my client want that it should be dealer wise means the dealer should come on top of page and its customer data below that heading after all customers the totle should come and when dealer change it should appear on the new page.
Can any body tell me hw to do this.
Thanking you all in advance,
Navin
HI
navin this code might help u this code triggers a pge break at every new date
*& Report Y_TOP_PAGE *
REPORT y_top_page .
TABLES : mara.
TYPE-POOLS: slis.
DATA : w_repid LIKE sy-repid.
w_repid = sy-repid.
DATA : BEGIN OF it_mara OCCURS 0,
matnr LIKE mara-matnr,
END OF it_mara.
*layout
DATA: wa_layout TYPE SLIS_LAYOUT_ALV.
*field catalog
DATA: it_fieldcat_wrt_off TYPE slis_t_fieldcat_alv,
wa_fieldcat_wrt_off TYPE slis_fieldcat_alv.
START-OF-SELECTION.
SELECT matnr FROM mara INTO CORRESPONDING FIELDS OF TABLE it_mara.
END-OF-SELECTION.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = w_repid
I_INTERNAL_TABNAME = 'IT_MARA'
i_structure_name = 'IT_MARA'
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = w_repid
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = it_fieldcat_wrt_off[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = w_repid
i_callback_top_of_page = 'TOP-OF-PAGE'
is_layout = wa_layout
it_fieldcat = it_fieldcat_wrt_off
TABLES
t_outtab = it_mara
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
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.
Title
wa_header-typ = 'H'.
wa_header-info = 'CHANDU REPORT'.
APPEND wa_header TO t_header.
CLEAR wa_header.
Date
wa_header-typ = 'S'.
wa_header-key = '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.
Total No. of Records Selected
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
ENDFORM. "top-of-page
if it is helpfull plzz reward
dont forget to reward if ti is usefull
for any further quiries contact me on [email protected]
Similar Messages
-
How to display week wise data in ssrs report
Hi,
I want my report to fetch data from Financial year starting to till date.
i.e Apr 2013 to till date.
till date means Today() minus 8 days and @Fromdate includes last week of march also
i.e Mar 29 2013 to Apr 4 2013 - this week data will also be included
So data from Mar 29 2013 - Apr 4 2013 to today() minus 8 days need to be displayed
How to fetch data for this.
Pls advise.The column corresponding to this looks like "2013-11-01 ~~ 2013 - 11- 07"Hi, Well your requirement is very vague. I would probably have you create a calendar table according to your requirements and use it in your dataset. If you could better explain this with an example we could help you a lot better.
Hope this helps.......
Ione -
How to display page wise totals in Smartforms
hi,
I created Tax Invoice for SD my quetion is i have 10 items 5 items are displaying in first page and rest of 5 items are displaying next page.
in first page 5 items i have to display the total amount in first page and same like second page also please help me.
regardsHi,
Create two global data variables called pag_total & currentpage and initialize currentpage as 1.
if currentpage <> sfsy-page.
pag_total = 0.
pag_total = pag_total + column value(which values u want to add).
currentpage = sfsy-page.
else.
pag_total = pag_total + column value(which values u want to add).
endif.
Write these lines in main area table row of that particular column cell and store the SFSY-page value also in a global variable(currentpage).
Then write the pag_total variable in the footer.
Thanks,
Venkat -
How to display the header data on different position in alv report
hi all,
how to display the header data on different position in alv report.
for example ,
customer name
xxxx xxxx
vendor name street
xxxx xxxx xxxxx
pls help me .hi
as per my understanding you need to trnasfer header internal table data to pdf..
please check the following links for internal table to pdf..
Convertion of Internal table data to PDF
This link is related to ur issue
Re: how to insert the calling of the FM: OTF to PDF
Thanks -
How to display page numbers in report
hi all,
i would like to know how to display page numbers in this format " 1 of 5" in the report.
Any help would be much appreciated.
thanks
seemaHi,
Check this too...
Page No. in ALV output
If you query is solved, kindly close the thread.
Regards,
Anjali
Message was edited by: Anjali Devi Vishwanathan -
How to display the current date in the prompt value.
Hi,
How to display the current date in the prompt value. When the user runs the query he want the current date to be displayed in the prompt value and he should also be able to change the date if required ...... I am using web Intellegency BO XI3.0.
Thanks,
Shakthi.Please refer the below link.
Prompt with default date ( currentdate-1 and current date-8)
http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/
http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
Regards,
Bilahari -
How to display planned movement date and actual movement date together?
Hi, Professionals,
My purpose is to list delayed outbound deliveries.
Anyone could tell me how to display planned movement date and actual movement date?
Appreciate your help.Thanks Shiva.
I tried another way to do it. It works only for a short period of time.
By using VL06O, I list all outbound deliveries by limiting both planned goods movement dates and actual goods movements dates to the same week I would like to inspect. Say both from 7th/11 to 14th/11.
then I list outbound delivery list with planned goods movement date to 7th/11 but left out actual goods movements dates this time.
In excel, I compare those two lists and filter out those unique ones because those unique documents means delayed deliveries which cannot delivery according to planned date.
However, the "delayed" list generated by this method has some noises. Not all of documents are really delayed although most of them do.
I'm also looking for a way to list sales documents number of these delayed delivery documents so i can retrieve order details from it such as order value.
Help still needed. -
Displaying metadata, how to display ONLY the Date
I would like to display the Date below each image in Aperture 3. When I select "Date" in the Browser & Viewer Metadata window, the result is a very long string with the Date, the Time and the Time Zone. meaning that most of the time I see nothing because the string is much too long to be displayed...
How to display ONLY the Date ?
Thank you.
Olivierom28 wrote:
I will do that but still... if the Date could be ONLY the Date "without time and time zone", I would be able to display more information.. and it will look nicer.
I said at the top of my first response above: +Afaik, there is no way within Aperture to change the date format of the date metadata overlay.+
Send Aperture feedback to Apple via "Aperture→Provide Aperture Feedback"
In the past I used Expression Media and the config for displaying such info was better.
Aperture has a strange interface for it (and for other parameters), it does not behave at all like an Apple software (for the GUI), probably an external development team... but I agree it is more complex than iPhoto.
Aperture is 10x more complex than iPhoto.
If you want to see a rigid, boxed, "engineer"-style image database interface, take a look at Lightroom 3. It's a great program -- but it's a very different concept of information presentation and interaction.
Thanks again. -
How to display the Current Date on page using ADF Components
Hi,
Is there any way to display the system date on a page developed using ADF Components.
I am thinking of writing the java code to display the date. Just wanted to check is there any pre-defined component of ADF that I can make use of.
Could anyone tell me how to do this using ADF components?
Thanks in advance.
Sivaji....Please refer the below link.
Prompt with default date ( currentdate-1 and current date-8)
http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/
http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
Regards,
Bilahari -
How to display today's date in a textfield?
Hi all,
I have a textfield and it is a page item P18_DOJ.By defalut I want to display today's date in that textfield and it is should be readonly.How do i do that?Put "Select sysdate from dual;" as source type SQL Query and "readonly" in the HTML Form Element Attributes field.
-
How to display an HTML data which contains images in CR
Hi Experts,
I have a HTML file which contains images and text. I will store all this data in to the database as binary data(SQL server 2008). How can I display the whole data in report.
Thanks in advance,
Salahhello all,
most times when HTML is stored in a database there are many tags that will not work. the tags that will work are very basic and limited to the formatting types that you can do within a Text Object...so not much.
if you need all of the HTML from a database interpreted, you need to activate pass-through html on your system. then if you put the field into a formula (one line in height) the HTML should be properly displayed. for more info on activating pass-through html see the beginning of the Users Guide for webelements that is in the main download [here|Crystal Reports webElements].
please note that there are some major limitations in this method:
1) you cannot print the html displayed when using the print button on the crystal reports toolbar as it will show up as text...you can try the browsers print functionality to see if that works for you
2) you can not export the report and see the html displayed...it will show up as text
3) pagination may not work for you...i.e. if you have an especially long section of html in your database, the page may not break where you want it to
best of luck,
jamie -
How to display page-no in alv list
Hi All,
I am trying to display pag number using events 'top-of-page'.
when i write sy-pagno in top-of-page form its printing only 1, if i press page down i need to change the page number. it should display current pag number. How to achieve this. thanks.
regards
vishalwe can print the pageno .I was also trying for the same finally succeded
It can be done in the following manner
DATA SORTING AND SUBTOTAL
DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
CLEAR GS_SORT.
GS_SORT-FIELDNAME = 'FIELD1'.
GS_SORT-SPOS = 1.
GS_SORT-UP = 'X'.
GS_SORT-SUBTOT = 'X'.
<b>gs_sort-group = '* '. "<<<new page</b>
APPEND GS_SORT TO GT_SORT.
CLEAR GS_SORT.
GS_SORT-FIELDNAME = 'FIELD2'.
GS_SORT-SPOS = 2.
GS_SORT-UP = 'X'.
gs_sort-group = ' '. "<<<new page
*GS_SORT-SUBTOT = 'X'.
APPEND GS_SORT TO GT_SORT.
ABAP List Viewer
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME = 'ITAB1'
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GT_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = GT_SORT[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = GT_EVENTS[]
IT_EVENT_EXIT =
IS_PRINT = GS_PRINT
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = ITAB1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2. -
How to display a table data on Screen having a Table control
Hi ,
I am new to ABAP.I would like to display a table data (Eg: ZDemo) on a screen at run time.I have defined a Table control in screen. Now I want to populate data from ZDemo to table control.How can I do that?Please help moving forward in this regard.Hi Gayatri,
After creating table control do the following steps.
1. In the flow logic section write the following code:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
LOOP AT I_LIKP WITH CONTROL LIKP_DATA CURSOR LIKP_DATA-CURRENT_LINE.
MODULE ASSIGN_DATA.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0200.
LOOP AT I_LIKP.
ENDLOOP.
I_LIKP is the internal table which is used to display table data in the table control.
2. In Process Before Output, in the module STATUS_0200 write the following code:
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
In Process After Input, in the module USER_COMMAND_0200 write the following code:
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
In Process Before Output and in the module ASSIGN_DATA which is there inside the loop write the following code:
MOVE-CORRESPONDING I_LIKP TO LIKP.
So, Totally your flow logic code should be like this.
TABLES: LIKP, LIPS.
DATA: BEGIN OF I_LIKP OCCURS 0,
VBELN LIKE LIKP-VBELN,
ERNAM LIKE LIKP-ERNAM,
ERZET LIKE LIKP-ERZET,
ERDAT LIKE LIKP-ERDAT,
MARK TYPE C VALUE 'X',
END OF I_LIKP,
BEGIN OF I_LIPS OCCURS 0,
VBELN LIKE LIPS-VBELN,
POSNR LIKE LIPS-POSNR,
WERKS LIKE LIPS-WERKS,
LGORT LIKE LIPS-LGORT,
END OF I_LIPS,
FILL TYPE I.
CONTROLS: LIKP_DATA TYPE TABLEVIEW USING SCREEN 200,
LIPS_DATA TYPE TABLEVIEW USING SCREEN 300.
DATA: COLS LIKE LINE OF LIKP_DATA-COLS.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'LIKP'.
SELECT VBELN
ERNAM
ERZET
ERDAT
FROM LIKP
INTO TABLE I_LIKP
WHERE VBELN = LIKP-VBELN.
IF I_LIKP[] IS INITIAL.
CALL SCREEN 200.
ENDIF.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module assign_data OUTPUT
text
MODULE ASSIGN_DATA OUTPUT.
MOVE-CORRESPONDING I_LIKP TO LIKP.
ENDMODULE. " assign_data OUTPUT
*& Module STATUS_0200 OUTPUT
text
MODULE STATUS_0200 OUTPUT.
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE USER_COMMAND_0200 INPUT.
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
Save and Activate the program along with the screen in which you have included table control.
Hope this will help you.
Regards
Haritha. -
How to display the current date in Flex app
I need to display the current date in my Flex application. Is there a simple way to do this and display it as a label or text field? Also, can this be formatted to display the date as "Day of Week, Month Day, Year"?
Thanks!You can use this code and this page to tweak the formatString property.
http://livedocs.adobe.com/flex/3/langref/mx/formatters/DateFormatter.html#formatString
If this post answers your question or helps, please mark it as such.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="init();">
<mx:Script>
<![CDATA[
[Bindable] private var date:String;
private function init():void{
date = new Date().toString();
date = df.format(date);
]]>
</mx:Script>
<mx:DateFormatter id="df" formatString="EEEE, MMMM D, YYYY"/>
<mx:Label text="{date}"/>
</mx:Application> -
How to Display the Predefault Date Time
Hi frnds,
How to display the Default DateTime in the date field via sctipting i have a requirementy to show in one of the date field as next day's date with 9:00 a.m time stamp(2/15/2010 9:00 A.M) the data type of that field& column is UTC_datetime.please help i am getting.
siebel beeHave a look at the function Today(), TimeStamp() and ToChar()
You should be able todo it with something similar to this:
Expr: "ToChar(TimeStamp(),'MM') + '/' + ToChar(TimeStamp(),'DD') + '/' + ToChar(TimeStamp(),'YYYY') + ' ' + ToChar(TimeStamp()+(1/24),'HH') + ':00:00'"
as a pre-default value.
Maybe you are looking for
-
I have a WD My Passport 070A Media 2.0 TB external hard drive that has suddenly become unreadable on my laptop (MacBook Pro circa 2006 with 10.4.11) and I have tried on a MacBook Pro 2011 running 10.6.8 with the same results. I had tried opening dis
-
Downloading mavericks is taking forever
I have been trying to download os x mavericks onto my mac book pro and in 24 hrs it hasnt passed the 1/4 mark is this normal to take so long? What am i doing wrong?
-
Hi, my client have following requirement, We buy a lot of raw materials in loaned packaging (drums or IBC). The vendors are invoicing the packaging as an extra item on their invoice. Weeks or months later when we return the packaging to them we get a
-
WDS deployment booting not working properly! filename incorrent?
Hi! I recently set up a new Server 2012 and installed WDS using this guide http://technet.microsoft.com/en-us/library/jj648426.aspx I did a Active directory integrated installation and accepting any computer to boot from the wds files. But the boot f
-
Duplicate Planning Application Failed
I would like to duplicate a Planning Application. When doing this from the Application Library I am get following error message: Duplicating Application 'CLAIMS' to 'CLAIMDEV' failed. Error 'ORA-02291: integrity constraint (EPMA.FK_PROPMBRDIM02) viol