Re: Regarding report
Hi experts,
Please help me out as i am new to abap.My problem is how to create a detailed report for listing Goods Receipts by material wise for a given period, which contains detailed information like PO No, PO Date, Plant, GR ref, GR date, Material description.
Replies will be highly appreciated.
Thanks,
Pankaj
Check out the following link. It shows the different tables used by the different Functional Areas and the link between those tables.
http://www.erpgenie.com/abap/tables.htm
Similar Messages
-
Hi , i need urgent information regarding reports,
i developed one ALV report, i want to schedule in background ,daily executes on morning 8 AM, generate file in XLS format with the reported data (background scheduled report) , that Data will will be sotred in Appilcation server perminently, after some days, generate report with that data ie data in Appilcation server.
kindly send to me the sample codeHello Chintam Nagaraju,
Pl. follow the steps:
Assuming that you moved this report in production environment. In the program itself you can give the logic for downloading the data in XLS format on particular target system (take help from sr technical guy)
1. Go to SM36 transaction for batch job schedule.
2. Give the job name, priority and target system name in initial inputs
3. Click on Start Condition Button
4. Click on Date/time and maintain start time and data (say 8.00 AM)
5. Select the periodic indicator on the bottom of screen and maintain periodic value (as daily)
and save this batch job.
Hope this will help.
Regards
Arif Mansuri.
Reward if answer is helpful. -
Regarding report painter/writer
I have a problem regarding REPORT WRITER AND REPORT PAINTER. I have to develop a report based on transaction -
CK13 in report painter. I am new to this area of reporting. How could I insert new tables in the library as I do not find a table or structure based on this transaction where I can find activity type, quantity and value in object currency.
Report format -
Material Activity type Vvalue in object currency.Hi,
Try standard reports in GRR3 with library 7*. Relevant tables/structure could be KKBE, KKBC, & KKBU. Copy and modify the same.
Rgds. -
Regarding report for daily GRN
Sapgurus,
Any report where we can see all daily stock report in MM side
Thanking youHi,
You can also use S033 table for daywise stock movements.
Regards,
Prabu -
Regarding Report for Tax Returns Details
Dear Experts...
to check the report of tax returns I am using "Zstar" T-code,
i have given the respective values i.e.,
Company code
Region
Form
Fiscal year
Posting Period
and then by clicking on execute i can find some values in value excluding vat, vat due (in sales) and value excluding vat , vat claimed( in purchases)
My question is from where these values are picking and help me out to check effect of the related documents.
For reference i have attached the screen shot.
Note: i haven't maintained any values in my testing client, but i can find values in my production client.
Thanks & Regards
SreelathaHello,
TCd. Zstar which you use is not an SAP standard transaction, as far as I know.
So it is not possible to tell you, what data is read by the program.
You have to check this with colleague who has done the programming.
Thank you for your understanding.
br erwin -
Hi All,
Can anybody give me examples for generating/Printing <b>TREE Reports in ABAP.</b>
If anybody worked on it please send the example programs to my personal mail ID - <b>[email protected]</b>
Thanks in advance.
Thanks & Regards,
Rayeez.Hi Shaik,
check in http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm
and in SE38 you can find some more
<b>BCALV_TREE_01
BCALV_TREE_02
BCALV_TREE_03
BCALV_TREE_04
BCALV_TREE_05
BCALV_TREE_06
BCALV_TREE_DEMO</b>
regards
Vijay -
hello,
Please tell me the t.codes in FI to see the trial balance , Ageing report for customer and vendor, P&l a/c and b/s
point will be givenhi
F.01 using for seeing Trail balance and balance sheet account
for vendor and customer Ageing report you can get
FBL1N and FBL5N
Regards
ss -
Regarding Report on purchase order purchase requesition and GRN No.
Dear All,
I am creating ALV report in which. I want all purchase order (EBELN), their respetive Purchase Requesition(BANFN)
And GRN No(MBLNR)., if they are created. But all purchase order should be displayed evenif their GRN have not been
made. GRN only haveing movement type 101 and 102. i.e. of 50 series and not 49 series.
i want tlike this
For Ex:-
EBELN BANFN MBLNR
45000223 1000223 5000080
45000245 5000056
45000676
45000848 .Hi,
1. Fetch all the Purchase Orders from EKKO
2. Fetch Purchase Req from EBAN for all entries in above selected internal table where EBELN = EKKO-EBELN
3. Fetch GR info from EKBE for all entries in first selected internal table where EBELN = EKKO-EBELN and VGABE = '1'. (this indicates GR for a PO) and BWART in ('101', '102').
4.
Loop through EKKO.
T_FINAL-EBELN = EKKO-EBELN.
Read EBAN with key EBELN = EKKO-EBELN.
T_FINAL-BANFN = EBAN-BANFN.
Loop through EKBE where EBELN = EKKO-EBELN. (there can be multiple docs for a single PO)
T_FINAL-MBLNR = EKBE-MBLNR.
Append T_FINAL.
Endloop.
If SY-SUBRC is not equal to 0. (If no GR happend, control will not go to EKBE loop, still you need to display it in ALV)
Append T_FINAL.
Endif.
Endloop.
5. Display the contents of T_FINAL in ALV.
Hope this helps you !!!
Regards,
Ganga -
Regarding report(urgent)
Hi experts,
i need to add some fields to output of the report.
here i am giving the fields required to add and giving the code below please build the code
, we need to add the following data in the report output.
> GR Document (RSEG-LFBNR)
> GR date (MKPF-BLDAT)
> Quantity (MSEG-ERFMG)
> Amount in LC(MSEG-DMBTR)
> GL Account (MSEG-SAKTO)
Logic in getting the record:
> for each invoice no(RESG-BELNR) of a PO Line(EKKO-EBELN,EKPO-EBELP), get GR no (RSEG-LFBNR) and doc. year(RSEG-LFGJA),
> select the matching record in MSEG using the GR no and year (RSEG-LFBNR = MKPF-MBLNR & RSEG-LFGJA=MKPF-MJAHR,
EKKO-EBELN=RSEG- EBELN,EKPO-EBELP=RSEG-EBELP)
> select the matching record in MKPF using the GR no and year (RSEG-LFBNR = MKPF-MBLNR & RSEG-LFGJA=MKPF-MJAHR)
here iam giving my code we have to add thos fields into this code:
TABLES: ekko, "Purchasing Document Header
ekpo, "Purchasing Document Item
rbkp. "Document Header: Invoice Receipt
Type-Pools
TYPE-POOLS : slis. " Has to be declared to use ALVs
To hold ALV field catgory data
DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat LIKE LINE OF it_fieldcat.
Internal tables declarations
Internal table to hold Report data
DATA: BEGIN OF it_output OCCURS 0,
dir_indir(9),
bukrs LIKE ekko-bukrs, "company code
ebeln LIKE ekko-ebeln, "Purchasing Document Number
ebelp LIKE ekpo-ebelp, "Item
aedat LIKE ekko-aedat, "Date on which the record was created
belnr LIKE rseg-belnr, "Accounting document number
bldat LIKE rbkp-bldat, "Document date in document
budat LIKE rbkp-budat, "Posting date in the document
wrbtr LIKE rseg-wrbtr, "Amount in document currency
curr LIKE t880-curr, "Price unit (Local Curr)
bednr LIKE ekpo-bednr, "Requirement tracking number
lifnr LIKE ekko-lifnr, "Vendor's account number
name1 LIKE lfa1-name1, "name1
name2(30), "preparer name
name3(30), "requester name
gjahr LIKE rseg-gjahr, "Fiscal year
ernam LIKE ekko-ernam, "Name of Person who Created the Object
kursf LIKE rbkp-kursf, "Exchange rate
shkzg LIKE rseg-shkzg, "Debit/credit indicator
banfn LIKE ekpo-banfn, "Purchase requisition number
bnfpo like eban-bnfpo,
knttp LIKE ekpo-knttp, "account assignment category
END OF it_output.
Selection Screen
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_bukrs LIKE ekko-bukrs OBLIGATORY.
Parameters: P_knttp like ekpo-knttp as checkbox default 'X'.
SELECT-OPTIONS: s_invdat FOR rbkp-bldat, "Document date in document
s_vendor FOR ekko-lifnr, "Vendor's account number
s_purcdo FOR ekko-ebeln, "Purchasing Document no
s_credat FOR ekko-aedat OBLIGATORY,"create date
s_plant FOR ekpo-werks, "Plant
s_doctyp FOR ekko-bsart, "Purchasing document type
s_purorg FOR ekko-ekorg, "Purchasing organization
s_trcnum FOR ekpo-bednr, "Requirement tracking number
s_knttp FOR ekpo-knttp. "account assignment category
SELECTION-SCREEN: END OF BLOCK b1.
DATA: count TYPE i VALUE 0. " Used to count records
INITIALIZATION *
INITIALIZATION.
At Selection Screen
AT SELECTION-SCREEN.
Checking for the input values of selection screen fields.
PERFORM validate_params.
Start Of Selection
START-OF-SELECTION.
if p_knttp = 'X'.
PERFORM get_data.
else.
skip.
*message e021 with 'no output'.
endif.
PERFORM get_data.
End Of Selection
END-OF-SELECTION.
SUBROUTINE TO CALL THE FUNCTION MERGE TO ENSURE PROPER DISPLAY.
PERFORM merge_fieldcatalog.
PERFORM modify_fieldcat.
PERFORM alv_report.
FORM validate_params *
FORM validate_params.
Validate company code
SELECT SINGLE COUNT(*) FROM t001 WHERE bukrs = p_bukrs.
IF sy-subrc <> 0.
MESSAGE e021 WITH 'Please enter a valid Company code'.
ENDIF.
*Validate Vendor.
SELECT SINGLE COUNT(*) FROM lfa1 WHERE lifnr IN s_vendor.
CASE sy-subrc.
WHEN 0.
WHEN OTHERS.
MESSAGE e021 WITH 'Please enter a valid Vendor'.
ENDCASE.
*Validate PO doc type
SELECT SINGLE COUNT(*) FROM t161 WHERE bsart IN s_doctyp.
CASE sy-subrc.
WHEN 0.
WHEN OTHERS.
MESSAGE e021 WITH 'Please enter a valid PO Doc. Type'.
ENDCASE.
*Validate plant
SELECT SINGLE COUNT(*) FROM t001w WHERE werks IN s_plant.
CASE sy-subrc.
WHEN 0.
WHEN OTHERS.
MESSAGE e021 WITH 'Please enter a valid Plant. Type'.
ENDCASE.
*Validate Purch. Org
SELECT SINGLE COUNT(*) FROM t024e WHERE ekorg IN s_purorg.
CASE sy-subrc.
WHEN 0.
WHEN OTHERS.
MESSAGE e021 WITH 'Please enter a valid Purch. Org.'.
ENDCASE.
ENDFORM. " PERFORM VALIDATE_PARAMS.
FORM get_data *
FORM get_data.
DATA: l_persnumber LIKE usr21-persnumber.
Get PO data
SELECT a~bukrs a~ebeln b~ebelp a~aedat a~lifnr a~ernam
b~knttp b~bednr b~banfn
c~belnr c~wrbtr c~gjahr c~shkzg
d~bldat d~budat d~kursf
e~dir_indir
INTO CORRESPONDING FIELDS OF TABLE it_output
FROM ekko AS a
JOIN ekpo AS b ON b~ebeln = a~ebeln
JOIN rseg AS c ON c~ebeln = b~ebeln
AND c~ebelp = b~ebelp
AND c~bukrs = a~bukrs
JOIN rbkp AS d ON d~belnr = c~belnr
AND d~gjahr = c~gjahr
LEFT JOIN zpo_dirindir AS e ON e~knttp = b~knttp
WHERE a~bukrs = p_bukrs
AND a~lifnr IN s_vendor
AND a~ebeln IN s_purcdo
AND a~bsart IN s_doctyp
AND a~ekorg IN s_purorg
AND a~aedat IN s_credat
AND b~knttp IN s_knttp
AND b~werks IN s_plant
AND b~bednr IN s_trcnum.
LOOP AT it_output.
Get posting date, Doc. date & Curr. Key
IF it_output-kursf > 0.
it_output-wrbtr = it_output-wrbtr * it_output-kursf.
else.
if it_output-kursf < 0.
it_output-wrbtr = it_output-Wrbtr * ( 1 / it_output-kursf ).
it_output-wrbtr = abs( it_output-wrbtr ).
endif.
ENDIF.
get local currency
SELECT SINGLE waers INTO it_output-curr FROM t001
WHERE bukrs = it_output-bukrs.
Get vendor name.
SELECT SINGLE name1 FROM lfa1 INTO it_output-name1
WHERE lifnr = it_output-lifnr.
Get PO created person name
SELECT SINGLE persnumber INTO l_persnumber FROM usr21
WHERE bname = it_output-ernam.
IF sy-subrc = 0.
SELECT SINGLE name_text FROM adrp INTO it_output-name2
WHERE persnumber = l_persnumber.
ELSE.
it_output-name2 = it_output-ernam.
ENDIF.
Get get requested by from Unloading point in PO
else PR created by (If PR exists)
CASE it_output-dir_indir.
WHEN 'I'.
Take requested by from Unloading point.
SELECT SINGLE ablad INTO it_output-name3 FROM ekkn
WHERE ebeln = it_output-ebeln
AND ebelp = it_output-ebelp .
WHEN 'D'.
SELECT SINGLE ernam INTO it_output-name3 FROM eban
WHERE banfn = it_output-banfn
AND ebelp = it_output-ebelp.
IF sy-subrc <> 0.
MOVE it_output-ernam TO it_output-name3.
ENDIF.
SELECT SINGLE persnumber INTO l_persnumber FROM usr21
WHERE bname = it_output-name3.
IF sy-subrc = 0.
SELECT SINGLE name_text FROM adrp INTO it_output-name3
WHERE persnumber = l_persnumber.
ENDIF.
select single ernam into it_output-name3 from eban where
banfn = it_output-banfn and bnfpo = it_output-bnfpo.
move it_output-name3 to it_output-name3.
if sy-subrc = 0.
SELECT SINGLE PERSNUMBER INTO L_PERSNUMBER FROM USR21
WHERE BNAME = it_output-name3.
IF SY-SUBRC = 0.
SELECT SINGLE NAME_TEXT FROM ADRP INTO it_output-name3
WHERE PERSNUMBER = L_PERSNUMBER.
ELSE. it_output-name3 = it_output-name3.
endif.
else.
SELECT SINGLE PERSNUMBER INTO L_PERSNUMBER FROM USR21
WHERE BNAME = it_output-ernam.
IF SY-SUBRC = 0.
SELECT SINGLE NAME_TEXT FROM ADRP INTO it_output-name3
WHERE PERSNUMBER = L_PERSNUMBER.
ELSE.
it_output-name3 = it_output-ernam.
endif.
endif.
ENDCASE.
translate direction indicator to Indirect or Direct
CASE it_output-dir_indir.
WHEN 'I'. it_output-dir_indir = 'Indirect'.
WHEN 'D'. it_output-dir_indir = 'Direct'.
ENDCASE.
MODIFY it_output.
ENDLOOP.
ENDFORM.
FORM MERGE_FIELDCATALOG *
FORM merge_fieldcatalog.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-cprog
i_internal_tabname = 'IT_OUTPUT'
i_inclname = sy-cprog
CHANGING
ct_fieldcat = it_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
ENDFORM. " MERGE_FIELDCATALOG
FORM modify_fieldcat *
FORM modify_fieldcat.
DATA: wa_fieldcat TYPE slis_fieldcat_alv.
LOOP AT it_fieldcat INTO wa_fieldcat.
CASE wa_fieldcat-fieldname.
WHEN 'DIR_INDIR'.
wa_fieldcat-seltext_m = 'Direct/Indirect'.
WHEN 'NAME2'.
wa_fieldcat-seltext_m = 'PREPARER NAME'.
WHEN 'NAME3'.
wa_fieldcat-seltext_m = 'REQUESTER NAME'.
WHEN 'BEDNR'.
wa_fieldcat-seltext_m = 'SSP PO'.
WHEN 'AEDAT'.
wa_fieldcat-seltext_m = 'PO DOCUMENT DATE'.
WHEN 'BLDAT'.
wa_fieldcat-seltext_m = 'INVOICE DOCU DATE'.
WHEN 'BUDAT'.
wa_fieldcat-seltext_m = 'POSTAGE DATE'.
WHEN 'WRBTR'.
wa_fieldcat-seltext_m = 'LOCAL AMOUNT'.
wa_fieldcat-cfieldname = 'CURR'.
wa_fieldcat-ctabname = wa_fieldcat-tabname.
WHEN 'CURR'.
wa_fieldcat-seltext_m = 'LOCAL CURR'.
WHEN 'NAME1'.
wa_fieldcat-seltext_m = 'VENDOR NAME'.
ENDCASE.
MODIFY it_fieldcat FROM wa_fieldcat.
ENDLOOP.
ENDFORM.
FORM ALV_REPORT *
FORM alv_report.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
it_fieldcat = it_fieldcat[]
TABLES
t_outtab = it_output[].
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Very sorry to say this Venu ...
This is a forum to ask doubts .. "Not get your work done for Free"
Kindly try to do it yourself first & then if you are stuck somewhere fell free to shout for help
Best regards,
Gaurav -
Hi All,
Now i am working in Production system.
How can i check the performance for reports.
How can i find the report performance is low/high?
Please let me know the details.
Thanks
Vasu.Hi Vasu,
Use the search on the word "performance", you will got lot of answers which are related to queries.
There are lot of factrors involved regarding query performance :
1. Install BW stats and analyze the queries
2. Option of using aggregates is a good idea to consider
3. you can multi providers to do reporting for better query performance
4. Query Read Mode - Read when navigating and expanding hierarchies
5. Check if indices under ORACLE are degenerated. OSS Note 323090
OLAP Cache OSS Note # 456068
Also take a look to the OSS Note 567746 'Composite note BW 3.x performance: Query & Web' in which you can find all the info required...
Assign points if helpful
Bye
Dinesh -
Hi gurus,
Will any body plz forward me questions on Reporting i.e. in real time scenario and subject oriented pattern. It will be very helpful for me.
Thanks in advance,
Shammu.Hi Sameer,
Please check ou this thresd
SAP BW Interview Question !
Regards,
Sridhar -
Hi,
Can anyone please answer me for the following scenario??
I have 3 org. units O1, O2 and O3.
In O1, there is a position like S1 (CEO).
In O2, there is a position like S2 (MD)
In O3, there are positions like S3 (Sr. Mgr), S4 (Jr. Mgr) and S5 (Executive).
S3 should be reported to S1.
My question is, is it possible in simple maintenanace method??
Regards,
SonalipaYes you can do that through simple maintenance in Reporting Structure
Suggest you to go through below thread for reporting structure
HCM - Creating an Organizational Structure -
Regarding Reporting Tool : Report Writter
Hi Experts,
I need to incorporate the below requirement in Report writter.
Please let me know where should I do setting or changes to meet this requirement.
Whenever I execute report writter I have an output displayed with rows and column.
First column is the description of line items.
When paging to the right, the left-hand column (which provides the line descriptions) should be retained.
Thanks,
Yogesh Chawane,
CAI:- YOGC.Hi,
Go to report layout under formatting.
Go to lead column tab and check the box repeat lead column under miscellaneous.
Hope this helps.
Please assign points as a way to say thanks.
regards, -
HI,need some study material regarding reports
Hi experts,
Can any one send me study material on classical and interactive reports in PDF format. I also want details about the function modules which we use in while creating reports. I have material which is in saphelp. But it is very much extensive. I need something which is easy to read.Hope u will help me in this regard.
Thanks in advance.
surya.Reports
http://www.sapgenie.com/abap/reports.htm
http://www.allsaplinks.com/material.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
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. -
Regarding report for accounting doc
Dear Guru's,
How to find the JV's passed with respect to document type.Suppose If there is document type of S8 for normal JV. Now i want to find out all the JV's created with S8 document type.
Regards,
CherukuriThanks for ur reply,
The report was OK, can i get with respect to the business area.
Regards,
cherukuri -
Help : Regarding Report Group (Report painter)
Dear All
I have developed a report thru report painter. But i m having doubts wy we use report group? what will be the impact if i use the report group which are already exist or else for every report we have to go for new report Group ..
Reward for every correct ans
Pls help....
Rgds
SantoHi Santosh,
A report group is generally created keeping in mind the reporting requirements and the library used.
If u r viewing reports based on GLPCA or FAGLFLEXT, then it is advisable to group them together.
Another advantage of creating a report group is when we run the report through GR55, then n number of reports can be seen with a single input screen.
If two reports r using different variable, then u would have to create two groups as variables will appear as in the selection screen.
Regards,
Kiran
Maybe you are looking for
-
Video camera - Need to shoot in Black and White
We need to shoot video in black and white, We have tried to shoot in night mode. But the result is the colors being brighter and not lighter. We need to do video coding with these so the colors being too bright is not working out. any imput on a
-
Applicatio​n builder default control value
I have a VI the reads a data file. When I build an application and transfer the application to another computer the default directory is no longer valid. Is there anyway to allow the user to establish a default directory for the file read on his co
-
I just want Adobe Reader 11
-
Apple support, does it exist?
I have been without access to my email for over 24 hours. Apple provides no information about what the problem is or what they are doing it to fix it. The support seems quite poor - and I believe I am being kind.
-
Safari keeps crashing upon opening
Hi there, Here is my crash report. Thank you for your help in advance. Process: Safari [9852] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 6.0.5 (8536.30.1) Build Info: