Queue returning error while exiting when calling subvi within main vi
Hello
I am having issues with using queues in a project where a subvi is called from main vi. After calling subvi first time, when I press any button labview returns following error.
"LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @ ".
Please find attached the vi and project explorer file. I will appreciate feedback. I am using Labview development suite 2010.
Kind Regards
Austin
Solved!
Go to Solution.
Attachments:
building autocycles project.lvproj 2 KB
building autocycles screen.vi 19 KB
modifying vi.vi 30 KB
Hello Austin,
It looks like you are releasing your queue in the sub vi when it exits (Force destroy is set to TRUE therefore it destroys the queue, not just the reference to the queue)
I tested this by putting a diagram diable structure around the the release queue vi in the sub vi and it now works without throwing an error.
Set Force destroy to false so that it only destroys a single reference to the queue.
Chris
Don't forget to give Kudo's for a good answer !
LabVIEW Champion
Certified LabVIEW Architect
Certified TestStand Architect
Similar Messages
-
Hi Experts,
When I run my Application in Portal, i am getting the following error.
Type conflict when calling a function module., error key: RFC_ERROR_SYSTEM_FAILURE
When I execute the BAPI, it is getting executed.
My Bapi Strucute:
Import Parameters
IM_MAT_Search --> ZPTIP_MAT --> Import Parameters
Tables
IT_INFO_REC --> ZMM_GET_ITEM --> Output Parameters
When I import the model, i am getting the structure like this
BAPI_Name > ZMM_BAPI_Input> IM_MAT_Search(respective Parameters) , Output (respective Tables and their parameters)
> ZMM_Input1> Parameters
This is the way, how i am executing in webdynpro java
Zmm_Bapi_Ptip_Search_Input eleInput = new Zmm_Bapi_Ptip_Search_Input();
wdContext.nodeZmm_Bapi_Ptip_Search_Input().bind(eleInput);
Zptip_Asset eleInputAsset = new Zptip_Asset();
eleInputAsset.setSearch("ACRS");
wdContext.nodeZptip_Asset().bind(eleInputAsset);
eleInput.setIm_Ast_Search(eleInputAsset);
wdContext.nodeZmm_Bapi_Ptip_Search_Input().bind(eleInput);
wdContext.nodeZmm_Bapi_Ptip_Search_Input().currentZmm_Bapi_Ptip_Search_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
Please let me know, how to do the same.
Thanks in advance.
Regards,
PalaniHi David,
I checked for the Parameter of setIm_Ast_Search, it is of Zptip_Asset.
Hi Saleem,
When I changed the same, i am getting the Type conflict error,
Type conflict when calling a function module., error key: RFC_ERROR_SYSTEM_FAILURE
Please let me know,what can be done in this regard to solve the problem.
My BAPI Structure when imported as model
SearchBAPI
--> ZMM_BAPI_SEARCH_INPUT
> IM_AST_SEARCH(zPTIP_ASSET)
>Zptip_Asset
>Search (Parameter)
> OutPut(ZMM_BAPI_Search_Output)
>IT_Asser_Rec(ZMM_Asset)
>ZMM_Asset
>TXT100 (output Parameter)
--> ZMM_BAPI_SEARACH_OUTPUT
--> ZPTIP_ASSET
>Search (Parameter)
Thanks & Regards,
Palani
Edited by: Palani Appan on Nov 11, 2009 5:31 PM -
MSS - Business Event Details - Error Unexpected Exception when Calling RFC
Dear Experts,
Manager is getting the Error "Unexpected Exception when Calling RFC from Profile Application 'Business Event' when he tries to get the Training history of ONE employee in MSS. However, he is getting the details for the other employees of his department.
Any inputs on this?
Thank you.I believe it is our custom iView that is incorrect.
-
Subtemplate footer is not coming when calling from the main template
Hi All,
The footer from the subtemplate is not coming in the output when calling from the main template. Does anybody worked on the subtemplate?
If the same footer is put in the main template, it is displaying.
Please respond as this is a critical issue for us.
Thanks,
AmbadasHi Tim,
Thanks for your reply. Here is syntax which I got from the Oracle BI Publisher blog. And this is to just test locally.
http://blogs.oracle.com/xmlpublisher/2006/04/11?import:file:///C:/temp/HeaderFooter.rtf
<?import:file:///d:/test/GEPOPRINT_GER_GER.rtf?>
<?import:file:///d:/test/GEPOPRINT_US.rtf?>
<?for-each@section:G_HEADERS?>
<?if:POH_REPORT_NAME='GER PO w/GERMAN Data'?>
<?call-template:PO_GERMAN?>
<?end if?>
<?if:POH_REPORT_NAME='US Purchase Order'?>
<?call-template:PO_US?>
<?end if?>
<?End for-each?>
And I don't have any footers in the main template but in the subtemplate I have the respective footers. If you want, I can send all the RTF's to you directly.
Let me know.
Thanks,
Ambadas -
ERROR: -Type conflict when calling a function module
hi to all,
when iam executing the program in browser Type conflict when calling a function module error is showing, i have bind all the attribute correctly still iam getting error, WHEN I CLICK ON THE SEARCH BUTTON DATA IS NOT COMING TO MY TABLE ITAB1 plz help me....
DATA:
NODE_IP_SELECTION TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_IP_SELECTION TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_IP_SELECTION TYPE IF_PLANNING_HISTORY=>ELEMENT_IP_SELECTION ,
ITAB TYPE TABLE OF ZSL_PL_UPDATE1,
WA TYPE ZSL_PL_UPDATE1.
navigate from <CONTEXT> to <IP_SELECTION> via lead selection
NODE_IP_SELECTION = WD_CONTEXT->GET_CHILD_NODE( NAME = `IP_SELECTION` ).
get element via lead selection
ELEM_IP_SELECTION = NODE_IP_SELECTION->GET_ELEMENT( ).
get all declared attributes
ELEM_IP_SELECTION->GET_STATIC_ATTRIBUTES(
IMPORTING
STATIC_ATTRIBUTES = STRU_IP_SELECTION ).
CALL FUNCTION 'ZBAPI_PL_UPDATE'
EXPORTING
GV_LIFNR = STRU_IP_SELECTION-LIFNR
GV_MATNR = STRU_IP_SELECTION-LIFNR
GV_GJAHR = ' '
GV_WEEK_LOW = STRU_IP_SELECTION-FROM_WEEK
GV_WEEK_HIGH = STRU_IP_SELECTION-TO_WEEK
IMPORTING
RETURN =
TABLES
GT_PL_UPDATE = ITAB
DATA:
NODE_PLANN_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_PLANN_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_PLANN_NODE TYPE IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE,
WA1 TYPE IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE,
ITAB1 TYPE TABLE OF IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE.
LOOP AT ITAB INTO WA.
MOVE-CORRESPONDING WA TO WA1.
APPEND WA1 TO ITAB1.
ENDLOOP.
navigate from <CONTEXT> to <PLANN_NODE> via lead selection
NODE_PLANN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = `PLANN_NODE` ).
CALL METHOD NODE_PLANN_NODE->BIND_TABLE
EXPORTING
NEW_ITEMS = ITAB1
SET_INITIAL_ELEMENTS = ABAP_TRUE
INDEX =
ENDMETHOD.CALL FUNCTION 'ZBAPI_PL_UPDATE'
EXPORTING
GV_LIFNR = STRU_IP_SELECTION-LIFNR
GV_MATNR = STRU_IP_SELECTION-LIFNR
GV_GJAHR = ' '
GV_WEEK_LOW = STRU_IP_SELECTION-FROM_WEEK
GV_WEEK_HIGH = STRU_IP_SELECTION-TO_WEEK
IMPORTING
RETURN =
TABLES
GT_PL_UPDATE = ITAB
Problem is here
check out the type GV_GJAHR whether it accepts string type.
thanks
sarbjeet singh -
Form exits when calling another form
I have a form that passes parameters to another form. When creating new records and then calling the other form, it works fine. However, when coming from a post query and then passes parameters to a new form, the form exits upon calling of the other form. What causes this? Thanks for your help. I am using Forms Developer 6.0
Edited by: user6656248 on Apr 14, 2009 8:30 PMMy form is intermittent, when creating new records, sometimes the other form is called and parameters are passed but sometimes nothing happens and there are no errors. But from post query, calling another form and passing parameters exits the calling form and the called form does not show up. This form calls another form and passes some parameters without problems but when I tried to call another one, those scenarios happen. I am confused because the codes on both my When-Button-Pressed trigger are 100% similar. I dont know why this happens on this one and NEVER on the other. I hope you understand my query. Thanks a lot for responding. Please help.
Here is my code:
DECLARE
form_id FormModule;
pl_id paramlist;
pl_name varchar2(1000);
it_id Item;
BEGIN
pl_name := 'temp';
pl_id := get_parameter_list(pl_name);
IF NOT ID_NULL(pl_id) THEN
destroy_parameter_list(pl_id);
END IF;
pl_id := create_parameter_list(pl_name);
add_parameter(pl_id,'L_OUT_DATE',TEXT_PARAMETER,TO_CHAR(:DAILY_OUTS.OUT_DATE,'DD-MON-RRRR HH24:MI:SS'));
add_parameter(pl_id,'L_DATE_IN',TEXT_PARAMETER,TO_CHAR(:DAILY_OUTS.DATE_IN,'DD-MON-RRRR HH24:MI:SS'));
add_parameter(pl_id,'L_SUBSTATION_CODE',TEXT_PARAMETER,:DAILY_OUTS.SUBSTATION_CODE);
add_parameter(pl_id,'L_BREAKER_CODE',TEXT_PARAMETER,:DAILY_OUTS.BREAKER_CODE);
add_parameter(pl_id,'L_CIRCUIT_CODE',TEXT_PARAMETER,:DAILY_OUTS.CIRCUIT_CODE);
add_parameter(pl_id,'L_REMARKS',TEXT_PARAMETER,:DAILY_OUTS.REMARKS);
add_parameter(pl_id,'L_FREQUENCY',TEXT_PARAMETER,:DAILY_OUTS.FREQUENCY);
add_parameter(pl_id,'L_OUTAGE_CODE',TEXT_PARAMETER,:DAILY_OUTS.OUTAGE_CODE);
add_parameter(pl_id,'L_OUTAGE_SUBCODE',TEXT_PARAMETER,:DAILY_OUTS.OUTAGE_SUBCODE);
add_parameter(pl_id,'L_WEEK_NO',TEXT_PARAMETER,:DAILY_OUTS.WEEK_NO);
add_parameter(pl_id,'L_RADIO_GRP',TEXT_PARAMETER,:DAILY_OUTS.NEW_OUTAGE_GRP);
add_parameter(pl_id,'L_RELAYS_ACT',TEXT_PARAMETER,:DAILY_OUTS.RELAYS_ACT);
add_parameter(pl_id,'L_TRIP_CAUSED_BY',TEXT_PARAMETER,:DAILY_OUTS.TRIP_CAUSED_BY);
add_parameterr(pl_id,'L_SCODE_TRIP_CAUSED_BY',TEXT_PARAMETER,:DAILY_OUTS.SC_CAUSED_BY);
add_parameter(pl_id,'L_ACTION_TAKEN',TEXT_PARAMETER,:DAILY_OUTS.MEASURE);
:GLOBAL.BC := 1;
IF :daily_outs.out_date > sysdate +1 then
MESSAGE('DATE/TIME-OUT IS GREATER THAN SYSTEM DATE. PLEASE CHECK AND ENTER NEW
DATE/TIME-OUT VALUE.', acknowledge);
MESSAGE('DATE/TIME-OUT IS GREATER THAN SYSTEM DATE. PLEASE CHECK AND ENTER NEW
DATE/TIME-OUT VALUE.', acknowledge);
RAISE Form_Trigger_Failure;
END IF;
IF :daily_outs.date_in IS NOT NULL AND :daily_outs.out_date IS NOT NULL THEN
IF (:daily_outs.date_in - :daily_outs.out_date) <= 0 then
MESSAGE('DATE/TIME-IN IS LESS THAN OR EQUAL TO DATE/TIME-OUT. PLEASE ENTER NEW
DATE/TIME-IN VALUE.', acknowledge);
RAISE Form_Trigger_Failure;
END IF;
END IF;
OPEN_FORM('FRMSPM_DAILY_BRKRS_PARAM', ACTIVATE, NO_SESSION, SHARE_LIBRARY_DATA, pl_id);
END; -
"error while printing" when saving
A really odd thing started happening today: when I hit Apple + S to save a document, it first pops up the save progress box, but after a few seconds a 2nd box appears with a mesage saying "Print. error while printing."
I'm just trying to save, not to print. Any ideas what's going on?on the wife's g4 powerbook, added a network-shared printer, attempts to print to it result in:
PMSessionValidatePrintSettings failed (error code = -50)
Invalid PMPrintSettings in print info
this same n-s-p works fine on my g4 powerbook, also 10.4.11...
and i haven't been able to print to this printer from my core duo minimac running 10.6.2:
3/1/10 6:55:37 PM AddPrinter[21005] Error loading /Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm: dlopen(/Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm, 262): no suitable image found. Did find: /Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm: mach-o, but wrong architecture
3/1/10 6:55:37 PM AddPrinter[21005] Cannot find function pointer HPPMPluginFactory for factory 00425E6D-6656-11D7-966D-0003934BEDFE in CFBundle/CFPlugIn 0x1444f750 </Library/Printers/hp/aio/PMs/hpaio_printpm.plugin> (bundle, not loaded) -
"Error while printing" when sharing printer under 10.6
This just started yesterday. When attempting to print from either of two other computers (both 10.4.11) to a printer (HP LJ 1160) connected via USB to a MacBook Pro (10.6.2), the print fails with the cryptic error message: "Error while printing."
I have searched these help forums and have tried repairing permissions on all computers. I have also verified that the /tmp symbolic link is in place on all computers.
I have also tried resetting the print systems on all computers. I am able to add the shared printer on the client computers, but when attempting to print to the selected shared printer I still get the error.
The Console on the client computer generates the following items in the log:
2010-01-18 08:59:49.452 TextEdit[423] PMSessionValidatePrintSettings failed (error code = -50)
2010-01-18 08:59:50.812 TextEdit[423] Invalid PMPrintSettings in print info
Any ideas?on the wife's g4 powerbook, added a network-shared printer, attempts to print to it result in:
PMSessionValidatePrintSettings failed (error code = -50)
Invalid PMPrintSettings in print info
this same n-s-p works fine on my g4 powerbook, also 10.4.11...
and i haven't been able to print to this printer from my core duo minimac running 10.6.2:
3/1/10 6:55:37 PM AddPrinter[21005] Error loading /Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm: dlopen(/Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm, 262): no suitable image found. Did find: /Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm: mach-o, but wrong architecture
3/1/10 6:55:37 PM AddPrinter[21005] Cannot find function pointer HPPMPluginFactory for factory 00425E6D-6656-11D7-966D-0003934BEDFE in CFBundle/CFPlugIn 0x1444f750 </Library/Printers/hp/aio/PMs/hpaio_printpm.plugin> (bundle, not loaded) -
DTP error: Type conflict when calling FM - after transport to Prd
Hi ,
i have asset_attr datasource.it was working in my BW dev.
however after transport to BW prod. when i try to upload data using DTP it gives me an Abrupt error
"0ASSET_ATTR IPDCLNT030 : Type conflict when calling a function module (fiel
Message no. RSDS666"
no more information is given, & the request ends in red.
This is first time i'm using this Infoobject upload.
however all my other transaction data & other master data all are getting uploaded fine.
even Asset_text datasource is working fine.
Did anyone face similiar probs ?
can anyone guide me on this error ?
thanks
rameshHi
Take a look at note 1130907.
Regards,
Chandu. -
What is CR returned error code / status when hit max concurrent access ?
Hi,
Do anyone knows what is the returned error code or status return from crystal report object when it hits its max concurrent access license?
I'm developing on VS 2005 With crystal report, which comes along with it. If i'm not wrong its CR 9. Correct me if I got e versioning wrong. =)
Thanks in advance!!Hi,
Do anyone knows what is the returned error code or status return from crystal report object when it hits its max concurrent access license?
I'm developing on VS 2005 With crystal report, which comes along with it. If i'm not wrong its CR 9. Correct me if I got e versioning wrong. =)
Thanks in advance!! -
"Printing: Error while printing" when I tries to Save - How?
Since recently, whenever I tried to save a Pages document, Pages freezes for a few minutes, then show me a system message that says "Printing: Error while printing". I did not ask Pages to print anything! Please advice. Thank you very much.
You have not provided exact system info, no details about your documents, your save locations nor even told us what version of PS, so nobody can even begin to guess.
Mylenium -
MDX Query Returns Error while Executing this from SSMS through openquery
Hi I'm getting this kind of Error while executing this ..
Pls help to get it solve .Hi Ashish,
According to your screenshot, it seems you can create a linked server from a SQL Server to the SSAS server, then use OpenQuery to get Analysis Services database structure, right? In this case, please ensure tha you setting is correctly, here is blog which
describe how to do it step by step, please refer to the link below to see the details.
http://dwbi1.wordpress.com/2010/01/01/ssas-dmv-dynamic-management-view/
http://www.ssas-info.com/VidasMatelisBlog/144_using-ssrs-to-report-ssas-2008-database-structure-using-dmvs#more-144
Hope this helps.
Regards,
Charlie Liao
TechNet Community Support -
Error while trying to call external web service from oracle PL/SQL 10.2 g
Hi I am trying to call an external web service from oracle PL/SQL .I am getting following run time error when I try to set the opeartion style.
But as per the oracle documentation this is one of the 2 valid values.
ORA-29532: Java call terminated by uncaught Java exception: operation style: "document" not supported.Teh webservice does expect the operation style as document.
Following is the code I am executing.
FUNCTION email
return varchar2
AS
service_ SYS.utl_dbws.SERVICE;
call_ SYS.utl_dbws.CALL;
service_qname SYS.utl_dbws.QNAME;
port_qname SYS.utl_dbws.QNAME;
operation_qname SYS.utl_dbws.QNAME;
string_type_qname SYS.utl_dbws.QNAME;
retx ANYDATA;
retx_string VARCHAR2(1000);
retx_double number;
retx_len number;
params SYS.utl_dbws.ANYDATA_LIST;
l_input_params SYS.utl_dbws.anydata_list;
l_result ANYDATA;
l_namespace VARCHAR2(1000);
begin
-- open internet explorer and navigate to http://webservices.imacination.com/distance/Distance.jws?wsdl
-- search for 'targetNamespace' in the wsdl
l_namespace := 'http://service.xmlservices.global.freedomgroup.com/';
-- search for 'service name' in the wsdl
service_qname := SYS.utl_dbws.to_qname(l_namespace, 'ClientCoreWebServiceBeanService');
-- this is just the actual wsdl url
service_ := SYS.utl_dbws.create_service(HTTPURITYPE('http://hostname/GlobalWebServices/services/ClientCoreWebService?wsdl'), service_qname);
-- search for 'portType name' in the wsdl
port_qname := SYS.utl_dbws.to_qname(l_namespace, 'ClientCoreWebServiceBeanPort');
-- search for 'operation name' in the wsdl
-- there will be a lot, we will choose 'getCity'
operation_qname := SYS.utl_dbws.to_qname(l_namespace, 'postalCodelookup');
-- bind things together
call_ := SYS.utl_dbws.create_call(service_, port_qname, operation_qname);
-- default is 'FALSE', so we make it 'TRUE'
SYS.utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
-- search for 'operation soapAction' under <wsdl:operation name="getCity">
-- it is blank, so we make it ''
SYS.utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
-- search for 'encodingstyle' under <wsdl:operation name="getCity">
SYS.utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
-- search for 'binding style'
SYS.utl_dbws.set_property(call_, 'OPERATION_STYLE', 'DOCUMENT');
-- search for 'xmlns:xs' to know the value of the first parameter
-- under <wsdl:message name="getCityResponse"> you will see the line <wsdl:part name="getCityReturn" type="xsd:string" />
-- thus the return type is 'string", removing 'xsd:'
string_type_qname := SYS.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
-- in the line <wsdl:operation name="getCity" parameterOrder="zip">
-- the parameterOrder is 'zip', thus we put in 'zip'
-- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
-- the 'ParameterMode.IN' is a constant variable in the sys.utl_dbws package
--vj this cud be either params or xml
SYS.utl_dbws.add_parameter(call_, 'param1', string_type_qname, 'ParameterMode.IN');
SYS.utl_dbws.add_parameter(call_, 'param2', string_type_qname, 'ParameterMode.IN');
SYS.utl_dbws.set_return_type(call_, string_type_qname);
-- supply the In Parameter for the web service
params(0) := ANYDATA.convertvarchar('<TFGGlobalBasicXMLDO><systemCd>GLOBAL</systemCd><username>GlobalAdmin</username><password>GlobalAdmin</password><localID>1</localID></TFGGlobalBasicXMLDO>');
params(1) := ANYDATA.convertvarchar('<TFGGlobalPostalCodeLookupIDDO><postalCode>02446</postalCode><countryCode>USA</countryCode><stateCode>MA</stateCode><cityDisplay>BROOKLINE</cityDisplay><countyDisplay>NORFOLK</countyDisplay><include_inactive_flag>True</include_inactive_flag></TFGGlobalPostalCodeLookupIDDO>');
-- invoke the web service
retx := SYS.utl_dbws.invoke(call_, params);
dbms_output.put_line(retx.gettypename);
-- access the returned value and output it to the screen
retx_string := retx.accessvarchar2;
dbms_output.put_line('done' || retx_string);
dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
-- release the web service call
SYS.utl_dbws.release_service(service_);
return retx_string;
end email;thsi is urgent anybody ????
-
Trapping error in webdynpro when calling a function
Hi all,
I am using Adobe interactive forms and within the onsubmitevent I have webdynpro code which calls a standard function 'FMFR_CREATE_FROM_DATA' to do commitments. See code snippet below. The problem is when there is an error from the function the function simply hangs and does not come out of it.. I have tested this function as standalone via SE37 and works perfectly and also from a normal ABAP program the error can be trapped. Is it possible to trap this within webdynpro?
CALL FUNCTION 'FMFR_CREATE_FROM_DATA'
EXPORTING
I_FLG_CHECKONLY = ' '
I_FLG_COMMIT = 'X'
TABLES
T_POSDATA = wa_fid_tab
CHANGING
C_F_HEADDATA = wa_fih
EXCEPTIONS
DOCTYPE_NOT_ALLOWED = 1
ERROR_OCCURED = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
RAISE EXCEPTION TYPE ZCX_NO_CC_BUDGET.
ELSE.
" Update RFP table with consolidated amount
" per CC/PC and commitment no.
UPDATE ZAD_RFP_T
SET CURRENCY_AMOUNT = RFP_TOTAL1
AMOUNT = RFP_TOTAL1
COMMITMENT_NO = wa_fih-belnr
WHERE DOCUMENT_ID = RFP_ID
AND LINE_ID = line_one .
ENDIF.Thanks guys but i already tried this ie. uncommenting the exception but it never returns to the next line ie to theIF SY-SUBRC line in the code snippet below. The program simply hangs!!!
CALL FUNCTION 'FMFR_CREATE_FROM_DATA'
EXPORTING
I_FLG_CHECKONLY = ' '
I_FLG_COMMIT = 'X'
TABLES
T_POSDATA = wa_fid_tab
CHANGING
C_F_HEADDATA = wa_fih
EXCEPTIONS
DOCTYPE_NOT_ALLOWED = 1
ERROR_OCCURED = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
RAISE EXCEPTION TYPE ZCX_NO_CC_BUDGET.
ELSE.
" Update RFP table with consolidated amount
" per CC/PC and commitment no. -
UPDATE ZAD_RFP_T
SET CURRENCY_AMOUNT = RFP_TOTAL1
AMOUNT = RFP_TOTAL1
COMMITMENT_NO = wa_fih-belnr
WHERE DOCUMENT_ID = RFP_ID
AND LINE_ID = line_one .
ENDIF. -
Error PLS-00231 When Calling a Local Function In a Procedure
I hope someone can help me find a workaround to this problem:
I have a function defined within a PL/SQL block. When I call the function from a SQL statement, I get the PLS-00231 error, which says "Function <fn name> may not be used in SQL.". I don't really understand why I can't do this, since the function works perfectly if I create it in the database. Unfortunately, storing the function in the database is not a desirable option.
Below is a very simple example program to illustrate the point. Any feedback would be greatly appreciated. Thanks. Brian
DECLARE
var INTEGER;
FUNCTION return_it (i IN INTEGER) RETURN INTEGER IS
BEGIN
RETURN i;
END;
BEGIN
SELECT return_it (4)
INTO var
FROM dual;
END;
--Your function return_it is not part of database so you cant use in query.
Here is what you can do
08:18:20 SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 var INTEGER;
3 FUNCTION return_it (i IN INTEGER) RETURN INTEGER IS
4 BEGIN
5 RETURN i;
6 END;
7 BEGIN
8 var := return_it (4);
9 DBMS_OUTPUT.PUT_LINE('var = '||var);
10* END;
08:18:26 SQL> /
var = 4
PL/SQL procedure successfully completed.
Maybe you are looking for
-
I'm Starting in Java programing and need some help. Based in the information of txt file, I need to split a file.txt into "n" .txt files, depending of the blocks thats the file containt. It's delimited by """". And put the name between "UZ0RN0" the s
-
What exactly is: ORA-30926 unable to get a stable set of rows in the source tables
Oracle 8.0.3 I was wondering, if any one could tell me more about this error ? (ORA-30926) The only description in the oracle documentation was that this is caused due to a large amount of DML activity. I thought that Oracle is build to handle that ?
-
Hai give some solution to find correct path using applet below give is the applet code ,when i run this using IE ,path found is to be incorrect ,how to solve this problem import java.io.*; import java.applet.*; import java.awt.*; import javax.swing.*
-
Does anyone know what SSDs are in the Thinkpad X1? 126GB & 160GB info (brand, model, read & write speed, etc.) would be helpful. Thanks.
-
Vertical lines on the lower part of the screen
Hello Ma'am/Sir! Lines have appeared in the lower part of the screen and I do not know how to fix this. This is the third time it happened. The first and second time it happened, the lines were suddenly gone several weeks after. I want to know what i