BAPI parameters mismatch problem
Hi All,
I have been assigned to object wherein i need to insert bapi BAPI_GOODSMVT_CREATE in function module ZQM06_FM_TASK_GOODS_MOVEMENT. The problem is that i need to fill the structure that i can pass it to BAPI but the import parameters of FM ZQM06_FM_TASK_GOODS_MOVEMENT contain structure that is mismatching. I mean to say that the FM is importing VIQMEL data and from that data i need to fill up structure that would be paased to Bapi BAPI_GOODSMVT_CREATE .
As of now i am not able to map data into structure from VIQMEL so is there any FM or BAPI available for which i can pass VIQMEL data and it returnns me sales order data which in turn i can pass it to the specified bapi BAPI_GOODSMVT_CREATE ?
Your response is highly appreciable.
Thanks & Regards,
Parag
Hi Parag,
There is no any such function module to pass the data from Bapi to normal function modules.
If the structure of the Function modules are different, only way is finding the matching fields of the both function modules.
Check what all are the matching fields and populate internally after calling the Bapi BAPI_GOODSMVT_CREATE fm. within the function module code itself. Then commit your work. It will definitely work.
But increases the program overhead for you populating and checking all the fields. It is the way to solve this issue.
Because BAPI structures some times will not match with standard structures.
First you try to populate the Item data, with structure BAPI2017_GM_ITEM_CREATE. if this is done correctly you can handle the rest.
Regards,
Santosh Kumar M.
Similar Messages
-
Obtaining BAPI Parameters in Adapter Module
Hi All
I am using JRA way for obtaining BAPI parameters in Adapter Modules.
Could someone provide me some guidance on the same.
Which method in java will be used in retreving the value from BAPI inside module.(Example: Filename)
and method for passing the same to BAPI using adapter module
Regards
Abhishek MahajanHi ,
refer this link
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933e247d3ba4
Which service pack you are working on ?
If you are on SP14 then you need not create a wrapper, you can use standar SAP feature to do this.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
Commit Control for Individual BAPI Calls
If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
If your working on service pack <SP14 then refer the link below...this will help you in creating a wrapper..
https://websmp203.sap-ag.de/~sapdownload/011000358700000328352005E/HowtouseBAPandccBPM.pdf
regards
Surya -
Data Mismatch problem in Production system
Dear Experts,
We have been encountering serious data mismatch problems with our source system since 29th Dec 2010.
We have realized this mismatch only on 11th Jan 2011. So, we have deleted entire data from 29th Dec 2010 onwards to 11th Jan 2011. Then we tried to load delta again as per our Process Chain sequence. Since then, our production system has become very inconsistent. We found that the entire data from 29th Dec 2010 to till date is started giving mismatch.
Our system got damaged in terms of data drastically. If I delete any bad requests from our Cubes & Data Store Objects, the next time when we try to load data, cube & Data Store Objects is showing the deleted request no. is not updated properly. Because of this, our Process chain is daily failing to complete and giving so many technical errors. We are totally confused to restore our data from 29th Dec 2010 to till date.
Can any one please help us to restore our data fully and Process Chain to run successfully...............?
Thanks in Advance,
SumanHi Suman,
I understood that you are using 3.x version of BW
such kind of issues occurs if you distrub the delta sequence by deleting the requests without making them red.
you can resolve this two ways......
1) Go to reconstruction tab of the DSO and CUBE, select all the req from 29th Dec 2010 thru 11th Jan 2011 and reconstruct them. once they appear in the request tab. make all the requests to red (set the QM status to RED) one by one and delete them from the CUBE and DSO.
This should set the delta status back to 29th and you will be able to run a repeat delta from then in your next delta.
2) Go to RSRQ and give the SID or the Request ID one by one that it is giving you ( request no. which is not updated properly)
Mke the QM status as RED for all of them.
Since you have already deleted them from the targets, just changing the QM status to RED will be sufficinet.
You have make the QM status to RED inorder to inform the system that the requset is incorrect one and has been deleted.
Once it is set to RED, system will not prompt any req and say "request no.# not updated properly".
i suggest you the second option.
Once you resume the delta load, it should run successfully.....and if you feel some data is still missing from 29th Dec 2010 thru 11th Jan 2011, just run a full repair load the get the data back.
If your Datasource is of LO extraction u may need to fill the setup tables to perform full repair.
Please let me know if the Datasource is of LO extraction. Also let me know once the issue is resolved.
Regards,
Sudheer.
Edited by: Sudheer Kumar Kurra on Jan 22, 2011 7:58 AM
Edited by: Sudheer Kumar Kurra on Jan 22, 2011 8:03 AM -
BAPI parameters for movement type 532
Hello experts,i create a production order without material with TCODE co07,then i use BAPI 'BAPI_GOODSMVT_CREATE' to do the by-products GR(531),it is sucessful at this point,but when i do 532 reversal,it is failed,i have set below BAPI parameters:
ls_goodsmvt_item-material = gs_list-matnr.
ls_goodsmvt_item-plant = gs_list-werks.
ls_goodsmvt_item-stge_loc = gs_list-lgort.
ls_goodsmvt_item-orderid = gs_list-aufnr.
ls_goodsmvt_item-move_type = '532'.
ls_goodsmvt_item-order_itno = gs_list-posnr.
ls_goodsmvt_item-reserv_no = gs_list-rsnum.
ls_goodsmvt_item-res_item = gs_list-rspos.
ls_goodsmvt_item-entry_uom = gs_list-meins.
After i run the BAPI and commit,the posting is sucessfull, but the move type 532 would be replaced by 531 within the BAPI,pls. help me,thank you in advance.I do a test,if i do not transport reservation parameters(reserv_no,res_item),the bapi could post the 532 sucessfully,but it posted to unplaned goods issue,i want to post to planned goods issue,pls. help.
-
Issue with BAPI parameters - BAPI_SALESORDER_CHANGE
Hi,
I am trying to use BAPI_SALESORDER_CHANGE to modify the contents of the sales order item quantity. but the below code was not working, can any one correct the below program.
I have seen the same type of post few months back but no one provided the solution till now. I hope experts can correct my program. Surely i will reward.
regards
jaya
REPORT y_bapi1 .
TABLES: vbap.
DATA:
bapichdr LIKE bapisdh1,
bapichdrx LIKE bapisdh1x,
bapirtn LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
bapiitm LIKE bapisditm OCCURS 0 WITH HEADER LINE,
bapiitmx LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
DATA: s_vbap LIKE vbap.
PARAMETERS: p_vbeln LIKE vbap-vbeln DEFAULT '40486',
p_posnr LIKE vbap-posnr DEFAULT '20'.
start-of-selection.
START-OF-SELECTION.
PERFORM get_data_4m_vbap.
PERFORM fill_header_in.
PERFORM fill_header_inx.
PERFORM fill_item_in.
PERFORM fill_item_inx.
PERFORM call_bapi_so_change.
PERFORM call_bapi_commit.
*& Form get_data_4m_vbap
text
FORM get_data_4m_vbap.
SELECT SINGLE * FROM
vbap
INTO s_vbap
WHERE vbeln = p_vbeln
AND posnr = p_posnr.
ENDFORM. " get_data_4m_vbap
*& Form fill_header_in
text
FORM fill_header_in.
*bapichdr
ENDFORM. " fill_header_in
*& Form fill_header_inx
text
FORM fill_header_inx.
bapichdrx-updateflag = 'U'.
ENDFORM. " fill_header_inx
*& Form fill_item_in
text
FORM fill_item_in.
bapiitm-itm_number = p_posnr.
bapiitm-target_qty = s_vbap-kwmeng + 5.
APPEND bapiitm.
CLEAR bapiitm.
ENDFORM. " fill_item_in
*& Form fill_item_inx
text
FORM fill_item_inx.
bapiitmx-itm_number = p_posnr.
bapiitmx-updateflag = 'U'. " I for insert & D for Delete
bapiitmx-TARGET_QTY = 'X'.
APPEND bapiitmx.
CLEAR bapiitmx.
bapiitmx-itm_number = p_posnr.
bapiitmx-updateflag = 'I'. " I for insert & D for Delete
bapiitmx-target_qty = 'X'.
APPEND bapiitmx.
CLEAR bapiitmx.
ENDFORM. " fill_item_inx
*& Form call_bapi_SO_change
text
FORM call_bapi_so_change.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_in = bapichdr
order_header_inx = bapichdrx
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
return = bapirtn
order_item_in = bapiitm
order_item_inx = bapiitmx
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
READ TABLE bapirtn WITH KEY id = 'V1' number = '311'.
IF sy-subrc <> 0.
PERFORM bapi_errorlist.
ENDIF.
ENDFORM. " call_bapi_SO_change
*& Form call_bapi_commit
text
FORM call_bapi_commit.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
RETURN =
ENDFORM. " call_bapi_commit
*& Form bapi_errorlist
text
FORM bapi_errorlist.
DATA: bapierr TYPE c,
string TYPE string,
i TYPE i.
bapierr = 'X'.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
LEAVE TO LIST-PROCESSING.
SET PF-STATUS 'LIST'.
FORMAT INTENSIFIED ON.
WRITE: / 'BAPI ERROR OCCURED' COLOR COL_NEGATIVE INVERSE ON.
SKIP 1.
LOOP AT bapirtn.
CONCATENATE bapirtn-type bapirtn-number '(' bapirtn-id ')'
INTO string.
WRITE: / string.
i = strlen( bapirtn-message ).
WRITE bapirtn-message(i).
ENDLOOP.
LEAVE TO SCREEN 0100.
ENDFORM. " bapi_errorlistHello Jaya,
The problem would be you are not using SCHEDULE_LINES ,so try to use.
see the below program for referenec:
REPORT ZTRIALBAPICHANGE message-id z3d .
DATA:I_HEADER1 TYPE BAPISDH1.
DATA:I_HEADER1X TYPE BAPISDH1X.
DATA:I_PART1 LIKE BAPIPARNR OCCURS 0 WITH HEADER LINE.
DATA:I_ITEMS1 LIKE BAPISDITM OCCURS 0 WITH HEADER LINE.
DATA:I_ITEMS1X LIKE BAPISDITMX OCCURS 0 WITH HEADER LINE.
DATA:I_SCH1 LIKE BAPISCHDL OCCURS 0 WITH HEADER LINE.
DATA:I_SCH1X LIKE BAPISCHDLX OCCURS 0 WITH HEADER LINE.
data:err like bapiret2 occurs 0 with header line.
DATA:RETSALES LIKE VBAK-VBELN.
DATA:R(4).
R = '609'.
I_HEADER1-SALES_ORG = '0001'.
I_HEADER1-DISTR_CHAN = '01'.
I_HEADER1-DIVISION = '01'.
MOVE:'U' TO I_HEADER1X-UPDATEFLAG.
MOVE:'X' TO I_HEADER1X-SALES_ORG.
MOVE:'X' TO I_HEADER1X-DISTR_CHAN.
MOVE:'X' TO I_HEADER1X-DIVISION.
**PARTNER
CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'
EXPORTING
INPUT = 'SP'
IMPORTING
OUTPUT = I_PART1-PARTN_ROLE.
I_PART1-PARTN_NUMB = '0000000011'.
APPEND I_PART1.
**ITEM DETAILS
I_ITEMS1-MATERIAL = '000000000000000011'.
I_ITEMS1-ITM_NUMBER = '000011'.
APPEND I_ITEMS1.
MOVE:'U' TO I_ITEMS1X-UPDATEFLAG.
MOVE:'X' TO I_ITEMS1X-MATERIAL.
APPEND I_ITEMS1X.
**SCHEDULE LINE
I_SCH1-ITM_NUMBER = '000011'.
I_SCH1-REQ_QTY = '100'.
I_SCH1-SCHED_LINE = '0000'.
APPEND I_SCH1.
MOVE:'U' TO I_SCH1X-UPDATEFLAG.
MOVE:'X' TO I_SCH1X-ITM_NUMBER.
MOVE:'X' TO I_SCH1X-REQ_QTY.
MOVE:'X' TO I_SCH1X-SCHED_LINE.
APPEND I_SCH1.
UNPACK R TO RETSALES.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = RETSALES
ORDER_HEADER_IN = I_HEADER1
order_header_inx = I_HEADER1X
SIMULATION = 'X'
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
tables
return = ERR
ORDER_ITEM_IN = I_ITEMS1
ORDER_ITEM_INX = I_ITEMS1X
PARTNERS = I_PART1
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES = I_SCH1
SCHEDULE_LINESX = I_SCH1X
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
loop at err.
format color 4.
write:/ err-type,
err-id,
err-number,
err-message,
err-log_no,
err-log_msg_no,
err-message_v1,
err-message_v2,
err-message_v3,
err-message_v4,
err-parameter,
err-row,
err-field,
err-system.
*WRITE:/10 ERR-MESSAGE.
endloop.
IF ERR-TYPE <> 'E'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
MESSAGE S101 WITH RETSALES.
ELSE.
MESSAGE S100.
ENDIF.
Thanks
Seshu -
Updating SAP fields through BAPI (which are not BAPI parameters)
Hello,
I need to update season and collection fields in sales order (AFS), these fields are not in sales order creation BAPI. Can I still somehow use them in extensionin as parameters?? How do we do it?? BAPI: /AFS/BAPI_SALESORD_CREATEFDATA
Also there is another BAPI /AFS/VBAK_SALESDOCUMENT_CHANGE which has these fields in ITEM_EX table (which is extension for item table provided by SAP), but this dosent update the sales order as well.
I would appreciate if anyone has a clue how to do this.
Thanks,
Amit./AFS/VBAK_SALESDOCUMENT_CHANGE
Append structure BAPE_VBAP
J_3ASEAN
/AFS/COLLECTION
/AFS/THEME
Append structure BAPE_VBAPX
J_3ASEAN CHAR1
/AFS/COLLECTION CHAR1
/AFS/THEME CHAR1
Table: ITEMS_EX
OPERATION 009
DOC_NUMBER 200000608
ITM_NUMBER 000000
MATERIAL 2000010022
UPDAT_FLAG I
SEASON C1
COLLECTION DAM
THEME SEG
Pass the season Fields through EXTENSIONIN structure to update data into tables.
STRUCTURE BAPE_VBAP
VALUEPART1 020000060800000000000000C1 DAM SEG
STRUCTURE BAPE_VBAPX
VALUEPART1 0200000608000000XXXX -
Plz plz help me out. Characterset Mismatch Problem
I am using Oracle 8.1.7(Japanese) on Win2k professional (Japanese) and developing a multilingual application.
* I have some columns of NVARCHAR2 datatype.
* NLS_Lang entry of registry is right now NA.
* Database procedures
When i use insert or any other statement to perform operations on NVARCHAR columns i am receiving Character set mismatch error.
In queries after consulting different forums i have identified a solution which is to add or append N character with the string value (N'String').
Anyone can please tell me the logical reason of doing this.
I have created some database procedures. Please tell me how can i append this N character solution to me string parameters.
I have tried many things like Translate, Cast and other string functions but all in vane.
I hope i can get a solution at this forum.
Thanks in advance
WAKNCLOB columns can not be used for this purpose in Oracle8i. When they were first introduced in Oracle8i the National Character set was meant to support a couple of fixed with Asian character sets. While the National character set in Oracle8i can be set to other character sets they are unsupported. In Oracle9i and on the National Character set is exclusively unicode and can be used for storing Japanese characters.
-
ClassLoader "argument type mismatch" problem
I've got a problem I was hoping someone would be able to help me out with, or at least explain why I'm getting the problem.
Here's the scenario:
*I've got an abstract class, BETI public abstract class BETI*I've got another class, TMPC, which extends BETI and implements others.
public class TMPC extends BETI implements .....*I've got a third class ABT, which has a method that looks like:
public void addListener(BETI _listener);*In a fourth class, I've been able to successfully load ABT, but I'm having problems invoking the addListener method.
Here's the segment:
Class customLoggerClass = classLoader.loadClass("blah.ABT");
Object customLogger = customLoggerClass.newInstance();
TMPC gui = new TMPC();
Object[] oneArgument = new Object[1];
Class beti = classLoader.loadClass("blah.BETI");
Class[] addBuildListenerParameters = {beti};
Method addBuildListenerMethod = customLoggerClass.getMethod("addBuildListener",addBuildListenerParameters);
oneArgument[0] = gui;
addBuildListenerMethod.invoke(customLogger,oneArgument); //here is where the argument type mismatch happensAny idea on why I'm getting this? Obviously I'm overlooking something simple, but....
Thanks in advance-Presuming I did it right...
Using
c0 = default loader
c1 = your loader
>
Object customLogger =
customLoggerClass.newInstance();
TMPC gui = new TMPC();This loads c0.BETI and c0.TMPC
Object[] oneArgument = new Object[1];
Class beti = classLoader.loadClass("blah.BETI");I bet this loads c1.BETI
Class[] addBuildListenerParameters = {beti};
Method addBuildListenerMethod =
customLoggerClass.getMethod("addBuildListener",addBuild
istenerParameters);
oneArgument[0] = gui;
addBuildListenerMethod.invoke(customLogger,oneArgument)
//here is where the argument type mismatch happensSo here the signature is
addBuildListener(c1.BETI)
and you are calling it with
addBuildListener(c0.TPMC)
And that can only resolve to c0.BETI which doesn't match. -
BAPI Web Service problem...
Hi everyone,
I do not success executing a simple BAPI like BAPI_COMPANYCODE_GETLIST.
In my Controller : I connect the controller to the model and "drag and drop" the Request_BAPI_COMPANYCODE_GETLISTPortType_BAPI_COMPANYCODE_GETLIST context.
In the wdDoInit() method, I wrote :
Request_BAPI_COMPANYCODE_GETLISTPortType_BAPI_COMPANYCODE_GETLIST req =
new Request_BAPI_COMPANYCODE_GETLISTPortType_BAPI_COMPANYCODE_GETLIST();
wdContext.nodeRequest_BAPI_COMPANYCODE_GETLISTPortType_BAPI_COMPANYCODE_GETLIST().bind(req);
No need to initialize a parameter because the BAPI doesn't required.
I created a method for the execution:
public void executeWS( )
//@@begin executeWS()
try {
wdContext.currentRequest_BAPI_COMPANYCODE_GETLISTPortType_BAPI_COMPANYCODE_GETLISTElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
} catch(Exception e) {
//@@end
I the logical port located in the model, I did not change anything. But something is strange. The target address is, lets say, : http://<server>:<port>/sap/bc/soap/rfc.
If I copy and past this URL to my internet browser, I get: "The page cannot be displayed".
Can someone help me ?
Thank you in advance.Hi David,
As you said, when you are giving URL, got from logical port of the model, in browser. You get page can not be displayed, right?
Means, there is problem in link to your WSDL file location.
And for setting username and password, don following.
before executing your model set your username and password.
wdContext.currentRequest_BAPI_COMPANYCODE_GETLISTPortType_BAPI_COMPANYCODE_GETLISTElement()._setUsername("<user name>");
wdContext.currentRequest_BAPI_COMPANYCODE_GETLISTPortType_BAPI_COMPANYCODE_GETLISTElement()._setPassword("<password>");
if you want to check that url then type following:
http://<server>:<port>/sap/bc/soap/rfc?wsdl
Let me know the status,
Regards,
Bhavik
wdco
Message was edited by: Bhavik Devisha -
Hi all,
It is told that we have to create a structure in order to pass input values to a BAPI, whether it is via import paramter or tables parameter.
When i tried to declare a import parameter with TYPE declaration also BAPI was generated and worked fine.
<b>Why is it necessary to create a structure to import/export values?</b>
Please throw light on the concept behind declaring the structuresHi All,
I have a doubt regarding the logic behind declaring a separate BAPI structure for import paramters and use it.
Let me explain you clearly,
Whenever we pass an import parameter(like vendor number/sales order number) to an normal function module we declare it using either like/type referring to an existing dictionary structure field. but when the number of import parameters increase we may think of creating a single structure with all and use it for simplicity.
But when it is the case with a BAPI, it is suggested that we create a structure even when we have single import parameter.
for example.
supposing that we create a normal function module to get the details of a given Vendor, then we declare the import parameter as below
VENDORNO LIKE LFA1-LIFNR
But if we observe the BAPI_VENDOR_DISPLAY, We find that declaration for the same as
<b>VENDORNO like BAPIVENDOR_ID-VENDOR_NO,
where BAPIVENDOR_ID is a separate BAPI sturcture created and assocaited only with Business object "Vendor".</b>
I tried it by declaring as for a normal FM, even then it work fine.
Now my question is,
If SAP Suggests that we have a separate structure for all import parameters starting with name BAPI and use only those fields to reference with,
what is the logic/reason behind asking so.
I had created a BAPI with paramters referring to standard database fields like
VENDORNO like LFA1-LIFNR and it is still working
I had also written interface programs using VB/ .NET to access the data from my own BAPI and standard BAPI's and both were working alike.
so anyone <b>please give me the reason/logic behind declaring a separate BAPI stuture for all the import parameters</b> to be used in a method. -
WP8 c++/Direct3D Launch Parameters (ProtocolActivatedEventArgs problem)
Hi,
I need another help with WP8 app developing. I need to associate native c++/Direct3D app with file extension. It should not be problem - what I need is to read launch parameters to get file path. Problem is that ProtocolActivatedEventArgs
is not working, it is not contain any parameters. I even found some blog post and some guy has information that there is a mistake in MSDN documentation, but he don't have solution for this problem. (http://sanjeev.dwivedi.net/?p=369)
Can you please help me? How to solve that - open my app by clicking on *.gpx file.
ThanksHi Franklin,
thanks for your answer, but unfortunately it doesn't help - since I need that on C++/Direct3D project. As you can see in NavigationContext manual
there is no support for C++, especially "standard" C++ without component extension (C++/CX).
But I finally figure it out, with one small disadvantage - it needs to be targeted to WP8.1 universal app (for the future release of Windows 10 is actually an advantage :) ).
So here is the solution demo:
hr = m_view->add_Activated(Microsoft::WRL::Callback<ActivatedHandler>(
this, &Foo::OnActivated).Get(),
&m_activated_token);
HRESULT Foo::OnActivated(ICoreApplicationView* , IActivatedEventArgs* args)
// Here we can check if app is allready runnig (args->get_PreviousExecutionState) ...
ActivationKind kind;
if (!args || FAILED(args->get_Kind(&kind)))
return false;
ComPtr<IActivatedEventArgs> activatedArgs(args);
switch (kind)
case ActivationKind_Protocol:
ComPtr<IProtocolActivatedEventArgs> protocolArgs;
if (FAILED(activatedArgs.As(&protocolArgs)))
break;
ComPtr<ABI::Windows::Foundation::IUriRuntimeClass> startUri;
if (FAILED(protocolArgs->get_Uri(&startUri)))
break;
HSTRING uriHstring;
unsigned int length;
startUri->get_AbsoluteUri(&uriHstring);
// lets handle uriHstring in our way...
break;
case ActivationKind_File:
ComPtr<IFileActivatedEventArgs> fileActivatedArgs;
if (FAILED(activatedArgs.As(&fileActivatedArgs)))
break;
ComPtr<ABI::Windows::Foundation::Collections::IVectorView<ABI::Windows::Storage::IStorageItem*>> list;
HRESULT hr = fileActivatedArgs->get_Files(list.GetAddressOf());
ComPtr<ABI::Windows::Storage::IStorageItem> item;
if (FAILED(list->GetAt(0, item.GetAddressOf())))
break;
ComPtr<ABI::Windows::Storage::IStorageFile> file;
if (FAILED(item.As(&file)))
break;
// lets handle file in our way...
break;
return hr; -
[b]Version mismatch problem[/b]
Hi
My application will run fine on JDK 1.3.2,Other than this version it will give this following exception if i run
java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)
java.lang.IllegalStateException: Cipher not initialized
at javax.crypto.Cipher.c(DashoA12275)
at javax.crypto.Cipher.doFinal(DashoA12275)
I am using java.crypto.* package for encryption and decription purpose
Thanks in Advanceexact Version is jdk1.3.1_02
and if i use other than this version(greater than
jdk1.3.1_02)i will get the exception and this
DashoA12275 may be in javax.crypto.Cipher.a class"May be"? Why didn't you have a look first?
http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.html#AppA
http://java.sun.com/j2se/1.4.2/docs/api/javax/crypto/Cipher.htmlThere is no support for such algorithm. -
Hi,
I have connectivity like this:
customer switch forced to 100Mbps/Full duplex----------My end ME-3400-24TS-D configured for Auto negotiation.
ME-3400 negotiating with 100Mbps/Half duplex.
Customer facing CRC. Forced ME-3400 to 100Mbps/Full duplex, but link is not coming up.
ME-3400 IOS is me340x-metroaccess-mz.122-44.SE.bin
Is it bug related issue?
Regards
SKRAOHi guys,
I´ve been having the same problem whe trying to bring up a link between a gigabitethernet port using the UTP connector and a fastethernet port on a Huawei SW...the only way it works in full duplex /100 is when both sides are auto.
any idea whats the cause of this behavior? -
Help!
I am developing a web interface with JSP and Access database. In my database there is an id field which is autonumber field. In jsp page this is the code I use to convert my id:
String empId = request.getParameter("id");
int id = Integer.parseInt(empId);
Then my sql statement goes like this:
String empSql = "SELECT name, address FROM utempdb WHERE uniqueid = '" + id + "'";
ResultSet empRS = connection.executeQuery(empSql);
empRS.next();
In my browser I get this error:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
Any help is appreciated!
SueRemove the single ticks from around the id expression; the id value is numeric, not character, data and shouldn't be quoted in your query.
String empSql = "SELECT name, address FROM utempdb WHERE uniqueid = + id; -
Hi;
We have a project which has two modules which uses same UDTs. We have generated UDT's shown in example code. When our project calls B's SP which should return UDT from B.DbObjects namespace, the returned type is A.DbObjects namespace. This occurs because Oracle Data Access gets type name from OracleCustomTypeMappingAttribute and creates instance with that value. Since the namespaces are different, we cannot bind data to our return type. Is there a solution for this?
Code:
///Module A - Output A.dll
namespace A.DbObjects
[OracleCustomTypeMapping("SCHEMA.UDTNAME")]
public partial class UDTNAME : OracleCustomType
[OracleObjectMappingAttribute("X")]
public string X { get; set; }
[OracleObjectMappingAttribute("Y")]
public decimal Y { get; set; }
[OracleObjectMappingAttribute("Z")]
public decimal Z { get; set; }
///Module B - Output B.dll
namespace B.DbObjects
[OracleCustomTypeMapping("SCHEMA.UDTNAME")]
public partial class UDTNAME : OracleCustomType
[OracleObjectMappingAttribute("X")]
public string X { get; set; }
[OracleObjectMappingAttribute("Y")]
public decimal Y { get; set; }
[OracleObjectMappingAttribute("Z")]
public decimal Z { get; set; }
}CD Tom wrote:
> [Microsoft][ODBC Microsoft Access Driver] Data type
mismatch in criteria
> expression.
Hi, Your clue is in the error message.
This a data type mismatch, it would seem you are trying to
pass a data
type to the database that is not consistent with the data
type set in
the database design for that column.
Cheers jojo
Adobe Community Expert for Dreamweaver 8
http://www.webade.co.uk
http://www.ukcsstraining.co.uk/
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
Maybe you are looking for
-
How can I use my HP 1315 All-in-One scan features on my computer?
I am able to use the printing function from my computer but am unable to use the scanning feature on my printer. I have downloaded the Apple stuff and have searched HP (many features, including a diagnostic test, are blocked by Apple!!) and can't fi
-
I can't find a way to add text to a photo once it's been put into the top pane of the calendar month...is there a way to do this since I'd like to add a descriptor to the photos? I see the text box when you click on the calendar date, but don't find
-
How to delete the spool request number
HI Masters, My program creates a spool request. And i want to delete that spool request number? How to delete that?? Thanks in advance.
-
Problem in Archive log sync with Passive Node to Standby
Hi, I have configured Active-Passive Oracle Database using Fail Safe between Active and Passive Node. Also successfully configured Data Guard between Active Node to Standby Node. Versions: 1. Oracle Database Version: Oracle 11g R2 2. Oracle Fail Safe
-
DVD+R 4.7GB 1-16x speed - will it be read and can i burn it on...
Hi, Can such a DVD be burnt and or read on the new MacBook Pro's 8x SuperDrive (DVD±R DL/DVD±RW/CD-RW)? It says on the DVD that one has to check whether the drive supports 16x speed DVD+R discs... Thank you for your guidance! Best, Jonathan