How to find out the invoice value from a sales order
Hi All,
Please can any one hlpe to solve the beloq query.
Is there any report in SAP , which give you the following.
Sales order , Total cost incurred , Total revenue recoganised , Total Invoiced , Total collected .
Thanks ,
Rajesh
Dear Waman,
Thanks a lot for your replay ..
But i don't have much knowldge about KE 30 report , is there any study meterial available online to configure this \ or study this report .
Similar Messages
-
How to find out the Accounting document status for sales order
Hi
We have created the sales document by referring the billing document of contract no.Aftre that we have raised invoice for sales document. Now system is generated both invoice , accounting document and the value is appearing against the invoice document. However the status against the accounting document is showing as not cleared. I want to know where we could see this status in Table,
Normally we can see the status in FPLT for contracts since its having the billing plan no. Suppose if the billing plan is not available like S.O , How to check the status in table?
I have refered so many tables but not helping. Since i want to get the uncleared value of accouting document.
Please help me.
Regards
ThennaHi Thenna
The accounting document status in the document flow is determined dynamically when you display the document flow,
it's not saved in a specific table.
Here is the relevant logic:
LV05CF01 -> form BUCHHALTUNGSBELEG
IF vbrk-vbeln <> vbfa_tab-vbeln.
PERFORM vbrk_ermitteln USING vbfa_tab-vbeln.
REFRESH xbkpf.
CALL FUNCTION 'FI_DOCUMENT_READ'
LOOP AT xbseg WHERE bukrs EQ xbkpf-bukrs
AND belnr EQ xbkpf-belnr
AND gjahr EQ xbkpf-gjahr
AND ( koart EQ 'D' OR koart EQ 'K' ).
ENDLOOP.
IF NOT sy-subrc IS INITIAL.
SET STATUS TO 'No items are cleared'
l_xdoc_num-status = 'A'. <<<
ELSE.
LOOP AT xbseg WHERE augbl IS initial
AND umskz NE 'A'
AND vorgn NE 'AZUM'
AND ( koart EQ 'D' OR koart EQ 'K' ).
ENDLOOP.
IF NOT sy-subrc IS INITIAL.
Set status to 'All items are cleared'
l_xdoc_num-status = 'C'. <<<
ENDIF.
ENDIF.
Regards,
Alex -
How find out the duplicate value from each columns.
I have below four columns,
How can i find out the duplicate value from each columns.
with All_files as (
select '1000' as INVOICE,'2000' AS DELIVERYNOTE,'3000' CANDELINVOICE,'4000' CANDELIVERYNOTE from dual union all
select '5000','6000','7000','8000' from dual union all
select '9000','1000','1100','1200' from dual union all
select '1200','3400','6700','8790' from dual union all
select '1000','2000','3000','9000' from dual union all
select '1230','2340','3450','4560' from dual
SELECT * FROM All_files
Output should be as per below.
1000 2000 3000 4000
9000 1000 1100 1200
1200 3400 6700 8790
1000 2000 3000 9000
Required to check uniqueness in cross columns.
Thanks.Try this (sorry about the formatting)...
WITH all_files AS (SELECT '1000' AS INVOICE,
'2000' AS DELIVERYNOTE,
'3000' CANDELINVOICE,
'4000' CANDELIVERYNOTE
FROM DUAL
UNION ALL
SELECT '5000',
'6000',
'7000',
'8000'
FROM DUAL
UNION ALL
SELECT '9000',
'1000',
'1100',
'1200'
FROM DUAL
UNION ALL
SELECT '1200',
'3400',
'6700',
'8790'
FROM DUAL
UNION ALL
SELECT '1000',
'2000',
'3000',
'9000'
FROM DUAL
UNION ALL
SELECT '1230',
'2340',
'3450',
'4560'
FROM DUAL),
t_base
AS (SELECT invoice
|| ','
|| deliverynote
|| ','
|| candelinvoice
|| ','
|| candeliverynote
str
FROM all_files),
t_str
AS (SELECT str || ',' AS str,
(LENGTH (str) - LENGTH (REPLACE (str, ','))) + 1
AS no_of_elements
FROM t_base),
t_n_rows
AS ( SELECT LEVEL AS i
FROM DUAL
CONNECT BY LEVEL <=
( SELECT SUM (no_of_elements) FROM t_str)),
t_build AS (SELECT t_str.str,
nt.i AS element_no,
INSTR (t_str.str,
DECODE (nt.i, 1, 0, 1),
DECODE (nt.i, 1, 1, nt.i - 1))
+ 1
AS start_pos,
INSTR (t_str.str,
1,
DECODE (nt.i, 1, 1, nt.i))
AS next_pos
FROM t_str
JOIN
t_n_rows nt
ON nt.i <= t_str.no_of_elements),
t_build2
AS (SELECT RTRIM (str, ',') AS original_string,
SUBSTR (str, start_pos, (next_pos - start_pos))
AS single_element,
element_no
FROM t_build),
t_build3
AS (SELECT single_element,
COUNT( * )
OVER (PARTITION BY single_element
ORDER BY single_element)
ele_count
FROM t_build2)
SELECT DISTINCT INVOICE,
DELIVERYNOTE,
CANDELINVOICE,
CANDELIVERYNOTE
FROM all_files, t_build3
WHERE ele_count > 1
AND ( INVOICE = single_element
OR DELIVERYNOTE = single_element
OR CANDELINVOICE = single_element
OR CANDELIVERYNOTE = single_element)I think this will be faster than the previous solution?
Cheers
Ben
Edited by: Munky on Feb 17, 2011 2:11 PM - "I think this will be faster than the previous solution?", nope - it's not :( -
Is it posible to find out the billing date of any sales order..?
Hi all,
Is it posible to find out the billing date of any sales order..?
If it is posible tell me how to do.
ThanksHi ,
Can you explain more on this.
I think you want to know billing date for the sales order. Here the billing is already done.
If so , go to vbfa table and then give the sales order number in VBELV field. You will get many records. But VBTYP_N give as M ( Invoice ) and find out the document number and then pass it in billing table VBRK and get the date of creation.
If it is like proposed date while creating the sales order ,
then i am not sure about it.
Regards,
Venkatesh -
How to find out the batches released from ASCP
hello gurus,
Please let me know how to find out the batches which is released from the ASCP in the OLTP OPM instance, like for the Discrete in the WIP Order in the others tabe we can see that there will be a message like " Job mass loadded on......". So is there any way that we can findout whether the batch is released from the ASCP or is it manually created.
Thanx & RegardsHi,
You can check it in SM59 if there are any RFC destinations for the above systems.
Alternatively ,check the table RFCDEST if any entries are maintained
Regards,
Lakshman. -
How to find out the ASCII Values for Spanish character
Hi,
I had an requirement to store Spanish character and also need to fileter the records based on the Spanish character.
Kindly guide me for below.
To filter the Records which contains spanish characters?
To get the ASCII Values for the particular column?
E.g. we can find out the ASCII value of 'a' by using the syntax select ASCII('a') from dual.
But I want to find the ASCII Values for the particular column value. Ie. name.
E.g., Client name is "Suresh", I want to the ASCII Values for entire name of "Suresh".
Kindly do the needful help / Guidance on this.
Thanks,
OraharTo expand on what I said in my first post, you want to do something along these lines:
with t (thename) as
select 'Suresh' from dual
select thename
, substr(TheName, level, 1)
, ascii(substr(thename, level))
from t
connect by level <= length(thename);The output of the above query is:
THENAM S ASCII(SUBSTR(THENAME,LEVEL))
Suresh S 83
Suresh u 117
Suresh r 114
Suresh e 101
Suresh s 115
Suresh h 104
6 rows selected.Note that the WITH statement is only there to simulate a table for this example. With a table, all you do is get rid of the with and substitute the name "t" for the name of your table (also the name of the column to whatever name the column has in your table).
Lastly, I suggest you post your question along with, an example table and the output you'd like to get in the PL/SQL forum. There are people there that will give you all kinds of great ways of solving that problem.
HTH,
John. -
Function module to find out the changed values from tables
What is the standard function module to find out the changed values (the old & new values) from tables in SAP ?
Hi Harish,
Please elaborate your requirement...
Please have a look on CDHDR AND CDPOS tables... it contains changed data... but all chages are not being tracked using it..
Try Below FMs as well..
For Header Level...
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
date_of_change = cdhdr-udate
objectclass = cdhdr-objectclas
objectid = cdhdr-objectid
time_of_change = cdhdr-utime
username = cdhdr-username
TABLES
i_cdhdr = icdhdr
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
For Item Level
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = icdhdr-changenr
IMPORTING
header = cdhdr
TABLES
editpos = icdshw
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
HOw to find out the RFC destination from BW system to ISU
Hi,
Currently my requirement is to call a function module which is written in ISU (remote enabled) from BW system.
I am unable to find out the rfc destination from BW to ISU system.
In CRM we have table like smofparsfa1. Is there any table in BW which can provide me the ISU destination?
I need to compare the records stored in isu as well as in BW system.
I need to call a function module which will provide me the data from isu.
please help me in this regard.
KrishnaHi,
You can check it in SM59 if there are any RFC destinations for the above systems.
Alternatively ,check the table RFCDEST if any entries are maintained
Regards,
Lakshman. -
How to find out the null values in table
hi experts,
my version is oracledb10g:
i h'd simple doubts.
for eg:
create table ex1( e varchar2(20));
insert into ex1 (null).
insert into ex1(e)
count will be: 2
i can easily found out the value 'e'.
so my question is:
how can i found out the null values in the table and i want to delete the null values from the table.ADF 7 wrote:
hi experts,
my version is oracledb10g:
i h'd simple doubts.
for eg:
create table ex1( e varchar2(20));
insert into ex1 (null).
insert into ex1(e)
count will be: 2That depends what you count. If you issue count(*) you are asking Oracle "how many rows are there". If you issue a count(<column_name>) you are asking Oracle "how many not null values of <column_name> are there".
ADF 7 wrote:
i can easily found out the value 'e'.
so my question is:
how can i found out the null values in the table and i want to delete the null values from the table.
delete from <table_name>
where <column_name> is null;Ideally you'd just place a NOT NULL constraint on the column in question, thereby prohibiting NULL values from entering into the system (assuming your business requirement is that the column MUST always have a value). -
How to find out the Menu UID from the main menu
You can easily Find the Menuuid for menuitem that open a form, but how can you find out the menu uid for f.e. Modules.
I want to add a submenu under modules.Hi Francis,
You have access to the complete list of menus UIDs into the UI Help File.
You only have to search for "Menu Items IDs" in the UI Help file.
Regards,
Trinidad. -
How to find out the maximum value
Dear all,
i have one query where in i have to calculate Excise Duty based on the maximum sales qantity of all materials with the corresponding sales value... i mean i wil get the maximum value of a individual material no matter how many sales has done.i wil pick up the maximum sales qty and the correspondig sales value....
This im able to solve by taking the condition as TOP 1..
Now my question is if the same material qty is sold with differnt value then i have to pick up the Max value and as usual the sales qty..... plz help me out
Material Sales Qty sales value
3000 10 kl 1000INR
3200 15 kl 1100 INR
4000 20 kl 1000INR
in this case my query is picking up the max qty of 20 and the value 1000 INR as i had taken TOP 1 on Sales qty ....
<b>
But In the below example for the same material i have to pick up the 3 rd row where the sales value is maximum and the corresponding sales qty 10 kl</b>
EX Material Sales Qty sales value
3000 10 kl 1000INR
3000 10 kl 1100 INR
3000 10 kl 1500INRHi,
U can use the restrict option fo the Material characteristics for sales value just drag and drop on columns >right click Properties> U have the option Calculated Result as Summation, Maximum, Minimum etc..just choose Maximum for ur case. -
How to find out the maximum value of one array
hi all..
I have one array that consists of some elements
so I want the maximum value of the list ...
if anyone knows this please help me..
thanks..>
If your array is already sorted, you can do a binary
search.
I think there are already methods to do that in
java.util.Arrays. (?)
If not, it's not hard to find an example on the net.
A binary search will be more efficient.1. If your array is already sorted, you do not need a binary search. Either check the value of arr[0] or arr[arr.length - 1] depending on the direction of sorting.
2. If your array is not sorted, try this:
int maxValue = arr[0];
for(int index = 1; index < arr.length; index++)
if(arr[index] > maxValue)
maxValue = arr[index];
} -
How to find out the maximum value in a Query within single material
Dear all,
Im creating a Query on 0SD_C03 where i have to disply Maximum value of a material which is having more that one transaction..
EX:
MATERIAL BILLED VALUE
x with BILLED VALUE 100
x with BILLED VALUE120
y with BILLED VALUE 50
y with BILLED VALUE 80
z with BILLED VALUE 50
z with BILLED VALUE 60
in a analyser i have to display X with billed value 120 that is max in X material and
Y with billed value 80 that is max in Y material and
Z with billed value 60 that is max in Z material
In a query all the values are summing up. I.e for X its 220 and Y its 130 and Z its110 but we dont want to get total sum value we want individual values and the maximim of those values..........
We are using BW 7.0 version
Can any one help me out in this
Thxs in Advance
VenuVenu,
In your query try creating a formula, with the value of each record as the key figure in the formula.
In the aggregation tab select maximum in the exception aggregation dropdown and then select material as the reference characteristic
then when you include material in the rows it will only display the maximum value.
cheers
mark -
How to find out the maximum value in a Query
Dear all,
Im creating a Query on 0SD_C03 where i have to disply Maximum value of a material..
EX:
MATERIAL BILLED VALUE
x 1000
y 3000
z 2500
in a analyser i have to display only Y and 3000
We are using BW 7.0 version
Can any one help me out in this
Thxs in Advance
VenuHi Venu,
You may wish to refer the link below:
http://help.sap.com/saphelp_nw04/helpdata/en/17/82853c2dc5c505e10000000a11405a/content.htm
Assign points if this is helpful.
Regards,
Anil -
How to find out the metachian from subchain
hello friends,
could you please let me know , how to find out the meta chain from subchian .
I know the subchain name and wanted to check that this chian is included in which meta chian ,
actaully here so many chain , so its confusing .
Is there any way ?Hi,
Pls chk this links,
Re: Meta chains - how to create n example scenerios
Re: How to create process chains, infopackage groups & Meta chains
Hope this helps,
regards
CSM reddy
Maybe you are looking for
-
I started using Diigo a short time ago, and had no problems with it. I had Firefox set to automatically update, which it did, to version 3.6.15. It sort of froze while checking my add-ons for compatibility (there is nothing too exotic in there), so I
-
Use "grid display" for background job of RM07DOCS / MB51
Hello experts, When you execute program RM07DOCS with transaction MB51, it uses a "hierarchy display" for the output, a list of material documents. User can then use the menus for "Goto>Detail List" and the display changes to a "grid display". If we
-
Is this a scam or a real email from Apple?
I have received an email from [email protected] saying the following: Dear Member, This is an automatic message sent by our security system to let you know that you have 48 hours to confirm your account information. Your account has been frozen becau
-
A file with that name you specified already exists.
I'm using Deamweaver 8.0.1 on a Mac. My server is right next to me and is also a Mac. Both Mac's are on OSX10.4.6 I connect to the server vis AppleTalk local network. I guess I'm having a premission problem but whenever I try and synchrnize I get an
-
Where is my passcode lock setting?
As I understand it it should be a setting under "settings" - "general" that says PASSCODE LOCK. There is no such setting at all in my iPhone 3G!? I have the latest firmware and not jailbroken - everything is in order. What can I do, I tried to restor