Doubt using CastorMapping...Urgent.......
hi guys....
i'm new to castor. i have to generate the xml using namespace uri with attribute like..
<pre:MyRequest xmlns:pre="http://...." type="MyList">
<message>
<mymessage/>
</message>
</pre:MyRequest>
code of my castor xml
<class name="ListRequest">
<map-to xml="MyRequest" ns-uri="http:.." ns-prefix="pre" />
<field name="type" type="java.lang.String">
<bind-xml name="type" node="attribute"/>
</field>
<field name="message" type="Wrapper">
<bind-xml name="message" node="element"/>
</field>
</class>
when i run my java coding the xml has generated like as follows..
<pre:MyRequest type="MyList" xmlns:pre="http://...." >
<message>
<mymessage/>
</message>
</pre:MyRequest>
what my doubt is i the attribute of type should be come after the namespace.. how to do this.. plz give me ur valuable suggestion. its need very urgent.
thanx in adv with reg
DJ
hi guys....
i'm new to castor. i have to generate the xml using namespace uri with attribute like..
<pre:MyRequest xmlns:pre="http://...." type="MyList">
<message>
<mymessage/>
</message>
</pre:MyRequest>
code of my castor xml
<class name="ListRequest">
<map-to xml="MyRequest" ns-uri="http:.." ns-prefix="pre" />
<field name="type" type="java.lang.String">
<bind-xml name="type" node="attribute"/>
</field>
<field name="message" type="Wrapper">
<bind-xml name="message" node="element"/>
</field>
</class>
when i run my java coding the xml has generated like as follows..
<pre:MyRequest type="MyList" xmlns:pre="http://...." >
<message>
<mymessage/>
</message>
</pre:MyRequest>
what my doubt is i the attribute of type should be come after the namespace.. how to do this.. plz give me ur valuable suggestion. its need very urgent.
thanx in adv with reg
DJ
Similar Messages
-
1 Urgent doubt using filestream from JBuyout class!1!1!
C-Web. No surprise I guess. Going where? Pistons? Suns?
C-Web. No surprise I guess. Going where? Pistons?Suns?
Hadn't heard this, cotton.
http://sports.espn.go.com/nba/news/story?id=2726276
Suns? Good for Webber, but why do they need him?
Great team already.Yes but more inside presence never hurt. This is more my hope
>
Pistons? Help to replace Big Ben might be nice.
http://sports.espn.go.com/nba/news/story?id=2727137 -
Error while creating BOM using BAPI (urgent)
Hi all,
Thanks for ur help. i am getting some error while creting a BOM using that BAPI
BAPI_MATERIAL_BOM_GROUP_CREATE.
errors are
1) Error/warning when checking the structure of the BOM group with ID =
2)Alternative does not exist for material assignment to material BAPIBOMFG1
is it mandatory to pass the bom group id to this bapi?
In bomgroup structure , i am not passing anything to BOM_GROUP field.
is it mandatory to pass this data? i am giving my coding below.plz suggest , where i am making mistake. it is urgent.
regards
pabitra
report z_bom_create
line-size 132
line-count 65
no standard page heading.
*-- DATA DECLARATION--
include <icon> .
*---Tables
tables : s076, t100, marc .
*---Types
types : begin of t_upload, " Upload file data
col1(18),
col2(10),
col3(30),
col4(12),
col5(50),
end of t_upload,
begin of t_split,
location like stpu-ebort,
end of t_split.
data:begin of i_return occurs 10.
include structure bapiret2.
data:end of i_return.
types:begin of t_item."occurs 10.
include structure BAPI1080_ITM_C.
types:end of t_item.
types:begin of t_subitem." occurs 10.
include structure BAPI1080_SUI_C.
types:end of t_subitem.
types:begin of t_header." occurs 10.
include structure BAPI1080_MBM_C.
types:end of t_header.
types:begin of t_bomgroup." occurs 10.
include structure BAPI1080_BGR_C.
types:end of t_bomgroup.
types:begin of t_variant." occurs 10.
include structure BAPI1080_BOM_C.
types:end of t_variant.
*--- Tables
data: i_upload type standard table of t_upload, " to hold data
i_upload1 type standard table of t_upload,
i_split type standard table of t_split,
i_item type standard table of t_item,
i_subitem type standard table of t_subitem,
i_header type standard table of t_header,
i_bomgroup type standard table of t_bomgroup,
i_variant type standard table of t_variant.
data: wa_upload type t_upload, " to hold file data,
wa_upload1 type t_upload, " to hold plan data,
wa_split type t_split,
wa_item type t_item,
wa_subitem type t_subitem,
wa_header type t_header,
wa_bomgroup type t_bomgroup,
wa_variant type t_variant.
data:v_matnr like mara-matnr,
v_start like sy-index,
v_count(3) type c.
*--Constants
data: c_dot type c value '.',
c_x type c value 'X',
c_comma type c value ','.
-------Selection Screen Design -
*Selection screen for input of upload file address
selection-screen skip 2.
selection-screen begin of block blk1 with frame.
parameters : p_file like rlgrap-filename obligatory .
parameters : p_matnr like mara-matnr obligatory,
p_werks like marc-werks obligatory memory id wrk,
p_stlan like afko-stlan obligatory default '1' .
selection-screen end of block blk1.
---AT SELECTION SCREEN -
at selection-screen on value-request for p_file.
*--For popup to select file.
perform f_give_help.
at selection-screen on p_matnr.
perform f_check_matnr.
-----START OF SELECTION -
*--Data upload using WS_Upload.
perform f_get_data.
perform f_get_bom_data.
perform f_get_bom_data1.
perform f_call_bapi.
*& Form f_give_help
text
--> p1 text
<-- p2 text
FORM f_give_help.
call function 'WS_FILENAME_GET'
exporting
mask = ',.,..'
mode = 'O'
importing
filename = p_file
exceptions
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
others = 5.
if sy-subrc <> 0 and not sy-msgty is initial.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
ENDFORM. " f_give_help
*& Form f_check_matnr
text
--> p1 text
<-- p2 text
FORM f_check_matnr.
CALL FUNCTION 'BAPI_MAT_BOM_EXISTENCE_CHECK'
EXPORTING
MATERIAL = p_matnr
PLANT = p_werks
BOMUSAGE = '1'
VALID_FROM_DATE =
VALID_TO_DATE =
TABLES
RETURN = i_return.
ENDFORM. " f_check_matnr
*& Form f_get_data
text
--> p1 text
<-- p2 text
FORM f_get_data.
call function 'WS_UPLOAD'
exporting
CODEPAGE = ' '
filename = p_file
filetype = 'DAT'
tables
data_tab = i_upload
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
ENDFORM. " f_get_data
*& Form f_get_bom_data
text
--> p1 text
<-- p2 text
FORM f_get_bom_data.
delete i_upload where col1 is initial.
delete i_upload where col1 cs 'ITEM'.
read table i_upload into wa_upload with key col1 = 'FINISHED GOOD:'.
if sy-subrc = 0.
v_matnr = wa_upload-col2.
if v_matnr <> p_matnr.
message e001(zl) with p_matnr.
endif.
else.
message e000(zl).
endif.
ENDFORM. " f_get_bom_data
*& Form f_get_bom_data1
text
--> p1 text
<-- p2 text
FORM f_get_bom_data1.
loop at i_upload into wa_upload where col1 CS 'FINISHED GOOD'.
v_start = sy-tabix + 1.
loop at i_upload into wa_upload1 from v_start .
if wa_upload1-col1 cs 'FINISHED GOOD'.
exit.
else.
perform f_split_upload_data.
endif.
endloop.
endloop.
ENDFORM. " f_get_bom_data1
*& Form f_split_upload_data
text
--> p1 text
<-- p2 text
FORM f_split_upload_data.
if not wa_upload1-col5 is initial.
if wa_upload1-col5 cs c_comma.
split wa_upload1-col5 at c_comma into table i_split.
loop at i_split into wa_split.
v_count = v_count + 1.
endloop.
if wa_upload1-col4 <> v_count.
wa_upload1-col4 = v_count.
endif.
clear wa_upload1-col5.
clear wa_split.
loop at i_split into wa_split.
wa_upload1-col5 = wa_split-location.
append wa_upload1 to i_upload1.
endloop.
else.
append wa_upload1 to i_upload1.
endif.
else.
append wa_upload1 to i_upload1.
endif.
ENDFORM. " f_split_upload_data
*& Form f_call_bapi
text
--> p1 text
<-- p2 text
FORM f_call_bapi.
clear wa_upload1.
wa_header-material = p_matnr.
wa_header-plant = p_werks.
wa_header-bom_usage = p_stlan.
append wa_header to i_header.
wa_bomgroup-bom_usage = p_stlan.
wa_bomgroup-created_in_plant = p_werks.
append wa_bomgroup to i_bomgroup.
wa_variant-alternative_bom = 1.
wa_variant-base_qty = 1.
wa_variant-valid_from_date = sy-datum.
append wa_variant to i_variant.
loop at i_upload1 into wa_upload1.
wa_item-item_no = wa_upload1-col1.
wa_item-item_cat = wa_upload1-col2.
wa_item-component = wa_upload1-col3.
wa_item-comp_qty = wa_upload1-col4.
append wa_item to i_item.
wa_subitem-subitem_qty = '1'.
wa_subitem-installation_point = wa_upload1-col5.
append wa_subitem to i_subitem.
endloop.
CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
EXPORTING
TESTRUN = ' '
ALL_ERROR = ' '
TABLES
BOMGROUP = i_bomgroup
VARIANTS = i_variant
ITEMS = i_item
SUBITEMS = i_subitem
MATERIALRELATIONS = i_header
ITEMASSIGNMENTS =
SUBITEMASSIGNMENTS =
TEXTS =
RETURN = i_return.
if i_return[] is initial.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
*write: /'BOM created:', stpo-stlnr.
else.
*if not i_return[] is initial.
loop at i_return.
IF i_return-TYPE = 'E'.
errmsg-type = i_return-type.
errmsg-line = i_return-message.
append errmsg.
ULINE /1(108).
write:/ icon_led_RED as icon, i_return-MESSAGE.
ULINE /1(108).
ENDIF.
IF i_return-TYPE = 'W'.
errmsg-type = i_return-type.
errmsg-line = i_return-message.
append errmsg.
ULINE /1(108).
write:/ icon_led_YELLOW as icon, i_return-MESSAGE.
ULINE /1(108).
ENDIF.
ENDLOOP.
*write: / i_return-id, i_return-number, i_return-message(80).
*endloop.
*write: /'Error'.
endif.
ENDFORM. " f_call_bapiHi shashi,
Thanks for ur help.i tried after passing the group but it is giving same error.
i am getting the error
"Error/warning when checking the structure of the BOM group with ID= test"
i am gettig the above error when i put bomgroup-bom_group_identification = 'TEST'.
whatever i am putting in this field, the same error is comming having different value.
if i put--- bomgroup-bom_group_identification = ' '. then i will get error
"Error/warning when checking the structure of the BOM group with ID=
if i omit that field, then also , i am getting same error.
plz suggest what r the fields i need to pass for BOMGROUP structure for that bapi?
regards
pabitra -
Error while calling BI Publisher from Forms 10g using Webservice - Urgent !
Hi,
I am calling a BI Publisher(10.1.3.4.1) webservice from the Forms 10g (10.1.2.0.2). I developed a jar file which works fine when I run from the Jdeveloper. I have successfully attached jar file to the Forms 10g but when I am calling from the when-button-pressed trigger I am getting beow error
Exception: java.lang.Exception: java.lang.NoSuchMethodError: oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.setPreemptiveBasicAuth(Z)V
Thanks in advanceWhat steps did you follow to successfully attached jar file to the Forms 10g? To me, it sounds like you don't have your .jar file configured with Forms Builder and/or your App Server. Your .jar file needs to be added to the FORMS_CLASS_PATH in the default.env and the FORMS_CLASS_PATH registry entry. You will likely need to modify the formsweb.cfg also to include your .jar in the archive= or archive_jini= variables (depending on your JRE [Jinitiator or Sun JRE respectively]).
It could also be a dependency on an additional Java library. Is "setPreemptiveBasicAuth" a method that you created or it is a dependent method from an additional library?
Let us know this; as well as which Java version you're using.
By the way, with respects to your "Urgent!" request. You have to understand that forum contributers are purely voluntary - this is not our full-time job. If your issue is truely urgent, it is always best to open a Service Request (SR) with Oracle Support than to rely on the forum for an urgent reply! ;-)
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.
Edited by: CraigB on Sep 20, 2010 2:48 PM -
Creating EJB 3.0 project using Eclipse - Urgent
Hi,
Im new to EJB 3.0 and i need a urgent help please. I have created a EJB Project that uses JPA to Fetch data from Oracle 10g DB. But the problem is how to i get this project connect to DB? where do i need to do the Datasource maping and what would be the params? an example would be of real help? (On Deployment i get jta-datasource not found error)
I have also created a Enterprise Application Project. Do i have to do the Datasource mapping here?
I also want to create a Axis Webservice for a class that i have in my EJB Project. Can i create it in Eclipse. If so how can I?
Please share any helpful link or tutorial or Example.
I have tried google search and tried many blogs but no luck.
[EJB 3.0 + Axis Web Services + Eclipse + Jboss ]
Regards
PrateekStart by getting the Java EE tutorial at least v5 (it's free) and reading the sections that you are unclear about.
Basically you need to create a persistence.xml file that names a JDBC resuource. This is usually just the JNDI name of a resource that is configured on a server.
You then configure a datasource on your server that contains the actual DB connection settings and name it the same as the name in the persistence.xml.
The Java EE tutorial has sections that explain all of this.
Also, if you are starting out, I would not advise using tools to autogenerate projects/artifacts.
Doing it manually helps you understand how things work better. -
Hi All,
I have to change the tax jurisdiction code of ship to party to Tax Jusrisdiction code of Ship from Party (Delivering Plant). How can I achieve this using BAPI_SALESORDER_CHANGE. Please give some inputs.
Regards,
ShankarHi Nakul,
Thanks for immediate response. I tried to change the fields in BAPIADDR1, the Partner Number is updating but the address fields are not updating.
Any suggestions. URGENT Please -
Upload Task List Operation long Text using SAVE_TEXT-Urgent
Hi ,
I am trying to create Task List Operation Long text using the function module ..
SAVE_TEXT .I am passing the following keys
Text Name 300ATEST057 0000000900000009
Language EN
Text ID PLPO Long Text
Text Object ROUTING Texts for task list types
But the long texts are not getting updated in the Task lists operations .
Can anyone please suggest whether SAVE_TEXT will work for Operation long Texts or not Are we missing something
.This is pretty urgent requirement .Award points are assured.
Regards
Samhi,
use function module create text
check the sample code
DATA: BEGIN OF itab OCCURS 0,
asnum LIKE asmd-asnum, " Service No
text(5000) TYPE c, " Long Text
END OF itab.
*DATA: itab1 LIKE itab OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF itab1 OCCURS 0,
asnum LIKE asmd-asnum, " Service No
sequ type i, " Text Sequence
text(5000) TYPE c, " Long Text
END OF itab1.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras. " Language
Constants
Object ID for Long Text of Service Master
CONSTANTS:c_best TYPE thead-tdid VALUE 'LTXT',
c_material TYPE thead-tdobject VALUE 'ASMD'. " Object
for file splitting.
DATA: start TYPE i,
len TYPE i VALUE 92,
totlen TYPE i,
n TYPE i.
PARAMETERS p_file LIKE rlgrap-filename."input file
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
LOOP AT itab.
itab1-asnum = itab-asnum.
CLEAR: totlen,n, start.
totlen = STRLEN( itab-text ).
n = totlen / len.
n = n + 1.
DO n TIMES.
itab1-text = itab-text+start(len).
itab1-sequ = sy-index.
start = start + len.
APPEND itab1.
ENDDO.
ENDLOOP.
delete itab1 where text is initial.
SORT itab1 BY asnum sequ.
LOOP AT itab1.
dt_lines-tdformat = '*'.
dt_lines-tdline = itab1-text.
APPEND dt_lines.
Call the Function Module to Create Text
AT END OF asnum.
dl_lan = sy-langu.
WRITE : / itab-asnum.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = itab1-asnum
IMPORTING
output = itab1-asnum.
MOVE itab1-asnum TO dl_name.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Service No'(001),
itab1-asnum.
ELSE.
WRITE:/ 'Long Text Created Successfully for Service No'(002),
itab1-asnum.
ENDIF.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
in text file give first field records in capitals
regards
siva -
Currency Conversion using RRC1-Urgent!!
I have a requirement where I need to create a new currency conversion type. The query displays invoices posted in a particular period and their value in USD. The conversion rate gets posted somewhere in the middle of the period.The conversion happens such that the invoices posted before the date on which the rate was posted pick the previous period's rate, which those posted after that date use the new rate.
Business requires all invoices falling in a period to use the rate posted in that period and to use the previous month's rate only when the new rate is not available. Can someone let me know what variable time ref. I am supposed to use to acheive this.Any kind of response will be greatly appreciated as this is pretty urgent.
Thanks
Akhila.Hi Akhila,
I did not want to say, that the currency rates have to be maintained at a certain date. What I wanted to know is, if the <b>validity date</b> could be influenced as this would be the simpliest solution.
Nevertheless, what you need is a currency conversion type, that has a variable time reference and is based on 0CALDAY (or another appropriate time InfoObject). Check the period definiton for the time reference. Maybe, "End Month" (respectively "End of Period", ...) could solve the problem. As you probably know, all this has to be done in transaction RRC2.
If this does not help, it could be useful to describe the currency conversion type's definition as well as a description what validity date is stored in table TCURR.
Kind regards,
Stefan -
LANGUAGE TRANSLATE USING SQL(urgent)
Hi All
is there any sql function that convert the english character data into other language
as i have a table emp_info
having a column name obviously all data stored in english
and many reports use this as it is(in english)
but now i want to display in one report name in arabic
its urgent
plz helpIn general, no. Oracle has no idea how to translate arbitrary English text into arbitrary text in another language. There are a few companies that sell automated translation engines, but those generally work best with large quantities (i.e. multiple pages) of text and generally produce reasonably clunky output (akin to Babelfish).
Frequently, when you need to display data input in one language in multiple languages, you need to have a human being translate that data into the various languages and store the translations in separate rows along with a language identifier. This, in turn, generally means a decent amount of effort will be required to track data changes and send those to the translator(s), to process the inbound translated text, potentially to do a review of the translation, etc.
Justin -
Create Material Master using workflow (urgent)
Hello all,
We have an urgent client requirement to create material master using workflow.
Different views for the material master will be created by the relevant departments.
ex: Accouting 1, 2 will go to accounts deptt.
I have studied the workflow tutorial (20 units) on <b>SAP help</b> for leave of absence and have some understanding of objects, methods, bindings etc
I am however finding it very difficult to define the steps to create a workflow for material master. Are there any standard steps already defined that i can use.
Any help/inputs will be greatly appreciated.
Regards
S. DatarHi,
You need to speak to a workflow consultant.
You can get workflow to do many things (including creating a material master) but it takes a lot of coding and design.
For those of you who think that workflow is just used for the standard SAP workflow tasks, you have to realise that workflow is far more powerful and far more useful than many people think.
It is always referred to as "Event triggered messaging" but it is more accurate to call it "Event triggered events".
Within workflow you can chain together many different transactions and or ABAPS and so you can get it to do virtually anything you want (as long as you know how).
In this case you need the workflow to trigger an ABAP or BTCI session etc. that works through the MM01 transaction. It is relatively easy to get it to do this, but I am not technical enough to be able to help with the steps involved (sorry)
Steve B -
HTMLB Interface using XHTMLB: Urgent
Hi All,
Please visit the following link (<a href="http://help.sap.com/saphelp_nw04/helpdata/en/04/2ade41afba9c39e10000000a155106/frameset.htm">XHTMLB</a>).
This link also have two examples. Please look to these as well.
<b>1) Example using a GridLayout component.
2) Example using a TableView component.</b>
I could not make out how to use these xml files mentioned which are using the htmlb tags in the XML file for generating the UI.
I have searched on Google as well but could not get any other example for using XHTMLB. <b>The links I get from search are all related to BSP applications. But I want to use this using Java.</b>
Please can anybody help me in solving this problem!! Its a urgent requirement. Helpful answers will be definately rewarded.
Regards
PraveshIt doesn't look like you are using any of your error clusters... this is a big no-no. You need to propogate the errors through your code and wiring them also makes sure your code is running in the right order.
In your first case structure you have the VISA Open and VISA Read right next to each other without their error clusters wired. This means that the Open is not necessarily happening before the Read.
(You are also only reading 1 byte there, I don't know if that was intended, but you might need to read more than 1 byte.)
Your timeout on your VISA is set to "4294967295". You might want to lower that so that your code doesn't just sit. Timeouts are helpful as long as they're set reasonably.
Handle your error clusters and give it a try again to see if that fixes anything.
Edit: looking back at your code, that first 1 byte read mixed with your Open/Read situation is probably your issue if everything else is set up correctly. You're reading 1 byte and then parsing it in to a bunch of other information, which means 1 byte is not enough. Set your timeout higher and read more bytes. If not enough bytes come in, it will timeout and give you whatever did come in. Ideally you would know how many bytes you're looking for. -
Hi,
I had a small doubt, I want to implement a scenario where in if i post a xml file in the specific directory i need to get that xml data in a user defined table in R/3 sytem.
To do this can i use a proxy. By defining in SPROXY Transaction.
Thanks in advanceHi,
That's a good idea to use proxy.
Your scenario should look like that:
File->XI->Proxy
Inside generated proxy just put the code which will add data to the table and handle all errors.
Please check this blog:
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
Regards,
Wojciech
Reminder: please reward points for good answer -
ERROR:ORA-01591: lock held by in-doubt distributed transaction (URGENT)
hi
i m having this error when trying to access one table in oracle 10g database
ORA-01591: lock held by in-doubt distributed transaction 3.30.4119
i restarted the server but of no use. can anyone help?ORA-01591: lock held by in-doubt distributed transaction string
Cause: Trying to access resource that is locked by a dead two-phase commit transaction that is in prepared state.
Action: DBA should query the pending_trans$ and related tables, and attempt to repair network connection(s) to coordinator and commit point. If timely repair is not possible, DBA should contact DBA at commit point if known or end user for correct outcome, or use heuristic default if given to issue a heuristic commit or abort command to finalize the local portion of the distributed transaction.
go through
drop locked table
plz. to through below i hope it will help u.
Re: ORA-1591 error
Message was edited by:
user52 -
Doubts using NI cRIO 9012 and NI 9111..
Hello.. i'm using NI cRIO-9012, NI-9111, NI 9234, NI 9201 and NI 9474 in a school project... i started to do some easy things like sine wave acquisition in order to be more in touch with the labview hardware and software, the software that i'm using it's the LabView 2009 Service Pack 1.
i have acquired the sine wave with NI 9234 and NI 9201 and i couldn't find the diference between this two modules, is there any thing that i can do with one of them and couldn't do with the other? what's the main diference between them?
i couldn't realise either how many points am i acquiring at each period (acquisition rate i think) of the wave? (would you like me to send the code?)
from these two modules i got something, from the NI 9474 i've saw nothing yet... i was trying to generate PWM wave and i use the FPGA help wizard to generate the code, everything was fine but i couldn't get anything.
I hoping that someone can help me..
Thanks
Mário SilvaHi Maxime,
thanks for answering, i took a look at the links you gave me and one of them i've seen it before (cRIO Pulse Width Modulation) but i must tell you that i'm new at labview and those VI's are too much for me to carry yet =) ....
About the engine times i've told my doubt was, should i use Single Point Continuous or Single Point Timed I/O to create PWM??
I tried Single Point Continuous and i'll let you know the VI's i've used...I could see that by changing the values of Active Time and Period the brightness of the little led at the output port was changing too but there was nothing appening at the scope. The signal just change all to zero or all to my source signal (12V), there's no PWM oscillation.
About the code i have some questions too, i can't understand how some subVI's are created, how are they conected with the FPGA and HOST and what are they for..
there are some blocks that appear when i run the FPGA Wizard that i can't find when i creating a blank project, i think that they has to do with the subVI's i told you and some dependencies too.
I really appreciate your patience, thanks a lot.
The best regards
Mário Silva
Attachments:
Single Point Continuous PWM_fpga.vi 54 KB
Single Point Continuous PWM_Host.vi 312 KB
FPGA_doubt.png 123 KB -
Download file from URL using ADF (urgent help required)
We have the following requirement:
On clicking a button we need to download the file present at a particular location(we have the URL).
I have written the following in .jspx file :
<af:commandButton id="btn1" >
<af:fileDownloadActionListener contentType="text/plain; charset=utf-8" method="#{bean.getFile}"/>
</af:commandButton>
The corresponding method in bean is :
public void getFile(FacesContext facesContext, OutputStream outputStream) {
HttpServletResponse response = null;
ServletOutputStream ouputStream = null;
currUrl = getFileURL("ID", 281);
response =
(HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
try {
ouputStream = response.getOutputStream();
ouputStream.write(this.getFileBytes(), 0,this.getFileBytes().length);
ouputStream.flush();
ouputStream.close();
} catch (IOException ioe) {
System.out.println("IO Exception");
public byte[] getFileBytes() {
URLConnection urlConn = null;
InputStream iStream = null;
URL url;
byte[] buf;
int byteRead;
try {
url= new URL("http://hjhj:34104/test.pdf");
urlConn = url.openConnection();
iStream = urlConn.getInputStream();
buf = new byte[5000000];
byteRead = iStream.read(buf);
if (byteRead > 0) {
System.out.println("Downloaded Successfully.");
return buf;
} catch (FileNotFoundException fnfe) {
System.out.println("File not found Exception");
fnfe.printStackTrace();
} catch (Exception e) {
System.out.println("Exception:" + e.getMessage());
e.printStackTrace();
} finally {
try {
iStream.close();
} catch (IOException e) {
System.out.println("IO Exception");
e.printStackTrace();
System.out.println("File");
return null;
The file is opening in same window but in some encrypted format. My requirement is to :
1. Have a pop (as in Mozilla or IE) which asks if I want to save the file or open.
2. Depending on that the file should be opened in pdf format and not in browser same window neither in browser tab.Jdev version : 11.1.2.1.0
in .jspx file : we have a button. On clicking the button file from URL should be downloaded. I have used fileDownloadActionListener in commandButton. Corresponding code :
<af:commandButton id="btn1" >
<af:fileDownloadActionListener contentType="text/plain; charset=utf-8" method="#{bean.getFile}"/>
</af:commandButton>
in bean class : the method corresponding to fileDownloadActionListener is :
public void getFile(FacesContext facesContext, OutputStream outputStream) {
HttpServletResponse response = null;
ServletOutputStream ouputStream = null;
response =(HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
try {
ouputStream = response.getOutputStream();
ouputStream.write(this.getFileBytes(), 0,this.getFileBytes().length);
ouputStream.flush();
ouputStream.close();
} catch (IOException ioe) {
System.out.println("IO Exception");
public byte[] getFileBytes() {
URLConnection urlConn = null;
InputStream iStream = null;
URL url;
byte[] buf;
int byteRead;
try {
url= new URL("http://hjhj:34104/test");
urlConn = url.openConnection();
iStream = urlConn.getInputStream();
buf = new byte[5000000];
byteRead = iStream.read(buf);
if (byteRead > 0) {
System.out.println("Downloaded Successfully.");
return buf;
} catch (FileNotFoundException fnfe) {
System.out.println("File not found Exception");
} catch (Exception e) {
System.out.println("IO Exception");
The URL given in the code is for a file which can be a PDF file or an EXCEL file.
My requirement is when i click the button:
1. A pop should come (as in Mozilla or IE) which asks if I want to save the file or open.
2. if i click on save file should save in a particular location.
3. if i click on open it should open as PDF/EXCEL format and NOT in browser.
Message was edited by: 1001638
Maybe you are looking for
-
Exit Code 15 error on installation of CS 6 Design and Web Premium (Mac)
I've been trying to install CS6 on my Mac and having repeated installation errors. I actually signed up for the Creative Cloud product earlier in August and had the same installation errors, so I canceled my subscription. I thought the errors might b
-
Can't watch a programme and record at the same time.
I rang Sky who say it's nothing to do with them. Gave me Lovedigital number. Rang them they said contact my landlord. Rang Bristol City Council, they say it's nothing to do with them.
-
Installation of Adobe Acrobat X Pro at different location
Hi, I am using Adobe Acrobat X Pro. Now I need to use the same license copy in my new laptop. The adobe Acrobat X Pro in the old laptop shall be uninstalled. Please guide the steps to install the licensed copy with same serial number in my new laptop
-
How to Download XML File to internal table
Hi Friends, This is my urgent requirement. How to download XML File to Internal table. regards pauldharma
-
Hi, I was just wondering 2 things: 1. I cant remember if I ever filled out the w8ben form so I do not get taxed in the US, i cant find it anywhere on itunes, how can I find the form? 2. Im VAT registered, do I have to pay VAT on my earnings from appl