Excess Inventory/Scheduled Receipts Report using ABAP Query.
Hi All,
I want to create a ABAP query for Excess inventory & Scheduled receipts in a single report. I have identified tables, fields and some extra calculated fields in the report. Here are the following tables and fields.
EKPO-MATNR ( Material number)
EKPO-WERKS ( Plant)
MAKT-MAKTX (Material Discription)
MARC-MAABC ( ABC indicator)
LFA1-NAME1 ( Supplier name)
MBEW-STPRS (Total value)
EKET-EINDT ( Item delivery date)
RIBOF-AMOUNT
S939-SPWOC or S032-SPWOC
Calculation fields : Value execess this week.extend value, over or under this week, onhand inventory for last week and this week.
Here my question is, when i was creating a infoset, how do i maintain relationship or joins from one table to another table...Is there any sequence for the above tables? Pl suggest. When i was adding all the tables in a infoset and try join the tables...it says illegal join...
Pl suggest me.
Thanks for your help
PRadeep
Edited by: Venkata Pr Papulugari on Jul 18, 2008 1:37 AM
Hi Gordon,
What i need to display is the remainder of the transaction that was received... if it is zero (0), i don't want to display it.
i.e.
transact # 100 inqty = 5
transact # 200 outqty =1
I'd like to display
transact # 100 qty on hand = 4
right know the transaction # that i am displaying is transact # 200.
And also, it needs to be warehouse oriented. because i can have multiple warehose transactions.... and i am getting that wrong too.
Regards,
Manuel Roman
Similar Messages
-
Generating a report using ABAP query
Hi All,
I want to generate a anlytical report using ABAP query, There are 3 different transactions/steps have to be executed to get this data in an actionable form.
1. MB52 - Unrestricted Stock
2. ZCustomquery - Custom query in SAP R3
3. Combine above two in a single report.
Please suggest me how can i proceed,
1. Example i have created query name called Finalrepot
2. How can i call above zcustomquery and Transaction (MB52) in the Query.
Thanks for your help
PradeepHi,
Check below link to create ABAP query (SAP Query)
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
Best regards,
Brijesh -
Development of Reports using ABAP Query
Hi
can anyone please tell me about 'Development of Reports using ABAP Query' and how to use it in real time
Thanks
jaylook here:
http://help.sap.com/saphelp_47x200/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
A. -
Hoe top create summary and detail report using ABAP QUERY
Hi ,
Can any one suggest me how to create summary and detailed report using ABAP Quey.
Regards,
Raghu.Hi,
Table Declaration
tables:mara,mast.
*Declaring the internal table
data: begin of itab_new occurs 0,
matnr like mara-matnr, "Material No
ernam like mara-ernam, "Material Created by
mtart like mara-mtart, "Material Type
matkl like mara-matkl, "Material Desc
werks like mast-werks, "Plant
aenam like mast-aenam, "BOM created
stlal like mast-stlal, "Alternative BOM
end of itab_new.
select-options: p_matnr for mara-matnr.
CODE A : Retrieving the data from the database
select f~matnr f~ernam f~mtart f~matkl m~werks m~aenam m~stlal
into table itab_new
from mara as f inner join mast as m
on f~matnr = m~matnr
where f~matnr in p_matnr.
CODE B : Retrieving the data from the database.
SELECT FMATNR FERNAM FMTART FMATKL MWERKS MAENAM M~STLAL
INTO TABLE ITAB_NEW
FROM MARA AS F INNER JOIN MAST AS M
ON FMATNR = MMATNR
WHERE F~MATNR = P_MATNR.
SORT ITAB_NEW BY ERNAM.
loop at itab_new.
write:/5 itab_new-matnr,itab_new-ernam,itab_new-mtart,itab_new-matkl,itab_new-werks,itab_new-aenam,itab_new-stlal.
endloop.
*TABLES: MARA , MAST.
*DATA:BEGIN OF ITAB_NEW OCCURS 0,
MATNR LIKE MARA-MATNR,
ERNAM LIKE MARA-ERNAM,
MTART LIKE MARA-MTART,
MATKL LIKE MARA-MATKL,
END OF ITAB_NEW.
SELECT MATNR ERNAM MTART MATKL
INTO TABLE ITAB_NEW
FROM MARA
WHERE MTART = 'T'
ORDER BY MATNR ERNAM MTART MATKL.
*DATA: BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF ITAB.
Thank U,
Jay.... -
Interactive reports using ABAP query
I have developed an ABAP query which prints the sales documents in ALV list display.
In that list display I would do develop a functionality is , when ever i double click on the sales doc number it will directly go to the VA03 transaction for the corresponding VBELN.
Can anybody explain how to do this?Hi,
When you double-click on any cell of alv, use this code to fetch the data of the line that you currently clicked, its working:-
When you double click on the ALV line, you will have sy-ucomm = '&IC1'.
So when you define a i_callback_user_command for the FM reuse_alv_list_display,
i_callback_user_command = 'COMMAND' " for User-Command
and create it as:-
FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA : ok_code TYPE sy-ucomm.
ok_code = ucomm.
CASE ok_code.
WHEN '&IC1'. "for double click on alv line
" your code
ENDCASE.
ENDFORM.
As you have used selfield TYPE slis_selfield, the field selfield will hold all the values.
To know on which row you have clicked and to retain that line, use code:-
Suppose you are currently displaying data from internal table itab and corresponding to it you have work area wa.
read table itab into wa index selfield-tabindex. "index value of line you clicked
" now you have the contents of line that you double clicked currently
Now to know the field name that you clicked, use:-
selfield-fieldname " will fetch you the name of field that you clicked
Now using the work-area and the name of field that you clicked, you can easily make out the details of the field i.e., field name and field value and you can code as per your requirement.
Refer:-
CASE selfield-fieldname.
WHEN 'VBELN'.
SET PARAMETER ID 'AUN' FIELD <wa-vbeln>. "value for work area for vbeln
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDCASE.
Hope this helps you.
Regards,
Tarun -
Programs generated using ABAP query vanishes after upgrade
Hi all,
The programs generated using abap query in sq01 vanishes after upgrading from 4.6C to ECC 6.0 system.
Is this a know issue, do we have a solution for this?
Can anyone help
Thanks
SenthilHi,
Try to generate the Queries again in the new system...using the FM : RSAQ_GENERATE_PROGRAM
The input needed is the Query name and the usergroup...The details can be obtained from the table AQLQCAT(local queries areas) and AQGQCAT(global areas queries).
Once you generate the query , a program gets created...
if you have lots of queries to be genretated, write a custom report by fetching the data from the above tables and use the FM to generate the same...
Hope this helps you..
Reward if useful
Regards
Shiva -
Executing Crystal Report using BI Query as datasource in Bobj portal
I have a Crystal report using BI query as the datasource. The BI query contains User Entry variables.
The Crystal report executes as expected except when added to the Bobj portal. From the portal, I can schedule the report and it will execute as correctly. However, if I try to execute without scheduling, I am able to enter the BI restrictions, but then am presented the following error message: "An error has occurred: For input string: "" ".
If I remove all the BI variables from the query, the report will execute from the portal with out scheduling.
Any help would be greatly appreciated.Hi,
You can set your parameters from CMC. Select the report and set parameters in to the report properties.
-SG -
Crystal report using ABAP from SAP ECC6.0 EHP 3.0
Hi Gurus,
Can i create crystal report using ABAP in SAP ECC 6.0 EHP 3 . as i am not able to see this link in SPRO.
IMG > SAP NetWeaver > Application Server > SAP List Viewer > Maintain SAP GUI Specific Settings.
Kindly guide me urgently.http://help.sap.com/saphelp_slc/helpdata/en/27/c9ee1951fc4fb9ac322ac7e6fa7372/content.htm
If I understood your question correctly.
Have a look in the link above.
It is possible to use Crystal Reports from ALV.
Tammy Powlas also has some good guides on how to do this.
The ABAP however is not covered that much.
Best Regards
Ingrid -
Hi experts,
I publish a CR report to BOE. Can I open that CR report using ABAP? If it can, How to do it ?
ThanksHi Henry,
There is an environment for report layout designing. For a list of possible data sources, take a look at http://support.businessobjects.com/library/kbase/articles/c2001031.asp.
Also you can refer to the following ling for all CR related implementation in SAP:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/004aacbb-4983-2b10-8da7-cdff5dcbb948.
Hope it helps... -
Hi,
I am using WebI Report using BW Query. I don't see some Formulas in Universe which is there in BEx Query.
Did anybody face the same problem before?Hi,
I meant that you should post in the forum the calculation contained in the formula that you cannot see in your universe.
But let's start from the begining since you are new to SAP: Did you generated the universe yourself? If the formula was added in the query after the universe was created then you must refresh your universe (In the Universe designer please select the option "Refresh structure" under the "view" menu) in order to get the newly created formula (I assume we are takling about a calculate figure here) in your universe also.
Regards,
Stratos -
Schedule VI report using EvDRE function
Dear Friends,
I want to create a Schedule VI report using the EvDRE function.
I can update the Account dimension in hierarchy format of FSV updated in ECC.
Kindly guide me how to generate the report in the format of schedule VI.
Thanks in advance.
MD.Thanks Jignesh,
Will try the same and if any error will update the same.... and only one doubt.. I have updated all my accounts in Dimension and EVGTS is work like a EvDRE only or something diff...
If possible please explain.
Thanks and regards,
MD. -
How to add the fields to the transaction 'Z10SD25' using ABAP Query
Hello,
I want to add the new fields like 'From' and 'To' depending on some conditiions. But i have to do this using ABAP Query.
Can any one help me with this as I am not much aware of ABAP Query .
Regards,
DarshanaHi,
ABAP/4 query can be designed in four steps
1. Creation of a user group
2. Creation of Infoset
3. Assignment of user group to Infoset
4. Creation of the query based on Infoset
By executing the transaction codes mentioned below
u2022 SQ01 ABAP/4 Query
u2022 SQ02 Infosets
u2022 SQ03 User group
Step 1: To create an Infoset without a logical database
One of the following can be selected
u2022 Based on a single table
u2022 Using an ABAP/4 program
u2022 Using Table Joins
u2022 Using Sequential Dataset
NOTE: The tables to be used in the join should have at least one field in common i.e. it should have the same name, domain or data element.
Step 2: Here you specify the users who should be authorized to run the query. A user group is always associated with a Infoset.
Step 3: In Query Definition you can define the Selections Screen. Here you can check against the fields(fields from the tables specified in the infoset above) that you require to be shown on the selection screen.
Now we Finally need to specify the output type for the query as Basic List, Statistics or Ranked List. Choose the option Basic List and also select the fields to be displayed in the output list(in your case from and to fields...)
After providing all the above options you can save the query and execute it by clicking the Execute button twice.
Hope this helps
Regards
Shiva
Edited by: Shiva Kumar Tirumalasetty on Sep 15, 2009 12:44 PM -
Hi Experts,
I have a data source in which the extraction is using ABAP Query. From RSA2 I got the infoset name. I would like to know if the extraction logic is put inside this infoset. If so how to see the extractor ouput in R/3 and how to debugg the infoset. I can't put break point in infoset. I tried to debugg the extractor through rsa3 and it is not going to the infoset also.
Please help me as I don't have any experience in BI.
Thanks,
Soumya.Hi Soumya,
Infosets are similar to views created on different tables by linking them with one another. So instead of debugging one should look for how this tables have been linked in tcode SQ01.
Hope that helps.
Regards
Mr Kapadia -
Hello all,
How to create a self join using ABAP Query?
Say, I have this table EKBE with belnr (materials doc num) and lfbnr (reference material doc num). I have to pick the PO's from EKBE whose belnr doesnt have any lfbnr.
Regards
Madhumathi Ahi madhu,
tables : ekbe.
data itab like standard table of ekbe with header line.
select * from ekbe into table itab where belnr >< 0 and lfbnr = ' '.
loop at itab.
write :/ itab-belnr,itab-lfbnr.
endloop.
check this code this works to select the orders whose belnr doesnt have any lfbnr
reward points if useful. -
Created Webi report using BEx Query.
Hi All,
I am going to upgrade in BW and using BEx & Webi Report. I have created webi report using BEx query. Now I need to test data in webi report.
Can anyone tell me how to test data?
Regards,Hi,
compare the webi report data with Bex report. more you can compare webi report with SAP R3 system for random records.
Thanks,
Amit
Maybe you are looking for
-
Shortcuts from Portal to SAP Txns no Longer Working Correctly with 7.20
We are in the process of upgrading from SAPGUI 7.10 to 7.20. I've noticed that when clicking on a shortcut to an SAP transaction from our SAP Portal, I'm getting a File Download popup asking Do you want to open or save this file? There is a checkbo
-
Adobe Premiere Elements 12 crashs
I got a Adobe Premiere Elements 12 Crahs. New Installation doesn't help. Any idea what's wrong? Here the text from the Windows error message box: Problemsignatur: Problemereignisname: APPCRASH Anwendungsname: Adobe Premiere Elements.exe Anwendu
-
Desktop size no longer fits screen size after restart
Since restarting my iMac today, I cannot get to a full image of everything on the desktop anymore at the resolution setting I used before (second highest, 1344x840); and when I choose full resolution (1680x1050) the desktop only covers 2/3 of the scr
-
How to increase TD width in SAP using HTML code in mail body
Dear guru. how to increase TD width in SAP using HTML code in mail body Sample Code : CONCATENATE '<tr height= "3%"> <td style="background-color:#CCC8AA;" style="font = 12.0" colspan = 3 >' WA_EIS_TOT-DESC '</td>' INTO WA_OBJTXT-LINE separated
-
Import pdf multilayers in Photoshop (Photoshop CS3, Acrobat 8)
Hi, I need to translate pdf multilayers in psd multilayers. Now for doing that, I import it layer by layer, but it is so long. How I could do that in one step? I use Photoshop CS3 and Acrobat 8. Can I do that with Photoshop CS5 or with Acrobat 10?