ABAP QUERY REPORT on Sales Revenue.
Dear SAP Experts!
Can anyone tell me the step by step procedure to create the new additional feilds in Sq02 extras , The Feilds and the Code for the following report.
I am working on the Total Sales Revenue.
Tables Used :BSID BSAD
I want to Show a the difference of the Credit-debit amount (BSID-WRBTR) in a user defined feild.
Please tell me the step by step proceudre for entering the new feilds from extras in SQ02 and what code to be written.
regards,
A S
Dear GSL,
I have Done as Stated.
In the extras I have taken BSID-WBRTR as the name of the New Feild as BAL.
Now I have Defined in the code as follows:
bal= bsid-wrbtr - bsad-wrbtr.
The error is as follows.
Field "BAL" is unknown. It is neither in one of the specified tables
nor defined by a "DATA" statement . . . . . . . . . .
Please suggest what is to be done.
How to get the following
BSID-wbrtr (Credit entries) - BSID-wbrtr (Debit entries).
regards,
A S
Similar Messages
-
Hello Gurus'
If any ABAP Query reports other then standard reports in MM pls give like that reports.
if any body come a cross developed reports thru abap query some thing is not possible thru standard reports in mm.
Ian doing the project so i need like that reports pls help me boss.
Regards
LaxmanHi,
If it is Indian Scenarios try to develop the reports like
The Output of the Report should be like this.
1) PRPOVendorMatrl Doc-Mvt typeSubcontracting challen Qty sendQty recievedQty pending
2) PRPOQty- Price-GR-QtyIRQtyInvoice Amt
3) Pending PRs,Pending POs, Pending GRs, Pending IRs
4) J1ID table details in ALV GRID format
Material excise details, output & input material number, Assessable value,
rgds
Chidanand -
Including MANDT field in ABAP Query Report as output field
Hi All,
I need to display the client(MANDT) field in the ABAP Query Report as an output field.
But in SQ01 where we select the fields to be displayed as output in query , this field is not visible.
I later checked in the Infoset. Even in the infoset the field MANDT is greyed out and all other fields are active.
Can someone tell me how to include the field MANDT in the output of the ABAP Query Report.self resolved
-
ABAP QUERY Report : column number change
Hi friends,
I need to modify the existing ABAP QUERY REPORT.
I have added a new field in the selection screen.
When I execute the query, it(our new filed) is displaying at the end of the columns.
But I want it to be at 8th columns. please help me.
When I try to change the out position to "8"at "Basic list" -> select check box of our field and double clict it, I am getting the following error.
Warning: Overlapping fields
Those fields overlapped by other fields will not be displayed in their entirety.
So I could not display the new field at 8 th column.
Guys. Please help me.Hi
You have to change the position of each field after 8th column
suppose you added your new field at the 8th column position
then all the subsequent fields positions you have to adjust as per their length
You have to do like this to adjust the columns
see the doc on query
http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
Step-by-step guide for creating ABAP query
http://www.sappoint.com/abap/ab4query.pdf
ABAP query is mostly used by functional consultants.
SAP Query
Purpose
The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
Features
SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
All the data required by users for their lists can be selected from any SAP table created by the customer.
To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
use either SQ02 ans SQ01
or SQVI tr code
for more information please go thru this url:
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
http://goldenink.com/abap/sap_query.html
Please check this PDF document (starting page 352) perhaps it will help u.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
check the below link will be helpful for u
Tutorial on SQVI
once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
Regards
Anji -
Add field dynamically in ABAP Query Report.
Hi All,
Can we add fields dynamically in the ABAP Query Report?
There is a field in my report which should occupy the line only if it has value. But if we drag-drop the filed in the report it automatically occupy the line though it doesn't have value.
Thanks in Advance!!!hi rohini,
we can add fields dynamically in the ABAP Query Report,in this way we can to,
first of all u create ur selection-screen with all the fields and make the field invisible i.e the one which u want to add dynamically. and based on ur requirement change that invisible to visible and use modify screen.
in this way we can solve.
search for invisible and modify screen in sdn u can get better information and u can understand what i am saying. -
A query report of sales invoices
Hello everyone
I need help with writing a query report of sales invoices with items of the item code, last buy price, sale price, customer's name ..
But the report will not be true unless it will show credits invoices' total of sold items.
I'd be happy for help in this report ..
Thank you!Hi Meital,
Try this,
SELECT *
FROM(
SELECT T0.[DocNum], T0.CardCode AS 'Customer Code',
T0.CardName AS 'Customer Name', T1.[ItemCode] AS 'Item Code',
T1.[Dscription] AS 'Item Description', T1.[Quantity] AS 'Sales Qty',
T2.[LastPurPrc] AS 'Last Buy Price', T1.[LineTotal]
FROM OINV T0
INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
UNION ALL
SELECT T0.[DocNum], T0.CardCode AS 'Customer Code',
T0.CardName AS 'Customer Name', T1.[ItemCode] AS 'Item Code',
T1.[Dscription] AS 'Item Description', T1.[Quantity] AS 'Sales Qty',
T2.[LastPurPrc] AS 'Last Buy Price', T1.[LineTotal]
FROM ORIN T0
INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN OITM T2 ON T1.ItemCode = T2.ItemCode)MM
Regards,
Madhan. -
ABAP Query- Report Assignment functionality
Dear Collages,
I am using SQ01 for reporting materials data information.
Also I am using the Report Assignment functionality to call transaction MM02
In the drill down mode expecting to change materials according to the ALV list after selecting double click on one material out from list.
The problem is that the material I am getting after moving to transaction MM02 is the last in Memory Id not the one I want to get fro ALV list.
Is this functionality I am expecting is available in ABAP Query??
If so how!
Many Thanks in advance
OrenYou need to clear the parameter id MAT , Try to use some events or using free coding clear the MAT
SET PARAMETER ID: 'MAT' FIELD space.
a® -
ABAP QUERY REPORT : please help me ASAP.
hi friends,
I need to change the existing custom abap query.
1) I need to add two more fields on selection screen. I have added using INFOSET and checked the input and output check boxes.
But the text of the one field should be different from standard tetx.
"Reference date" to be changed to "Dairy date".
I have changed in Infosets. updated text is displaying as "Dairy date" in the out put LIST, but standard text (Reference date) is appearing on the selection screen.
I need it to be displaed as "Dairy date"
2)The column "Dairy" date is adding as the last column in the list after executing the query. But I need it to be displayed at 8th column.
Please help me ASAP.hi Eric,
Could you please explain in detail.
1)I HAVE CHANGED THE NAME IN iNFOSET, FIELD GROUP.
IT IS NOT REFLECTING IN SELECTION SCREEN. ONLY REFLECTING IN THE OUT PUT.
2) I have tried by changing the sort sequence number. but still it is displaying at the end of the columns.
please explain in detail. -
Query ref. Sales Revenues v Delivered Costs of these
Hi Experts
I picked up on the following SQL Query in answer to another users requirements.
SELECT Distinct T0.DocNum 'Invoice#', T0.DocDate, T0.DocDueDate,
T0.GrosProfit, T1.ItemCode, T1.Quantity, T1.Price, T3.DocNum 'Delivery#'
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
inner join DLN1 T2 on t0.docentry = t2.trgetentry
inner join ODLN T3 on t3.docentry = t2.docentry
WHERE DateDiff(MM,T0.DocDate, GetDate())=1
Is it possible to modify this SQL so as to :
1. Be able to determine what the "Delivered Cost" (as per per the Jnl linked to the Delivery Docket' ) of the Sales Invoice was.
2. Change date criteria so as to show only Sales Invoice posted between x and y dates?
Any help would be much appreciated
DerekHi Rahul
It's ok - I must have missed part of SQL when I cut and pasted from email instead of directly from your SAP reply.
From what I can see, your SQL is taking the Purchase Price from the GP icon on the Sales Invoice.
However, the Delivered Cost (ie. the journal created on delivery) is working through Stocks on FIFO basis.
Therefore getting different answer.
Is there any way of picking up the Delivered Cost in this SQL?
Thanks for your help to date.
Derek -
Hi all,
Am running a querry report (SQ01) for generating a stock list for all materials in a Plant. I have combined the MARD, MSEG & MKPF tables. My input would be the Plant and Storage loc name. And the Output would contain the material no and the stock details (unrestricted, blocked and quality inspection stocks)..
The issue is my Material No (even though i have selected the MATNR field) is not getting diplayed when i get the output instead it shows the material description. similar is the case for Storage location.
Expecting yours help at the earliest !
Thanks in advance !!Hi,
In Query when you select a field MATNR of MARA table or LGORT
You can display both the Number and TEXT of that field
You might have selected only the TEXT for display
double click on that field and
select both the number and Text
Reward points if useful
Regards
Anji -
Table deletion in ABAP Query Report
Hi ,
Is it possible to delete a Table from a infoset after generating it ?? i.e
i have used five vendor tables and generated a infoset. now i feel that i can get the expected report with 4 tables itself , so fi i wanna delete the 5th table what should i do ??
I tired by just deleting the Link between the 5th table with the other tables and generate it again.. but it throws an error
Thanks in advance !!Hi
select lipsvbeln lipslfimg likp~wadat
into corresponding fields of table ltab_orders
from lips join likp on ( lipsvbeln = likpvbeln )
join vbfa on ( lipsvbeln = vbfavbelv )
where lips~matnr = matnr
and lips~vbeln in vbeln
and likp~vbeln in vbeln
and vbfa~vbelv in vbeln
and lips~werks in werks
and likp~wadat in datum
and vbfa~vbtyp_n = 'Q'
and vbfa~vbtyp_v = 'J'.
Thanks,
Neelima. -
ABAP query question on drill down
I want to be able to drill into a sales order listed in a sales abap query. I thought I read somewhere that you can turn on something to make this query interactive but I cannot put my fingers on that. Any help?
Thanks so much!
SusanHi Susan,
To use RRI in ALV mode, you'll have to follow indications in SAP note 675546 - ALV-RepRep: Report-report interface.
Other information are also give in notes 50629 - ABAP/4 query: Report-Report-Interface, and 174365 - ABAP query: Report/report interface call in ALV
BR
Sandra -
Performance tuning for ABAP Query (created from t-cd SQ01)
Hello all,
We created ABAP Query report from transaction SQ01.
But the generated report has an appropriate SQL statement which causes performance problem.
To solve this issue, I guess the easiest way is;
0. Give up to use it.
1. Copy it to another object in the customer namespace.
2. Ajust SQL statement.
But I'm wondering if there're appropriate ways to adjust SQL statement of Query.
Could anybody give me any better idea?
Thank you
YukoYou can try this: Create 2 ranges, for objnr and cdtcode and fill like:
ra_objnr-sign = 'I'.
ra_objnr-option = 'CP'.
ra_objnr-low = 'OR*'.
append ra_objnr.
ra_code-sign = 'I'.
ra_code-option = 'CP'.
ra_code-low = 'CO*'.
append ra_code.
SELECT objnr udate utime
FROM jcds
INTO TABLE it_jcds
WHERE objnr IN ra_objnr
AND stat = l_tj02t
AND cdtcode IN ra_code
AND inact = space
Regards,
John. -
Hi,
I have an existing ABAP Query, my req is to add new Radio buttions block after the current seelction paramertes.
i created radiobuttons in SQ02 infoset query with radiobuttons but when i run the report, selections screen has radio buttons first and then previous selection criteria fields displaying...
my req is first previous selection fields then radio buttons.
how to change the sequence of the fields in selection screen?
and based on the radio buttons, i need to filter the output data...
in which event i have to write the code?
Thanks
GiriSudheer,
it is ABAP Query report... from SQ02... i cant modify those in SE38...
current selection parameters are from table fields selected in SQ01 Query.... and radio buttons are in SQ02 Infoset.
Giri -
ABAP QUERY: Selection text name change : seq. of column sequence in output
hi friends,
1)I need to change the text of the selection field in ABAP QUERY REPORT
please help me. t code: SQ03 : User Group(zabc) and report name (zabc).
Environment -> infosets.
in the field group, double click field name to be changed. I tried to change it. The changed name is only reflecting in the list output, but not in the selection screen.
I want the text to be changed even in selection screen.
2)I want to change the position of the column ie end(last colum) to 8th column in the report output. Please help me.
Environment -> Queries -. I tried with 'Output sequence' and given no as '8'. But is not reflected and the column is still displayed at last column.
Please help meGo to Query and go to selection field and change the selection text.
Hope this help.
Maybe you are looking for
-
Multiple Hard Drive Failures on my Macbook Pro - Entourage reminders?
Over the past 2 months I've had three hard drives fail on three different macbook pro computers. I've retraced my steps, searched many forums, and spoken with multiple Mac Geniuses but still can't figure out what's happening. The IT guy at work is ab
-
Flash Content on the BBC in Safari 5.0.6
This question applies to my G5 2.5 gHz Tower running Safari 5.0.6. and an issue with Flash content on the BBC News website. I often the BBC News website, and until a few months ago was able to play all of their video content. For some inexplicable r
-
TSC or ZM400 (Zebra Printer) printing speed?
Dear Folks, I am using TSC or ZM400 (Zebra Printer) for label printing but I have one issue. I am printing the sticker and its getting but the speed of printing is very slow . Its creating spool request for evey label. Even I deleted spool request on
-
GR Blocked stock process in Inbound delivery.
Hi All, I want to do the GR blocked stock process through inbound delivery. But while i create Inbound delivery, system is automatically picking 101 movement type. How to proceed. Thanks in advance Regards KK
-
Oracle Standalone DB 11g installation with ASM on Windows 2008
Hi Experts, I would like to install Oracle Database 11g R2 on Windows 2008 with ASM . Since I want to do it as a standalone database server , I did not confiugre any shared storage. I have a single disk on my machine with 1 TB space. There is a free