Ordering values in SQL Calendar
Hi All,
I have an sql based calendar which is used as a roster. There are only a couple of entries in each day showing the names of personnel. I have a custom display setting such that the name is highlighted in different colours based on their on-call status.
My problem is that the calendar does not consistently display the values in any particular order and so, for example, across the calender (monthly type) it could show:
Mon - red|green
Tue - red|green
Wed - green|red
Thu - red|green
Frid - green|red
Sat - green|red
Sun - red|green
I am aware of a javascript sort() method but not sure how I would (or if I should) implement this into my calendar.
Any thoughts or suggestions out there????
Thanks in advance,
Mike
Hi Mike,
Have you tried sorting the data in the SQL statement itself? I've done a similar thing where there was more than one entry per day, and sorting the data itself kept the output consistent - make sure you sort by the date field first and then by the name field.
Andy
Similar Messages
-
SQL Open Sales Orders Value using today's currency rates
Hi experts,
I am creating a report for displaying the open sales order values (and other fields) using current currency rate (where applicable). I developed the below query. The only problem with this query is that it ignores the order rows in which the currency field is blank (Don't understand why this happens in SAP). Do you have other ideas?
Thanks & Regards,
IC
SELECT
T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date", T0.CardCode as "Cust Code", T0.CardName as "Customer Name", T1.ItemCode,
T1.Dscription, T3.ItmsGrpNam, T1.U_SU, T1.U_SULEN, T1.U_SUQTY, T2.InvntryUom as 'Stock UOM', T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)", T1.Price*T1.OpenQty/T4.Rate AS "Open Qty Val (GBP)", T1.Price/T4.Rate AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date", T1.WhsCode as 'Del WHG'
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod, ORTT T4 WHERE T0.DocCur <> 'GBP' AND T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T1.OpenQty > 0
UNION ALL
SELECT
T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date", T0.CardCode as "Cust Code", T0.CardName as "Customer Name", T1.ItemCode, T1.Dscription, T3.ItmsGrpNam, T1.U_SU, T1.U_SULEN, T1.U_SUQTY, T2.InvntryUom as 'Stock UOM', T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.LineTotal AS "Ord Value (GBP)", T1.LineTotal/T1.Quantity*T1.OpenQty AS "Open Qty Val (GBP)", T1.LineTotal/T1.Quantity AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)",T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T1.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date", T1.WhsCode as 'Del WHG'
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod WHERE T0.DocCur = 'GBP' AND T1.OpenQty > 0 ORDER BY 2,1Hi,
Try:
SELECT
T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date", T0.CardCode as "Cust Code", T0.CardName as "Customer Name",
T1.ItemCode, T1.Dscription, T3.ItmsGrpNam, T1.U_SU, T1.U_SULEN, T1.U_SUQTY, T2.InvntryUom as 'Stock UOM',
T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered",
T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)",
T1.Price*T1.OpenQty/T4.Rate AS "Open Qty Val (GBP)", T1.Price/T4.Rate AS "Price (GBP)",
T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)',
T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date", T1.WhsCode as 'Del WHG'
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
LEFT JOIN ORTT T4 ON T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T4.Rate != 0
WHERE T0.DocCur != 'GBP' AND AND T1.OpenQty > 0
Thanks,
Gordon -
I have balance column and i need to pick only positive values from sql query.
Balance
200
-20
-220
100
Expected
Balance
200
100Hi Frank,
Sorry i think i am not clear.
below is my function get_total.
one billing_key is nothing but one billing period-each period has 6 programkeys.
by following function i will get 6 records by passing 6 programkeys and one biling key
now i need to get over all balance of all periods per program. condition is i need to take only +ve amounts from the below function and sum it up
expected out. i am just giving an example of output.
actual
programkey get_total
a 100
a -50
a -50
b 200
c 300
c -200
d -100
d -25
d 400
e 500
e -10
f 600
f -200
we are taking only +ve amounts from the above.
How can i write a procedure or script to acheive program_key and balance as below.
programkey balance
a 100
b 200
c 300
d 400
e 500
f 600
create or replace FUNCTION GET_TOTAL (p_bill_key IN varchar2,
p_prog_key IN varchar2) RETURN NUMBER AS
l_total NUMBER;
l_dum_bill NUMBER;
p_count NUMBER:=0;
BEGIN
BEGIN
SELECT count(*) into p_count
FROM billing_adjust b where b.billing_key = p_bill_key ;
if p_count < 1 then
SELECT NVL(surch_amount,0) + NVL(adjust_amount,0)
INTO l_total
FROM mv_billing a, mv_prog_surch b
WHERE a.billing_key = b.billing_key and
a.billing_key = p_bill_key and
b.program_key = p_prog_key;
return l_total ;
end if;
SELECT NVL(surch_amount,0) + NVL(adjust_amount,0)
INTO l_total
FROM billing_adjust b, prog_surch_adjust c
WHERE b.billing_adjust_key = c.billing_adjust_key and
b.billing_key = p_bill_key and
c.program_key = p_prog_key;
return l_total;
EXCEPTION
WHEN NO_DATA_FOUND THEN
null;
End;
RETURN 0;
END GET_TOTAL;
This is what i have started writing to acheive expected output need help on this.
Create or replace function balance(p_company_id) return number as
v_total_due number:=0;
v_total number:=0;
CURSOR p_idn IS
SELECT PROGRAM_KEY,PROGRAM_NAME FROM MV_PROGRAM_DICT where CURRENT_YN = 'Y' order by PROGRAM_NAME_ID;
cursor p_billkey_idn is
select biling_key from billing where company_id=p_company_id;
Begin
for v_idn in p_idn loop
for v_billkey in p_billkey loop
SELECT sum(get_total(v_billkey.billing_key,v_idn.program_key)) into balance
FROM dual
WHERE get_total(v_billkey.billing_key,v_idn.program_key)>0;
END LOOP;
END loop; -
Re: Error in submitting Import Standard Purchase orders from Pl/Sql
Hi All,
Iam using the following code to submit a concurret program
"Import Standard Purchase orders" from pl/sql
Program is sucessfully submittted but it is Completing in error status i am stuck there please help me in resolving this
My instance R12
My Code
======
DECLARE
v_request_id VARCHAR2 (100);
BEGIN
mo_global.set_policy_context ('S', 204); --org_id for the operating unit which the purchase order records belong too
mo_global.init ('PO'); -- sets the application
FND_GLOBAL.APPS_INITIALIZE (1013436, 50578, 201); --Consists of the user_id, responsibility_id, responsibility_application_id which is 201 for purchasing
v_request_id :=
fnd_request.submit_request (application => 'PO',
program => 'POXPOPDOI',
description => NULL,
start_time => NULL, -- To start immediately
sub_request => FALSE,
argument1 => '31348', -- Buyer_ID
argument2 => 'STANDARD', -- Doc Type
argument3 => '', -- doc subtype
argument4 => 'N', -- update items
argument5 => '', -- create sourcing rules not used
argument6 => 'INCOMPLETE', -- Approval status
argument7 => '', -- release generation method
argument8 => '1021387', -- batch_id
argument9 => '', -- operating unit null
argument10 => '', -- global agreement null
argument11 => '', -- enable sourcing null
argument12 => '', -- sourcing level null
argument13 => '', -- inv org enabled null
argument14 => '' -- inv org null
DBMS_OUTPUT.put_line ('Request submitted. ID = ' || v_request_id);
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line (
'Request set submission failed - unknown error: ' || SQLERRM
END;
output
=====
when i check output i am getting the follwing error
DECLARE
ERROR at line 1:
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at line 133
Log message
==========
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
31348
STANDARD
N
INCOMPLETE
1021387
Start of log messages from FND_FILE
To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
AUDSID = 945297
ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_sys_parameters.0
ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_startup_values.10
ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure start_process.50
User-Defined Exception in Package po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
End of log messages from FND_FILE
Thanks
Manoj kumarPass NULL instead of ''
Check the flag
SELECT multi_org_category
FROM fnd_concurrent_programs
WHERE concurrent_program_name = 'POXPOPDOI'Update it as per the below MOS Doc
R12 / POXPOPDOI - 'ORA-01422' Error While Running 'Import Standard Purchase Orders' [ID 457628.1]
Otherwise,
Follow the below doc and insert values to the interface tables (headers, lines and distribution) and run the Import Standard Purchase Orders from the front end.
How To Diagnose Problems With Importing Standard Purchase Orders [ID 781351.1]
HTH
Cheers,
ND
Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered. -
hi experts,
I want to clear my basic concepts here.
I want to know the order of the sql operation.
actually the problem with me that i have read from different blog and websites
about the order of operation of the sqkl queries , hence i am confused here.
what i think the order of operation iis
-----------MY assumptuion---------------------
From
|
where
|
group
|
having
|
select
|
order by
is my assupmtion is correct?
if yes , then if suppose there is rownum clause in my selection criteria,at which timing
will it apply?
on some site i have seen below criteria
1. The FROM/WHERE clause goes first.
2. ROWNUM is assigned and incremented to each output row from the FROM/WHERE clause.
3. SELECT is applied.
4. GROUP BY is applied.
5. HAVING is applied.
6. ORDER BY is applied.
is this correct or my assumption is correct?
thanks a lot in advance..!!
regards,
prashantHi Prashant,
Instead of memorizing, why not check the query plan -
-->-- Creating a test table
CREATE TABLE test_tbl as
SELECT 'A' name, 100 sal FROM dual UNION ALL
SELECT 'A' name, 120 sal FROM dual UNION ALL
SELECT 'B' name, 66 sal FROM dual UNION ALL
SELECT 'C' name, 20 sal FROM dual UNION ALL
SELECT 'C' name, 50 sal FROM dual UNION ALL
SELECT 'C' name, 60 sal FROM dual UNION ALL
SELECT 'D' name, 90 sal FROM dual UNION ALL
SELECT 'D' name, 110 sal FROM dual;
-->-- Query explain plan
EXPLAIN PLAN for
SELECT name, SUM(sal) sm
FROM test_tbl
GROUP BY name
HAVING Sum(sal) > 150
ORDER BY sm;
-->-- Fetching the plan from cursor pool
SELECT *
FROM TABLE(dbms_xplan.display);
-->-- Query plan
PLAN_TABLE_OUTPUT
Plan hash value: 3401269832
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 8 | 128 | 5 (40)| 00:00:01 |
| 1 | SORT ORDER BY | | 8 | 128 | 5 (40)| 00:00:01 |
|* 2 | FILTER | | | | | |
| 3 | HASH GROUP BY | | 8 | 128 | 5 (40)| 00:00:01 |
| 4 | TABLE ACCESS FULL| TEST_TBL | 8 | 128 | 3 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - filter(SUM("SAL")>150)
Now, how to read the plan?
Start reading the plan - with the line "Operation" indented towards extreme right. Line-4 in this case.
Note: If two lines are indented similarly i.e. on same vertical line... read normally as-in order.
Like this:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 8 | 128 | 5 (40)| 00:00:01 |
| 1 | SORT ORDER BY | | 8 | 128 | 5 (40)| 00:00:01 |
|* 2 | FILTER | | | | | |
| 3 | HASH GROUP BY | | 8 | 128 | 5 (40)| 00:00:01 |
| 4 | TABLE ACCESS FULL| TEST_TBL_1 | 8 | 128 | 3 (0)| 00:00:01 |
| 5 | TABLE ACCESS FULL| TEST_TBL_2 | 8 | 128 | 3 (0)| 00:00:01 |
Read: line 4 and then line 5, since both are on same vertical level.
Final sequence:
1- (Line 4) Table Access : FROM clause
2- (Line 3) GROUP BY
3- (Line 2) Filtering : WHERE clause
4- (Line 1) Sorting : ORDER BY clause
5- (Line 0) SELECT
Hope this helps.
-- Ranit -
Bex Query to calculate canceled order value
Hi experts,
I am using the 0SD_C03 infoCube to stock the SD data, I want to calculate the net value of canceled orders.
In the 2LIS_11_VAHDR, there is a field "AUGRU", when it is filled, it means that the order is canceled.
In the 2LIS_11_VAITM, I have the net value of different order items.
The two above extractors load data to the InfoCube, the first one, 2LIS_11_VAHDR fill the 0ORD_REASON that is mapped to AUGRU. The second one, 2LIS_11_VAITM, fills the 0NET_VAL that is mapped to NETWR.
The query in SQL looks like:
Select 0NET_VAL from 0SD_C03 where VBELN in (Select VBELN from 0SD_C03 where 0ORD_REASON <> "")
How can I do this with Bex query?
Thank's a lot.
Abdess,Hi Sunil,
Like I explained above,
The 0Ord_Reason is filled only by the extractor 2LIS_11_VAHDR which dosen't give any value for the orders value, the 2LIS_11_VAITM dosen't fill the 0Ord_Reason InfoCube but it fills the orders value InfoObject.
So if I restrict with 0ord_reason by excluding blank values, I will get 0 in the measure 0NET_VAL.
Abdess, -
DRAG & DROP IN SQL CALENDAR USING TIMESTAMP COLUMN
Hi there,
I'm having a difficulty with the drag & drop process in my sql calendar. The defalult code has been mentioned before as:
declare
l_date_value varchar2(32767) := apex_application.g_x01;
l_primary_key_value varchar2(32767) := apex_application.g_x02;
begin
update EMP set HIREDATE = to_date(l_date_value,'YYYYMMDD HH24MISS')
where ROWID = l_primary_key_value;
end;
My sql calendar query though, has not a simple date column, but a TIMESTAMP column used in the Date value attribute.The APPOINTMENTID is my primary key column of APPOINTMENTS table as you can see and of course the APP_TIMESTAMP column as my Date Column (which in my database schema is created by the "merging" of my APP_DATE & APP_TIME columns ):
SELECT APPOINTMENTID,DECODE(APP_STATUS,'0','#005C09','1','#EF5800','2','#000099','3','purple')COLOR,
(TO_CHAR(APP_TIMESTAMP,'HH24:MI')||' / '||(SELECT LAST_NAME||' '||FIRST_NAME
FROM PATIENTS C
WHERE C.PAT_ID = A.PAT_ID)||' / '||UPPER(APP_DESCR)||' / '||APP_TEL_NO) APP_ROW,
APP_TIMESTAMP
FROM APPOINTMENTS A, PATIENTS C
WHERE C.PAT_ID(+) = A.PAT_ID
So far, in my on demand process i have written the code shown below and the result is just the dragging functionality:
declare
l_date_value varchar2(32767) := apex_application.g_x01;
l_primary_key_value varchar2(32767) := apex_application.g_x02;
begin
update APPOINTMENTS
set APP_TIMESTAMP = to_date(l_date_value,'DD/MM/RRRR HH24MI')
where APPOINTMENTID = l_primary_key_value;
end;
Any suggestion is welcome,
ThanksHi,
I just found a solution. I implemented for each column an own event-handler. Therefore I can assign the excercise to the right column.
Has anybody else a better solution?
Best regards
Max -
BEx calculation for 'average sales order value'
Hi all,
Can someone tell me how to use BEx query function to compute the <b>'average sales order values' by month</b>? Thank you.
J.Hi John,
You've two characteristics in the rows, right? Calendar Month and Order Type.
Try the option Calculate Result as Average of All Values and
Calculate Single Value as Nothing Defined? See if this works.
Or else in Modelling,
In the Info Object Create/Change screen, you can specify an Exception Aggregation based on
<b>Aggregate Reference Characteristic</b> Calendar Month.
I think there's an option for Average Values in the <b>Exception Aggregation</b> tab.
For more Information,
http://help.sap.com/saphelp_nw04/helpdata/en/75/21054da1392649948e5b94e4fc4bce/content.htm
Hope this helps.
Regards
Hari
Message was edited by: Hari Krishnan K -
Open Sale Order Value (FD33) not getting diminished even after closing SO?
Hi,
Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
What could be the reason ?
Pls help.
Regrds,
BinayakHi Binayak,
As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
Some precautions
1. Always run the program in background by scheduling a job.
2. The idle time is around midnight when no user is working on SAP.
3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
Hope this clarifies..
Regards,
Madhu. -
Rajesh/Sadhu/RobertoUrgent :- Open Sale Order Value not getting Reduced?
Hi,
Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
What could be the reason ?
Pls help.
Regrds,
Binayak
Message was edited by:
Binayak Ghosh
Message was edited by:
Binayak GhoshHi Binayak,
As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
Some precautions
1. Always run the program in background by scheduling a job.
2. The idle time is around midnight when no user is working on SAP.
3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
Hope this clarifies..
Regards,
Madhu. -
Not Updating Open Sales Orders Value for CreditManagement
Hi Frendz,
This is the first time am implementing creditmanagement in my system tested simple credit limit check working fine.
Now testing Static and Dynamic(Automatic) it also working fine but Its not caliculating open sales orders value either static or dynamic while Creating s.o, settings made clicked on open s.o, i have already created sales orders value of 10th.
EX:- customer balance is 2lacs, credit limit is 1lac while creating s.o it always showing balance 1lac only(Instead of 1lac10th) with open sales order value is 10th.
Let me know Where i have missd settings.
Hari Prasadhello,
it is maintained against the cr control area in ent structure.
one needs to change there.
r u in prd system or development?
becoz if prd, then this change will effect a lot of ongoing docs.
rgs,
AK -
Open sales orders value not updating currectly in sales value of CM
Hi SAP experts,
I have an issue some of customers credit exposure value showing worng value.We are using static credit limit check.
customers credit limit RM20000,
open sales order valueRM6,073.77
open delivery=0
open billing =0
open items(recievables)=3,464.39
Credit exposure =9,538.16.
But i have checked in VA05 its showing 13,001.10 value, i have checked all areas didnt get any solution.
I have run the reports RVKRED09 and RVKRED77 , RVKRED88 also no updates in the credit management.
is there any other areas i need to check, advise me.
Regards,
NookaThe only thing you really need to check is RVKRED88.
It is not the correct procedure to compare the open sales order value with the sum net value of VA05.
In VA05 open documents are displayed indifferent whether they are already part-delivered or not. That's why the open values from the VA05 are not directly comparable with the values in RVKRED77.
As described in OSS note 716141; reports RVKRED88/77 shows the correct value which should be in your system.
If you need to know more let me know.
Thanks,
Gerard -
KEY FIGURE: Effective purchase order value & K.F "No. of Purch.Orders"
Yo my fellow Gurus,
Got a problem, when executing listcube on the Info-Cube 0PUR_C01 - I see the data/amounts in the column for "Effective purchase order value" / 0ORDER_VAL. But when running the query with the Key Figure I just get "0"
I tried the option of adding the Process Keys not allocated in the Routine list of keys, yet still nothing has popped in the query, and heres the routine after additonal keys added:
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line -
TABLES: ...
INCLUDE RS_BCT_MM_UPDATE_RULES.
$$ end of global - insert your declaration only before this line -
FORM compute_data_field
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
USING COMM_STRUCTURE LIKE /BIC/CS2LIS_02_SCL
RECORD_NO LIKE SY-TABIX
RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING RESULT LIKE /BI0/V0PUR_C04T-ORDER_VAL
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal table "MONITOR", to make monitor entries
IF ( COMM_STRUCTURE-PROCESSKEY = '001' or "Bestellung
COMM_STRUCTURE-PROCESSKEY = '011' or
*change of keys
COMM_STRUCTURE-PROCESSKEY = '015' or
COMM_STRUCTURE-PROCESSKEY = '005' or
COMM_STRUCTURE-PROCESSKEY = '025' or
COMM_STRUCTURE-PROCESSKEY = '041' or
COMM_STRUCTURE-PROCESSKEY = '051' or
COMM_STRUCTURE-PROCESSKEY = '061' or
*change of keys
COMM_STRUCTURE-PROCESSKEY = '021' or
COMM_STRUCTURE-PROCESSKEY = '004' or "LP
COMM_STRUCTURE-PROCESSKEY = '014' or
COMM_STRUCTURE-PROCESSKEY = '024' )
AND COMM_STRUCTURE-BWAPPLNM EQ 'MM'
AND COMM_STRUCTURE-ORDER_VAL <> 0.
perFORM LOC_CURR_CONVERT
USING COMM_STRUCTURE-ORDER_VAL
COMM_STRUCTURE-DOC_DATE
COMM_STRUCTURE-ORDER_CURR
COMM_STRUCTURE-LOC_CURRCY
COMM_STRUCTURE-EXCHG_RATE
CHANGING RESULT.
if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
else.
RETURNCODE = 4.
endif.
if abort is not equal zero, the update process will be canceled
This seems to be also the issue with my other Key Figure "No. of Purch. Orders" except here it the just comes up blank / 0 . This is to some the number of pos per plant for the month. So it's not storing anything but running via an interface and then with the aid of the routine loading the count into the cube:
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
$$ end of global - insert your declaration only before this line -
FORM compute_data_field
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
USING COMM_STRUCTURE LIKE /BIC/CS2LIS_02_HDR
RECORD_NO LIKE SY-TABIX
RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING RESULT LIKE /BI0/V0PUR_C04T-NO_PUR_ORD
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal table "MONITOR", to make monitor entries
if COMM_STRUCTURE-HDRPROCESS = '01' "Bestellung
AND COMM_STRUCTURE-no_hdr <> 0.
result value of the routine
RESULT = COMM_STRUCTURE-no_hdr.
if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
else.
RETURNCODE = 4.
endif.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
Please advise the way forward.
Thanks,
Ishaamwhat do u want?
-
I've done everything I know in order to get my calendar in iCloud synchronized with my macBook, my IPad and my iPhone, but get no success. I've checked if all devices are set to the same account. Can you help me?
The only thing I can see strange is that when I login my iCloud account through my principal email address, when I check my preferences is marked an @me.com address that is old and I don't use it anymore, but I can't erase it or even change it.
-
Open Order value for Customer in Credit Master
Hi All,
For ABC customer, if I check for Credit master(F.35), credit management(FD33) & Sales Summary, the Open order value(sales Value) is 10, 30,000.00 EUR.
If I calculate adding
Back orders - 83681.98
Open orders - 196763.43
Open Contract - 9,669.79
Open Delivers u2013 9,245.23
Receivables - 37,938.77.
Total will be 3, 37, 299.20
Please any one can tell where I can find the difference value(mean which tcode or report).
Thanks & Regards
SunilHi,
Check with transaction code VKM1 or VKM4 or FCV3. The columns will show the details.
Regards
Maybe you are looking for
-
Problem with output data when calling into Oracle stored procedure
I have a problem that I think I've seen posted by others, but I can't find it anywhere on the forum. Here's what it looks like: I have a application that sends a query parameter called custID in a URL to a JSP page. http://domain.com/decrypt.jsp?cust
-
I need to switch to a different computer to synch my iphone. Will I lose information?
I need to switch to a different computer to synch my iphone. Will I lose information?
-
Why only 53.25 MG downloaded before it freezes?
Hi, I have tried downloading ML on all of my compatible Macs. The same thing happens every time. I get as far as 53.25 MB downloaded (the same on all machines) and then the download freezes and gives me rediculous estimated download times like 323 da
-
Lightroom 2.1 slow at high resolution screen setup?
Does anybody have the same problem at high resolutions like mine 2304x1440. Lightroom become extremely slow, at 1:1 you can't use any tools like crop, heel etc. There is delay between mouse gestures and actual movements of tool or picture at screen.
-
Problem in Exception Handling...URGENT
hi, actually i am trying to make a program using Lucene Api and Using NGramSpeller... the information about NGramSpeller is here http://www.marine-geo.org/services/oai/docs/javadoc/org/apache/lucene/spell/NGramSpeller.html#suggestUsingNGrams(org.apac