Problem in using JOIN in code
Hello ,
there is one problem while using this select query :
SELECT a~vbeln vkorg audat auart a~netwr werks mwsbp INTO
TABLE int_vbak
FROM vbak AS a JOIN vbap AS b
ON a~vbeln = b~vbeln
FOR ALL ENTRIES IN int_auart
WHERE auart EQ int_auart-low
AND vkorg IN s_vkorg
AND audat IN s_audat
AND werks IN s_werks
AND abgru EQ ' '.
In VBAP table i have 10 records for particular vbeln but i am getting 9 only what could be the problem
i have come across a scenerio when my vbeln and netwr are same at tht time it misses one record .
Please help me to solve this issue so that i could get all the 10 records .
Thanks Aryan
Dear Aryan,
SELECT avbeln vkorg audat auart anetwr werks mwsbp INTO
TABLE int_vbak
FROM vbak AS a JOIN vbap AS b
ON avbeln = bvbeln
FOR ALL ENTRIES IN int_auart
WHERE auart EQ int_auart-low
AND vkorg IN s_vkorg
AND audat IN s_audat
AND werks IN s_werks
AND abgru EQ ' '.
In your code jsut check entries in for all entries table and values in the fields which you have used in your where condition.
Hope this will help you to resolve your problem.
Regards,
Vijay
Similar Messages
-
Problem in using of some code in QA11 Tocde
hi all,
I want to debeg one function module at the time of using QA11 Tcode. I am using Function Module that is FIELD_EXIT_QPLOS
( This is Field Exit). I am putting dynamic break point and i am trying to run QA11 T code but it is not going to bebugging mode.
Please advice.
Thanx & Regards
Rami ReddyHi Rami,
Field-exit method of enhancement does not support debugging.
Regards,
Kumaar.s -
hi Gurus,
m facing very different problem from yesterday. The day b4 all tax codes were working finely bur nw they are showing error in calculation.
e.g.
if i m using tax code with 14%BED, 2%ECess, 1%SEcess, 4%VAT.
But when entering in PO conditions, user delete the BED condition and uses manula excise condition value.
Say v r ordering 100 pcs of 50 each.
So total amt will be 5000
Manual excise 14% = 700
ECess 2% = 14
SEcess = 07
VAT = 228.84
which is showing correctly in condition tab.
But when v assign tax code with same combination i.e. 14,2,1,4 n whn clik on taxes its showing
BED deduct = 70 i.e. 10% of manual excise which v entered.
Ecess = 1.40 i.e. 2 % of above value (70)
SEcess = 7 which is correct
VAT = 203.14 which is from above addition.
M facing this problem fron yesterday only. I compared pricing procedure also, n didnt find any change made. Also no one has made the changes. V r using TAXINJ. Also when I enter BED = 100% in tax code then some tax codes work finely. But some didnt. What may be the problem?
RegardsHi
My guess is if you are using customised Tx code with the deductible Tax code for the 3 taxes then there is no question of it calculaiting wrong percentage during PO, only thing you need to select the right Condition types.
IF you are maintaing conditions in FV11 for the vendor pleae do check if it is picking some thing else othere than what you have entered i. e 14% then it is certain that the corresponding vendor is picking som other record instead of the current what you have created. Pleae try to create conditions Plant specific with vendor/material combination and also check for the validity of the condition also.
Best regards -
Problem in event handling using oo abap code
Hi,
My requirement is i need to disply 3 blocks in ALV format.I have done that.Now my problem is if i double click on aufnr of the first block, it should call the transaction code. I have written the code in oo abap but i have used function modules for ALV.Now my doubt is 'How to write an event once the user double click on the particular field of the first block, it should call the tcode " using object oriented code.
How to populate the heading for each block using oo abap code.
Thanks & Regards
Anushi.....
Use Double_click event handler method of class cl_gui_alv_grid of first block....
if not solved .
Send me Your program lines ...........
Best Regards
Prabhakar -
I'm having problems activating dreamweaver on new pc using original activation code
I have a copy of StudioMX 2004 and was having problems activating Dreamweaver on my new pc using the original code. It says there is a network error but there isn't. When I try to activate by phone the number they give is for Lloyds bank insurance. I did a live chat with Support and they gave me a new code which worked and activated Dreamweaver but I didn't think to activate Fireworks at the same time. When I have tried using either the old code or the new I get the same error message and same Lloyds bank phone number. I have tried live chat but they refuse to help saying they don't support Dreamweaver 2004 ..any one any ideas?
Hi gb147,
The version of Dreamweaver that you have does not support any of the latest web standards. While I advise you to follow Ken's instructions, I also want you to download a trial version of the latest Creative Cloud application https://creative.adobe.com/products/download/dreamweaver and give it a run. The page also has some excellent resources to help you get started.
Thanks,
Preran -
I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4)
A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?Sounds kind of stupid, but check to make sure that your iphone case cover is not blocking the edge of the camera lens. I had a silicone case on my 3S and when it got older, it started tot slip and the edges of my pictures were blurred.
-
Mountain Lion Redeem problem - Cant use redeem code after recovery
Hi,
I have a macbookpro mid 2012 md 101, i got the redeem code for mountain lion on purchase of my macbookpro last year. yesterday i tried to reinstall mountain lion from recovery. howvever, it failed i don't know why. and it went on the internet download and instead of downloading Mountain Lion again it downloaded and install Lion.
i tried to use my redeem code which i got last year but it seems not working anymore.
Please help me out - how do i get back my mountain lion.
Thnak you.Redemption codes may only be used once.
Open the Mac App Store, click the Purchases pane, if your purchases do not apear sign into your account through the Store pulldown menu in the MAS menubar. You should see the Mt Lion installer among your purchases, download and install. After that use Software Update to make sure you have the most recent version of Mt Lion. -
Problem in using aggregate functions inside case statement
Hi All,
I am facing problem while using aggregate functions inside case statement.
CASE WHEN PSTYPE='S' THEN MAX(DECODE(POS.PBS,1,ABS(POS.PPRTQ),0)) ELSE SUM(DECODE(POS.PBS,1,ABS(POS.PPRTQ),0)) END,
how can I achieve above requirement ? Con anyone help me.
Thanks and Regards
DGHi All,
Below is my query:
SELECT
CASE WHEN p_reportid IN ('POS_RV_SN','POS_PB') THEN POS.PACCT
ELSE POS.PACCT || '-' || DECODE(POS.SYSTEMCODE,'GMI1','1', 'GMI2','2', 'GMI3','4', 'GMI4','3', '0') ||POS.PFIRM|| NVL(POS.POFFIC,'000') END,
CASE WHEN p_reportid IN ('POS_RV_SN','POS_PB') THEN POS.PACCT||POS.PCUSIP||DECODE(POS.PBS,1,'+',2,'-')
ELSE POS.PFIRM||POS.POFFIC||POS.PACCT||POS.PCUSIP||DECODE(POS.PBS,1,'+',2,'-') END,POS.SYSTEMCODE,CASE WHEN POS.PSTYPE='S' THEN POS.PSYMBL ELSE POS.PFC END,POS.PEXCH||DECODE(POS.PSUBEX,'<NULL>',''),
POS.PCURSY,
CASE WHEN POS.PSBCUS IS NULL THEN SUBSTR(POS.PCTYM,5,2) || SUBSTR(POS.PCTYM,1,4) ELSE POS.PSBCUS || SUBSTR(POS.PCTYM,5,2) || SUBSTR(POS.PCTYM,1,4) END ,
NVL(POS.PSUBTY,'F') ,POS.PSTRIK,*SUM(DECODE(POS.PBS,1,ABS(POS.PPRTQ),0)) ,SUM(DECODE(POS.PBS,2,ABS(POS.PPRTQ),0))* ,
POS.PCLOSE,SUM(POS.PMKVAL) ,
TO_CHAR(CASE WHEN INSTR(POS.PUNDCP,'.') > 0 OR LENGTH(POS.PUNDCP) < 15 THEN POS.PUNDCP ELSE TO_CHAR(TO_NUMBER(POS.PUNDCP) / 100000000) END),
POS.UBS_ID,POS.BBG_EXCHANGE_CODE,POS.BBG_TICKER ,POS.BBG_YELLOW_KEY,POS.PPCNTY,POS.PMULTF,TO_CHAR(POS.BUSINESS_DATE,'YYYYMMDD'),
POS.SOURCE_GMI_LIB,
--DECODE(POS.SYSTEMCODE,'GMI1','euro','GMI2','namr','GMI3','aust','GMI4','asia','POWERBASE','aust','SINACOR','namr',POS.SYSTEMCODE),
DECODE(p_reportid,'RVPOS_SING','euro','RVPOS_AUSTDOM','aust','RVPOS_AUSTEOD','euro','RVPOS_GLBLAPAC','asia','POS_RV_SN','namr','POS_PB','aust',POS.SYSTEMCODE),
POS.RIC,
CASE WHEN PSUBTY = 'S' THEN POS.TYPE ELSE NULL END,
DECODE(POS.UBS_ID,NULL,POS.PCUSP2,POS.ISIN),POS.UNDERLYING_BBG_TICKER,POS.UNDERLYING_BBG_EXCHANGE,POS.PRODUCT_CLASSIFICATION,
CASE WHEN PSUBTY = 'S' THEN POS.PSDSC2 ELSE NULL END,
CASE WHEN PSUBTY = 'S' THEN C.SSDSC3 ELSE NULL END,
NVL(C.SSECID,POS.PCUSIP),
NULL,
POS.PYSTMV,
POS.PMINIT,
POS.PEXPDT,
CASE WHEN POS.PSUBTY='S' THEN SUBSTR(C.ZDATA2,77,1) ELSE NULL END,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
FROM POSITIONS_WRK POS LEFT OUTER JOIN
(SELECT * FROM CDS_PRODUCTS CP INNER JOIN FUTURE_MASTER FM ON
(CP.STRXCH=FM.ZEXCH AND CP.SFC=FM.ZFC AND CP.BUSINESS_DATE = FM.BUSINESS_DATE )) C ON POS.PCUSIP = C.SCUSIP
AND NVL(POS.PCUSP2,'X') = NVL(C.SCUSP2,'X')
WHERE
POS.PEXCH NOT IN ('A1','A2','A3','B1','B3','C2','D1','H1','K1','L1','M1','M3','P1','S1')
AND (POS.PSBCUS IS NOT NULL OR POS.PCTYM IS NOT NULL OR POS.PSTYPE ='S')
AND POS.BUSINESS_DATE = run_date_char
GROUP BY
POS.UBS_ID,POS.SYSTEMCODE,POS.RECIPIENTCODE,POS.BUSINESS_DATE,POS.PACCT,POS.PFIRM,POS.POFFIC,POS.PCUSIP,POS.PBS,CASE WHEN POS.PSTYPE='S' THEN POS.PSYMBL ELSE POS.PFC END,
POS.PEXCH,POS.PSUBEX,POS.PCURSY,
CASE WHEN POS.PSBCUS IS NULL THEN SUBSTR(POS.PCTYM,5,2) || SUBSTR(POS.PCTYM,1,4) ELSE POS.PSBCUS || SUBSTR(POS.PCTYM,5,2) || SUBSTR(POS.PCTYM,1,4) END,
NVL(POS.PSUBTY,'F') ,POS.PSTRIK,POS.PCLOSE,TO_CHAR(CASE WHEN INSTR(POS.PUNDCP,'.') > 0 OR LENGTH(POS.PUNDCP) < 15 THEN POS.PUNDCP ELSE TO_CHAR(TO_NUMBER(POS.PUNDCP) / 100000000) END),
POS.BBG_EXCHANGE_CODE,POS.BBG_TICKER,POS.BBG_YELLOW_KEY,POS.PPCNTY,POS.PMULTF,POS.PSUBTY,POS.SOURCE_GMI_LIB,RIC,
CASE WHEN PSUBTY = 'S' THEN POS.TYPE ELSE NULL END,
DECODE(POS.UBS_ID,NULL,POS.PCUSP2,POS.ISIN),POS.UNDERLYING_BBG_TICKER,POS.UNDERLYING_BBG_EXCHANGE,POS.PRODUCT_CLASSIFICATION,
CASE WHEN PSUBTY = 'S' THEN POS.PSDSC2 ELSE NULL END,
CASE WHEN PSUBTY = 'S' THEN C.SSDSC3 ELSE NULL END,
NVL(C.SSECID,POS.PCUSIP),
POS.PYSTMV,
POS.PMINIT,
POS.PEXPDT,
CASE WHEN PSUBTY = 'S' THEN SUBSTR(C.ZDATA2,77,1) ELSE NULL END;Now, could you plz help me in replacing the bold text in the query with the requirement.
Thanks and Rgds
DG
Edited by: BluShadow on 16-May-2011 09:39
added {noformat}{noformat} tags. Please read: {message:id=9360002} for details on how to post code/data -
Using join and batch reading in the same query
Hi,
I wonder if it is possible to use "Joining" and "batch reading" in the same query.
For example I Have
A -> 1-1 B
A -> 1-1 B
B -> 1-M C
This is the case where I have two separate 1-1 relationships to the same class B from A. Toplink 10.0.3 can manage it nicely through joining.
Now, I would like to read a set of As (with its 2 Bs) and all Cs for each B.
It seems that the following configuration does not work:
A -> 1-1 B (use joining)
A -> 1-1 B (use joining)
B -> 1-M C (Batch read)
Any help would be greatly appreciated
Tony.James,
Would you be so kind to look at the following code?
Am I formulating it correctly to achieve my desired behavior?
Trip.class -> 1-1 PickupStop
Trip.class -> 1-1 DropoffStop
PickupStop and DropoffStop extend Stop and use same table (STOP)
Stop -> 1-M StopEvents
I would like to fetch all Trips, with their Stops and all StopEvents in 2 queries:
1. Trip joined with Stop
2. Batchread StopEvents
Code:
ReadAllQuery raq = new ReadAllQuery(Trip.class);
Expression qexp1 = new ExpressionBuilder();
Expression qexp2 = new ExpressionBuilder();
raq.addJoinedAttribute("pickupStop");
raq.addJoinedAttribute("dropoffStop");
raq.addBatchReadAttribute(qexp1.get("pickupStop").get("vStopEvents"));
raq.addBatchReadAttribute(qexp2.get("dropoffStop").get("vStopEvents")); -
Problem with using JMF audio over a network
Hiya, I'm using IBM JMF code but I'm having problems trying to get it transmit data from the MediaTransmitter to the MediaPlayerFrame.
I'm kinda new to JMF so I assume I'm missing something basis for why this doesn't work.
Any help would be greatly appreciated.
MediaPlayerFrame
import javax.media.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
* An instance of the MediaPlayerFrame may be used to display any media
* recognized * by JMF. This is intended to be a very simple GUI example,
* displaying all possible controls for the given media type.
public class MediaPlayerFrame extends JFrame {
* The frame title.
private static final String FRAME_TITLE = "developerWorks JMF Tutorial " +
"Media Player";
* The panel title of the main control panel.
private static final String CONTROL_PANEL_TITLE = "Control Panel";
// location and size variables for the frame.
private static final int LOC_X = 100;
private static final int LOC_Y = 100;
private static final int HEIGHT = 500;
private static final int WIDTH = 500;
private final static long serialVersionUID = 1;
* The current player.
private Player player = null;
* The tabbed pane for displaying controls.
private JTabbedPane tabPane = null;
* Create an instance of the media frame. No data will be displayed in the
* frame until a player is set.
public MediaPlayerFrame() {
super(FRAME_TITLE);
System.out.println("MediaPlayerFrame");
setLocation(LOC_X, LOC_Y);
setSize(WIDTH, HEIGHT);
tabPane = new JTabbedPane();
getContentPane().add(tabPane);
/* adds a window listener so that the player may be cleaned up before
the frame actually closes.
addWindowListener(new WindowAdapter() {
* Invoked when the frame is being closed.
public void windowClosing(WindowEvent e) {
closeCurrentPlayer();
/* Closing this frame will cause the entire
application to exit. When running this
example as its own application, this is
fine - but in general, a closing frame
would not close the entire application.
If this behavior is not desired, comment
out the following line:
System.exit(0);
* Creates the main panel. This panel will contain the following if they
* exist:
* - The visual component: where any visual data is displayed, i.e. a
* movie uses this control to display the video.
* - The gain component: where the gain/volume may be changed. This
* is often * contained in the control panel component (below.)
* - The control panel component: time and some extra info regarding
* the media.
private JPanel createMainPanel() {
System.out.println("createMainPanel");
JPanel mainPanel = new JPanel();
GridBagLayout gbl = new GridBagLayout();
GridBagConstraints gbc = new GridBagConstraints();
mainPanel.setLayout(gbl);
boolean visualComponentExists = false;
// if the visual component exists, add it to the newly created panel.
if (player.getVisualComponent() != null) {
visualComponentExists = true;
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 1;
gbc.weighty = 1;
gbc.fill = GridBagConstraints.BOTH;
mainPanel.add(player.getVisualComponent(), gbc);
// if the gain control component exists, add it to the new panel.
if ((player.getGainControl() != null) &&
(player.getGainControl().getControlComponent() != null)) {
gbc.gridx = 1;
gbc.gridy = 0;
gbc.weightx = 0;
gbc.weighty = 1;
gbc.gridheight = 2;
gbc.fill = GridBagConstraints.VERTICAL;
mainPanel.add(player.getGainControl().getControlComponent(), gbc);
// Add the control panel component if it exists (it should exists in
// all cases.)
if (player.getControlPanelComponent() != null) {
gbc.gridx = 0;
gbc.gridy = 1;
gbc.weightx = 1;
gbc.gridheight = 1;
if (visualComponentExists) {
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weighty = 0;
} else {
gbc.fill = GridBagConstraints.BOTH;
gbc.weighty = 1;
mainPanel.add(player.getControlPanelComponent(), gbc);
return mainPanel;
* Sets the media locator. Setting this to a new value effectively
* discards any Player which may have already existed.
* @param locator the new MediaLocator object.
* @throws IOException indicates an IO error in opening the media.
* @throws NoPlayerException indicates no player was found for the
* media type.
* @throws CannotRealizeException indicates an error in realizing the
* media file or stream.
public void setMediaLocator(MediaLocator locator) throws IOException,
NoPlayerException, CannotRealizeException {
System.out.println("setMediaLocator: " +locator);
// create a new player with the new locator. This will effectively
// stop and discard any current player.
setPlayer(Manager.createRealizedPlayer(locator));
* Sets the player reference. Setting this to a new value will discard
* any Player which already exists. It will also refresh the contents
* of the pane with the components for the new player. A null value will
* stop the discard the current player and clear the contents of the
* frame.
public void setPlayer(Player newPlayer) {
System.out.println("setPlayer");
// close the current player
closeCurrentPlayer();
player = newPlayer;
// refresh the tabbed pane.
tabPane.removeAll();
if (player == null) return;
// add the new main panel
tabPane.add(CONTROL_PANEL_TITLE, createMainPanel());
// add any other controls which may exist in the player. These
// controls should already contain a name which is used in the
// tabbed pane.
Control[] controls = player.getControls();
for (int i = 0; i < controls.length; i++) {
if (controls.getControlComponent() != null) {
tabPane.add(controls[i].getControlComponent());
* Stops and closes the current player if one exists.
private void closeCurrentPlayer() {
if (player != null) {
player.stop();
player.close();
* Prints a usage message to System.out for how to use this class
* through the command line.
public static void printUsage() {
System.out.println("Usage: java MediaPlayerFrame mediaLocator");
* Allows the user to run the class through the command line.
* Only one argument is allowed, which is the media locator.
public static void main(String[] args) {
try {
if (args.length == 1) {
MediaPlayerFrame mpf = new MediaPlayerFrame();
/* The following line creates a media locator using the String
passed in through the command line. This version should
be used when receiving media streamed over a network.
mpf.setMediaLocator(new MediaLocator(args[0]));
/* the following line may be used to create and set the media
locator from a simple file name. This works fine when
playing local media. To play media streamed over a
network, you should use the previous setMediaLocator()
line and comment this one out.
//mpf.setMediaLocator(new MediaLocator(
// new File(args[0]).toURL()));
mpf.setVisible(true);
} else {
printUsage();
} catch (Throwable t) {
t.printStackTrace();
MediaTransmitter
import javax.media.*;
import javax.media.control.*;
import javax.media.protocol.*;
import javax.media.format.*;
import java.io.IOException;
import java.io.File;
* Creates a new media transmitter. The media transmitter may be used to
* transmit a data source over a network.
public class MediaTransmitter {
* Output locator - this is the broadcast address for the media.
private MediaLocator mediaLocator = null;
* The data sink object used to broadcast the results from the processor
* to the network.
private DataSink dataSink = null;
* The processor used to read the media from a local file, and produce an
* output stream which will be handed to the data sink object for
* broadcast.
private Processor mediaProcessor = null;
* The track formats used for all data sources in this transmitter. It is
* assumed that this transmitter will always be associated with the same
* RTP stream format, so this is made static.
private static final Format[] FORMATS = new Format[] {
new AudioFormat(AudioFormat.MPEG_RTP)};
* The content descriptor for this transmitter. It is assumed that this
* transmitter always handles the same type of RTP content, so this is
* made static.
private static final ContentDescriptor CONTENT_DESCRIPTOR =
new ContentDescriptor(ContentDescriptor.RAW_RTP);
* Creates a new transmitter with the given outbound locator.
public MediaTransmitter(MediaLocator locator) {
mediaLocator = locator;
* Starts transmitting the media.
public void startTransmitting() throws IOException {
// start the processor
mediaProcessor.start();
// open and start the data sink
dataSink.open();
dataSink.start();
* Stops transmitting the media.
public void stopTransmitting() throws IOException {
// stop and close the data sink
dataSink.stop();
dataSink.close();
// stop and close the processor
mediaProcessor.stop();
mediaProcessor.close();
* Sets the data source. This is where the transmitter will get the media
* to transmit.
public void setDataSource(DataSource ds) throws IOException,
NoProcessorException, CannotRealizeException, NoDataSinkException {
/* Create the realized processor. By calling the
createRealizedProcessor() method on the manager, we are guaranteed
that the processor is both configured and realized already.
For this reason, this method will block until both of these
conditions are true. In general, the processor is responsible
for reading the file from a file and converting it to
an RTP stream.
mediaProcessor = Manager.createRealizedProcessor(
new ProcessorModel(ds, FORMATS, CONTENT_DESCRIPTOR));
/* Create the data sink. The data sink is used to do the actual work
of broadcasting the RTP data over a network.
dataSink = Manager.createDataSink(mediaProcessor.getDataOutput(),
mediaLocator);
* Prints a usage message to System.out for how to use this class
* through the command line.
public static void printUsage() {
System.out.println("Usage: java MediaTransmitter mediaLocator " +
"mediaFile");
System.out.println(" example: java MediaTransmitter " +
"rtp://192.168.1.72:49150/audio mysong.mp3");
System.out.println(" example: java MediaTransmitter " +
"rtp://192.168.1.255:49150/audio mysong.mp3");
* Allows the user to run the class through the command line.
* Only two arguments are allowed; these are the output media
* locator and the mp3 audio file which will be broadcast
* in the order.
public static void main(String[] args) {
try {
if (args.length == 2) {
MediaLocator locator = new MediaLocator(args[0]);
MediaTransmitter transmitter = new MediaTransmitter(locator);
System.out.println("-> Created media locator: '" +
locator + "'");
/* Creates and uses a file reference for the audio file,
if a url or any other reference is desired, then this
line needs to change.
File mediaFile = new File(args[1]);
DataSource source = Manager.createDataSource(
new MediaLocator(mediaFile.toURL()));
System.out.println("-> Created data source: '" +
mediaFile.getAbsolutePath() + "'");
// set the data source.
transmitter.setDataSource(source);
System.out.println("-> Set the data source on the transmitter");
// start transmitting the file over the network.
transmitter.startTransmitting();
System.out.println("-> Transmitting...");
System.out.println(" Press the Enter key to exit");
// wait for the user to press Enter to proceed and exit.
System.in.read();
System.out.println("-> Exiting");
transmitter.stopTransmitting();
} else {
printUsage();
} catch (Throwable t) {
t.printStackTrace();
System.exit(0);Okay, here's the it copied out.
Media Transmitter
C:\John\Masters Project\Java\jmf1\MediaPlayer>java MediaTransmitter rtp://127.0.
0.1:2000/audio it-came-upon.mp3
-> Created media locator: 'rtp://127.0.0.1:2000/audio'
-> Created data source: 'C:\John\Masters Project\Java\jmf1\MediaPlayer\it-came-u
pon.mp3'
streams is [Lcom.sun.media.multiplexer.RawBufferMux$RawBufferSourceStream;@1decd
ec : 1
sink: setOutputLocator rtp://127.0.0.1:2000/audio
-> Set the data source on the transmitter
-> Transmitting...
Press the Enter key to exit
MediaPlayerFrame
C:\John\Masters Project\Java\jmf1\MediaPlayer>java MediaPlayerFrame rtp://127.0.
0.1:2000/audio
MediaPlayerFrame
setMediaLocator: rtp://127.0.0.1:2000/audioAs I said, it just kinda stops there, what it should be doing is opening the MediaPlayer.
"MediaPlayerFrame" and "setMediaLocator: rtp://127.0.0.1:2000/audio" are just print outs I used to track here the code is getting to. -
Hi
I am having problem on using Crystal Report Viewer on one of my windows application.
I am not sure how to put the Crystal Report Viewer 11 Control onto the tool box.
I could found a Crystal Report Viewer control on my computer, but it is version 8.5.
I have also found another one which is Called Crytal ActiveX Report Viewer, i don't think it is the one I can use. As when I try to load a dummy report on to the Crytal ActiveX Report Viewer, It return an error. "specified type is not valid"
Please see the Code sample below.
private sub loadReport()
Dim r as New ReportDocument
'v is the name of the Crystal ActiveX Report Viewer Control
r.Load("C:\Report1.rtp")
v.ReportSource(r) <---It throw error on this line.
End Sub
Could you give me some advice about what have I done wrong, How to check if I have set up the Crystal Report Component correctly in my Visual Studio 2005 Standard edition.
Thanks in advances.
Many thanks
ChiVS 2005 Standard and Express editions do not come with Crystal Reports; only the Professional and higher editions will have CR bundled. However, I believe you can purchase CR XI R2 Developer and it will give you the components you need to create a VS .NET 2005 application using the Standard edition.
-MJ -
Problem in using FM SELECT_TEXT
Hi friends,
I have a problem in using fm SELECT_TEXT.
Here I want to fetch Material PO text in Material master to my report.
I just dont know in which field of table "it_thead" the actual text is available.\
I tried debugging the program but was not successful.
I have also tried using READ_TEXT but it gives an error if no Text exists.
CALL FUNCTION 'SELECT_TEXT'
EXPORTING
client = sy-mandt
object = 'MATERIAL'
name = wrk_matnr
id = 'BEST'
language = sy-langu
TABLES
selections = it_thead.
How do i print the actual MAterial PO text in IT_THEAD ?
hope u understand the question...please do let me know if any details are required from myside..Hi,
My mistake.
Check below sample code.
PARAMETERS: po_matnr TYPE mara-matnr.
DATA: i_lines TYPE STANDARD TABLE OF tline,
wa_lines TYPE tline,
l_matnr TYPE thead-tdname.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = po_matnr
IMPORTING
OUTPUT = po_matnr
MOVE po_matnr TO l_matnr.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
ID = 'BEST'
LANGUAGE = sy-langu
NAME = l_matnr "Pass material with leading zeros
OBJECT = 'MATERIAL'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
LINES = i_lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT i_lines INTO wa_lines.
WRITE: /1 wa_lines-tdline.
ENDLOOP.
Just execute this code by inputting ur material number.
If the text doesnot exist the error u r getting because of not commenting the MESSAGE statement after FM call. Try in the way i told above.
Thanks,
Vinod.
Edited by: Vinod Reddy Vemuru on Feb 28, 2009 4:36 PM -
Do you need to use Actionscript 3 code in Flash player 9 and above?
Can anyone tell me if I need to use Actionscript 3 code instead of Actionscript 2 code in the following situation:
I am running a swf file which is contained in a browser window (all files are contained on a CD and I have a 'trust' file set up to let them play properly). Up until now, I have been using the following Actionscript 2 code to close the browser window (the Actionscript 2 code is on an 'Exit' button within the swf):
on (release) {
getURL("javascript:window.close()");
This Actionscript 2 code has always worked and still works in Flash player 8 and lower. However, it does nothing when played using Flash player 9. Can anyone tell me if Flash player 9 won't recognize Actionscript 2 code? Is it essential to use ONLY Actionscript 3 code if you are using Flash player 9?
I am having the same problem when I try to launch another html page containing a swf (popped up from the swf contained in the main html window). I have the following code on the button to launch the popup html window. It always worked, but suddenly no longer works with Flash player 9. Here is the code I am using:
on (release) {
getURL("javascript:launchWin2('webpage2.html');");
I have all the necessary background code to launch 'webpage2.html'. It works everywhere except in Flash player 9. Can anyone tell me if it is essential to use Actionscript 3 code ONLY on these buttons in Flash player 9? I am pretty new to Actionscript 3, so any help with syntax would be appreciated.
Please note that I don't want to use the projector.
Thanks!You can use both AS2 and AS3 based applications in both Flash 9 and 10.
As for the issues you describe - perhaps Flash General Forum is a better bet:
http://forums.adobe.com/community/flash/flash_general -
How can one read a Excel File and Upload into Table using Pl/SQL Code.
How can one read a Excel File and Upload into Table using Pl/SQL Code.
1. Excel File is on My PC.
2. And I want to write a Stored Procedure or Package to do that.
3. DataBase is on Other Server. Client-Server Environment.
4. I am Using Toad or PlSql developer tool.If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
1. Get your DBA to create directory object in oracle using the following command:
create directory TEST_DIR as ‘directory_path’;
Note: This directory is on the server.
2. Grant read,write on directory directory_object_name to username;
You can find out the directory_object_name value from dba_directories view if you are using the system user account.
3. Logon as the user as mentioned above.
Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
function getData(p_filename in varchar2,
p_filepath in varchar2
) RETURN VARCHAR2 is
input_file utl_file.file_type;
--declare a buffer to read text data
input_buffer varchar2(4000);
begin
--using the UTL_FILE in built package
input_file := utl_file.fopen(p_filepath, p_filename, 'R');
utl_file.get_line(input_file, input_buffer);
--debug
--dbms_output.put_line(input_buffer);
utl_file.fclose(input_file);
--return data
return input_buffer;
end;
Hope this helps. -
How do i get data from a structure using join?
hi,
what is the actual use of a structure.?
my problem is :
KUAGV is an existing STRUCTURE. it has got one fields each which links to MARA, AND VBKD tables. i want to fetch all related information from KUAGV, mara, vbkd . which is the better way : using joins or views or anything else? how do i
get data from a structure using join?structure temporarily holds any data passed to it dynamically throughout the runtime but doesnot store it permanently. so
a structure cannot be included in a join.so instead of incuding structure KUAGV's field in a join
search the transparent table in which same field are present and use it in join.
A structure if created in DDIC(Data Dictionary) is a global DATA STRUCTURE which is used to group related information, for example you would group all the details of your bank account into a structure BANK_ACCOUNT that contains fields like account_Id, account_holder_name etc.
If you create a structure in your program then it is local to your program. So you use this structure to create data holders of this DATA TYPE to hold data in your program.
Edited by: suja thomas on Feb 11, 2008 6:24 AM
Edited by: suja thomas on Feb 11, 2008 6:31 AM
Maybe you are looking for
-
HELP! I can no longer see the Podcast icon on my iPod touch.
The Podcast icon disappeared from the screen of my iPod touch. I reset the iPod and podcasts still do not appear.
-
Export pdf to word used to work seamlessly, now the conversion tool is not visible, and nothing I do brings it up. I cannot convert files from pdf to docx.
-
I am using code fist migration and second time I run the service, I got this error. "Modifying a column with the 'Identity'pattern is not supported. Column: 'CreatedAt'. context.Cars.AddOrUpdate(c => c.Id, new Car { Id = "60B0891B-C3CF-41A6-9BE0-BC
-
Problem with sales order update from MIGO ( using BADI)
I have written a BADI while doing MIGO, through which I am updating Sales order Order Quanity. I am able to update the Quantity successfully in sales order, but I am getting following update termination message which is mentioned below. "Sales Orde
-
How can I transfer the audio book from my PC to my I Pod