Query to generate a report for incoming pending payments as per Item Group!
Dear All,
I need a Query to generate a report for incoming pending payments through Item Group.
Please provide me the same.
Thanks in advance..........................
Edited by: Param Deshwal on Nov 22, 2011 7:11 AM
Hi
try this
SELECT T0.[DocNum] as 'Invoice Number', T0.[DocDate] as 'Invoice Date', T0.[CardName], T0.[DocTotal] as 'Invoice Amount', T0.[PaidToDate] as 'Paid Amount',(T0.[DocTotal]-T0.[PaidToDate]) as 'Pending Amount',T3.[ItmsGrpnam] FROM OINV T0 Inner join inv1 t1 on t0.docentry=t1.docentry inner join oitm t2 on t2.itemcode=t1.itemcode inner join oitb t3 on t3.[ItmsGrpcod]=t2.[ItmsGrpcod] where T3.[ItmsGrpnam]=[%0]
Regards,
sudhir B.
Edited by: B.sudhir on Nov 22, 2011 7:28 AM
Similar Messages
-
Cannot build the query or generate the report. WIS 30351
I am trying to create a docuemtn using SDK. I have created a document and when I try to add dataprovider and update the document, I am facing the below error
Cannot build the query or generate the report. WIS 30351
http://help.sap.com/saphelpiis_sbo41sp5wi-sdk/frameset.htm?ec5645bc6fdb101497906a7cb0e91070.html
Any help would be appreciated...Hi Pirabu,
here's the required steps for what you described:
1. Create a new report in folder with ID 12345:
POST ../raylight/v1/documents
request body:
<document>
<name>My New Doc</name>
<folderId>12345</folderId>
</document>
response:
<success>
<message>The resource of type "Document" with identifier "54321" has been successfully created.</message>
<id>54321</id>
</success>
2. use the new document ID when adding a data provider (ie universe ID is 5543)
POST ../raylight/v1/documents/54321/dataproviders
request body:
<dataprovider>
<name>Query 1</name>
<dataSourceId>5543</dataSourceId>
</dataprovider>
response:
<success>
<message>The resource of type "Data provider" with identifier "DP0" has been successfully created.</message>
<id>DP0</id>
</success>
If you are doing something different, please provide the steps you are using and the type of datasource you are adding (unv, unx, Bex query etc).
Is the error when adding the data provider, or do you have an additional step updating the document?
Also, what version of BI4 are you working with?
Dan -
Cannot build the query or generate the report - BI4.0 Dashboard on WebService Error
Hello All,
I am trying to create a Dashboard with WebService connections in SAP BI4.0 SP04. While running the dashboard I am receiving the error, Cannot build the query or generate the report. I have already set the refresh parameter to TRUE (bound to an excel cell and I have tried with 1 also). Back end WebI Reports of the BIWS connections are created from BEx queries through BICS connection. I have two prompts to run the Web Service and the report. Please share your thoughts regarding this.
Thanks and Regards,
Debajyoti DanHi All,
I have found the issue. The problem is coming only when I am receiving prompts from BEx query and trying to use them through dashboard. I replaced these BEx prompts with the same in WebI report. Then the entire functionality started working correctly from dashboard.
But, this is only a work around and can not be applied at all times. So I have raised a message for the same to SAP. I will update the thread based on what I receive from SAP Support. -
Report for showing pending (ageing) quantity according to store location w
dear ABAP Gurus,
I have made a roport for showing pending (ageiing) quantity acc to location wise.
and i m sending here the code i made for same.Tell me if sme amendments required.
Report for showing pending (ageing) quantity according to store location wise:
1. Fields on selection screen (input screen) : Plant code From to , Material code From to , Current date, Numbers of days(for display the ageing(pending) balance for a given period,Storage locations from to.
2. Field in the output List : Material code , Material descriptions, Balance quantiy,Balance value ,Consumptions date.
the code is:
REPORT ZAGEIN_SUDHA.
TABLES: mara,mseg,makt.
TYPES: BEGIN OF t_mara,
matnr LIKE mara-matnr, "material number
maktx LIKE makt-maktx, "material description
ersda LIKE mara-ersda, "material creation date
lgort like mseg-lgort, "storage location
bwart like mseg-bwart, "goods received or issued
menge like mseg-menge, "value at movement type
werks like mseg-werks, "plant
END OF t_mara.
DATA: i_mara TYPE STANDARD TABLE OF t_mara with header line,
itab type standard table of mara with header line,
*wa_mara TYPE t_mara,
v_date TYPE i, "age in days
GI type mseg-menge, "goods issued
GR type mseg-menge, "goods received
bal type mseg-menge, "balance
total type i,
grace type i,
g_quan type mseg-menge.
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECT-OPTIONS: p_matnr FOR mara-matnr.
select-options: p_werks for mseg-werks.
select-options: p_lgort for mseg-lgort.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
REFRESH i_mara.
SELECT mr~matnr "mara-matnr
mk~maktx "makt-maktx
mr~ersda "mara-ersda
mg~lgort "mseg-lgort
mg~bwart "mseg-bwart
mg~menge "mseg-menge
INTO corresponding fields of table i_mara
FROM mara AS mr INNER JOIN
makt AS mk
ON mrmatnr = mkmatnr INNER JOIN mseg AS mg on mkmatnr = mgmatnr
WHERE mrmatnr IN p_matnr and mgwerks IN p_werks and mg~lgort IN
p_lgort.
total = 0.
IF sy-subrc = 0.
*CLEAR wa_mara.
LOOP AT i_mara.
if i_mara-bwart = '101' .
GR = total + i_mara-menge.
total = GR.
elseif
i_mara-bwart = '102' or i_mara-bwart = '122'.
GR = GR - i_mara-menge.
endif.
if i_mara-bwart = '261'.
GI = total + i_mara-menge.
elseif i_mara-bwart = '262'.
GR = GR + i_mara-menge.
endif.
bal = GR - GI.
if bal GE GR.
grace = 30.
else.
grace = 10.
endif.
g_quan = bal - GR.
v_date = sy-datum - i_mara-ersda.
endloop.
WRITE: / i_mara-matnr ,i_mara-maktx,' is ',v_date,' ,days old and
stored at' ,i_mara-lgort , ' with balance =', bal ,'the grace time is
', grace, 'and' ,'grace quantity is ' ,g_quan.
*ENDLOOP.Hi,
That sounds like a nice report. What about it?!
Gareth. -
Report for showing pending (ageing) quantity according to store location wi
Report for showing pending (ageing) quantity according to store location wise:
Fields on selection screen (input screen) : Plant code From to , Material code From to , Current date, Numbers of days(for display the ageing(pending) balance for a given period,Storage locations from to.
Field in the output List : Material code , Material descriptions, Balance quantiy,Balance value ,Consumptions date.Hi,
That sounds like a nice report. What about it?!
Gareth. -
For Times New Roman font in Windows server 2012 R2 (Standard), crystal 9/10 report in pdf format is not getting generated. When we change the font for specific report like Arial, Calibri , Cambria then pdf report getting created.
In Windows 2008 R2, same application worked fine to generate pdf report for TimesNewRoman font and there is no change done in the application which is being used in Windows 2012 R2 server.Ok, thanks for the reply. You need to contact support or a forum for the Crystal software. Third party products don't usually include Adobe technology, they have their own software. When you contact them, you may want to expand "unable to generate" to give any specific symptoms including any error messages.
-
Report for monthly sales(sales office wise,sales group wise,plant wise)
Please send the Report for monthly sales(sales office wise,sales group wise,plant wise) with T.CODE.,
Hi
As per my knowledge there is no Standard Report in SAP based on sales office, sales group. and plant.
You may create your own report using MC18,MC21 and MC24.... Otherwise ask your ABAPer's help...
Muthu -
Hi
Can I have a report for Terms of payment used in Purchase Order.
Report layout I need is like
PO# Terms of payment.
Suggest me ways to do it or thru std report
ManojHi,
Go to SE16, Table EKKO
Select Fields EBELN & ZTERM and execute
You will receive a report Payment terms against PO.
Thx
Raju -
Sales Analysis query per item group summarized per BP Group
Dear experts,
My client is requiring me to create a query that when i select a certain item group it returns a sum/total of sold items in that group per BP group
format:
parameter: Item Group A
BP Group A 1,000
BP Group B 2,000
BP Group C 1,000
I have managed to get total sales per BP Group but i cant seem to figure how to break it down per Item Group
here is my query:
SELECT T2.[GroupCode], SUM(ISNULL(T0.Debit,0) - ISNULL(T0.Credit,0)) as "Amount(LC)" FROM JDT1 T0 INNER JOIN OJDT T1 ON T0.TransId = T1.TransId and T0.TransType IN (13,14)
INNER JOIN OCRD T2 ON T2.CardCode = T0.ShortName
WHERE T1.[RefDate] BETWEEN [%0] and [%1]
GROUP BY T2.[GroupCode]
how can I link Item Groups to JDT1?Hi Carlo
Try This
SELECT t5.ItmsGrpNam AS ItemGroup,
t7.GroupName AS BPGroup,
SUM(ISNULL(T0.Debit,0) - ISNULL(T0.Credit,0)) AS "Amount(LC)"
FROM JDT1 T0
INNER JOIN OINV T1 ON T0.transid = T1.transid
LEFT OUTER JOIN INV1 T3 ON T1.docentry = T3.docentry
LEFT OUTER JOIN oitm T4 ON t4.itemcode = T3.itemcode
LEFT OUTER JOIN oitb T5 ON T4.ItmsGrpCod = T5.ItmsGrpCod
INNER JOIN ocrd T6 ON T0.ShortName = T6.CardCode
INNER JOIN OCRG T7 ON t7.GroupCode=t6.GroupCode
WHERE T1.DocDate BETWEEN [%0] AND [%1]
GROUP BY t5.ItmsGrpNam,
t7.GroupName
Rgds -
Hi All,
I am trying to query the following table to generate a report
SQL> select * from sample_tab;
ID ITEM_CODE STATUS
smtabid01 book placed
smtabid01 book billed
smtabid01 book shipped
smtabid02 Magazine placed
smtabid02 Magazine billed
smtabid03 stationary placed
smtabid04 Folders placed
smtabid04 Folders shipped
8 rows selected.
Report should be as follows
ID ITEM_CODE PLACED BILLED SHIPPED
smtabid01 book Success Success Success
smtabid02 Magazine Success Success Pending
smtabid03 stationary Success Pending Pending
smtabid04 Folders Success Pending Success
Basically I am trying to group the status of all the id's into single row
I have tried the following query, but this gives the output for each row. I know this is not the correct query but I couldnt figure out how to accomplish this
select id,item_code,decode(status,'PLACED','Success','Pending'),decode(status,'BILLED','Success','Pending'),decode(status,'SHIPPED','Success','Pending')
from sample_tab;
Can anybody please help!!
Thank you!!Hi,
You're on the right track!
The query you posted is producing multiple rows for each id: you want one row per id. That sounds like a job for "GROUP BY id".
This does what you want:
SELECT id, item_code
, NVL (MAX (DECODE (status, 'placed', 'Success')), 'Pending') AS placed
, NVL (MAX (DECODE (status, 'billed', 'Success')), 'Pending') AS billed
, NVL (MAX (DECODE (status, 'shipped', 'Success')), 'Pending') AS shipped
FROM sample_tab
GROUP BY id, item_code
ORDER BY id, item_code; -
Script or query to generate a report of null or not null columns
I need a script/query it should pick up all the tables from user_tab_columns and produce a report for all the tables which are the columns are null and not null.
As long as the columns were defined as NOT NULL on table create, or ALTERed NOT NULL, you can do this:
SQL> CREATE TABLE t (id NUMBER NOT NULL, descr VARCHAR2(10));
Table created.
SQL> SELECT column_name, table_name, nullable
2 FROM user_tab_columns
3 WHERE table_name = 'T';
COLUMN_NAME TABLE_NAME N
ID T N
DESCR T Y
SQL> ALTER TABLE t modify (descr NOT NULL);
Table altered.
SQL> SELECT column_name, table_name, nullable
2 FROM user_tab_columns
3 WHERE table_name = 'T';
COLUMN_NAME TABLE_NAME N
ID T N
DESCR T NNote that if you do:
ALTER TABLE t ADD CONSTRAINT id_nn CHECK (id IS NOT NULL);then the nullable column in xxx_tab_columns will remain as Y.
HTH
John -
How to generate a report for all Analyses which conatins a specific column
Hello Experts
I am trying to generate a report of all Analyses which contains a specific column. We are currently using OBIEE 11.1.1.7.0.
I have tried to use the command line options using ./runcat.sh, but did not find any arguments that can filter the analyses by a specific column used.
Any help is much appreciated.
Regards
RakeshHi Rakesh,
SampleApp has your answer: everything is available for free, just copy/paste and run on your own instance.
http://slc02ojw.oracle.com:7780/analytics/saw.dll?Dashboard&PortalPath=%2Fshared%2F10.%20Lifecycle%20and%20Admin%2F_port…
(as long as this instance will be up...)
In the dashboard named "10.31 Webcat Analysis" you have a columns to analysis report where you select the presentation column and you get all the reports using it.
This dashboard require a script to be run on your catalog, it will parse it and extract all the column info (and many other interesting things) and load it in a database. The scripts are simple and well documented, so you can easily adapt them to your own environment.
If you want the script there is no miracle solution: download SampleApp and extract it (it's not small, but with all the great content it has we can't complain about that ...). -
Report for POs pending Release (approval) and POs overdue (past deliv date)
Hi All,
In ME2N - std report for POs. How do I set the selection critieria in order to get the following information
1. POs pending Approval (subject to Release Strategy)
2. POs pending delivery from Vendor where the delivery date requested in the POs is past. (How does Selection parameter WE101 help in this report.? How to show how many days past requested delivery date in the PO?)
Thanks in advanceDear,
1. POs pending Approval (subject to Release Strategy) : -
Enter ME2N, select Dynamic Selection.
Here click on Purchasing Document Header,
Double click on Release Indicator field and assign "X" ,
Then souble click on Subject to release and also give "Yes" indicator then click on execute you get list of purchase order which is unrelease.
2) POs pending delivery from Vendor: -
Enter ME2N, Select selection parameter WE101,
Here you can find list of pending purchase order, You can see document date or delivery date from change layout to find out how it is past.
Regards,
Mahesh Wagh -
Generating a report for clients that are not registered
Hi - Hopefully someone can assist. We are looking to generate a report in SCCM 2012 that will tell us if a client is properly registered, and most recent scan.
I can't seem to find a generic report for this task, so does anyone know if one exists - or how to create a custom one?
Thanks!what means "properly registered" in your eyes? To me, if it was able to communicate at all--heartbeat; that means it had to have registered. But maybe you have a different criterion.
So I think what you want is simply something like...
select s.Netbios_Name0, max(disc.AgentTime) as LastHeartbeat
from v_r_system s
left join v_agentDiscoveries disc on s.resourceid=disc.resourceid
and disc.AgentName = 'Heartbeat Discovery'
Group by s.Netbios_Name0
order by LastHeartbeat desc
where the most recent heartbeat at the top; and boxes with no heartbeat reported will be null at the bottom. If you don't want to even "see" the boxes that have never reported a heartbeat successfully, then don't left join, use just Join
You could also use v_r_system_valid, instead of v_r_system. As you can tell by the name, _valid means that CM itself has determined those are valid clients; so that might be what you think of as "properly registered".
It all boils down to what means "properly registered" to you, and what you mean by "recent scan". is a recent scan a heartbeat? a software update scan? hardware inventory reported? and what means "recent". the sample above is
reporting on anything and everything regardless of date.
As for default reports, you're saying that the default reports in "Client Status" don't fit your criteria?
Standardize. Simplify. Automate. -
Report For Incoming Check Receipts
Hello All,
Was wondering if anyone is familiar with the report listing all your manual incoming check payments. I know for outgoing payments the standard report is S_ALR_87012104 and would like a similar report only now for incoming manual checks that one has posted in the system. I would like a listing at any time; at days end or even during the day.
Thank you.
P.Check with :
S_ALR_87012103
S_ALR_87012105
Thanks
Seshu
Maybe you are looking for
-
My 3rd Gen iPod's headphone connector is basically shot, I've had it for around if not over two years now; sometimes I'm surprised it lasted this long; since I am not one who usually listens to her music without headphones, this is problematic, . Luc
-
I am very confused on how to sync or use my cloud on my Mac with my new IPhone 5S. I have all the settings on the phone correct. On the Mac, under Preferences, there is no "cloud" item for me to choose to set up, only mobile me and I get error if c
-
Can I legally sell my older CS5 Premium Student and Teacher Edition?
Hi, this is my first time in this forum. I am a Graphic Design student and last year bought the Adobe CS5 Premium Student and Teacher Edition as advised by professor, only to find out now that he ill advised me. The Master Collection contains the p
-
How to process a Blanket Purchase order?
Hi, Can you please let me know how to process a blanket purchase order received from a customer? Can we create a sales order based on the customer's blanket purchase order? Please help me out with this issue. Sincerely, Puja
-
We are currently developing Web Dynpro Applications in our local system. As we haven't yet configured DI. When we exit from the local Developer Studio, in the next attempt to start the Developer studio, the DC (Development Component) metadata aren't