Problems with checkout SHD0 due to transport orders.
Hi experts;
I have created a variant of checkout ME21N via SHD0 on development environment.
In this variant I blanked the imputation column because I put a value. Then I set the purchase document type.
I've attached this variant ZME21N transaction.
And I've saved all on $TMP (local).
I am testing on development environment, everything is OK.
Two orders of transport have been created at the time of registration on a ZMM package. One with the variant and another with the transaction.
I had to carry two orders to the test environment.
So, in the test environment checkout works, however I have not the same as on the development.
Columns will appear on the development environment does not appear on the test envirnment.
I can't find where is the anomaly, would you have an idea ?
Thanks for your help.
I found the error.
Screen variants did not object to a transport order. Need a indivually transport via the SHD0 transaction orders.
Thinks
Similar Messages
-
Problem with availability check due to credit block
Dear Experts,
I am facing a problem with availability check for a sales order which is blocked against credit check
Like, i have a open sales order with mulitiple line items around 10 line items, out of which all the 10 line items have unrestricted stock and got confirmed when availability check has been performed , but we could able to proceed through delivery and billing only for 9 line items. Hence there is 1 line item in the sales order which didn't get delivered. But when we tried to do the availability check the system is confirming the quantity with credit block. But after the sales order has been released thru VKM3 from credit block again the schedule lines are showing confirmed quantiy as "0" .
Credit message observed : " Credit check (maximum percentage for open exceeded)".
An earlier response would be of greater help extension to me , and i shall be greatly obliged to you all.
Thanks & Regards
Krishna.kHi,
once confirm actual stock is there for that line item if yes then may b stock blocked by Credit block.Release the stock reserved by credit blocked sales order through back order processing.
Tcode: V_RA
Select sale order want to change the confirmed qty. SAVE.
and again come to VA02 and run availablity chek.
Regards,
anand -
My mozilla does't opening new tabs & I am having very problem with my work due to this.Please tell me how can i resolve this problem
The Ask Toolbar is causing that in the Firefox 3.6.13 version. Evidently something in that extension isn't compatible with a Firefox security fix. Disable that extension or un-install it.
-
Create Delivery with reference to seasonal stock transport order
Hello Gurus
How do we create a delivery with respect to seasonal stock transport order, in R/3 4.7.
Thanks in advanceAny answers/suggestion please
-
Problem in creation of STO(stock transport order)
hi all SAP gurus,
i am facing the problem in creation of stock transport order with ME21N code. i m getting the error msg of "Not possible to determine shipping data for material in STO "
i have checked the stock transport order setup in customization. but not getting the clear idea to come out from this problem.
if anybody have the idea of " how to do the customization of stock transport order setup, pls. let me explain.
thnx in advance.
rgrds,
rajeshHi Rajesh,
when ur creating STO with UB doc type, then you have to maintain material in both the plants.
Regarding the error which is comming for you, you have to check the settings at
SPRO- IMG- MM-Purchasing-Set up stock transport order- Assign delivery type & Checking rule
here for document type UB and your supplying plant-XXXX select nothing for Dlv type(delivery type) and chr - 01 and after this save.
After this you create STO as you are doing and see what the system is prompting.
For any further clarification let me know.
Regards,
NJ -
Problem with prod. ver. explosion to production order
Hi
I have problem with production versions. I have FERT with 3 production versions. Additionaly we have Z-program (on Z-table) which control parameter sold to party (from sale order) with production version. So after MRP I see in planned order right production version for example 3 - field PLAF-VERID; in master data in planned order I see right alternative BOM and routing; but when I make a conversion to production order I see that system always explode 1st version; additionaly in planned order in components (button) I see 1st pr.ver (1st alternative BOM) and in Bill of Material (it seems like to manually expolding BOM) I see right version??? But it couldn't be like this that to have right data I need to go to transaction MD12, explode BOM manully, save and after that make a prod. ord.
I would like to system explode BOM according to production version (field VERID) already in planned order; so after that it should be that when I will converted it to production order I should have right BOM and right routing from production version signed in planned order.
I know it sounds complicated Add. in configuration all parameters are set right to explode BOM etc. etc. system version: 4.7
Thanks and regards. Joanna
Additional info: I cancel this question cause problem is in Z-program; becuase when according to Z-table system change input in field VERID for system it is only "digital" not parameter for which system should explode right BOM; sorry for disturbing, we need to change Z-programm; I do not know how but maybe any function module can help - we will think. Regards
Edited by: Kostkaj on Aug 17, 2010 10:25 AMHI
Check this link and find valuable suggestion by Mr Mangalraj regarding selection of PVs
Produciton version selection in MRP
Regards
Anupam Sharma -
Problem with performance of a query having order by, distinct clause
Hi,
I have a problem with queries having order by, distinct clause.
While its executing its taking lot of time. With DBMS_PROFILER identified the queries taking long time.
The table is having approximately 70 million rows.
Problem -1
select * from table_name order by col1;
select distinct col1,col2 from table_name;
Here i am having 2 solutions request to let me know whether i am right if not suggest me right solution.
Solution1:
Max parallel servers is 8.
select /* + parallel(table_name,8) */ * from table_name order by col1;
select /* + parallel(table_name,8) */ distinct col1, col2 from table_name ;
Solution-2:
select /* + first_rows */ * from table_name order by col1;
select /* + first_rows */ distinct col1, col2 from table_name ;
Problem-2
I am having a query with where condition on columns.
Select * from table_name where col1='value1' and col2!='value2';
Index created on col1 and col2.
As we no that not equal won't use index as it is a composite index it should use the lead column. but its not using the index.
Should i forcibly use index with hint or suggest me better solution.
Any help really appreciated.
Thanks in advanceunique wrote:
The table is having approximately 70 million rows.
select * from table_name order by col1;Do you really want 70,000,000 rows from your table without any restrictions ? And furthermore ordered output ? I honestly understand the slowness of that query.
Here i am having 2 solutions request to let me know whether i am right if not suggest me right solution.Who knows if you choosed the right solution. I would suggest to reconsider your query and the need of 70,000,000 returned rows.
Problem-2
I am having a query with where condition on columns.
Select * from table_name where col1='value1' and col2!='value2';Please, provide the explain plan, eventually the tkprof output could also help. And tables descirption AND indexes description.
And OS and Oracle version.
Nicolas. -
Problem with Delivery Type Determination in Purchase Order
Dear All,
We are working on a IS-Retail Scenario where we are dealing with generic articles. While creating a PO, we have encountered an error which says:"Also specify a delivery type in case of shipping data relevance". The error message number is MEPO 099. We have checked that Delivery type NL is attached to the document type under the supplying site customizing, and supplying site is attached to the receiving site with the correct document type. Can anybody throw some light on what we might be missing out in this scenario?
Thanks and Sincere Regards,
AmitabhaHi
I suppose you are creating a retuns PO ,
Please maintain the customizing of the same in SPRO-> MM -> Purchasing-> Purchase Order-> Returns Order-> Store Return / Return Plant to Plant
here you need to maintain the delivery type for returns.
This message is trigerred only in case of Returns order
In SAP Retail, plants are referred to as distribution centers or stores. With store returns, you can map the return delivery of goods from
a store to a distribution center (this is the most common case),
from one distribution center to another distribution center,
from one store to another store,
from a distribution center to a store (although this is not very common).
Requirements
For the return delivery types, you have to make settings for the item category determination.
Partner schema must be assigned to the return delivery types.
The relevant goods movement types must be assigned to the schedule line categories (for the returns in Sales). The following schedule line categories are also available in the system:
NR - Replenishment Returns and
NS - Replenishment Cross Company Returns
Activities
Assign the required return delivery type to
purchasing document category F (purchase order),
purchasing document type (NB - standard purchase order, UB - stock transport order),
the supplying plant (the one to which the goods are being returned)
The following return delivery types are available in the system:
NLR - intra-company-code store returns (purchasing document type UB for replenishment and return orders, delivery type NL for the replenishment delivery)
NCR - cross-company-code store returns (purchasing document type NB for replenishment and return orders, delivery type NLCC for the replenishment delivery)
Please maintain the required customizing
Thanks & Regards
Kishore -
Problem with BOM Quant while creating Sales order with reference using BAPI
Dear All,
I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
Sales order is getting created but
1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
2. Schedule line for BOM header item is getting copied to all sub items of BOM.
Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
all the data related to items is exactly the same as in the original Sales Order.
Thanks in advnace.
Regards,
JohnHi All,
Can any one help me !!!!!!!!!!
please -
I am trying to download an app. I get a message that says there is a problem with a previous purchase. I log into the store and there is no history. I updated my address but continue to get the same message and cannot download my desired app. Any suggestions please?
If you get a pop-up message asking to update Firefox or plugins or scanning for malware then such a message is likely a scam and you should never respond to such an alert to avoid getting infected with malware.
*Only update Firefox via "Help > About" or by downloading and installing Firefox from the Mozilla server and never via a pop-up or link on a web page.
*Plugins should only be updated via the plugin itself or by visiting the home page of the plugin.
Do a malware check with several malware scanning programs on the Windows computer.
Please scan with all programs because each program detects different malware.
All these programs have free versions.
Make sure that you update each program to get the latest version of their databases before doing a scan.
*Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
*AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
*SuperAntispyware:<br>http://www.superantispyware.com/
*Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
*Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
*Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
*Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
You can also do a check for a rootkit infection with TDSSKiller.
*Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked -
Problems with form 10022 (selecting offer from order form)
Hi,
I'm trying to capture the event of form load of the form 10022, but I can't. It doesn't execute that event, the ones that it execute are form activate and got focus, so I've tried with them but the problem is that although beforeaction is false,they execute before loading the matrix data. How can I capture this event so that the matrix is loaded? I've also tried with matrix load and datasource load events. This form is the one that appears when clicking in the offer button in an order form.
ThanksHi Vanesa,
Try using the menuevent or button click event which makes the 10022 form to be shown. After this form is loaded and activated, it should raise again with the beforeaction = false value.
Keep in mind that if you use the menuevent, you should catch the form using ActiveForm Property.
Hope this helps.
Ibai Peñ -
Problems with corba initialisation due to migration from plug in 1.3 to 1.4
Hi all.
We're attempting to debug an internet banking applet used by our company. This applet was written to run under JRE 1.3, however due to business requirements our company has upgraded to JRE 1.4. Under the 1.4 JRE, the applet no longer starts up cleanly, due to an exception that is thrown during CORBA initialisation :
org.omg.CORBA.INITIALIZE: org.omg.CORBA.INITIALIZE: Unable to create a ClientInterceptor because of:
java.security.NoSuchProviderException: JCE cannot authenticate the provider Cryptix
vmcid: 0x0 minor code: 0 completed: No vmcid: 0x0 minor code: 0 completed: No
at com.visigenic.vbroker.orb.ORB.installServices(ORB.java:881)
at com.visigenic.vbroker.orb.ORB.initialize(ORB.java:829)
at com.visigenic.vbroker.orb.ORB.set_parameters(ORB.java:950)
at org.omg.CORBA.ORB.init(Unknown Source)
at za.co.sbic.main.LogonIIOP.run(LogonIIOP.java:88)
at java.lang.Thread.run(Unknown Source)The Cryptix provider that the applet uses is an old unsigned version, and the Cryptix website appears to be unmaintained. To this end, we acquired a Java Code Signing certificate and signed the cryptix provider with our certificate (in order to render it usable in the 1.4 JCE). However, even with the signed jarfile, the above exception remains. I have tried moving the provider jarfile into /lib/ext, but I still get the same exception. Also, the development division of the bank that wrote the applet currently has no plans to port it to java 1.4
If anyone could suggest a reason for the above exception, or other avenues I could pursue, I would be grateful.
Thanks
JeremyU need to add this provider statically in <java_applet_home>/jre/lib/security/java.security file the following property
security.provider.n=cryptix.provider.Cryptix (n can be any number from 1 and in jdk1.4 there are already 5 providers, so n might be 6 unless u have add/deleted some providers.
To add a provider dynamically instead of static,
java.security.Security.addProvider(new cryptix.provider.Cryptix());
this piece of java code will help.
One more tip might help.which lib/ext directory did u put the jar file? if you are on windows, there is a possibilty of more than one jvms in ur system.
let me know if this works out r u need further help. -
Problem with updating serial numbers in sales order!
Hi,
I am trying to update serial numbers for a sales order in SAP. I tried using both SERNR_ADD_TO_AU and SERNR_ADD_TO_DOCUMENT. However, in both cases the FM returned the number of serial numbers created but these did not reflect in the sales order. The code for both is as below:
WA_SERXX-SDAUFNR = '0000001733'.
WA_SERXX-POSNR = '000010'.
WA_SERXX-KUNDE = '0000009000'.
WA_SERXX-VBTYP = 'C'.
WA_SERXX-SD_AUART = 'OR'.
WA_SERXX-SD_POSTYP = 'TAN'.
WA_SERNR-SERNR = '000000001234ABCDAR'.
APPEND WA_SERNR TO IT_SERNR.
WA_SERNR-SERNR = '000000001234ABCDAQ'.
APPEND WA_SERNR TO IT_SERNR.
CALL FUNCTION 'SERNR_ADD_TO_DOCUMENT'
EXPORTING
operation = 'SDAU'
objkopf = 'SER02'
serxx = wa_serxx
material = 'P1-TEST'
PROFILE = 'Z001'
quantity = '2'
M_CHARGE =
J_VORGANG = 'PMS2'
KMATNR =
CUOBJ =
R_MATERIAL =
BSTCH =
BSTUP =
SNBWG =
EMATN =
KDAUF =
KDPOS =
AUTOMATIC = ' '
NO_ENQUEUE = ' '
MORE_ALLOWED = ' '
BUDAT =
IMPORTING
ANZSN = anzsn
NEW_OBKNR = new_obknr
SERIAL_COMMIT = serial_commit
STATUS_NOT_ALLOWED = status_not_allowed
tables
sernr = IT_SERNR
r_sernr = it_ser1
XVBPA =
CHANGING
T_SMESG =
EXCEPTIONS
KONFIGURATIONS_ERROR = 1
GENERAL_SERIAL_ERROR = 2
NO_PROFILE_OPERATION = 3
DIFFERENCE_IN_HEADER_DATA = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
commit work and wait.
CALL FUNCTION 'SERNR_ADD_TO_AU'
EXPORTING
sernr = '000000001234ABCDAR'
profile = 'Z001'
material = 'P1-TEST'
M_CHARGE =
quantity = '1'
J_VORGANG = 'PMS2'
KMATNR =
CUOBJ =
document = '0000001733'
item = '000010'
debitor = '0000009000'
vbtyp = 'C'
sd_auart = 'OR'
sd_postyp = 'TAN'
IMPORTING
ANZSN = ANZSN
ZEILEN_ID =
SERIAL_COMMIT = SERIAL_COMMIT
EXCEPTIONS
KONFIGURATIONS_ERROR = 1
SERIALNUMBER_ERRORS = 2
SERIALNUMBER_WARNINGS = 3
NO_PROFILE_OPERATION = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK AND WAIT.hi,
In order to maintain customer specific serial numbers you can do the following steps:
1. Maintain the serial numbers provided by your client in tcode IQ01. this will create the customer serial numbers in the system.
2. In the material master under Sales View maintain the serial number profile as 0002. this is sap standard.
3. Once the above has been maintained you can assign serial numbers at the time of delivery and NOT in sales order.
I hope this helps.
Regards,
Vishesh -
Problem with nested select in procedure and order by
Hi,
I have this procedure:
CREATE OR REPLACE PROCEDURE Mkt_Flussi_Giornalieri2
( idGruppo IN VARCHAR2
, dataInizio IN DATE
, dataFine IN DATE
, startRow IN NUMBER
, endRow IN NUMBER
, column_order in varchar2
--, order_name in varchar2
, recordsetCursor OUT SYS_REFCURSOR
, countRow OUT NUMBER
) IS
order_clause varchar2(200) := ' ';
sql_stm varchar2(32000);
BEGIN
IF column_order IS NOT NULL
THEN
order_clause := column_order;
ELSE
order_clause := ' stato DESC ';
END IF;
dbms_output.put_line('clausola:'||order_clause);
sql_stm:='
SELECT idflusso, descrizioneFlusso, dataRiferimento, strDataRiferimento,
stato, dataElaborazione, ultimoMessaggio, livello, utentiRiferimento,
exec_seq, provider_description, log_info FROM
(SELECT idflusso, descrizioneFlusso, dataRiferimento, strDataRiferimento,
stato, dataElaborazione, ultimoMessaggio, livello, utentiRiferimento,
exec_seq, provider_description, log_info FROM
(SELECT
temp.flow_id AS idFlusso,
MKT_FLOW.flow_id || '' - '' || MKT_FLOW.flow_description || ''('' || temp.exec_seq || '')'' AS descrizioneFlusso,
TO_DATE(temp.date_id,''yyyymmddhh24miss'') AS dataRiferimento,
TO_CHAR(TO_DATE(temp.date_id,''yyyymmddhh24miss''),''dd/mm/yyyy'')||'' h. ''||TO_CHAR(TO_DATE(temp.date_id,''yyyymmddhh24miss''),''hh24:mi'') AS strDataRiferimento,
temp.status AS stato, temp.end_time AS dataElaborazione, DECODE(temp.status,3, ERROR_DESC, 1, TRACE_DES) AS ultimoMessaggio,
DECODE(temp.status,3, error_level, 1, fk_trace_level) AS livello,
Get_Group_Description(MKT_FLOW.flow_id) AS utentiRiferimento, temp.exec_seq AS exec_seq, mp.provider_description,
mp.provider_link, mfc.log_info
FROM (
SELECT v.*, tr.TRACE_ID, tr.TRACE_DES , tr.trace_date, tr.fk_trace_level, e.ERROR_ID, e.ERROR_CODE, NVL(e.ERROR_DESC, er.ERROR_DESC) AS ERROR_DESC, e.error_date, e.error_level,
MIN(e.error_id) OVER (PARTITION BY e.fk_exec_seq) eid,
MAX(tr.trace_id) OVER (PARTITION BY tr.fk_exec_seq) tid
FROM (
SELECT fc.*, MAX(exec_seq) OVER (PARTITION BY flow_id, flow_frequency, n_run, date_id) exsq
FROM mkt_flow_conf_view fc
WHERE TRUNC(end_time) >= :1
AND TRUNC(end_time) <= :2
) v, MKT_ERROR er, MKT_FLOW_ERROR e, MKT_FLOW_TRC tr
WHERE v.exec_seq = v.exsq
AND e.fk_exec_seq (+) = v.exec_seq
AND tr.fk_exec_seq (+) = v.exec_seq
AND er.error_id (+) = e.error_code
) temp
INNER JOIN MKT_FLOW
ON MKT_FLOW.flow_id = temp.flow_id AND MKT_FLOW.n_run = temp.n_run AND MKT_FLOW.flow_frequency = temp.flow_frequency
INNER JOIN MKT_FLOW_GROUP ON MKT_FLOW_GROUP.flow_id = MKT_FLOW.flow_id
LEFT OUTER JOIN
(SELECT DISTINCT flow_id, log_info
FROM mkt_flow_conf) mfc
ON mkt_flow.flow_id = mfc.flow_id
, mkt_provider mp
WHERE NVL(error_id, -1) = NVL(eid, -1)
AND NVL(trace_id, -1) = NVL(tid, -1)
AND MKT_FLOW_GROUP.group_id=:3
AND NVL (mkt_flow.fk_provider_id, '' '') =
NVL (mp.provider_id, '' '') )
WHERE ROWNUM <= :4
MINUS
(SELECT idflusso, descrizioneFlusso, dataRiferimento, strDataRiferimento,
stato, dataElaborazione, ultimoMessaggio, livello, utentiRiferimento,
exec_seq, provider_description, log_info FROM
(SELECT
temp.flow_id AS idFlusso,
MKT_FLOW.flow_id || '' - '' || MKT_FLOW.flow_description || ''('' || temp.exec_seq || '')'' AS descrizioneFlusso,
TO_DATE(temp.date_id,''yyyymmddhh24miss'') AS dataRiferimento,
TO_CHAR(TO_DATE(temp.date_id,''yyyymmddhh24miss''),''dd/mm/yyyy'')||'' h. ''||TO_CHAR(TO_DATE(temp.date_id,''yyyymmddhh24miss''),''hh24:mi'') AS strDataRiferimento,
temp.status AS stato, temp.end_time AS dataElaborazione, DECODE(temp.status,3, ERROR_DESC, 1, TRACE_DES) AS ultimoMessaggio,
DECODE(temp.status,3, error_level, 1, fk_trace_level) AS livello,
Get_Group_Description(MKT_FLOW.flow_id) AS utentiRiferimento, temp.exec_seq AS exec_seq, mp.provider_description,
mp.provider_link, mfc.log_info
FROM (
SELECT v.*, tr.TRACE_ID, tr.TRACE_DES , tr.trace_date, tr.fk_trace_level, e.ERROR_ID, e.ERROR_CODE, NVL(e.ERROR_DESC, er.ERROR_DESC) AS ERROR_DESC, e.error_date, e.error_level,
MIN(e.error_id) OVER (PARTITION BY e.fk_exec_seq) eid,
MAX(tr.trace_id) OVER (PARTITION BY tr.fk_exec_seq) tid
FROM (
SELECT fc.*, MAX(exec_seq) OVER (PARTITION BY flow_id, flow_frequency, n_run, date_id) exsq
FROM mkt_flow_conf_view fc
WHERE TRUNC(end_time) >= :5
AND TRUNC(end_time) <= :6
) v, MKT_ERROR er, MKT_FLOW_ERROR e, MKT_FLOW_TRC tr
WHERE v.exec_seq = v.exsq
AND e.fk_exec_seq (+) = v.exec_seq
AND tr.fk_exec_seq (+) = v.exec_seq
AND er.error_id (+) = e.error_code
) temp
INNER JOIN MKT_FLOW
ON MKT_FLOW.flow_id = temp.flow_id AND MKT_FLOW.n_run = temp.n_run AND MKT_FLOW.flow_frequency = temp.flow_frequency
INNER JOIN MKT_FLOW_GROUP ON MKT_FLOW_GROUP.flow_id = MKT_FLOW.flow_id
LEFT OUTER JOIN
(SELECT DISTINCT flow_id, log_info
FROM mkt_flow_conf) mfc
ON mkt_flow.flow_id = mfc.flow_id
, mkt_provider mp
WHERE NVL(error_id, -1) = NVL(eid, -1)
AND NVL(trace_id, -1) = NVL(tid, -1)
AND MKT_FLOW_GROUP.group_id=:7
AND NVL (mkt_flow.fk_provider_id, '' '') =
NVL (mp.provider_id, '' '') )
WHERE ROWNUM <= :8
) ) ORDER BY :9 ' ;
dbms_output.enable(30000);
dbms_output.put_line(sql_stm);
OPEN recordsetCursor FOR sql_stm USING dataInizio, dataFine, idGruppo, endRow, dataInizio, dataFine, idGruppo, startRow, order_clause;
SELECT COUNT(*) INTO countRow FROM
(SELECT
temp.flow_id AS idFlusso,
MKT_FLOW.flow_id || ' - ' || MKT_FLOW.flow_description || '(' || temp.exec_seq || ')' AS descrizioneFlusso,
TO_DATE(temp.date_id,'yyyymmddhh24miss') AS dataRiferimento,
TO_CHAR(TO_DATE(temp.date_id,'yyyymmddhh24miss'),'dd/mm/yyyy')||' h. '||TO_CHAR(TO_DATE(temp.date_id,'yyyymmddhh24miss'),'hh24:mi') AS strDataRiferimento,
temp.status AS stato, temp.end_time AS dataElaborazione, DECODE(temp.status,3, ERROR_DESC, 1, TRACE_DES) AS ultimoMessaggio,
DECODE(temp.status,3, error_level, 1, fk_trace_level) AS livello,
Get_Group_Description(MKT_FLOW.flow_id) AS utentiRiferimento, temp.exec_seq AS exec_seq, mp.provider_description,
mp.provider_link, mfc.log_info
FROM (
SELECT v.*, tr.TRACE_ID, tr.TRACE_DES , tr.trace_date, tr.fk_trace_level, e.ERROR_ID, e.ERROR_CODE, NVL(e.ERROR_DESC, er.ERROR_DESC) AS ERROR_DESC, e.error_date, e.error_level,
MIN(e.error_id) OVER (PARTITION BY e.fk_exec_seq) eid,
MAX(tr.trace_id) OVER (PARTITION BY tr.fk_exec_seq) tid
FROM (
SELECT fc.*, MAX(exec_seq) OVER (PARTITION BY flow_id, flow_frequency, n_run, date_id) exsq
FROM mkt_flow_conf_view fc
WHERE TRUNC(end_time) >= dataInizio
AND TRUNC(end_time) <= dataFine
) v, MKT_ERROR er, MKT_FLOW_ERROR e, MKT_FLOW_TRC tr
WHERE v.exec_seq = v.exsq
AND e.fk_exec_seq (+) = v.exec_seq
AND tr.fk_exec_seq (+) = v.exec_seq
AND er.error_id (+) = e.error_code
) temp
INNER JOIN MKT_FLOW
ON MKT_FLOW.flow_id = temp.flow_id AND MKT_FLOW.n_run = temp.n_run AND MKT_FLOW.flow_frequency = temp.flow_frequency
INNER JOIN MKT_FLOW_GROUP ON MKT_FLOW_GROUP.flow_id = MKT_FLOW.flow_id
LEFT OUTER JOIN
(SELECT DISTINCT flow_id, log_info
FROM mkt_flow_conf) mfc
ON mkt_flow.flow_id = mfc.flow_id
, mkt_provider mp
WHERE NVL(error_id, -1) = NVL(eid, -1)
AND NVL(trace_id, -1) = NVL(tid, -1)
AND MKT_FLOW_GROUP.group_id=idGruppo
AND NVL (mkt_flow.fk_provider_id, ' ') =
NVL (mp.provider_id, ' '));
END Mkt_Flussi_Giornalieri2;
/When I call the procedure, from java, I receive this error:
>
Caused by: java.sql.SQLException: invalid column index
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:385)
at it.edison.markettracker.dao.spring.VistaFlussiGiornalieriDaoImpl.mapRow(VistaFlussiGiornalieriDaoImpl.java:155)
at it.edison.markettracker.dao.spring.VistaFlussiGiornalieriDaoImpl.mapRow(VistaFlussiGiornalieriDaoImpl.java:1)
at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:92)
at org.springframework.jdbc.core.JdbcTemplate.processResultSet(JdbcTemplate.java:1124)
at org.springframework.jdbc.core.JdbcTemplate.extractOutputParameters(JdbcTemplate.java:1085)
at org.springframework.jdbc.core.JdbcTemplate$5.doInCallableStatement(JdbcTemplate.java:997)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:936)
... 26 more
When I call the procedure from toad in this way:
SET serveroutput ON
DECLARE
TROVATI SYS_REFCURSOR;
NUMERO_TROVATI NUMBER;
BEGIN
DBMS_OUTPUT.ENABLE(30000);
dbms_output.put_line('INIZIO');
Mkt_Flussi_Giornalieri2(1, trunc(sysdate), trunc(sysdate), 100, 50, null, TROVATI, NUMERO_TROVATI);
dbms_output.put_line('RECORD TROVATI:'||NUMERO_TROVATI);
END; I don't receive any error messages but I don't see any message.
Why this behaviour? I work on this procedure from the last monday. Please help me. I need to call the procedure from java.
Thanks, bye bye.
Edited by: Abdujaparov on Mar 5, 2009 3:44 PMHi,
I have solved the problem, I forgot a parameter in the select, so java tells the an error. But now I have another problem. The procedure doesn't execute the order by. I pass the couple column_name order_type in a string as ("provider_description desc") dinamically but the procedure doesn't execute the ordering. Why?
The problem is in the dynamic query, I think:
sql_stm:='
SELECT idflusso, descrizioneFlusso, dataRiferimento, strDataRiferimento,
stato, dataElaborazione, ultimoMessaggio, livello, utentiRiferimento,
exec_seq, provider_description, provider_link, log_info FROM
(SELECT idflusso, descrizioneFlusso, dataRiferimento, strDataRiferimento,
stato, dataElaborazione, ultimoMessaggio, livello, utentiRiferimento,
exec_seq, provider_description, provider_link, log_info FROM
(SELECT
temp.flow_id AS idFlusso,
MKT_FLOW.flow_id || '' - '' || MKT_FLOW.flow_description || ''('' || temp.exec_seq || '')'' AS descrizioneFlusso,
TO_DATE(temp.date_id,''yyyymmddhh24miss'') AS dataRiferimento,
TO_CHAR(TO_DATE(temp.date_id,''yyyymmddhh24miss''),''dd/mm/yyyy'')||'' h. ''||TO_CHAR(TO_DATE(temp.date_id,''yyyymmddhh24miss''),''hh24:mi'') AS strDataRiferimento,
temp.status AS stato, temp.end_time AS dataElaborazione, DECODE(temp.status,3, ERROR_DESC, 1, TRACE_DES) AS ultimoMessaggio,
DECODE(temp.status,3, error_level, 1, fk_trace_level) AS livello,
Get_Group_Description(MKT_FLOW.flow_id) AS utentiRiferimento, temp.exec_seq AS exec_seq, mp.provider_description,
mp.provider_link, mfc.log_info
FROM (
SELECT v.*, tr.TRACE_ID, tr.TRACE_DES , tr.trace_date, tr.fk_trace_level, e.ERROR_ID, e.ERROR_CODE, NVL(e.ERROR_DESC, er.ERROR_DESC) AS ERROR_DESC, e.error_date, e.error_level,
MIN(e.error_id) OVER (PARTITION BY e.fk_exec_seq) eid,
MAX(tr.trace_id) OVER (PARTITION BY tr.fk_exec_seq) tid
FROM (
SELECT fc.*, MAX(exec_seq) OVER (PARTITION BY flow_id, flow_frequency, n_run, date_id) exsq
FROM mkt_flow_conf_view fc
WHERE TRUNC(end_time) >= :1
AND TRUNC(end_time) <= :2
) v, MKT_ERROR er, MKT_FLOW_ERROR e, MKT_FLOW_TRC tr
WHERE v.exec_seq = v.exsq
AND e.fk_exec_seq (+) = v.exec_seq
AND tr.fk_exec_seq (+) = v.exec_seq
AND er.error_id (+) = e.error_code
) temp
INNER JOIN MKT_FLOW
ON MKT_FLOW.flow_id = temp.flow_id AND MKT_FLOW.n_run = temp.n_run AND MKT_FLOW.flow_frequency = temp.flow_frequency
INNER JOIN MKT_FLOW_GROUP ON MKT_FLOW_GROUP.flow_id = MKT_FLOW.flow_id
LEFT OUTER JOIN
(SELECT DISTINCT flow_id, log_info
FROM mkt_flow_conf) mfc
ON mkt_flow.flow_id = mfc.flow_id
, mkt_provider mp
WHERE NVL(error_id, -1) = NVL(eid, -1)
AND NVL(trace_id, -1) = NVL(tid, -1)
AND MKT_FLOW_GROUP.group_id=:3
AND NVL (mkt_flow.fk_provider_id, '' '') =
NVL (mp.provider_id, '' '') )
WHERE ROWNUM <= :4
MINUS
(SELECT idflusso, descrizioneFlusso, dataRiferimento, strDataRiferimento,
stato, dataElaborazione, ultimoMessaggio, livello, utentiRiferimento,
exec_seq, provider_description, provider_link, log_info FROM
(SELECT
temp.flow_id AS idFlusso,
MKT_FLOW.flow_id || '' - '' || MKT_FLOW.flow_description || ''('' || temp.exec_seq || '')'' AS descrizioneFlusso,
TO_DATE(temp.date_id,''yyyymmddhh24miss'') AS dataRiferimento,
TO_CHAR(TO_DATE(temp.date_id,''yyyymmddhh24miss''),''dd/mm/yyyy'')||'' h. ''||TO_CHAR(TO_DATE(temp.date_id,''yyyymmddhh24miss''),''hh24:mi'') AS strDataRiferimento,
temp.status AS stato, temp.end_time AS dataElaborazione, DECODE(temp.status,3, ERROR_DESC, 1, TRACE_DES) AS ultimoMessaggio,
DECODE(temp.status,3, error_level, 1, fk_trace_level) AS livello,
Get_Group_Description(MKT_FLOW.flow_id) AS utentiRiferimento, temp.exec_seq AS exec_seq, mp.provider_description,
mp.provider_link, mfc.log_info
FROM (
SELECT v.*, tr.TRACE_ID, tr.TRACE_DES , tr.trace_date, tr.fk_trace_level, e.ERROR_ID, e.ERROR_CODE, NVL(e.ERROR_DESC, er.ERROR_DESC) AS ERROR_DESC, e.error_date, e.error_level,
MIN(e.error_id) OVER (PARTITION BY e.fk_exec_seq) eid,
MAX(tr.trace_id) OVER (PARTITION BY tr.fk_exec_seq) tid
FROM (
SELECT fc.*, MAX(exec_seq) OVER (PARTITION BY flow_id, flow_frequency, n_run, date_id) exsq
FROM mkt_flow_conf_view fc
WHERE TRUNC(end_time) >= :5
AND TRUNC(end_time) <= :6
) v, MKT_ERROR er, MKT_FLOW_ERROR e, MKT_FLOW_TRC tr
WHERE v.exec_seq = v.exsq
AND e.fk_exec_seq (+) = v.exec_seq
AND tr.fk_exec_seq (+) = v.exec_seq
AND er.error_id (+) = e.error_code
) temp
INNER JOIN MKT_FLOW
ON MKT_FLOW.flow_id = temp.flow_id AND MKT_FLOW.n_run = temp.n_run AND MKT_FLOW.flow_frequency = temp.flow_frequency
INNER JOIN MKT_FLOW_GROUP ON MKT_FLOW_GROUP.flow_id = MKT_FLOW.flow_id
LEFT OUTER JOIN
(SELECT DISTINCT flow_id, log_info
FROM mkt_flow_conf) mfc
ON mkt_flow.flow_id = mfc.flow_id
, mkt_provider mp
WHERE NVL(error_id, -1) = NVL(eid, -1)
AND NVL(trace_id, -1) = NVL(tid, -1)
AND MKT_FLOW_GROUP.group_id=:7
AND NVL (mkt_flow.fk_provider_id, '' '') =
NVL (mp.provider_id, '' '') )
WHERE ROWNUM <= :8
) ) ORDER BY :9' ;
OPEN recordsetCursor FOR sql_stm USING dataInizio, dataFine, idGruppo, endRow, dataInizio, dataFine, idGruppo, startRow, order_clause;Where order_clause is defined so:
IF column_order IS NOT NULL
THEN
order_clause := column_order;
ELSE
order_clause := ' stato DESC ';
END IF;If I insert manually a name of a column and a type of ordering (asc or desc) the ordering is executed correctly. How can I solve this issue?
Thanks, bye bye. -
Problem with entering Discussions due to invalid cookie?
Quite often, when trying to enter Discussions, while using Safari, I get the message: "…We're having a problem processing your login. 9: invalid cookie supplied Unknown status code: 9…". Some time later, without apparent reason, things are functioning fine again.
Using Firefox did never show such problem.
Why?
and
What to do (with Safari, other than trashing it)?Rather than reinvent the wheel, why not hack your way through the undergrowth of this thread:
https://discussions.apple.com/thread/3069648?tstart=0
which covers the issue in depth!
Maybe you are looking for
-
Match Credit memo from Payables Open interface import.
We have a requirement wherein we have to load Standard invoices as well as their corresponding credit memo match. The user guide only mentions about matching to a PO or reciept but not to a standard invoice As per metalink note 422659.1 "So the Enter
-
Hi, I've managed to Sync my SharePoint Calendar with my Outlook. At the moment it only transfers through the Title and Location of my calendar entry. Is it possible to transfer the description as per the SharePoint entry so it shows up in Outlook? Th
-
IMP-00067 Error while trying to import demo mapviewer dump files
Getting IMP-00067 Error while trying to import demo dump files C:\oraclexe\app\oracle\product\10.2.0\server\BIN>imp mvdemo/mvdemo file=C:\oracl exe\app\oracle\admin\XE\dpdump\usstates.dmp full=y ignore=y Import: Release 10.2.0.1.0 - Production on Sun
-
Calling stacked canvases from tab pages
Hi, I am creating custom forms from TEMPLATE.fmb in Forms Developer 6i. The main form has various tab pages on a tab canvas for different functionalities. Now, I have some very large stacked canvases which I want to be called by clicking on a tab. Mo
-
How to Delay an Event in a Process Chain
Hey, We have a scenario in which we need to schedule a process chain in such a way that,the main chain contains the DSO load and the local chains contains the Cube load (One for NA and other for EU). I want to schedule it in such a way that two local