Zreports
Hi Gurus!
There are some standard transaction codes specifically used for report generation. then why a need arises for creating Zreports. what is the need for to create zreports. how do they differ.
Thanks
KV
Hi Vamshi,
We create zprogram iff the client wants the program himself and if he specify not to enhance or modify the standard program... Normally ZPROGRAMS are not created always... IFF the client says 'Dont enhance the standard program using exits... create a zprogram for me...'
In zprograms we can do anything in anyway from starting.....
Hope information would be clear...
Regards
Narin Nandivada.
Similar Messages
-
Zreport on ageing & GR/IR report
I have 1 zreport called ZAGEING.
user have following query on this
"Attached for reference is the GR/IR Report that I need help with.
For example GR 5000021442 on PO 4502027464 has had a 102 movement which should reverse this GR therefore shouldn'd show on report.
This seems to have happened through out this report that GR and IR have not cleared.
Also is there anyway that I can run this report showing the GR that we see when viewing PO with transaction ME23N."Reports have column as
Company Code / Business Area/ Vendor / PO No. / PO Item / GR/IR Document / Item / year / ageing >60/ageing >90 / ageing >120 / Total Value
GR 5000021442 is under column GR/IR Document .
I am not getting clients requirement.
Where I can see GR/IR Document . I am not able to see it in tcode MR11SHOW.
Can we we gr ir document in Purchase order history of purchase order.
Edited by: KiranCG on Jan 3, 2012 10:37 AMHi,
The user requirement is simple in this report.
Normally a PO will have toget posted with a GR and a IR document whih is called as invoie report.At the same time , a PO will have a delivery date upon which the goods need tobe delivered tothe PO plant and once the goods are deliveered an invoice will be sent for IR.Also PO will have a PO creation date.
Here what you need to ask the user is about the ageing .Like the age should be based upon the Delivery date of the PO or the PO creation date. Bases upon this date you cancalulate the GR document aging or IR document aging.
In eah PO there will be a tab called POhistory ,where inyou can see the GR and IR doument and if any GR/IR clearing is done , the learing doument too. The related table is EKBE where in you canview all the transactions happened for the PO.
MSEG, rbkp , bseg ETC tables are useful in idenntifying the fields. you can write the logic for aging,This is a simple report straight you can ask to code.
Please comeup back with your requiremjent fully so that correct guidance will be given.
Regards, -
How to add additional fields to zreport which contains standard report code
Hi Experts,
In order to add additional fields to standard report i copied the code into zreport but i am unable to add additonal field into report because the code is looking so complex.
standard report:AQZZ/SAPQUERY/FKF1============
or
sapmenu->accounting->financial accounting->accounts payable->information system->reports for accounts payable accounting->master data->S_ALR_87012087-Addresslist.
Additional feilds to add is :Region,company code,country
Please let me know how toidentify ALV and guide me how to solve this.
Regards,
naresh.Hello Naresh,
First check whether these three fields are available in the text elements area.
Please write your code in the subroutine %comp_ldesc.
Repeat the code for your three new fields
perform ldesc(rsaqexce) using 'G00010000X010 00 A1'
%txt1 %txt2 %txt3 'LFA1-LIFNR' LFA1-LIFNR 'LFA1-LIFNR'.
read table %textpool_langu into %textpool_langu_line
with key ID = 'I' key = 'A01'.
if sy-subrc is initial. %txt1 = %textpool_langu_line-entry.
else. %txt1 = %txt_unknown.
endif.
So this subroutine will give you the basic list. Now Program is creating ALV with this basic list. So I think you don't need to worry about that. Please have a thorugh look at the code over this perform, and write accordingly.
I think this is enoogh.
Please update if you got the solution, which will be informative for others.
regards,
Antony Thomas
Edited by: Antony Thomas on Jul 27, 2010 7:57 AM -
I want to create the new zreport using below mentioned fields. I want mce5 report as per the posting date. Table
Purch Org
Material
Plant
Period
GR value as at pstg. Based on Posting Date
GR value on order da Based on Order Date
IR qty. (pstg. date) Based on Posting Date
Invoice Amount Based on Order Date
Invoice amount Based on Posting Date
Qty of goods recvd Based on Order Date
Qty of goods recvd at pstg. Based on Posting Date
Can anyone please let me know what tables i need to use to get the data for the above mentioned fields.
Thanks,
KiranHi
Hi
Table EKBE,MKPF,MSEG ,RSEG
It will helpful to you
But I am not getting one think
GRn qty on order date and GRn qty on posting date
In sap On Posting date GRNqty and value update,same for invoice,then how you will get two value for two differnt date ?
If you requierd order qty and value for po
then use table EKkO and EKPO
Regards
Kailas ugale -
How can i call a zreport from my bsp page.
Hi friends,
How can i call a zreport from my bsp page.
MoosaHi Friend,
These are the codings to be wirtten in BSP for transferring values to the REPORT
DATA:wf_date TYPE ztable-ID.
data:seltab type standard table of rsparams,
wa_seltab like line of seltab,
event TYPE REF TO if_htmlb_data.
DATA:p_value TYPE REF TO CL_HTMLB_INPUTFIELD.
event = cl_htmlb_manager=>get_event( runtime->server->request ).
p_requ ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'inputField'
id = 'i1'
if p_requ is not initial.
wf_date = p_requ->value.
endif.
clear wa_seltab.
if wf_date is not initial.
wa_seltab-selname = 'P_REQU'.
wa_seltab-kind = 'P'.
wa_seltab-option = 'EQ'.
wa_seltab-low = wf_date.
append wa_seltab to seltab.
endif.
submit *ZSAMPLEAP1* with selection-table seltab AND RETURN .(ZSAMPLEAP1 refers to the report name and AND RETURN for coming back to the BSP page after the completion of its operation in Report )
IMPORT int_name TO int_name FROM MEMORY ID '*zid*'.(For importing the obtained value from Report)
In Report
REPORT ZSAMPLEAP1.
SELECT-OPTIONS: p_requ FOR ztable-id NO INTERVALS.
SELECT SINGLE name from ztable into int_name WHERE id = p_requ-low.
WRITE:int_name.
EXPORT int_name TO MEMORY ID 'zsharmila'.
With Regards,
SHARMILA BRINDHA.M -
Error in automatically starting canceled job in a zreport
Hi All
I developed a zreport in which the input is canceled status taken from SM37.
When the zreport will execute the canceled job automatically restart and completed.
But it is not happening in Zreport. I am using SAP 4.7.
Kindly advice how to proceed.
Thanks
RajA service specific error occurred: 2.fix OS/networking configuration error
when was last time EM worked without error?
what changed since then? -
How to create a new node and its subnodes(zreports) in Transaction SRET
Hi Expets,
My requirement is to create a new node and subnodes(zreports) in the Transaction SRET.
Where as i am able to create a subnode(zreports) under the existing node but not able to create a New Node and
Subnodes(zreports) under it.
To create the subnodes(zreports) i used Transaction SERP and i was able to create the new node in SERP but not able to find it in SRET.
So please help me out.
Thanks,
KrishnaDear Pushpa,
Transaction Code :SHD0 is working fine.
Please accept my sincere thanks for your sharing your Knowledge.
I am able to fulfill my
Regarding the enhancement, I have not tried.
Once I will complete, I will award the fulll marks to you.
With Best Regards,
Raghu Sharma -
TIME_OUT runtime error for Zreport in only Production server.
Hi Experts,
I have created one new Zreport which is working well in Development & Quality Server for given input. but same report is giving run time error in Production server for same input resulting into error TIME_OUT. Short text of error is Time limit exceeded.
Please provide me solution for the same.
Thanks in advance.
Best Regards,
VinayakModerator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting - post locked
-
How to Add the Cost Element in Existing Zreport Painter
hi friends
i have issue with report painter
one Cost Element is not picked in Z Report which was created in Report painter
transaction data could be found in standard reports.
please expain how to Add the missing Cost Element in Existing ZReport
Point will be awarded.
ThanksCheck your sets first, if the cost element is missing from there, then change the set using GS02
Cheers
Prakash -
Getting Time out Error in ZReports..
Hi,
I am getting timeout error whenever I am trying to run a report. This error is coming only in case of ZReports. These programs are of different modules, like SD, FI and HR. Standard reports and programs are running fine.
Any solution ???
Priyanka.
SAP ABAP.Moderator message - Welcome to SCN.
But
Please see Please Read before Posting in the Performance and Tuning Forum before posting. You need to do some analysis first and then as a specific question - post locked
Rob -
Date Format in Zreport similar to the default date format set using su01.
Dear All,
I have a requirement as to change the date format in Zreport as the one which is set in default date format for the user in Su01 tcode.
Ex.. If the user has set the default date format in SU01 as ' YYYY-MM-DD' , in report also, date should appear as '2009-12-24'.
Is there any code or Function Module to change the date format in report as in the default Date format?
Can u help me in this?
Bye.....
Cheers
Christina.Try the following code.
select the format of current user from usr01 table.
SELECT SINGLE datfm FROM usr01
INTO w_datfm
WHERE bname = sy-uname.
Format based upon the current user settings. put this total code inside one form for reusability.
IF w_datfm = '1'.
CONCATENATE w_date6(2) c_dot w_date4(2) c_dot w_date+0(4) INTO outtab-value.
CONDENSE outtab-value NO-GAPS.
CONCATENATE w_rundate6(4) w_rundate3(2) w_rundate+0(2) INTO w_date.
CONDENSE w_date NO-GAPS.
ELSEIF w_datfm = '2'.
CONCATENATE w_date4(2) '/' w_date6(2) '/' w_date+0(4) INTO outtab-value.
CONDENSE outtab-value NO-GAPS.
CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
CONDENSE w_date.
ELSEIF w_datfm = '3'.
CONCATENATE w_date4(2) '-' w_date6(2) '-' w_date+0(4) INTO outtab-value.
CONDENSE outtab-value NO-GAPS.
CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
CONDENSE w_date.
ELSEIF w_datfm = '4'.
CONCATENATE w_date0(4) '-' w_date4(2) '-' w_date+6(2) INTO outtab-value.
CONDENSE outtab-value NO-GAPS.
CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
CONDENSE w_date NO-GAPS.
ELSEIF w_datfm = '5'.
CONCATENATE w_date0(4) '/' w_date4(2) '/' w_date+6(2) INTO outtab-value.
CONDENSE outtab-value NO-GAPS.
CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
CONDENSE w_date NO-GAPS.
ENDIF. -
Dear Friends,
Want to know how to create a customise ZREPORTS for FMRP_RW_BUDCON.
Please guide me with step by step to understand how to create the reports.
Thanks MD.
Moderator: Please, search SDN and help.sap.com for usage of Report Painter. Don't ask for 'step-by-step' manual, as it's not the purpose of this forumOne way is if you use BW. Then you have to create reports there. The other is if you use interactive reporting. Then you can do it via wizard that is available in CRM 2007. To do this, you need to be logged in with the ANALYTICSPRO business role. There you will have the option to Search reports. There you can search standard reports and the ones modified by you. If you want to modify the SAP delivered reports, select the report, click the Copy button and then rename it etc. You then walk through the wizard and make the changes you need. You can also modify the ones you created by clicking on Edit.
Once you have created your reports, then make start ordywb transaction and check Show Custom Reports checkbox. This will show you the identifier for your custom report. Then you put your logical link in the nav bar profile to show the reports on web ui.. -
Error in Zreport while upgrading from 46C to ECC 6
Hello Experts,
I am facing problems in 1 Zreport while i have upgraded that report from 4.6C to ECC 6. Dump is reported while running the program.
Error is : "Access non-existent storage area."
error is coming @ line : ADD <f1> THEN <f2> UNTIL <f3> GIVING v_totval.
FIELD-SYMBOLS: <f1> TYPE ANY,
<f2> TYPE ANY,
<f3> TYPE ANY.
DATA: v_totval LIKE lfc1-um01h.
IF <f1> IS ASSIGNED AND
<f2> IS ASSIGNED AND
<f3> IS ASSIGNED.
ADD <f1> THEN <f2> UNTIL <f3> GIVING v_totval.
ENDIF.
can you ppl please tell me any solution as its urgent !
thanks in advance.this is fine for me.
DATA: BEGIN OF numbers,
one TYPE p VALUE 10,
two TYPE p VALUE 20,
three TYPE p VALUE 30,
four TYPE p VALUE 40,
five TYPE p VALUE 50,
END OF numbers,
sum TYPE i.
SELECT-OPTIONS position FOR sum.
ADD numbers-one THEN numbers-two
UNTIL numbers-five
ACCORDING TO position
GIVING sum.
A -
Creation of Zreports in CRM 2007
Hi All,
Can anyone tell me how do we create Zreports in CRM 2007..? I need step by step process for creation of Zreports in CRM 2007.
Thanks in advance.
Archana.One way is if you use BW. Then you have to create reports there. The other is if you use interactive reporting. Then you can do it via wizard that is available in CRM 2007. To do this, you need to be logged in with the ANALYTICSPRO business role. There you will have the option to Search reports. There you can search standard reports and the ones modified by you. If you want to modify the SAP delivered reports, select the report, click the Copy button and then rename it etc. You then walk through the wizard and make the changes you need. You can also modify the ones you created by clicking on Edit.
Once you have created your reports, then make start ordywb transaction and check Show Custom Reports checkbox. This will show you the identifier for your custom report. Then you put your logical link in the nav bar profile to show the reports on web ui.. -
ZReport getting dump in Production but not in Quality and development
Hi,
There isa Zreport which displays daily stock in PP module.
It is getting dump in Production not in quality and development.
Since four days it is getting dump. Before that it is fine.
Please any one guide How to resolve.
Advance Thanks.Runtime Error SAPSQL_IN_ITAB_ILLEGAL_OPTION
Occurred on 29.08.2007 at 08:50:13
<u>Invalid value in OPTION field of value table for IN itab operator.</u>
What happened?
<b>Error in ABAP application program.</b>
The current ABAP program "ZPPRDR417" had to be terminated because o
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and admin
termination messages, especially those beyond their normal deletio
date.
<b>Error analysis</b>
The current ABAP/4 program attempted to execute an ABAP/4 Open SQL
statement in which the WHERE condition contains an IN itab operator
The IN itab operator is used with internal tables which
have the following structure:
SIGN(1) OPTION(2) LOW LIKE db_field HIGH LIKE db_field
The OPTION column should contain only one of the following values:
"EQ LE GE CP BT NE LT GT NP NB"
The value " " is not allowed here.
<b>How to correct the error</b>
Use only one of the permitted values in the OPTION column.
Information on where terminated
The termination occurred in the ABAP program "ZPPRDR417" in "WIP_STOCK_REP
The main program was "ZPPRDR417 ".
The termination occurred in line 330 of the source code of the (Include)
program "ZPPRDR417_FORM"
of the source code of program "ZPPRDR417_FORM" (when calling the editor 33
Source code extract
Caution: Program has changed
Caution: At time of termination, Active source code no longer available
003000 ? r_bwart-low = '106'.
003010 ? append r_bwart.
003020 ?
003030 ? r_bwart-low = '124'.
003040 ? append r_bwart.
003050 ?
003060 ? r_bwart-low = '125'.
003070 ? append r_bwart.
003080 ?
003090 ? select matnr
003100 ? werks
003110 ? into table i_marc
003120 ? from marc
003130 ? where ( matnr LIKE 'BILC%'
003140 ? OR matnr LIKE 'LGN%'
003150 ? OR matnr LIKE 'BRN%'
003160 ? OR matnr LIKE 'EBB%' )
003170 ? AND matnr NE 'BRN_DECLASSE'
003180 ? AND matnr NE 'BRN_SAF'
003190 ? and werks in r_werks.
003200 ?
003210 ? r_material-sign = 'I'.
003220 ? r_material-option = 'EQ'.
003230 ?
003240 ? loop at i_marc into wa_marc.
003250 ? r_material-low = wa_marc-matnr.
003260 ? append r_material.
003270 ? endloop.
003280 ? clear r_material.
003290 ?
> ? if not i_matdoc is initial.
003310 ? select MBLNR
003320 ? MJAHR
003330 ? ZEILE
003340 ? BWART
003350 ? MATNR
003360 ? WERKS
003370 ? SHKZG
003380 ? MENGE
003390 ? UMWRK
003400 ? into table i_mseg_qty
003410 ? from mseg
003420 ? for all entries in i_matdoc
003430 ? where MBLNR eq i_matdoc-MBLNR
003440 ? and MJAHR eq i_matdoc-MJAHR
003450 ? and BWART in r_bwart
003460 ? and matnr in r_material
003470 ? and werks in r_werks.
003480 ?
003490 ? sort i_mseg_qty by matnr. -
Improving performance of zreport
Hi,
I have on requirement of improving performance of zreport.
(1) Apart from nested loops, select within loop, inner joins, is there any other changes i have to consider.
(2) There 4 nested loops found, which have upto 1 level. Is it mandatory for avoiding nested loops which have upto 1 level?
(3) How to avoid SELECT, ENDSELECT within LOOP and ENDLOOP
(4) The FM WS_DOWNLOAD, which is outdated is called for downloading data into excel. Which one i have to choose for replacing this FM.
I will reward, if it is useful.Hi,
Downloading Internal Tables to Excel
Often we face situations where we need to download internal table contents onto an Excel sheet. We are familiar with the function module WS_DOWNLOAD. Though this function module downloads the contents onto the Excel sheet, there cannot be any column headings or we cannot differentiate the primary keys just by seeing the Excel sheet.
For this purpose, we can use the function module XXL_FULL_API. The Excel sheet which is generated by this function module contains the column headings and the key columns are highlighted with a different color. Other options that are available with this function module are we can swap two columns or supress a field from displaying on the Excel sheet. The simple code for the usage of this function module is given below.
Program code :
REPORT Excel.
TABLES:
sflight.
header data................................
DATA :
header1 LIKE gxxlt_p-text VALUE 'Suresh',
header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
Internal table for holding the SFLIGHT data
DATA BEGIN OF t_sflight OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA END OF t_sflight.
Internal table for holding the horizontal key.
DATA BEGIN OF t_hkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_h.
DATA END OF t_hkey .
Internal table for holding the vertical key.
DATA BEGIN OF t_vkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_v.
DATA END OF t_vkey .
Internal table for holding the online text....
DATA BEGIN OF t_online OCCURS 0.
INCLUDE STRUCTURE gxxlt_o.
DATA END OF t_online.
Internal table to hold print text.............
DATA BEGIN OF t_print OCCURS 0.
INCLUDE STRUCTURE gxxlt_p.
DATA END OF t_print.
Internal table to hold SEMA data..............
DATA BEGIN OF t_sema OCCURS 0.
INCLUDE STRUCTURE gxxlt_s.
DATA END OF t_sema.
Retreiving data from sflight.
SELECT * FROM sflight
INTO TABLE t_sflight.
Text which will be displayed online is declared here....
t_online-line_no = '1'.
t_online-info_name = 'Created by'.
t_online-info_value = 'KODANDARAMI REDDY.S'.
APPEND t_online.
Text which will be printed out..........................
t_print-hf = 'H'.
t_print-lcr = 'L'.
t_print-line_no = '1'.
t_print-text = 'This is the header'.
APPEND t_print.
t_print-hf = 'F'.
t_print-lcr = 'C'.
t_print-line_no = '1'.
t_print-text = 'This is the footer'.
APPEND t_print.
Defining the vertical key columns.......
t_vkey-col_no = '1'.
t_vkey-col_name = 'MANDT'.
APPEND t_vkey.
t_vkey-col_no = '2'.
t_vkey-col_name = 'CARRID'.
APPEND t_vkey.
t_vkey-col_no = '3'.
t_vkey-col_name = 'CONNID'.
APPEND t_vkey.
t_vkey-col_no = '4'.
t_vkey-col_name = 'FLDATE'.
APPEND t_vkey.
Header text for the data columns................
t_hkey-row_no = '1'.
t_hkey-col_no = 1.
t_hkey-col_name = 'PRICE'.
APPEND t_hkey.
t_hkey-col_no = 2.
t_hkey-col_name = 'CURRENCY'.
APPEND t_hkey.
t_hkey-col_no = 3.
t_hkey-col_name = 'PLANETYPE'.
APPEND t_hkey.
t_hkey-col_no = 4.
t_hkey-col_name = 'SEATSMAX'.
APPEND t_hkey.
t_hkey-col_no = 5.
t_hkey-col_name = 'SEATSOCC'.
APPEND t_hkey.
t_hkey-col_no = 6.
t_hkey-col_name = 'PAYMENTSUM'.
APPEND t_hkey.
populating the SEMA data..........................
t_sema-col_no = 1.
t_sema-col_typ = 'STR'.
t_sema-col_ops = 'DFT'.
APPEND t_sema.
t_sema-col_no = 2.
APPEND t_sema.
t_sema-col_no = 3.
APPEND t_sema.
t_sema-col_no = 4.
APPEND t_sema.
t_sema-col_no = 5.
APPEND t_sema.
t_sema-col_no = 6.
APPEND t_sema.
t_sema-col_no = 7.
APPEND t_sema.
t_sema-col_no = 8.
APPEND t_sema.
t_sema-col_no = 9.
APPEND t_sema.
t_sema-col_no = 10.
t_sema-col_typ = 'NUM'.
t_sema-col_ops = 'ADD'.
APPEND t_sema.
CALL FUNCTION 'XXL_FULL_API'
EXPORTING
DATA_ENDING_AT = 54
DATA_STARTING_AT = 5
filename = 'TESTFILE'
header_1 = header1
header_2 = header2
no_dialog = 'X'
no_start = ' '
n_att_cols = 6
n_hrz_keys = 1
n_vrt_keys = 4
sema_type = 'X'
SO_TITLE = ' '
TABLES
data = t_sflight
hkey = t_hkey
online_text = t_online
print_text = t_print
sema = t_sema
vkey = t_vkey
EXCEPTIONS
cancelled_by_user = 1
data_too_big = 2
dim_mismatch_data = 3
dim_mismatch_sema = 4
dim_mismatch_vkey = 5
error_in_hkey = 6
error_in_sema = 7
file_open_error = 8
file_write_error = 9
inv_data_range = 10
inv_winsys = 11
inv_xxl = 12
OTHERS = 13
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
reward if helpful
raam
Maybe you are looking for
-
RSA Authentication Manager connector exception with OIM 9.1.0.2
Hi, I have installed RSA AM connector 9.1.0.7 on OIM 9.1.0.2 BP18 on Windows Server 2008 R2. When I run the RSA recon schedule task, I get the following exception: DEBUG,24 Feb 2012 12:11:13,227,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader:fin
-
Do you get a proper native UK keyboard with the MacBook Air?
Hi. I was wondering if you got a proper UK keyboard like this one attached on the macbook air?
-
Screen stays on all the time power savings set up
My imac's screen stays on all the time now once I upgraded snow leopard to 10.6.3 it has been doing this since I got the settings so that the screen turns off 3 minutes after inactivity but the screen never turns off now. the only time the screen tur
-
How to Use At line-Selection Functionality in dialog programming or mpp .
hi i had created customized Transaction , in that notification field is there , their when they place notification number ,after that when they double click on that, it have to go to iw23 .(so that they will get confirm that notification number is
-
Mail receipt being monitored, help me stop this please?
I've been told that a Windows Outlook user sends read confirmations to me to check if I read the emails. It happens in the background so I'm not alerted to this function. I think this is ridiculous, how can I stop people doing this?