Formulae definition --- erroneous output
hi...
i have created a formulae as follow :
Formulae Q = (qty 1 ) x (qty 2 ) x (Weight 3 )/ 100
qty 1 = 21
qty 2 = 34
qty 3 = 42
Now if i use simple calculator then formulae q = 299.88
But in query execution, the output of Formulae Q = 296.99
I dont understand how this value got calculated by Query execution.
HOW TO SOLVE THIS ?
One thing i understood is that as i was multiplying Quantity and weight i used following defintion, so that units should not affect each other.......
Formulae Q = [nodim(qty 1 )] x [nodim(qty 2 )] x[nodim(weight 3 )] / 100
Still same issue:
Please advise
Do i have to use the Aggregation Tab or Calculation tab in properties of formulae ?
please advise..
the values are same if i click display data on infocube and is no different....
Thanks Mario,
Please tell me in detail and steps by step procedure how to do that...
I know how to use RSRT transaction.
But then for query execution which options to use , because it has several options....
Tell me exactly step by step approach and exact options to chose before i run the execute and debug my query...
and in that execution how to explore the Calculated index.
How to debug and determine those calculated index...
how to understand what is going wron where ?????
Similar Messages
-
Sqvi join of Mara and Marc with erroneous output
hello all
I have made a join between Mara and Marc in a SQVI query.
as input i select material according to material type, material group and plants.
output i want the material, the group and the maintenance view of material for each plant.
not all the plants have the same maintenance view but the query returns the material for each plant with wrong maintenance view!
what can it be?i am trying to achieve the following:
material 12345 is in plants A, B, C
plant A has maintenance status KBVE
plant B has maintenance status BVE
plant C has maintenance status KVB
when I run the view, with the tables MARA and MARC joined by the material number, i requested the material filtering by material group, material type and maintenance view E.
i want the system to return material 12345 for plant A and B with the respective statuses and exclude C because it does not have the status E.
instead it returns material 12345 with plants A, B, C and all with maintenance status KBVE
is it clearer now?
also, what is the difference between mainenace status in MARA and in MARC? -
Converting .rdf data model to xml output thru conc program
Dear Members :
I am trying to convert .rdf data model(Reports 10g) into XML tag, by creating Concurrent Program Report Definition, setting output type as XML.But when running the CP, getting following error:
XML Parsing Error: XML declaration not well-formed
Location: http://oel4.localdomain:8000/OA_CGI/FNDWRR.exe?temp_id=2393533895
Line Number 1, Column 31:<?xml version="1.0" encoding="&Encoding"?>
All I want is save output in Oracle Apps (11i) as .XML to be used later for XML publisher, in MS Word. The above procedure should have worked fine, as seen, in other posts.
Any clue, please ?
Thanks in advance.
Atanu
=================================================
It's solved by changing xml prolog value to <?xml version="1.0"?>. This is closed issue - thanks.
Edited by: user11184124 on Sep 19, 2010 11:29 AMOK, figured it out... when you double click on the field to add the ../, you actually need to click on Add Help Text and add the ../ here
-
hi all,
what is this output type?why it is needed?
i have developed a print prog for exise invoice
but not used output type anywhere to see the output of the form.
so my question is when this output type is reqired and when not?
whther i should create output type for the above print program also. whether it is good practice to have output type? if yes why and how can we create output type for my above program?
thanks & regards
sanjeev
Message was edited by: sanjeev singhHi,
quite interesting question, but difficult to put it in nutsehll.
Definition
An output type (or also a "condition type") summarizes messages of the same meaning. It contains parameters that are valid for all its assigned messages, for example appropriate partner functions.
BA00 (order confirmation), MAIL (internal message), KRML (credit limit exceeded)
Use
For each transmission medium, one form routine in a program is assigned to the output type. This form routine is called for processing the message (message status record).
For transmission medium 7: SAPoffice mail you can assign the output type title and text of mails which are used as default values in the condition records, that is to say, in the messages.
Try this link.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/19884743b111d1896f0000e8322d00/content.htm
Feel free to revert back.
--Ragu -
Output errors and interface resets.
hi Netpros,
Any idea as to what could be causing output errors and interfece resets on the radio interfaces .. The output interpreter from Cisco does not show any information about the radio interfaces
please see this output after clearing the counters
Dot11Radio0 is up, line protocol is up
Hardware is 802.11G Radio, address is 0015.c7a8.3d90 (bia 0015.c7a8.3d90)
MTU 1500 bytes, BW 54000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 1., loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:07, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/962/0 (size/max/drops/flushes); Total output drops: 181678
Queueing strategy: fifo
Output queue: 0/30 (size/max)
5 minute input rate 4000 bits/sec, 6 packets/sec
5 minute output rate 1000 bits/sec, 1 packets/sec
39213813 packets input, 3905641263 bytes, 0 no buffer
Received 53803 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
21236022 packets output, 3766719027 bytes, 0 underruns
11617 output errors, 0 collisions, 25 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Any input is much appreciated.Let's take a look at what you're worried about: 11,617 output errors divided by 21,236,022 packets output = 0.05% loss. Not really much to worry about there.
As for the 25 interface resets, that's one reset for every 849,441 output packets. Again, nothing really to worry about, but one does wonder why those numbers are not zero.
So how about taking a closer look at the following line you reported:
Input queue: 0/75/962/0 (size/max/drops/flushes); Total output drops: 181678
Notice in particular the "Input queue drops = 962" and more importantly, the "Total output drops = 181,678". You can find detailed troubleshooting information about these problems at: http://www.cisco.com/warp/public/63/queue_drops.html to help you figure out what the actual problem is and whether or not it can be rectified by fine tuning your parameters.
FYI: Here is a standard definition of Output related errors: (taken from http://www-commeng.cso.uiuc.edu/uiucnet/reports/glossary.html )
Output Errors
- Output errors are the sum of all the output errors that occur on an interface.
Out Success With Retry Errors
- Out Success With Retry errors are output errors which indicate that a frame successfully transmitted after one or more collisions. Out Success With Retry Errors are the number of frames that experienced a a collision and retransmit before success. The total collisions divided by the number of Out Success With Retry errors will provide the average number of collisions per packet transmitted with collisions.
Out of Window Collisions Errors
- Out of Window Collisions are a type of output error. Out of window collision errors occur when a frame in the process of being transmitted collides with another frame. This error usually occurs either when some interface on the network fails to defer or the network has too many stations. (See Late Collisions.)
Output Discard Errors
- Output Discards are output errors that occur when the router has to throw a packet out instead of queuing it for transmission on the Ethernet. Output discard errors usually indicate that the network has more traffic than it can handle. They may also indicate a software discard such as no route to destination.
Output FIFO Overrun Errors
- FIFO Overruns are a type of output error. Output FIFO Overruns occur when the output queue in the adapter underflowed while putting a frame on the wire. This problem occurs when the interface is not receiving bits of the frame fast enough.
Walt -
Linux-ck prerelease 3.3.0-1 thread - no discussion in the AUR plz
Mods - please don't delete this thread. I started it to allow early adopters of linux-ck in the 3.3.x tree to post issues in a place that isn't the AUR.
This thread is beneficial because:
1) It allows issues to get worked out prior to a broad release of the package series.
2) It does not bother folks subscribed to the aur page.
3) Keep the signal-to-noise ratio high in the aur page.
Since so many people want to start using linux-ck in the 3.3.x tree but we still don't have a stable version of BFQ yet. So:
On the linux-ck AUR page, graysky wrote wrote:Linux-ck-3.3.1-1 ---> http://repo-ck.com/3.3.x-prerelease/tar … src.tar.gz
Matching nvidia-ck ---> http://repo-ck.com/3.3.x-prerelease/tar … src.tar.gz
Matching broadcom-wl-ck ---> http://repo-ck.com/3.3.x-prerelease/tar … src.tar.gz
Last edited by graysky (2012-04-03 13:03:36)D'oh, Sorry about that, it definitely makes more sense to use the forums. Deleted my AUR comments and moved my posts here.
Not sure if it's just me, but I am unable to build a working kernel with the 3.3.0-1 source package. My server (i686; SysVInit with XFS Root) won't even compile it. My laptop (x86_64; Systemd with compressed BTRFS Root) is able to compile it, but it complains that the disk is full on any action requiring disk writes (as a result, most of my daemons fail, and I cannot launch X). This doesn't occur when touching my ext2 /boot partition and df reports that the partition isn't full. I'm using localmodconfig and nconfig (changing only the processor type and tick frequency), though the same thing happens with an unaltered PKGBUILD.
The server's compile fails with this output:
LD [M] sound/soc/snd-soc-core.ko
LD [M] sound/soundcore.ko
LD [M] sound/synth/emux/snd-emux-synth.ko
LD [M] sound/synth/snd-util-mem.ko
LD [M] sound/usb/6fire/snd-usb-6fire.ko
LD [M] sound/usb/caiaq/snd-usb-caiaq.ko
LD [M] sound/usb/snd-usb-audio.ko
LD [M] sound/usb/misc/snd-ua101.ko
LD [M] sound/usb/snd-usbmidi-lib.ko
LD [M] sound/usb/usx2y/snd-usb-us122l.ko
LD [M] sound/usb/usx2y/snd-usb-usx2y.ko
IHEX firmware/adaptec/starfire_rx.bin
IHEX firmware/adaptec/starfire_tx.bin
IHEX firmware/bnx2/bnx2-mips-09-6.2.1a.fw
IHEX firmware/bnx2/bnx2-rv2p-09ax-6.0.17.fw
IHEX firmware/bnx2/bnx2-rv2p-09-6.0.17.fw
IHEX firmware/bnx2/bnx2-mips-06-6.2.1.fw
IHEX firmware/bnx2/bnx2-rv2p-06-6.0.15.fw
IHEX firmware/cxgb3/t3b_psram-1.1.0.bin
IHEX firmware/cxgb3/t3c_psram-1.1.0.bin
IHEX firmware/cxgb3/t3fw-7.10.0.bin
IHEX firmware/cxgb3/ael2005_twx_edc.bin
IHEX firmware/cxgb3/ael2005_opt_edc.bin
IHEX firmware/cxgb3/ael2020_twx_edc.bin
IHEX firmware/radeon/R100_cp.bin
IHEX firmware/radeon/R200_cp.bin
IHEX firmware/radeon/R300_cp.bin
IHEX firmware/radeon/R420_cp.bin
IHEX firmware/radeon/RS690_cp.bin
IHEX firmware/radeon/RS600_cp.bin
IHEX firmware/radeon/R520_cp.bin
IHEX firmware/radeon/R600_pfp.bin
IHEX firmware/radeon/R600_me.bin
IHEX firmware/radeon/RV610_pfp.bin
IHEX firmware/radeon/RV610_me.bin
IHEX firmware/radeon/RV630_pfp.bin
IHEX firmware/radeon/RV630_me.bin
IHEX firmware/radeon/RV620_pfp.bin
IHEX firmware/radeon/RV620_me.bin
IHEX firmware/radeon/RV635_pfp.bin
IHEX firmware/radeon/RV635_me.bin
IHEX firmware/radeon/RV670_pfp.bin
IHEX firmware/radeon/RV670_me.bin
IHEX firmware/radeon/RS780_pfp.bin
IHEX firmware/radeon/RS780_me.bin
IHEX firmware/radeon/RV770_pfp.bin
IHEX firmware/radeon/RV770_me.bin
IHEX firmware/radeon/RV730_me.bin
IHEX firmware/radeon/RV730_pfp.bin
IHEX firmware/radeon/RV710_me.bin
IHEX firmware/radeon/RV710_pfp.bin
IHEX firmware/e100/d101m_ucode.bin
IHEX firmware/e100/d101s_ucode.bin
IHEX firmware/e100/d102e_ucode.bin
IHEX firmware/korg/k1212.dsp
IHEX firmware/ositech/Xilinx7OD.bin
IHEX firmware/ess/maestro3_assp_kernel.fw
IHEX firmware/ess/maestro3_assp_minisrc.fw
IHEX firmware/yamaha/ds1_ctrl.fw
IHEX firmware/yamaha/ds1_dsp.fw
IHEX firmware/yamaha/ds1e_ctrl.fw
IHEX firmware/yamaha/yss225_registers.bin
==> ERROR: A failure occurred in build().
Aborting...
In reply to Zucca's Comment:
Temp space isn't an issue, I've got my boxes setup to handle kernel compiles. The server uses a 2 GB reiserfs partition, and the laptop uses a 3.5 GB tmpfs mount. I'm not using zramswap, so that wouldn't be causing issues either.
Would there be any odd compiler/log output if I were to run out of inodes? The server's compile abruptly stops with no erroneous output aside from makepkg saying that the build failed. The laptop only has issues under the 3.3 CK kernel, 3.2.12-1-ARCH is working normally (3.2.13-1-CK was fine too). -
STO mail : pdf attachment has an error 'file damage' when try to open it
Dear expert,
I need to send an e-mail to the vendor with the sto list as attachment at the email.
I managed to send email to external addresee and made the pdf attachment, BUT somehow when I open the attachment it has an error says "Adobe Reader could not open xx.pdf because it is either not a supported file type or because the file has been damaged(for axample, it was sent as an email attachment and wasn't corectly decoded)."
Really need your experties to help me. Here is my abap coding to send email and do the pdf attachment at the new ouptput type to send email.
TYPES: BEGIN OF lty_drad,
doknr TYPE drad-doknr,
END OF lty_drad,
BEGIN OF lty_recpt,
smtp_addr TYPE ad_smtpadr,
END OF lty_recpt.
DATA: lt_doc TYPE STANDARD TABLE OF docs,
lt_recpt TYPE STANDARD TABLE OF lty_recpt,
lt_tline LIKE tline OCCURS 0 WITH HEADER LINE,
lt_data TYPE solix_tab,
lt_docu TYPE STANDARD TABLE OF lty_drad,
lt_docfiles TYPE STANDARD TABLE OF bapi_doc_files2,
lw_tline LIKE LINE OF lt_tline,
lw_docu LIKE LINE OF lt_docu,
lw_docfiles LIKE LINE OF lt_docfiles,
lw_objdes TYPE tnati-objdes,
lt_text TYPE bcsy_text,
lw_recpt TYPE adr6-smtp_addr,
lw_adrnr TYPE lfa1-adrnr,
lw_object TYPE drad-objky,
lw_doknr TYPE drad-doknr,
lw_return TYPE bapiret2,
lw_xcontent TYPE xstring,
client TYPE REF TO if_http_client,
url TYPE string,
lw_subrc TYPE sysubrc,
response TYPE REF TO if_http_response,
lw_message1 TYPE string,
sent_to_all TYPE os_boolean,
bin_filesize type i.
CONSTANTS: lc_dokar_srm TYPE drad-dokar VALUE 'SRM',
lc_type TYPE so_obj_tp VALUE 'RAW'.
CLASS-DEFINITIONS
DATA: send_request TYPE REF TO cl_bcs.
DATA: document TYPE REF TO cl_document_bcs.
DATA: sender TYPE REF TO cl_sapuser_bcs.
DATA: recipient TYPE REF TO if_recipient_bcs.
DATA: exception_info TYPE REF TO if_os_exception_info,
bcs_exception TYPE REF TO cx_bcs.
RANGES: lr_po_pr FOR drad-objky.
DATA: lw_banfn TYPE ekpo-banfn,
lw_bnfpo TYPE ekpo-bnfpo.
IF nast-nacha = '5'. "8
Create recipient and check if exist
Get email ID
start commented by sapnislina 21.12.06
SELECT SINGLE adrnr FROM lfa1 INTO lw_adrnr
WHERE lifnr = p_ekko-lifnr.
IF sy-subrc NE 0.
PERFORM protocol_update
USING '303' 'Address of Vendor:' ekko-lifnr 'not found' space
p_retco = sy-subrc.
EXIT.
ENDIF.
end commented by sapnislina 21.12.06
SELECT smtp_addr INTO CORRESPONDING FIELDS OF TABLE lt_recpt
FROM adr6
WHERE addrnumber = p_ekko-adrnr. "lw_adrnr.
IF lt_recpt[] IS INITIAL.
PERFORM protocol_update
USING '303' 'Email address(es) does not exist for vendor'
p_ekko-lifnr space space.
p_retco = sy-subrc.
EXIT.
ENDIF.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
use_otf_mc_cmd = 'X'
IMPORTING
bin_filesize = bin_filesize
TABLES
otf = otfdata[]
doctab_archive = lt_doc
lines = lt_tline
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.
IF sy-subrc <> 0.
PERFORM protocol_update
USING '303' 'PO Convertion from OTF to PDF failed'
space space space.
p_retco = sy-subrc.
EXIT.
ENDIF.
Get object description from mail title of output types
SELECT SINGLE objdes INTO lw_objdes
FROM tnati
WHERE spras = sy-langu
AND kappl = nast-kappl
AND kschl = nast-kschl.
CONCATENATE lw_objdes ekko-ebeln INTO lw_objdes SEPARATED BY
space
DATA L_TXT(255) TYPE C.
DATA L_TXT2(255) TYPE C.
CONCATENATE 'STO' EKPO-EBELN 'Created for' EKPO-WERKS '/'
EKPO-LGORT
'Supply Plant' EKKO-RESWK into l_txt separated by space.
lw_objdes = l_txt.
CONCATENATE 'STO' EKKO-EBELN INTO L_TXT2 SEPARATED BY SPACE.
APPEND L_TXT2 TO LT_TEXT.
APPEND lw_objdes TO lt_text.
Instantiate
CLASS cl_cam_address_bcs DEFINITION LOAD.
CLASS cl_abap_char_utilities DEFINITION LOAD.
insert by sapnislina 22.12.06
DATA : CONTENT_OUT TYPE SOLIX,
LINE_WIDTH_SRC TYPE I,
POS_OUT TYPE I,
POS_IN TYPE I,
LEN_OUT TYPE I.
DATA OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF CONTENT_IN,
LINE TYPE TLINE,
DUMMY TYPE TLINE,
END OF CONTENT_IN.
TYPES PDF_RAW TYPE X LENGTH 268.
FIELD-SYMBOLS <PDF_BIN> TYPE PDF_RAW.
DESCRIBE FIELD CONTENT_IN-LINE LENGTH LINE_WIDTH_SRC IN BYTE MODE.
REFRESH lt_data.
CLEAR CONTENT_OUT.
POS_OUT = 0.
LOOP AT OTFDATA INTO CONTENT_IN-LINE.
ASSIGN CONTENT_IN TO <PDF_BIN> CASTING.
MOVE <PDF_BIN> TO CONTENT_OUT-LINE+POS_OUT.
ADD LINE_WIDTH_SRC TO POS_OUT.
WHILE POS_OUT >= 255.
APPEND CONTENT_OUT TO lt_data.
CLEAR CONTENT_OUT.
SUBTRACT 255 FROM POS_OUT.
IF POS_OUT > 0.
POS_IN = LINE_WIDTH_SRC - POS_OUT.
MOVE <PDF_BIN>+POS_IN TO CONTENT_OUT-LINE.
ENDIF.
ENDWHILE.
ENDLOOP.
IF POS_OUT > 0.
APPEND CONTENT_OUT TO lt_data.
ENDIF.
end inserted by sapnislina 22.12.06
starting to create attachment to mail
TRY.
CLEAR send_request .
Create persistent send request
send_request = cl_bcs=>create_persistent( ).
Build the document
document = cl_document_bcs=>create_document(
i_type = lc_type "RAW
i_text = lt_text "def of output type
i_length = '12'
i_subject = lw_objdes ).
Attached the document object
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = lw_objdes "definition of output
type
i_attachment_size = '12'
i_att_content_hex = lt_data.
completed first part to attached PO (pdf format) as attachment
Now attach the PO related attachments to the mail..
.... need to read from table DRAD and get all the attachment per PO
at run time
REFRESH: lr_po_pr."lt_return.
CLEAR: lr_po_pr,lw_return.
MOVE 'ICP' TO lr_po_pr.
CLEAR: lw_object.
completed second part for PO related attachments
Now prepare to send mail
Add document to send request
CALL METHOD send_request->set_document( document ).
Get sender object
sender = cl_sapuser_bcs=>create( sy-uname ).
Add sender
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
LOOP AT lt_recpt INTO lw_recpt
WHERE NOT smtp_addr IS INITIAL.
recipient = cl_cam_address_bcs=>create_internet_address(
lw_recpt ).
Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'X'.
CLEAR recipient.
ENDLOOP.
Send the document
CALL METHOD send_request->send
RECEIVING
result = sent_to_all.
Catch any exception
CATCH cx_bcs INTO bcs_exception.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
msg_arbgb = bcs_exception->msgid
msg_nr = bcs_exception->msgno
msg_ty = bcs_exception->msgty
msg_v1 = bcs_exception->msgv1
msg_v2 = bcs_exception->msgv2
msg_v3 = bcs_exception->msgv3
msg_v4 = bcs_exception->msgv4
EXCEPTIONS
OTHERS = 1.
p_retco = sy-subrc.
ENDTRY.
ENDIF.
IF NOT result-tdfaxid IS INITIAL OR " 422131
NOT result-tdmailid IS INITIAL. " 422131
CLEAR syst-msgv1. " 422131
IF NOT result-tdfaxid IS INITIAL. " 422131
syst-msgv1 = result-tdfaxid. " 422131
ELSEIF result-tdmailid IS INITIAL. " 422131
syst-msgv1 = result-tdmailid. " 422131
ENDIF. " 422131
CALL FUNCTION 'NAST_PROTOCOL_UPDATE' " 422131
EXPORTING " 422131
msg_arbgb = 'VN' " 422131
msg_nr = '095' " 422131
msg_ty = 'I' " 422131
msg_v1 = syst-msgv1 " 422131
EXCEPTIONS " 422131
OTHERS = 1. " 422131
ENDIF. " 422131
IF result-userexit EQ 'C' OR
result-userexit EQ 'E'.
p_retco = '9'.
ENDIF.
ENDFORM. " ENDE
end inserted
Regards
NislinaHi Nislina,
Could you please let me know how do you solve this issue.
Code:
if lt_binary[] is not initial.
* add attachment to document
call method document->add_attachment
exporting
i_attachment_type = 'PDF'
i_attachment_subject = 'My Attachment'
i_att_content_hex = lt_binary.
endif.
Thanks & Regard's
Sateesh -
PCI-DIO-32HS (PCI-6533) setup problem
Hello
I am in the process of setting up a Windows XP-based Labview 7.1 system and I am encountering a frustrating problem. Just to make sure I provide enough details, I'll describe what I've done so far, step-by-step (sorry if this gets tedious):
First, I installed Labview and the NI-DAQ 7.3 drivers. I powered down the system and installed two PCI cards: a PCI-6031E and a PCI-DIO-32HS (PCI-6533) in PCI slots 1 and 2, respectively. I powered the system back up, went into MAX and configured the cards as follows:
PCI-6031E: Device 1; AI: Polarity/Range=-10.0V - +10.0V, Referenced Single Ended; AO: Polarity=Bipolar; Accessory=SCB-100
PCI-DIO-32HS: Device 2; Accessory=SCB-68
I then started up Labview and ran my VI. This VI has been in use for 2 years now on the same NI hardware, so it's been well-tested and works great on other systems. However, when I run it on this system, the PCI-DIO-32HS spits out an error, with "Digital Buffer Write" as the source, and with a code of -10843 (buffer underflow).
What's interesting is that I had this exact same problem when I was setting this system up in Mac OS 9. That time, I realized that the problem could have been due to the fact that I installed the hardware before I installed the software, so there may have been problems communicating with the device. By uninstalling everything and then re-installing it in the proper order, I solved the problem and was able to run the VI flawlessly. I'm assuming that these two problems are related in their nature, but this time around I was very careful to make sure that I did all of the setting up properly (I did it twice just to make sure. It did not work either time), so I'm not sure what could be the exact source of this one.
Please let me know if you have any ideas as to what the source of this problem might be. Like I said before, I think there's probably a resource problem that's causing a communication failure which results in no data being sent to the DIO card (hence the buffer underflow error), but I can't figure out where to look for such a problem or how to fix it. Obviously, I'm rather new to Labview and everything about it, so the help is greatly appreciated.
Thanks!Hi,
Thanks for the reply. I have run the test panels, and I have not generated any errors in them. I've verified that I can definitely do output, because LEDs on my equipment turn on when turn on output on certain channels.
So, I agree that the problem lies in the VI. I was not the author of the VI, however, so I'm not sure where to look. The author was also kind enough to have not provided any documentation. What would be a good example VI to run? I've never looked at any of them.
As for how the program works, I don't believe there's any actual input coming back into the DIO-32HS. The system is used for electrophysiology. The DIO sends a signal to flash LEDs at given intervals. Electrodes then pick up an electrical signal from the retina of a mouse, which is sent to the DAQ card and written to a file. I have run complete tests, and proper data files were generated and contained expected voltage values. The only part that's not working right now is that the LEDs aren't flashing due to this error.
I did some digging around in the program, but I couldn't come up with much. I verified that the program expects the DIO card to be Device 2, so there's no problem there. Aside from that, I couldn't find anything that seemed like it would apply.
Thanks for your help! I have no experience with Labview, yet I've found myself placed in the "Labview expert" position over here, so I've kind of been forced into a sink-or-swim type crash course where I learn as I go. -
HP Pavilion dv6135nr Notebook internal speakers have stopped working. I can hear sounds on headphones but no sound via the internal speakers. A search on HP customer care for my notebook yielded the download recommendation below, even though I had not stated my problem. However, executing this download did NOT resolve the problem. Please advise regarding resolution to inoperable speakers. I do not know if all of my sound and audio settings are correct, but the mute is not on and the volume controls are properly set. The default device is Conexant High Definition Audio output, per the sound and audio devices properties hardware tab the device status states "this device is working properly." Is it possible that a Skype or Foxfire update is in conflict with this device? If so, how do I resolve this situation?
Thank you.
Description: This package contains the driver for the Conexant High Definition Audio Chip.
PURPOSE: Routine Details and specifications File name:
sp34204.exe [1/1, 1.38M]
System requirements: HP SoftPaq Number SP32646, "Microsoft Universal Audio Architecture (UAA) Bus Driver for High Definition Audio," (or later) must be installed on the notebook before installing this SoftPaq. Look for HP SoftPaq Number SP32646 (or later) in the Software and Driver Downloads section of the www.hp.com website. Released: 2006-12-01 Version: 3.26.0.0 A Compatibility: Microsoft Windows XP Professional, Microsoft Windows XP Home Edition, Microsoft Windows XP Media Center, Microsoft Windows XP Fix/Enhancement: Fixes issue where the notebook speakers do not work after headphones or earphones are used for a while and then unplugged.Re: Fixes issue where the notebook speakers do not work after headphones or earphones are used for a while and then unplugged.
HOW DO YOU FIX THIS?? I cannot find the correct Microsoft Universal Audio Architecture (UAA) Bus Driver for High Definition Audio that works with my computer...
My computer:
VISTA
HP Compaq 2230s Notebook PC
Everytime I use my headphones for more than an hour or two, the **bleep** audio will not play on my notebook's speakers, just through the headphones. Usually restarting a few times resolves the problem, but not this time. If I knew that HP computers sucked this much I would never have spent so much money on this one!!!
Can you please tell me how to fix this problem once and for all? Thanks!! -
Dear friends,
I need to do the following task.
For Movement 911, I need to remove hard coding (PROD) and incorporate the following logic in the script program.
Data is maintained (set-id:z_vendor_assembly_area) in both Format Group (PRTCLASS) and Symbolic name (LNAME). Above set-id already contained PROD against cost center No. Hard coding should be removed and apply processing logic as follows:
Read PRTCLASS for LNAME = PROD
Extract FROM
If Vendor No. = FROM in the layout form then show Cost Center = LNAME
I don't know where to incoporte the coding in the below program, Pls anyone give me the solution to where to incorporate the coding and how.
script Coding:
TABLES: ltak, ltap, *ltap, rldru, *rldru, mgef, itcpo, usr01,
t300, t300t, t331, t333b, t646g, t646h, tsp03, t340d,
t329f, t329d, t329p, *t329p, t329a, t301t, *t301t, lqua,
rl03t, *rl03t, lein, t302t, *t302t, cpkme, lprdr,
likp, kna1, mseg, afpo, t003p, marc, makt, stxl, lips,
lubu, cobl, ekpo, t157e, caufv, ltbp, mkpf, t156t, lfa1,
resb, plpo, pkhd, t001w, mara, vbap, eket, qals, t024,
ekko, vbak, sadr, t001l, t496f, t496r, tvapt, pkps,
tvaut, vbpa, pa0105,
table usr03 was removed for 3.1h to 4.6 conversion.
tables usr21 & adrp were added instead.
usr21, adrp,
for the Ethis project Aug 2001 //EB
inob, kssk, ksml, ausp, cawnt, cabnt, prps, prps,mseg, zmapd,
SR29757 //EB sept 2002
t333,
SR#76047
afko, aufk,
SR#82839
viora, jsto, tj30, tj30t.
*{ INSERT for Service Pack changes Jan 20001 // EB.
DATA: humla TYPE c.
*} INSERT
DATA: BEGIN OF addr_groups OCCURS 3.
INCLUDE STRUCTURE adagroups.
DATA: END OF addr_groups.
DATA: BEGIN OF addr_sel.
INCLUDE STRUCTURE addr1_sel.
DATA: END OF addr_sel.
DATA: BEGIN OF addr_val.
INCLUDE STRUCTURE addr1_val.
DATA: END OF addr_val.
4.7 Upgrade Issue Resolution
DATA: DRUCKVERBUCHER TYPE C. "Steuert ob Druck aus Verbu.
data etikett type c.
DATA: batchsrc LIKE mseg-charg, "GV1
batchdest LIKE mseg-charg,
destmatnr(18) TYPE c,
binflg TYPE c,
ctrlcycle LIKE pkhd-pknum,
diff TYPE i,
fstprnt TYPE c VALUE 'X', "GV1
item_count(4) TYPE n,
prntmess TYPE c VALUE 'X', "GV1
negative TYPE c,
hotpick TYPE c,
key(12) TYPE c,
objnr(22) TYPE c,
srcmatnr(18) TYPE c,
stattext(40) TYPE c,
valuatsrc LIKE mseg-bwtar, "GV1
valuatdest LIKE mseg-bwtar, "GV1
prtbatch TYPE c, "GV1
prtvaluat TYPE c, "GV1
supparea LIKE pkhd-prvbe,
status_drpz LIKE tj02-istat VALUE 'I0210',
tot_qty TYPE i, "GV1
vendcar(10) TYPE c,
vendint like mseg-lifnr,
vendint TYPE i,
wrkeof TYPE c. "GV1
DATA: BEGIN OF t_altbin OCCURS 10, "GV1
bin(6) TYPE c,
END OF t_altbin,
bin1(6) TYPE c, "GV1
bin2(6) TYPE c, "GV1
bin3(6) TYPE c, "GV1
bin4(6) TYPE c, "GV1
bin5(6) TYPE c, "GV1
bin6(6) TYPE c, "GV1
bin7(6) TYPE c, "GV1
bin8(6) TYPE c, "GV1
bin9(6) TYPE c, "GV1
bin10(6) TYPE c. "GV1
DATA: BEGIN OF t_qty OCCURS 100, "GV1
bin LIKE ltap-nlpla,
qty TYPE i,
matnr LIKE ltap-matnr,
END OF t_qty. "GV1
DATA: p_proto LIKE rldru-proto.
*data con_program_data like sy-repid value 'RLVSDR00'.
DATA con_program_data LIKE sy-repid VALUE 'ZPJSDR00'.
*{ Added for SR:293067
DATA: BEGIN OF mseg_data_0 OCCURS 10,
aufnr LIKE mseg-aufnr,
mblnr LIKE ltak-mblnr,
mjahr LIKE ltak-mjahr,
mbpos LIKE ltap-mbpos,
END OF mseg_data_0.
DATA: mseg_data LIKE mseg_data_0.
DATA: x(1) TYPE c.
*........Reportspezifische Parameter und Select-Options.................
SELECTION-SCREEN BEGIN OF BLOCK xxx WITH FRAME TITLE text-010.
PARAMETERS:
druckkz LIKE rldru-drukz,
edrucker LIKE rldru-ldest,
spoolpar LIKE rldru-spool,
drucken AS CHECKBOX DEFAULT 'X'. "Kz Liste drucken
SELECTION-SCREEN SKIP 1.
PARAMETERS:
tasch AS CHECKBOX DEFAULT 'X', "Druck TA-Schein
lesch AS CHECKBOX DEFAULT 'X', "Druck LE-Schein
letasch AS CHECKBOX DEFAULT 'X', "Druck LE-TA-Schein
leinh AS CHECKBOX DEFAULT 'X'. "Druck LE-Inhaltsverzeichnis
SELECTION-SCREEN END OF BLOCK xxx.
Interne Tabellen *
*........Tabelle der TA-Positionen.....................................
DATA: BEGIN OF tap OCCURS 50.
INCLUDE STRUCTURE ltap.
INCLUDE STRUCTURE ltap1.
DATA: END OF tap.
DATA: BEGIN OF lsperr OCCURS 50.
INCLUDE STRUCTURE lein.
DATA: END OF lsperr.
DATA BEGIN OF options1.
INCLUDE STRUCTURE itcpo.
DATA END OF options1.
DATA: BEGIN OF prlst_tmp.
INCLUDE STRUCTURE print_co.
DATA: END OF prlst_tmp.
DATA: BEGIN OF l_qamvtab OCCURS 10.
INCLUDE STRUCTURE qamv.
DATA: END OF l_qamvtab.
DATA: BEGIN OF l_qamv_save.
INCLUDE STRUCTURE qamv.
DATA: END OF l_qamv_save.
*DATA: BEGIN OF G_QAMV_TAB OCCURS 10.
INCLUDE STRUCTURE QAMV.
*DATA: END OF G_QAMV_TAB.
DATA: BEGIN OF qamvtab OCCURS 10.
INCLUDE STRUCTURE qamv.
DATA: END OF qamvtab.
DATA: BEGIN OF qapotab OCCURS 10.
INCLUDE STRUCTURE qapo.
DATA: END OF qapotab.
DATA: BEGIN OF qasvtab OCCURS 10.
INCLUDE STRUCTURE qasv.
DATA: END OF qasvtab.
DATA: BEGIN OF i_qals.
INCLUDE STRUCTURE qals.
DATA: END OF i_qals.
DATA: i_first_print(1) VALUE 'X',
i_print_message LIKE tq30-kzmessage VALUE 'X'.
DATA: BEGIN OF qsperr OCCURS 100.
INCLUDE STRUCTURE lqua.
DATA: END OF qsperr.
*........Interne Tabelle zur Aufnahme der Druckinformationen zu dem.....
*........Druck von Palettenscheinen. ...................................
*........(Achtung: wird auch gebraucht im RLKOMM00-Kommilistendruck)....
DATA: BEGIN OF int_ledruck OCCURS 100,
drukz LIKE t329f-drukz,
formu LIKE t329f-formu,
tddelete LIKE t329p-tddelete,
tdnewid LIKE t329p-tdnewid,
tdimmed LIKE t329p-tdimmed,
tddataset LIKE t329p-tddataset,
tdcopies LIKE t329p-tdcopies,
ldest LIKE t329d-ldest,
le_schtyp,
sorco(4),
lenum LIKE lein-lenum,
vltyp LIKE ltap-vltyp,
vlber LIKE ltap-vlber,
vlpla LIKE ltap-vlpla,
nltyp LIKE ltap-nltyp,
nlber LIKE ltap-nlber,
nlpla LIKE ltap-nlpla,
lgnum LIKE ltap-lgnum,
nidr2 LIKE t329d-nidr2,
nidr3 LIKE t329d-nidr3,
nidr4 LIKE t329d-nidr4,
END OF int_ledruck.
........Protoco of Printer search instead of print out...............
DATA: BEGIN OF iproto OCCURS 20.
INCLUDE STRUCTURE lprdr.
DATA: END OF iproto.
Einzelfelder *
DATA: flg_lgtyp_barcode(1) TYPE c VALUE ' '.
DATA: flg_form_open TYPE c,
flg_tadruck_aut TYPE c,
flg_tadruck_man TYPE c,
flg_tadruck_wie TYPE c, " Sapscript oder Abap
flg_taplg1 TYPE c,
flg_taplg2 TYPE c,
flg_druck_umbuch TYPE c,
flg_erster_umbuch TYPE c,
flag for vendors with more than one address //EB Aug99
flg_vendor_addr TYPE c,
erster_durchlauf TYPE c,
mvmt261-flag type c.
DATA: kz_sort_vonlagertyp TYPE c.
DATA: hlp_tapos LIKE ltap-tapos,
hlp_tapos_umbuch LIKE ltap-tapos,
sav_tapos LIKE ltap-tapos,
cnt_samml TYPE p. "Anz. Pos./Blatt
Umbuchungsspezifika.........................................*
DATA: u2_taplg LIKE rldru-taplg,
cnt_umb_pos TYPE c.
DATA: BEGIN OF u2_rl03t.
INCLUDE STRUCTURE rl03t.
DATA: END OF u2_rl03t.
DATA: BEGIN OF u2_ltap.
INCLUDE STRUCTURE ltap.
DATA: END OF u2_ltap.
Konstanten *
DATA: druckaufbereitung(16) TYPE c VALUE 'X_PAPER_NT ',
con_blank LIKE ltap-vorga VALUE ' ',
con_eins LIKE ltap-tapos VALUE '0001',
con_tb LIKE ltap-vorga VALUE 'TB',
con_u1 LIKE ltap-vorga VALUE 'U1',
con_u2 LIKE ltap-vorga VALUE 'U2',
con_schein_le VALUE '1', "LE-Schein
con_schein_leta VALUE '2', "LE-TA-Schein
con_schein_lei VALUE '3', "LE-Inhaltsverzeichnis
con_vorga_tl LIKE t342-vorga VALUE 'TL',
rfltn(18) TYPE c,
taplg(19) TYPE c,
*taplg(19) TYPE c,
talgn(15) TYPE c.
*.......Altlasten wegen gemeinsamer Includes............................
DATA: abap TYPE c VALUE 'A',
sapscript TYPE c VALUE 'S',
formular LIKE t329f-formu.
DATA: bar1 TYPE c,
bar2 TYPE c,
bar3 TYPE c,
bar5 TYPE c,
shipping TYPE c,
afsdesc LIKE caufv-ktext,
afsnum LIKE afpo-matnr,
engdesc LIKE makt-maktx,
engsernum LIKE afpo-charg,
destplan LIKE mseg-werks,
srcplan LIKE mseg-werks,
deststor LIKE mseg-lgort,
srcstor LIKE mseg-lgort,
destbin LIKE ltap-nlpla,
prodordnum LIKE afpo-aufnr,
collectord LIKE caufv-maufnr,
engnum LIKE caufv-stlbez,
sonum LIKE ltap-nlpla,
topass TYPE c,
rush TYPE c,
delnum LIKE ltap-nlpla,
soitemnum(16) TYPE c,
textkey(15) TYPE c,
textkey1(10) TYPE c,
class-text(15) TYPE c VALUE 'Classification:',
sdgrpchk LIKE ltap-vlpla,
temp-ltak-date like ltak-bdatu,
temp-wm-mvmt like ltak-bwlvs.
DATA: BEGIN OF i_snum OCCURS 0,
aufnr LIKE zpps-aufnr,
zmatnr LIKE zpps-zmatnr,
zatserial LIKE zpps-zatserial,
*{ Modification Start P913099
Added the following fields
zatcage LIKE zpps-zatcage,
zatser_cage(23) TYPE c, " Concatenate zatserial + zatcage.
*}Modification End P913099
END OF i_snum.
DATA: w_remain LIKE sy-tabix,
w_line LIKE sy-tabix,
w_start LIKE sy-tabix,
w_end LIKE sy-tabix,
*{ Modification Start P913099
*Commented the two fields
serialnum1 LIKE zpps-zatserial,
serialnum2 LIKE zpps-zatserial.
Added the following fields
serialnum1(23) type c,
serialnum2(23) type c.
*}Modification End P913099
*{ Added for SR:27018
DATA: flag_watermark_cust,
wm_text LIKE zcscf-zwmtext,
csc_uk_wm TYPE c.
DATA: BEGIN OF i_zcscf OCCURS 10.
INCLUDE STRUCTURE zcscf.
DATA: END OF i_zcscf.
Added for the Ethis Project...Aug 2001 //EB
DATA: temp-objek LIKE inob-objek,
temp-lsonr LIKE rl03t-lsonr.
DATA: BEGIN OF temp_inob.
INCLUDE STRUCTURE inob.
DATA: END OF temp_inob.
DATA: BEGIN OF temp_kssk.
INCLUDE STRUCTURE kssk.
DATA: END OF temp_kssk.
DATA: BEGIN OF temp_ausp.
INCLUDE STRUCTURE ausp.
DATA: END OF temp_ausp.
DATA: BEGIN OF temp_cawnt.
INCLUDE STRUCTURE cawnt.
DATA: END OF temp_cawnt.
DATA: BEGIN OF temp_cabnt.
INCLUDE STRUCTURE cabnt.
DATA: END OF temp_cabnt.
DATA: BEGIN OF temp_ksml OCCURS 0,
imerk LIKE ksml-imerk,
END OF temp_ksml.
DATA: BEGIN OF out_batch_class OCCURS 0,
description LIKE cabnt-atbez,
value LIKE ausp-atwrt,
END OF out_batch_class.
DATA: BEGIN OF i_ltap OCCURS 0,
tanum LIKE ltap-tanum,
vlpla LIKE ltap-vlpla,
vltyp LIKE ltap-vltyp,
vlber LIKE ltap-vlber,
vsolm LIKE ltap-vsolm,
END OF i_ltap.
DATA special-fill(18) TYPE c.
DATA float-value TYPE p DECIMALS 3.
DATA: actualen TYPE i,
remlen TYPE i,
atsign(1) TYPE c VALUE '@',
source-wbs-ele LIKE zmapd-zsourceposid,
pono LIKE mseg-ebeln,
vendorno LIKE mcha-lifnr,
linecnt TYPE i,
char-prodorder LIKE ausp-atwrt.
DATA: persono LIKE usr21-persnumber,
first-name LIKE adrp-name_first,
last-name LIKE adrp-name_last.
end Aug 2001 //EB
issue#MM20020808 // EB Aug 2002
DATA: BEGIN OF temp_mseg occurs 0,
mblnr like mseg-mblnr,
mjahr like mseg-mjahr,
zeile like mseg-zeile,
bwart like mseg-bwart,
xauto like mseg-xauto,
matnr like mseg-matnr,
lgort like mseg-lgort,
tbnum like mseg-tbnum,
werks like mseg-werks,
END OF temp_mseg.
data: temp-beskz like marc-beskz,
temp-fevor like marc-fevor,
temp-msg-text(10) type c,
high-priority-flag type c.
issue#MM20020819 // EB Aug 2002
DATA: temp-indx(4) TYPE n.
SR29757 //EB sept 2002
DATA: BEGIN OF temp_afvc OCCURS 0,
aplzl LIKE afvc-aplzl,
plnkn LIKE afvc-plnkn,
vornr LIKE afvc-vornr,
objnr LIKE afvc-objnr,
END OF temp_afvc.
DATA: stattext-oper(40) TYPE c,
temp-drukz LIKE t333-drukz,
oper-count TYPE i.
end SR29757
TYPES: BEGIN OF t_storloc,
storloc TYPE mseg-lgort,
END OF t_storloc.
DATA: storloc_tbl TYPE STANDARD TABLE OF t_storloc WITH HEADER LINE.
TYPES: BEGIN OF t_sched1,
fevor TYPE afko-fevor,
END OF t_sched1.
DATA: sched1_tbl TYPE STANDARD TABLE OF t_sched1 WITH HEADER LINE.
TYPES: BEGIN OF t_sched2,
fevor TYPE afko-fevor,
END OF t_sched2.
DATA: sched2_tbl TYPE STANDARD TABLE OF t_sched2 WITH HEADER LINE.
INCLUDE mllvskon.
........Sort-routeenies and definition of output table OUT..........
Egidio Jan 99
INCLUDE zlvsdr30.
AT SELECTION-SCREEN *
AT SELECTION-SCREEN.
PERFORM at_selection_screen.
wait up to 10 seconds.
START-OF-SELECTION *
START-OF-SELECTION.
PERFORM start_of_selection.
GET LTAK *
GET ltak.
PERFORM get_ltak.
clear temp-ltak-date.
temp-ltak-date = ltak-bdatu.
temp-wm-mvmt = ltak-bwlvs.
GET LTAP *
GET ltap.
CLEAR temp-indx.
PERFORM get_ltap.
GET NEW TABLES INFO (CODE MOVED IN form get_ltap.)
perform new_tables_access.
END-OF-SELECTION *
END-OF-SELECTION.
PERFORM end_of_selection.
Unterprogramme, die zu den einzelnen Reportereignissen *
aufgerufen werden: *
AT_SELECTION_SCREEN *
START_OF_SELECTION *
GET_LTAK *
GET_LTAP *
END_OF_SELECTION *
AT SELECTION-SCREEN *
FORM at_selection_screen.
*........Prüfen das eingegebene Druckkennzeichen.......................
IF druckkz NE space.
PERFORM t329f_lesen USING t4_lgnum druckkz.
IF sy-subrc NE 0.
MESSAGE a118 WITH t4_lgnum druckkz.
ENDIF.
ENDIF.
*........Prüfen den eingegebenen Drucker...............................
IF edrucker NE space.
PERFORM tsp03_lesen USING edrucker.
IF sy-subrc NE 0.
MESSAGE a119 WITH edrucker.
ENDIF.
ENDIF.
*........Prüfen das eingegebene Spoolparameterkennzeichen..............
IF spoolpar NE space.
PERFORM t329p_lesen USING t4_lgnum spoolpar.
IF sy-subrc NE 0.
MESSAGE a116 WITH t4_lgnum spoolpar.
ENDIF.
ENDIF.
ENDFORM.
START-OF-SELECTION *
FORM start_of_selection.
........Is used in mutual include RLVSEXTE...........................
flg_tadruck_wie = sapscript.
........Initialize internal table out ...............................
REFRESH out.
*........Importieren von QPSERR und LSPERR aus Memory
IF NOT t4_kzmem IS INITIAL.
IMPORT qsperr
lsperr FROM MEMORY ID druck_id.
SORT qsperr.
ENDIF.
ENDFORM.
GET LTAK *
FORM get_ltak.
CLEAR cpkme.
*........Read T340D-REPID once to def. Work-area for data -> open_form
PERFORM t340d_lesen USING ltak-lgnum.
*........Druckkennzeichen .............................................
IF druckkz IS INITIAL.
*........Druckkennzeichen aus dem TA-Kopf..............................
IF ltak-drukz IS INITIAL.
MESSAGE a114.
ELSE.
*........read necessary information about Sort-indicator and check....
PERFORM t329f_lesen USING t4_lgnum ltak-drukz.
IF sy-subrc NE 0.
MESSAGE a118 WITH t4_lgnum ltak-drukz.
ENDIF.
ENDIF.
ENDIF.
*........Prüfen, ob Wiederholdruck ....................................
IF NOT ltak-druck IS INITIAL. " Mimik für Wiederholdruck
MOVE text-002 TO rldru-wiedr. " Druckwiederholung
ENDIF.
*........Lesen Text zur Transportart..................................
PERFORM t333b_lesen USING ltak-lgnum ltak-trart.
........Lesen Kanbandaten / Read Kanbandata if necessary.............
IF NOT ltak-pknum IS INITIAL AND NOT ltak-pkpos IS INITIAL.
PERFORM kanban_read.
ENDIF.
.......Füllen IKOPF / Fill internal table IKOPF......................
PERFORM ikopf_fuellen.
ENDFORM.
GET LTAP *
FORM get_ltap.
.......Print certificate number etc... when printing online.........
PERFORM ltap_adding_from_qsperr.
.......Special treatment for posting changes........................
PERFORM posting_change_special.
*.......Print extra note when TO is inventory doc. or when 0-stock-ctrl.
PERFORM inv_nulko_note.
.......Mixing of bin location with position within bin...............
PERFORM platz_positionen_mischen.
.......Special stock into external format............................
PERFORM sonum_conversion.
.......Find Printer according to Printer tables etc..................
PERFORM printer_search.
ZPJ_LVSUMBUCHEN was added for production issue #518795
CLEAR temp_mseg[].
IF t329f-formu = 'ZPJ_LVSTAEINZEL' OR
t329f-formu = 'ZPJ_LVSUMBUCHEN' OR
t329f-formu = 'ZPJ_LVSTA961ZEL'.
*issue mm515642
SELECT mblnr mjahr zeile bwart xauto matnr lgort tbnum werks
INTO CORRESPONDING FIELDS OF TABLE temp_mseg FROM mseg
WHERE mblnr EQ ltak-mblnr
AND mjahr EQ ltak-mjahr
AND matnr EQ ltap-matnr.
ELSE.
*issue mm20200819
SELECT mblnr mjahr zeile bwart xauto matnr lgort tbnum werks
INTO CORRESPONDING FIELDS OF TABLE temp_mseg FROM mseg
WHERE mblnr EQ ltak-mblnr
AND mjahr EQ ltak-mjahr
AND lgort EQ ltak-lgnum.
ENDIF.
PERFORM new_tables_access.
.......Füllen Out / Fill internal table OUT..........................
PERFORM out_fuellen.
ENDFORM.
END-OF-SELECTION *
FORM end_of_selection.
*........Some helper fields...........................................
DATA: sav_vltyp LIKE ltap-vltyp,
sav_tanum LIKE ltap-tanum,
sav_formu LIKE t329f-formu,
sav_tddelete LIKE t329p-tddelete,
sav_tdimmed LIKE t329p-tdimmed,
sav_tdnewid LIKE t329p-tdnewid,
sav_tddataset LIKE t329p-tddataset,
sav_tdcopies LIKE t329p-tdcopies,
sav_ldest LIKE ltap-ldest.
DCE Project (SR 29757)
Determine if TO is assigned to a Queue instead of printing
DATA: to_warehouse LIKE ltak-lgnum,
to_nbr LIKE ltak-tanum,
wk_queue LIKE ltak-queue, "Queue
wk_priority LIKE ltak-tapri,
process_hotpick TYPE c,
assign_msg(6) TYPE c.
SR#83485 do not print the TO if......
if temp-wm-mvmt is initial.
move ltak-bwlvs to temp-wm-mvmt.
endif.
if srcplan = '0001' and
destplan = '0017' and
temp-wm-mvmt = '911'.
exit.
endif.
Only check the hotpicks with movement type 261
CLEAR process_hotpick.
IF ( hotpick = 'X' OR
hotpick = 'A' OR
hotpick = 'B' OR
hotpick = 'C' OR
hotpick = 'D' ) AND
ikopf-bwart NE 261.
process_hotpick = 'X'.
ENDIF.
CLEAR assign_msg.
IF ikopf-queue IS INITIAL AND
ikopf-kquit NE 'X' AND
process_hotpick NE 'X' AND
Warehouse 17A
( ( ikopf-lgnum = '17A' AND
( ikopf-bwart = 101 OR
ikopf-bwart = 105 ) ) OR
Warehouse 1A
( ikopf-lgnum = '1A ' AND
( ikopf-bwart = 101 OR
ikopf-bwart = 105 OR
ikopf-bwart = 231 OR
ikopf-bwart = 261 OR
ikopf-bwart = 351 OR
ikopf-bwart = 541 OR
ikopf-bwart = 911 ) ) ).
ikopf-bwart = 954 ) ) ). "KYS
to_warehouse = ikopf-lgnum.
to_nbr = ikopf-tanum.
PERFORM assign_queue IN PROGRAM zmrf_assign_queue
USING to_warehouse to_nbr wk_queue
wk_priority assign_msg hotpick.
ENDIF.
Bypass printing if TO is assigned to a queue
IF assign_msg = 'ASSIGN'.
ltak-tapri = wk_priority.
ltak-queue = wk_queue.
IF wk_queue(6) = 'PALLET'.
SELECT SINGLE zcage INTO wk_queue
FROM ztocage
WHERE lgnum = ltak-lgnum AND
tbnum = ltak-tbnum.
IF sy-subrc NE 0.
wk_queue = 'PALLET_??'.
ENDIF.
ENDIF.
IF wk_priority = 5.
CONCATENATE wk_queue 'Hotpick' INTO ltak-lznum SEPARATED BY space.
ELSE.
ltak-lznum = wk_queue.
ENDIF.
CLEAR assign_msg.
ELSE.
Ethis phase III //EB Sept 2002
CLEAR temp-drukz.
PERFORM check-movement-types.
clear: mvmt261-flag, high-priority-flag.
perform get_usrdefined_stortype.
issue #552159
IF temp-drukz = '05'.
move 'X' to high-priority-flag.
PERFORM mvmt961_logic.
SR#76047
elseif not mvmt261-flag is initial .
move 'X' to high-priority-flag.
perform mvmt261_special_logic.
SR#82839 (not yet implemented Feb 2006(EB)
if mseg-werks = '0001' and
ikopf-bwart = '261'.
loop at temp_mseg.
clear: temp-beskz, temp-fevor, temp-msg-text.
select single beskz fevor into (temp-beskz, temp-fevor) from marc
where matnr = temp_mseg-matnr and
werks = temp_mseg-werks.
perform get_userdefined_scheduler.
read table sched1_tbl with key fevor = temp-fevor.
if sy-subrc = 0.
move ' AMAX' to temp-msg-text.
else.
read table sched2_tbl with key fevor = temp-fevor.
if sy-subrc = 0.
move ' Solumina' to temp-msg-text.
endif.
endif.
check sy-subrc = 0.
if sy-subrc = 0 and temp-beskz = 'E'.
perform solumina_PO_signal.
endif.
endloop.
endif.
endif.
if high-priority-flag is initial.
flg_form_open = con_false.
MOVE con_x TO erster_durchlauf.
Ausdruck der TA-Scheine / Printing normal TO papers *
(wenn Parameter "Druck TA-Schein" gesetzt ist) *
IF tasch = con_x.
*.......Einzelne TA-Positionen drucken bzw. Sammelliste................
LOOP AT ikopf.
PERFORM sort_out.
PERFORM ikopf_to_original.
CLEAR item_count.
LOOP AT out WHERE ltap-tanum = ltak-tanum. "GV01
item_count = item_count + 1.
ENDLOOP.
LOOP AT out WHERE flg_druck_umbuch IS initial
AND ltap-tanum = ltak-tanum.
.......Filling because of form-handling............................
PERFORM out_to_original.
Batch classification description & value + vendor & PO
This was inserted for for the ETHIS project Aug 2001; by EB
clear out_batch_class[].
FREE out_batch_class.
PERFORM batch_classification.
PERFORM mvmt281_extra_info.
*........Prüfen, ob gemäß T329D-Einstellung gedruckt werden darf......
*//....../ Check with T329D if printing is allowed....................
CHECK t329d-nidru <> con_x.
*//.....Drucken Einzeldruck / Solo-Printing (One TO-item per page) ....
IF out-samml IS INITIAL.
PERFORM einzelta_drucken. " Drucken Positionen einzeln
ENDIF.
*.......Printing Collect list / Sammelliste ..........................
*//.....Wechsel VON-Lagertyp ( nur bei Sammellisten )...................
IF ltap-tanum <> sav_tanum OR
ltap-vltyp <> sav_vltyp OR
out-formu <> sav_formu OR
out-tddelete <> sav_tddelete OR
out-tdimmed <> sav_tdimmed OR
out-tdnewid <> sav_tdnewid OR
out-tddataset <> sav_tddataset OR
out-tdcopies <> sav_tdcopies OR
out-ldest <> sav_ldest.
.........more interesting coding.....................................
IF kz_sort_vonlagertyp = con_x AND
t329f-samml = con_x.
PERFORM druck_ansteuern.
.........get back to the boring part.................................
sav_tanum = ltap-tanum.
sav_vltyp = ltap-vltyp.
sav_formu = out-formu.
sav_tddelete = out-tddelete.
sav_tdimmed = out-tdimmed.
sav_tdnewid = out-tdnewid.
sav_tddataset = out-tddataset.
sav_tdcopies = out-tdcopies.
sav_ldest = out-ldest.
ENDIF.
ENDIF.
*//.....On change of any one of the fields in the OUT before TANUM .. ..
IF ltap-tanum <> sav_tanum OR
out-formu <> sav_formu OR
out-tddelete <> sav_tddelete OR
out-tdimmed <> sav_tdimmed OR
out-tdnewid <> sav_tdnewid OR
out-tddataset <> sav_tddataset OR
out-tdcopies <> sav_tdcopies OR
out-ldest <> sav_ldest.
.........more interesting coding.....................................
IF out-samml = con_x AND
kz_sort_vonlagertyp <> con_x.
PERFORM druck_ansteuern.
.........get back to the boring part.................................
sav_tanum = ltap-tanum.
sav_formu = out-formu.
sav_tddelete = out-tddelete.
sav_tdimmed = out-tdimmed.
sav_tdnewid = out-tdnewid.
sav_tddataset = out-tddataset.
sav_tdcopies = out-tdcopies.
sav_ldest = out-ldest.
ENDIF.
ENDIF.
*.......Drucken Sammelliste / Printing into list.......................
IF NOT out-samml IS INITIAL.
PERFORM sammelliste_drucken_sapscript.
ENDIF.
MOVE space TO erster_durchlauf.
ENDLOOP.
IF wrkeof = 'X'.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'EOF'.
ENDIF.
*.......Beim Ende von Druckparameter und Drucker - Formular schliessen..
IF NOT out-samml IS INITIAL.
PERFORM formular_schliessen.
ENDIF.
ENDLOOP.
*........Formular schließen / Close last Form .........................
PERFORM formular_schliessen.
Drucken Umbuchanweisung / Print posting changes extra .........
LOOP AT ikopf.
PERFORM sort_out.
PERFORM ikopf_to_original.
CLEAR: u2_rl03t, u2_ltap, u2_taplg, cnt_umb_pos.
CLEAR item_count.
LOOP AT out WHERE ltap-tanum = ltak-tanum. "GV01
item_count = item_count + 1.
ENDLOOP.
LOOP AT out WHERE flg_druck_umbuch = con_true
AND ltap-tanum = ltak-tanum.
PERFORM out_to_original.
Batch classification description & value + vendor & PO
This was inserted for for the ETHIS project Aug 2001; by EB
clear out_batch_class[].
FREE out_batch_class.
PERFORM batch_classification.
PERFORM umbuchungen_drucken.
ENDLOOP.
ENDLOOP.
ENDIF.
Druck der Scheine zu den Lagereinheiten./ Print LE-forms ....*
(wenn entsprechende Parameter gesetzt sind)..................*
IF lesch = con_x OR letasch = con_x OR leinh = con_x.
PERFORM le_druck. "in Include-RLVSDR31
ENDIF.
Ethis III // Sept 2002
ENDIF.
SR#29757
ENDIF.
ENDFORM.
INCLUDES *
*........Zulesen der Gefahrenvermerke...................................
*........Preparing hazardous goods notes
INCLUDE rlvsmgef.
*........Externer Aufruf des Druckprogramms.............................
*........Call of printing from external i.e. out of posting TOs
INCLUDE rlvsexte.
*........Zulesen der Druckroutine für SAPSCRIPT-Druck Einzel-TA.......
*........Printing Solo-formulars
*include rlvsdr90.
INCLUDE zlvsdr90. "//GV1
*........Zulesen der Druckroutine für SAPSCRIPT-Druck Sammelliste.....
*........Printing lists
*include rlvsdr91.
INCLUDE zlvsdr91. "//GV1
*........Zulesen der Druckroutine für SAPSCRIPT-Druck Umbuchungen.....
*........Printing posting changes
*include rlvsdr92.
INCLUDE zlvsdr92. "//GV1
*........Drucken von Lagereinheiten. ..................................
*........Printing Storage Units
*include rlvsdr31.
INCLUDE zlvsdr31. "//GV1
*........Print a different form for movement type 961/962..............
INCLUDE zlvsdr961. "//sr#44937 //EB
*........New tables access
INCLUDE zpjlvsdx. "//GV1
INCLUDE zspectrm.
SR#82839
include zsignal.
FORM BARCODE_TAPLG *
Barcodeverschlüsselung mit TA-Nummer,-Position und Lgnum *
FORM barcode_taplg.
WRITE ltak-tanum TO rldru-taplg(10). " EinzelPositionsDruck
WRITE ltap-tapos TO rldru-taplg+10(4).
WRITE ltak-lgnum TO rldru-taplg+14(3).
ENDFORM.
FORM DRUCK_ANSTEUERN *
Anstoßen des DRUCKS über SAPSCRIPT *
FORM druck_ansteuern.
*........Eventuell offenes Formular schließen / Close open forms......
IF flg_form_open = con_true.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'EOF'. "GV01
PERFORM formular_schliessen.
ENDIF.
*........Das neue Formular eroeffnen
PERFORM formular_oeffnen.
PERFORM sammelliste_kopf.
ENDFORM.
FORM EINZELTA_DRUCKEN *
Druckvorbereitung *
FORM einzelta_drucken.
IF flg_form_open = con_true.
PERFORM formular_schliessen.
ENDIF.
........Hazardous materials, Barcode.................................
PERFORM solo_prepare.
PERFORM formular_oeffnen. "Open
PERFORM einzelta_drucken_sapscript. "RLVSDR90
PERFORM formular_schliessen. "Close
ENDFORM.
FORM FORMULAR_OEFFNEN *
Formular oeffnen *
FORM formular_oeffnen.
flg_form_open = con_true.
........Füllen ITCPO ................................................
.........Anhängen an Spool oder Neueintrag ? ........................
IF t329p-tdnewid = con_x.
MOVE t329p-tdnewid TO itcpo-tdnewid.
ENDIF.Let it be more clear.
U pasted the driver program .
What I suggest u to do is use routines and do the required things.For this u will have seperate program,check out that and let me know.
Regards -
1/15/2013 - Flash Player 11.6 Beta
Flash Player Beta Channel Update
The weekly Flash Player Beta update, 11.6.602.146, is now available for direct download and automatic installation via Background Update.
The latest version of Flash Player Beta is available here: http://www.adobe.com/go/flashplayerbeta
For full details on our new features please see our Release Notes.
New Features:
Full Screen Permission Dialog UI Improvement
Changed the location of the permission dialog to the middle of the screen. Also improved the user experience when going into full screen mode by adding the "Cancel" button.
Graphics Data Query
Developers can read the structure of the display object and vector data at runtime. Game developers can use this feature to create complex Sprite Sheets, or exporters for any file format (e.g. SVG) at runtime.
Notable Fixes and Enhancements:
3430032 - On Windows XP, Flash Access content is throwing an erroneous Output Protection Error (3338)
3428748 - Fixes an issue where random 3321/3330 errors are thrown when playing Flash Access protected content using Chrome on Windows XP
3434197 - Fixes an issue where users upgrading from Flash Player 11.3.375.10 to 11.6.602.124 experienced Error Code 3322 (DeviceBindingFailed) on Windows 8 running SurfaceRT with EPM enabled.
3398415 - Fixes an issue where Error code 3338 was thrown during playback of Flash Access protected content with Analog Required, Digital Required, Analog Noplay, or Digital Noplay flags on Chrome for Windows with the Flash Player PPAPI Plug-In
3428081 - Corrects a problem where the web page of a played video would occasionally be closed when resizing the page in Safari.
3444724 - Setting a via ActionScript that contains a nested mask works again.
3473230 - Corrects an issue where the loader for some Starling Demos would not load on Windows with IE10
3434205 - Corrects an performance problem on Windows 8 desktops where users would experience a delay when dragging a browser window running Flash content across multiple displays.
3368015 - Camera now works as expected on ChromeOS 20 with the PPAPI Flash Player plug-in.
3369826 - Video captured with the front camera now renders correctly on the Google Nexus 7
3373425 - Videos are now rendered correctly on http://www.briggs-riley.com/ when viewed on Windows 8 with IE 10 in both Classic and Metro modes
3429524 - YouTube Flash Objects embedded in Office 15 Word Documents now render correctly when Windows Update KB2777166 is installed
3407575 - Memory usage is now reported correctly by content played in Chrome on Mac using the PPAPI Flash Player Plug-In
3365525 - Fixes an installation problem introduced in Flash Player 11.4 that caused Flash Player to not work for Windows users running with User-level permissions when Flash Player was installed from an Administrative Account
3376775 - Corrects an issue introduced in Flash Player 11.0.1.50 where Bitmap Data memory was not being properly culled during long-running playback of Flash content.
Multiple stability and security fixes
Known Issues:
3428187 - Flash Access content in ActiveX DebugRelease builds does not play back
We have moved to a rapid beta release cycle using "Background Update". We encourage you to subscribe so you can get the latest and the greatest Flash Player without a single mouse click. We also recommend you subscribe to our Twitter channel @FlashPlayerBeta to stay on top of the current release schedule updates.
You can find instructions for getting started with this release here: Flash Player 11.6 Labs Page
We encourage you to let us know what you think over on our 11.6 Labs forumsHi Marc,
I just gave this a try with SeaMonkey and Firefox on Win 8 and the stream played fine for me. What OS are you on?
Thanks,
Chris -
Manual WSDL creation with Complex data types
I'm trying to manually generate a WSDL, for a bpel workflow, so the wsdl constructs do not come from a Java class file, or any of the other normal ways you might generate a WSDL.
I have successfully created a Definition object from the WSDLFactory, with the code shown below, that appears to be correct, based on reverse engineering of a WS compliant WSDL. The reversed engineered WSDL was created by IONA Artix.
When I use file WSDLFactoryImpl.WSDLWriterImpl.writeWSDL() to write the WSDL file I get the wsdl:types and wsdl:service definition objectsin the file, but not the wsdl:message, wsdl:portType or wsdl:binding objects.
The reverse engineered WSDL file has been imported into objects via WSDLReaderImpl, and the resulting Definition object appears correct (based on all system.outs). This definition can be successfully written to file via the same WSDLFactoryImpl.WSDLWriterImpl.writeWSDL(). which results in a correct WSDL file.
I'm hoping someone can spot my problem.
Chris Yoerg
WSDLFactory.java************************************************************************************************
package com.dralasoft.bpel.util;
import java.util.*;
import java.io.*;
import javax.xml.namespace.QName;
import javax.xml.parsers.*;
import javax.wsdl.WSDLException;
import javax.wsdl.extensions.UnknownExtensibilityElement;
import org.w3c.dom.*;
import com.ibm.wsdl.*;
import com.ibm.wsdl.factory.WSDLFactoryImpl;
import com.ibm.wsdl.extensions.soap.*;
/** This class generates a wsdl from scratch
* the way the namespaces have been left seem to be correct in that the individual
* porttype, binding and service objects pick up the message parts as seen in the
* individual system.outs and in the system.out of the definition
* if you use the tns prefix iteration as seen in the comment out "trial" code
* you get an error that the tns namespace does not exist in the definition
* even though it is definitely there
* the non namespace "trial" code also behaves the same way as this iteration,
* aka the stuff shows in the definition outputs, but never ends up outputed to
* file */
//import com.dralasoft.bpel.BPELWorkflow;
public class WSDLFactory {
public WSDLFactory() {
public void makeWorkflowWSDL(){
WSDLFactoryImpl factory = null;
Constants constants = new Constants();
SOAPConstants soapconstants = new SOAPConstants();
try {
factory = (WSDLFactoryImpl) WSDLFactoryImpl.newInstance();
catch (WSDLException we) {
System.out.println("wsdl excepiotn " + we.getMessage());
// get a new definition from the factory
DefinitionImpl definition = (DefinitionImpl) factory.newDefinition();
// add target namespace and additional namespaces that might be there
definition.setTargetNamespace("http://www.yoerg.net");
definition.addNamespace("tns", "http://www.yoerg.net");
definition.addNamespace("soap", "http://schemas.xmlsoap.org/wsdl/soap/");
definition.addNamespace("xsd", "http://www.w3.org/2001/XMLSchema");
definition.addNamespace("wsdl", "http://schemas.xmlsoap.org/wsdl/");
// added for generic purposes
definition.addNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
// specify the service name
QName qname = new QName("http://www.yoerg.net",
"PurchaseOrderProcess");
definition.setQName(qname);
// create types **********************************************************
TypesImpl types = (TypesImpl) definition.createTypes();
// generate a schema in DOM to set into the types object
javax.xml.parsers.DocumentBuilderFactory domfactory =
javax.xml.parsers.DocumentBuilderFactory.newInstance();
javax.xml.parsers.DocumentBuilder builder = null;
try {
builder = domfactory.newDocumentBuilder();
catch (javax.xml.parsers.ParserConfigurationException pce) {
System.out.println("parser config exception " + pce.getMessage());
DOMImplementation dImpl = builder.getDOMImplementation();
// namespace for the schema
String namespaceURI = "http://www.w3.org/2001/XMLSchema";
Document doc = dImpl.createDocument(namespaceURI, "schema", null);
Element schema = doc.getDocumentElement();
//schema.setPrefix("xsd");
schema.setAttribute("xmlns", "http://www.w3.org/2001/XMLSchema");
schema.setAttribute("targetNamespace", "http://www.yoerg.net");
//set other namespaces on schema
// this doesn't make it into the schema at final save, because there
// are no wsdl elements inside the box
schema.setAttribute("xmlns:wsdl", "http://schemas.xmlsoap.org/wsdl/");
// this is not needed
schema.setAttribute("tns", "http://www.yoerg.net");
Element first = doc.createElement("element");
first.setAttribute("name", "sendPurchaseOrder");
first.setAttribute("type", "tns:sendPORequest");
schema.appendChild(first);
Element fourth = doc.createElement("element");
fourth.setAttribute("name", "sendSchedule");
fourth.setAttribute("type", "tns:sendScheduleRequest");
schema.appendChild(fourth);
Element fifth = doc.createElement("element");
fifth.setAttribute("name", "sendInvoice");
fifth.setAttribute("type", "tns:sendInvoiceRequest");
schema.appendChild(fifth);
// now add correlations
Element corfirst = doc.createElement("element");
corfirst.setAttribute("name", "correlations");
corfirst.setAttribute("type", "tns:correlationset");
schema.appendChild(corfirst);
Element second = doc.createElement("element");
second.setAttribute("name", "portType");
second.setAttribute("type", "xsd:string");
schema.appendChild(second);
Element third = doc.createElement("element");
third.setAttribute("name", "partnerLink");
third.setAttribute("type", "xsd:string");
schema.appendChild(third);
// sequence element thats used over and over
Element sequence = null;
Element sixth = doc.createElement("complexType");
sixth.setAttribute("name", "sendPORequest");
sequence = doc.createElement("sequence");
Element part1 = doc.createElement("element");
part1.setAttribute("name", "customerId");
part1.setAttribute("type", "xsd:long");
sequence.appendChild(part1);
Element part2 = doc.createElement("element");
part2.setAttribute("name", "purchaseOrderNumber");
part2.setAttribute("type", "xsd:long");
sequence.appendChild(part2);
Element part3 = doc.createElement("element");
part3.setAttribute("name", "productId");
part3.setAttribute("type", "xsd:long");
sequence.appendChild(part3);
Element part4 = doc.createElement("element");
part4.setAttribute("name", "quantity");
part4.setAttribute("type", "xsd:int");
sequence.appendChild(part4);
sixth.appendChild(sequence);
schema.appendChild(sixth);
Element seventh = doc.createElement("complexType");
seventh.setAttribute("name", "sendScheduleRequest");
sequence = doc.createElement("sequence");
Element part6 = doc.createElement("element");
part6.setAttribute("name", "shipDate");
part6.setAttribute("type", "xsd:dateTime");
sequence.appendChild(part6);
Element part7 = doc.createElement("element");
part7.setAttribute("name", "customerId");
part7.setAttribute("type", "xsd:long");
sequence.appendChild(part7);
Element part8 = doc.createElement("element");
part8.setAttribute("name", "purchaseOrderNumber");
part8.setAttribute("type", "xsd:long");
sequence.appendChild(part8);
seventh.appendChild(sequence);
schema.appendChild(seventh);
Element eighth = doc.createElement("complexType");
eighth.setAttribute("name", "sendInvoiceRequest");
sequence = doc.createElement("sequence");
Element part5 = doc.createElement("element");
part5.setAttribute("name", "price");
part5.setAttribute("type", "xsd:double");
sequence.appendChild(part5);
Element part9 = doc.createElement("element");
part9.setAttribute("name", "customerId");
part9.setAttribute("type", "xsd:long");
sequence.appendChild(part9);
Element part10 = doc.createElement("element");
part10.setAttribute("name", "purchaseOrderNumber");
part10.setAttribute("type", "xsd:long");
sequence.appendChild(part10);
eighth.appendChild(sequence);
schema.appendChild(eighth);
Element ninth = doc.createElement("complexType");
ninth.setAttribute("name", "correlationset");
sequence = doc.createElement("sequence");
Element part11 = doc.createElement("element");
part11.setAttribute("name", "PurchaseOrder");
part11.setAttribute("type", "tns:correlationsetvalues");
sequence.appendChild(part11);
ninth.appendChild(sequence);
schema.appendChild(ninth);
Element tenth = doc.createElement("complexType");
tenth.setAttribute("name", "correlationsetvalues");
sequence = doc.createElement("sequence");
Element part12 = doc.createElement("element");
part12.setAttribute("name", "PurchaseOrderNumber");
part12.setAttribute("type", "xsd:string");
sequence.appendChild(part12);
Element part13 = doc.createElement("element");
part13.setAttribute("name", "customerID");
part13.setAttribute("type", "xsd:string");
sequence.appendChild(part13);
tenth.appendChild(sequence);
schema.appendChild(tenth);
// show the schema w3c element via conversion JDOM Element and coversion to string
org.jdom.input.DOMBuilder jdbuilder = new org.jdom.input.DOMBuilder();
org.jdom.Element jelement = jdbuilder.build(schema);
//System.out.println("\njelement " + jelement);
org.jdom.output.XMLOutputter xmloutput = new org.jdom.output.XMLOutputter();
xmloutput.setIndent(" ");
xmloutput.setNewlines(true);
xmloutput.setTrimAllWhite(true);
xmloutput.setTextTrim(true);
xmloutput.setEncoding("ISO-8859-1");
String strelement = xmloutput.outputString(jelement);
System.out.println("schema in jdom = \n " + strelement);
UnknownExtensibilityElement extel = new UnknownExtensibilityElement();
extel.setElement(schema);
extel.setElementType(new QName(Constants.Q_ELEM_XSD_2001.getNamespaceURI(),
schema.getLocalName()));
types.addExtensibilityElement(extel);
// the above is preferrable to this
//types.setDocumentationElement(schema);
//System.out.println("schema " + schema);
// and set the types definiton back to the definition object
definition.setTypes(types);
// these lines all show null or empty on system.out.println
//System.out.println("\ntypes " + types);
// end of setting the types
// add the messages*******************************************************
MessageImpl message1 = (MessageImpl)definition.createMessage();
QName messageqname= new QName("http://www.yoerg.net", "newMessage");
message1.setQName(messageqname);
PartImpl partma = (PartImpl)definition.createPart();
partma.setName("sendPurchaseOrderBody");
partma.setElementName(new QName("http://www.yoerg.net", "sendPurchaseOrder"));
message1.addPart(partma);
partma = (PartImpl)definition.createPart();
partma.setName("correlationsBody");
partma.setElementName(new QName("http://www.yoerg.net", "correlations"));
message1.addPart(partma);
partma = (PartImpl)definition.createPart();
partma.setName("portTypeBody");
partma.setElementName(new QName("http://www.yoerg.net", "portType"));
message1.addPart(partma);
partma = (PartImpl)definition.createPart();
partma.setName("partnerLinkBody");
partma.setElementName(new QName("http://www.yoerg.net", "partnerLink"));
message1.addPart(partma);
definition.addMessage(message1);
// create new blank message for response, with no parts
MessageImpl message2 = (MessageImpl)definition.createMessage();
QName messageqname2= new QName("http://www.yoerg.net", "sendPurchaseOrderResponseMessage");
message2.setQName(messageqname2);
definition.addMessage(message2);
System.out.println("\nmessage1 " + message1);
System.out.println("\nmessage2 " + message2);
//Map map = message.getParts();
//Element mes = message.getDocumentationElement();
//System.out.println("\nmessage map = " + map);
// done adding messages
// add the porttypes******************************************************
PortTypeImpl porttype = (PortTypeImpl)definition.createPortType();
porttype.setQName(new QName("http://www.yoerg.net", "purchaseOrderPortType"));
OperationImpl operation = (OperationImpl)definition.createOperation();
operation.setName("sendMyPurchaseOrder");
operation.setStyle(javax.wsdl.OperationType.REQUEST_RESPONSE);
InputImpl input = (InputImpl)definition.createInput();
input.setName("sendPurchaseOrderRequest");
input.setMessage(message1);
operation.setInput(input);
OutputImpl output = (OutputImpl)definition.createOutput();
output.setName("sendPurchaseOrderResponse");
output.setMessage(message2);
operation.setOutput(output);
porttype.addOperation(operation);
System.out.println("\nporttype " + porttype);
definition.addPortType(porttype);
// done adding the porttypes
// add the bindings*******************************************************
BindingImpl binding = (BindingImpl)definition.createBinding();
binding.setQName(new QName("http://www.yoerg.net",
"purchaseOrderSOAPBinding"));
binding.setPortType(porttype);
SOAPBindingImpl bindingextension = new SOAPBindingImpl();
bindingextension.setStyle("document");
bindingextension.setTransportURI("http://schemas.xmlsoap.org/soap/http");
//System.out.println("binding extension " + bindingextension);
binding.addExtensibilityElement(bindingextension);
BindingOperationImpl bindingoperation
= (BindingOperationImpl)definition.createBindingOperation();
bindingoperation.setName("sendMyPurchaseOrder");
bindingoperation.setOperation(operation);
// this is not present in the Imported correct version, and these lines of code
// are not necessary, but they also do not hurt or help
//SOAPOperationImpl operationextension = new SOAPOperationImpl();
//operationextension.setStyle("document");
//operationextension.setSoapActionURI("");
///////operationextension.setElementType(new QName("http://www.yoerg.net", "ListenerService"));
//operationextension.setRequired(new Boolean(true));
//bindingoperation.addExtensibilityElement(operationextension);
BindingInputImpl bindinginput
= (BindingInputImpl)definition.createBindingInput();
bindinginput.setName("sendPurchaseOrderRequest");
SOAPBodyImpl inputextension = new SOAPBodyImpl();
inputextension.setUse("literal");
inputextension.setRequired(new Boolean(true));
inputextension.setNamespaceURI("http://www.yoerg.net");
bindinginput.addExtensibilityElement(inputextension);
//System.out.println("\ninputextension " + inputextension);
bindingoperation.setBindingInput(bindinginput);
BindingOutputImpl bindingoutput
= (BindingOutputImpl)definition.createBindingOutput();
bindingoutput.setName("sendPurchaseOrderResponse");
SOAPBodyImpl outputextension = new SOAPBodyImpl();
outputextension.setUse("literal");
outputextension.setRequired(new Boolean(true));
outputextension.setNamespaceURI("http://www.yoerg.net");
bindingoutput.addExtensibilityElement(outputextension);
//System.out.println("\noutputextension " + outputextension);
bindingoperation.setBindingOutput(bindingoutput);
binding.addBindingOperation(bindingoperation);
System.out.println("\nbinding " + binding);
definition.addBinding(binding);
// done adding binding
// adding service*********************************************************
ServiceImpl service = (ServiceImpl)definition.createService();
service.setQName(new QName("http://www.yoerg.net",
"ListenerServiceService"));
PortImpl port = (PortImpl)definition.createPort();
port.setBinding(binding);
port.setName("ListenerService");
SOAPAddressImpl soapaddress = new SOAPAddressImpl();
soapaddress
.setLocationURI("http://localhost:8080/axis/services/ListenerService");
port.addExtensibilityElement(soapaddress);
service.addPort(port);
definition.addService(service);
System.out.println("\nService " + service);
// done adding service
// print def object, and you will see all objects, except types
System.out.println("\ndefinition \n" + definition);
// output to file, just like we would in bpel workflow environment
com.ibm.wsdl.xml.WSDLWriterImpl writer
= (com.ibm.wsdl.xml.WSDLWriterImpl)factory.newWSDLWriter();
File file = new File("c:\\chris\\w.wsdl");
FileOutputStream out = null;
// this has been proven to be correct
try{
out = new FileOutputStream(file);
writer.writeWSDL(definition, out);
catch(FileNotFoundException fnfe){
System.out.println("file not found " + fnfe.getMessage());
catch(IOException ioe){
System.out.println("file not found " + ioe.getMessage());
catch(javax.wsdl.WSDLException we){
System.out.println("wsdl exception " + we.getMessage());
// now bring it back in just for fun
FileInputStream in = null;
byte[] inputfile = null;
org.jdom.Document jdocument = null;
try{
in = new FileInputStream(file);
inputfile = new byte[in.available()];
in.read(inputfile, 0, in.available());
org.jdom.input.SAXBuilder jdombuilder = new org.jdom.input.SAXBuilder();
ByteArrayInputStream byteinput = new ByteArrayInputStream(inputfile);
jdocument = jdombuilder.build(byteinput);
catch(FileNotFoundException fnfe){
System.out.println("file not found " + fnfe.getMessage());
catch(org.jdom.JDOMException jde){
System.out.println("jdom exception " + jde.getMessage());
catch(IOException ioe){
System.out.println("io exception " + ioe.getMessage());
String strdocument = xmloutput.outputString(jdocument);
System.out.println("\nJDOM beautified version \n" + strdocument);
public static void main(String[] args){
WSDLFactory factory = new WSDLFactory();
factory.makeWorkflowWSDL();
End ofWSDLFactory.java*********************************************************************
Desired WSDL output to file******************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="PurchaseOrderProcess" targetNamespace="http://www.yoerg.net"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:http-conf="http://schemas.iona.com/transports/http/configuration"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.yoerg.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<schema targetNamespace="http://www.yoerg.net"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<element name="sendPurchaseOrder" type="tns:sendPORequest"/>
<element name="correlations" type="tns:correlationset"/>
<element name="portType" type="xsd:string"/>
<element name="partnerLink" type="xsd:string"/>
<element name="sendSchedule" type="tns:sendScheduleRequest"/>
<element name="sendInvoice" type="tns:sendInvoiceRequest"/>
<complexType name="correlationsetvalues">
<sequence>
<element name="PurchaseOrderNumber" type="xsd:string"/>
<element name="customerID" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="correlationset">
<sequence>
<element name="PurchaseOrder" type="tns:correlationsetvalues"/>
</sequence>
</complexType>
<complexType name="sendPORequest">
<sequence>
<element name="customerId" type="xsd:long"/>
<element name="purchaseOrderNumber" type="xsd:long"/>
<element name="productId" type="xsd:long"/>
<element name="quantity" type="xsd:int"/>
</sequence>
</complexType>
<complexType name="sendScheduleRequest">
<sequence>
<element name="shipDate" type="xsd:dateTime"/>
<element name="customerId" type="xsd:long"/>
<element name="purchaseOrderNumber" type="xsd:long"/>
</sequence>
</complexType>
<complexType name="sendInvoiceRequest">
<sequence>
<element name="price" type="xsd:double"/>
<element name="customerId" type="xsd:long"/>
<element name="purchaseOrderNumber" type="xsd:long"/>
</sequence>
</complexType>
</schema>
</types>
<message name="newMessage">
<part element="tns:sendPurchaseOrder" name="sendPurchaseOrderBody"/>
<part element="tns:correlations" name="correlationsBody"/>
<part element="tns:portType" name="portTypeBody"/>
<part element="tns:partnerLink" name="partnerLinkBody"/>
</message>
<message name="sendPurchaseOrderResponseMessage"/>
<message name="sendScheduleRequestMessage">
<part element="tns:sendSchedule" name="sendScheduleBody"/>
<part element="tns:correlations" name="correlationBody"/>
<part element="tns:portType" name="portTypeBody"/>
<part element="tns:partnerLink" name="partnerLinkBody"/>
</message>
<message name="sendInvoiceRequestMessage">
<part element="tns:sendInvoice" name="sendInvoiceBody"/>
<part element="tns:correlations" name="correlationsBody"/>
<part element="tns:portType" name="portTypeBody"/>
<part element="tns:partnerLink" name="partnerLinkBody"/>
</message>
<portType name="purchaseOrderPortType">
<operation name="sendMyPurchaseOrder">
<input message="tns:newMessage" name="sendPurchaseOrderRequest"/>
<output message="tns:sendPurchaseOrderResponseMessage"
name="sendPurchaseOrderResponse"/>
</operation>
<operation name="sendMySchedule">
<input message="tns:sendScheduleRequestMessage" name="sendMySchedule"/>
</operation>
<operation name="sendInvoice">
<input message="tns:sendInvoiceRequestMessage" name="sendInvoice"/>
</operation>
</portType>
<binding name="purchaseOrderSOAPBinding" type="tns:purchaseOrderPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="sendMyPurchaseOrder">
<soap:operation soapAction="" style="document"/>
<input name="sendPurchaseOrderRequest">
<soap:body use="literal"/>
</input>
<output name="sendPurchaseOrderResponse">
<soap:body use="literal"/>
</output>
</operation>
<operation name="sendMySchedule">
<soap:operation soapAction="" style="document"/>
<input name="sendMySchedule">
<soap:body use="literal"/>
</input>
</operation>
<operation name="sendInvoice">
<soap:operation soapAction="" style="document"/>
<input name="sendInvoice">
<soap:body use="literal"/>
</input>
</operation>
</binding>
<service name="ListenerServiceService">
<port binding="tns:purchaseOrderSOAPBinding" name="ListenerService">
<soap:address location="http://localhost:8080/axis/services/ListenerService"/>
<http-conf:client/>
<http-conf:server/>
</port>
</service>
</definitions>
End of desired WSDL*************************************************************************************Adding these statements solved the problem
message1.setUndefined(false);
message2.setUndefined(false);
binding.setUndefined(false);
operation.setUndefined(false);
porttype.setUndefined(false);
This is kind of weird because you explicitly define them thru API calls, and this call seems redundant.
Chris Yoerg -
SEVERE: null : Can't find file '/WEB-INF/tiles-defs.xml'
I'm trying to get Tiles to work with Struts on my server. I'm running a local instance of Tomcat v5.5. Development environment is Eclipse. I"ve looked everywhere on the web and can't find any solutions that work. I've been working on this for several days now. It shouldn't be this hard...
I appreciate any help or suggestions people might have. I would really like to get beyond the configuration $#!^ and start coding.
Thanks in advance!!!
Jim
Here are snippets from the pertinent files:
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
admin</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<jsp-config>
<taglib>
<taglib-uri>struts-bean</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-logic</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-html</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location>
</taglib>
<!-- The following tag library info was added for JSTL libraries. -->
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
<taglib-location>/WEB-INF/tlds/c-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/tlds/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
<taglib-location>/WEB-INF/tlds/sql-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/tlds/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
<taglib-location>/WEB-INF/tlds/x-rt.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>
struts-config.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"/WEB-INF/dtds/struts-config_1_2.dtd">
<struts-config>
<!-- ============================================ Data Source Configuration -->
<data-sources />
<!-- ================================================ Form Bean Definitions -->
<form-beans>
</form-beans>
<!-- ========================================= Global Exception Definitions -->
<global-exceptions />
<!-- =========================================== Global Forward Definitions -->
<global-forwards />
<!-- =========================================== Action Mapping Definitions -->
<action-mappings>
<action path="/foobar" forward="/createAccount.jsp" />
</action-mappings>
<!--
============================================= Controller Configuration
<controller contentType="text/html; charset=UTF-8" />
======================================== Message Resources Definitions
<message-resources
parameter="com.xilinx.web.registration.struts.res.ApplicationResources" />
=============================================== Plug Ins Configuration -->
<!--======================================================= Tiles plugin -->
<!--
This plugin initialize Tiles definition factory. This later can takes some
parameters explained here after. The plugin first read parameters from
web.xml, thenoverload them with parameters defined here. All parameters
are optional.
The plugin should be declared in each struts-config file.
- definitions-config: (optional)
Specify configuration file names. There can be several comma
separated file names (default: ?? )
- moduleAware: (optional - struts1.1)
Specify if the Tiles definition factory is module aware. If true
(default), there will be one factory for each Struts module.
If false, there will be one common factory for all module. In this
later case, it is still needed to declare one plugin per module.
The factory will be initialized with parameters found in the first
initialized plugin (generally the one associated with the default
module).
true : One factory per module. (default)
false : one single shared factory for all modules
- definitions-parser-validate: (optional)
Specify if xml parser should validate the Tiles configuration file.
true : validate. DTD should be specified in file header (default)
false : no validation
Paths found in Tiles definitions are relative to the main context.
-->
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
<set-property property="definitions-debug" value="2" />
<set-property property="definitions-parser-details" value="2" />
<set-property property="definitions-parser-validate" value="true" />
</plug-in>
<!-- =================================================== Validator plugin
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in>
-->
</struts-config>
tiles-defs.xml (in the WEB-INF directory as are the other xml files...):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<definition name="Tiles.register" page="/tiles/template.jsp">
<put name="header" value="/tiles/header.jsp" />
<put name="body" value="/register.jsp" />
<put name="footer" value="/tiles/footer.jsp" />
</definition>
</tiles-definitions>
Console output when starting the server:
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jul 7, 2006 11:36:41 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 7, 2006 11:36:43 AM org.apache.struts.tiles.xmlDefinition.I18nFactorySet initFactory
SEVERE: null : Can't find file '/WEB-INF/tiles-defs.xml'
Jul 7, 2006 11:36:43 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
SEVERE: Can't create Tiles definition factory for module ''.
Jul 7, 2006 11:36:43 AM org.apache.struts.action.ActionServlet init
SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
javax.servlet.ServletException: null : Can't find file '/WEB-INF/tiles-defs.xml'
at org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:233)
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:137)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Jul 7, 2006 11:36:43 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Jul 7, 2006 11:36:43 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /admin threw load() exception
javax.servlet.UnavailableException: null : Can't find file '/WEB-INF/tiles-defs.xml'
I have the following jars in my Web App Libraries (WEB-INF/lib):
standard.jar
commons-fileupload.jar
antlr.jar
struts.jar
commons-beanutils.jar
commons-logging.jar
commons-validator.jar
myswl-connector-java-3.1.12-bin.jar
struts-el.jar
jstl.jar
commons-digester.jar
Struts is version: 1.2.9.
JRE / JDK: 1.5.0_06 (Program files shows I have JRE 1.5.0_05 in the tree as well)
Note: Struts will work if I comment out the tiles plug-in in the struts-config.xml file.you don�t call o files-defs.xml in jsp?
-
JAXB Polymorphism of little use
HI all.
I am finding little use in JAXB's polymorphism. As such, I think I'm going to need to switch to another framework that has a more useful polymorphism feature (or else none at all).
As indicated below, I have a schema that includes a "Person" complex type, and an "Employee" complex type that extends it. There is also an element "people" that is a sequence of "Person" elements. I have used JAXB-generated classes to add instances of Person and Employee (generated classes) to an instance of the People class. The marshaller then erroneously outputs the extensions to Person found in Employee (see below).
Having seen this, I wonder what use polymorphism (in the classes generated by JAXB) has, if it is not acceptable to use a subclass wherever its superclass is allowed. Perhaps there is some other way to do polymorphism that I'm missing?
I really want to have a functionality such as the code example below implies. Does JAXB have the feature I'm looking for, or do I need to switch to another framework? If I need to switch, which one should I use?
Thanks for any help that can be offered.
schema:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="people">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="person" type="Person" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="Person">
<xs:sequence>
<xs:element name="name" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Employee">
<xs:complexContent>
<xs:extension base="Person">
<xs:sequence>
<xs:element name="title" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
expected JAXB output:
<people>
<person>
<name>Joe Sample</name>
</person>
<person>
<name>Jane Sample Employee</name>
</person>
</people>
actual JAXB output (invalid):
<people>
<person>
<name>Joe Sample</name>
</person>
<person>
<name>Jane Sample Employee</name>
<title>Engineer</title>
</person>
</people>
Java code:
Person person = factory.createPerson();
person.setName("Joe Sample");
Employee employee = factory.createEmployee();
employee.setName("Jane Sample Employee");
employee.setTitle("Engineer");
People people = factory.createPeople();
people.getPerson().add(person);
people.getPerson().add(employee);
- Matt Munzhi Matt,
I think your expected output may be wrong, and the actual output be correct eg consider this code:
import java.util.*;
class Person {
String name;
public String toString() { return "Person("+name+")"; } }
class Employee extends Person {
String title;
public String toString() { return "Employee("+name+", "+title+")"; } }
public class JBTest {
public static void main(String[]arg) {
List l = new ArrayList();
Person p = new Person();
p.name="Joe Sample";
Employee q = new Employee();
q.name="Jane Sample Employee";
q.title="Engineer";
l.add(p);
l.add(q);
System.out.println(l);
which outputs
[Person(Joe Sample), Employee(Jane Sample Employee, Engineer)]
So although the List is untyped (am not keeping up with generics..
sorry!) in the above code, even if it were a Person list it would still be legitimate to add an Employee to the list (since an Employee is-a
Person)
saying that, am not sure how you could achieve what you are trying? are you hoping for the object tree you construct not to be validated?
thanks,
asjf -
Why can't my HD to SD SHORT film look good? Best Encode?
I have a 12 minute short film on HDV. I imported it to FCP5 and then DVDSP4 and created an HD-DVD and it looked GREAT. Then I found out my computer is pretty much the only DVD player that can play the HD-DVD I had created. Thus began my journey to make a decent SD-DVD, and so far I am not even close...
HERE'S WHAT I'M DOING:
1. I used FCP to downconvert from HDV to DV (I don't have access to the camera to use it downconvert option). I'm sure this step is where the quality drops at least 4 generations!
2. DVDSP5 > Preferences > Mode: Two Pass VBR, Bit Rate: 5.5, Max Bit Rate: 8.5, Motion Est: Best
IMAGE PROBLEM:
Lots of pixelation in darker areas of the screen. Places i could see in HD are now just black and pixelated black at that.
TWO QUESTION:
1. My main annoyance is this: When I burn the DVD, it only burns about 20% of the DVD (HD-DVD would use 60%). I have the space on my DVD-R, why can't I utilize this space and burn 90% of this space with data to make my film look good?
2. iDVD did a better job of making the SD DVD look good. So I know there is something i could do. I've never used Compressor. How can I encode my HDV for use in SD DVD environement in DVDSP5?
Any help will be much appreciated... I hope answers to these questions helps others as well...
Best,
AJAJ -
Thanks for your reply -I hope i can clarify below.
Yes i have been editing the sequences using native HDV 1080i.
When comparing the output of the converted formats here is what i did.
I have a Sony a HC1 HDV Camcorder. I captured and edited all clips with native HDV. Then i recorded back the HDV material back into the camera (HUGE issues with doing this in FCP - but ill leave that to another thread)
From there i did two things
1) I sent the native HDV Final Cut sequence to compressor and set it to DVD, 90Min, Best quality, 2pass VBR. I burned a DVD with DVDSP4 with this encoded sequence
2) i played back the HDV Sequence from my sony camcorder back into the television directly - but using the composite video output (not using the high definition component output).
3) I set my Sony HDV cam to output via firewire as standard DV (eg - i let the camera do its own HDV to DV downconvert). from there i recaptured back into FCP, compressed with the same compressor settings, and sent to DVDSP4
I compared side by side the content from all three options. Hands down Options 2 and 3 looked MUCH better than option 1.
Here is what i noticed
1) A lot of motion artifacts with option 1. This especially when the camera pans and moves. I think this has to do with the way interlacing during downconversion happens. If i run the FCP sequence through a de-interlace filter it actually does come out better - though not as smooth since you are loosing 1/2 the frames.
2) A lot of digital artifacts. pixellation and such like. It looks almost like one of those old VCDs in terms of image quality.
I had searched the forums and found that many other people are having the same problems - so i know that i am not alone on this one (unfortunately). I do find it frustrating that a very expensive >$1000 application suite which claims to support HD has so many issues with editing in HD (this is just one of the issues.. others are that you cannot reliably export HDV back to tape, there are issues with editing multi-cam with HDV with more than 3 sequences... etc..).
Maybe you are looking for
-
I have a iPhone 4 on 4.2.6. Tried to update to 5.0.1. On iTunes 10.5.1. Download wouldn't start originally so I downloaded manually from Apple website and tried to update. I got as far as "Initializing iPhone for Update" is what I think the bar s
-
Change the default language of an existing SAP Portal
Hi, Our SAP Portal works with two languages, Spanish and English. The default language is Spanish, but since the company is becoming more international, we want to set the default language to English. Need to know if you can change the default langua
-
How to display menus on 40" TV
I just started connecting my MB to a 40" Samsung LCD TV via a mini display port to HDMI cable. The picture is fine except the menu dos not show on the TV. I have tried the different display resolution preferences and that doesn't work. Should I be ab
-
Can Notes be password protected?
I need an app that will allow me to enter info that can be password protected. My iPhone 5 is password protected but I also need to password protect some data that I am entering into the phone.
-
How long does it typically take to update ios5? Since update mine has been syncing for hours. I do have over 800 pics and 400 songs. Any ideas?