WRONG OUTPUT
Hi all,
i am getting wrong output when executing the below code
i.e the output is coming regard less of the order number in select statement.
Kindly please help me.
REPORT ZTEMP2.
TYPES: BEGIN OF TY_BKPF,
MONAT TYPE MONAT,
BUDAT TYPE BUDAT,
BELNR TYPE BELNR_D,
GJAHR TYPE GJAHR,
BUKRS TYPE BUKRS,
END OF TY_BKPF.
TYPES: BEGIN OF TY_BSEG,
BUKRS TYPE BUKRS,
BELNR TYPE BELNR_D,
GJAHR TYPE GJAHR,
HKONT TYPE HKONT,
WRBTR TYPE WRBTR,
SGTXT TYPE SGTXT,
AUFNR TYPE AUFNR,
END OF TY_BSEG.
TYPES: BEGIN OF TY_COLL,
MONAT TYPE MONAT,
BUDAT TYPE BUDAT,
BELNR TYPE BELNR_D,
WRBTR TYPE WRBTR,
SGTXT TYPE SGTXT,
END OF TY_COLL.
DATA: TOT LIKE BSEG-WRBTR.
DATA: IT_BKPF TYPE TABLE OF TY_BKPF,
WA_BKPF TYPE TY_BKPF,
IT_BSEG TYPE TABLE OF TY_BSEG,
WA_BSEG TYPE TY_BSEG,
IT_COLL TYPE TABLE OF TY_COLL,
WA_COLL TYPE TY_COLL.
SELECTION-SCREEN: BEGIN OF BLOCK B1.
SELECT-OPTIONS: S_HKONT FOR WA_BSEG-HKONT memory id one,
S_AUFNR FOR WA_BSEG-AUFNR memory id twq,
S_BELNR FOR WA_BKPF-BELNR memory id twe,
S_BUDAT FOR WA_BKPF-BUDAT memory id two.
SELECTION-SCREEN: END OF BLOCK B1.
START-OF-SELECTION.
SELECT MONAT
BUDAT
BELNR
GJAHR
BUKRS FROM BKPF
INTO TABLE IT_BKPF
WHERE BELNR IN S_BELNR
AND BUDAT IN S_BUDAT.
IF NOT IT_BKPF[] IS INITIAL.
SELECT BUKRS
BELNR
GJAHR
HKONT
WRBTR
SGTXT
AUFNR FROM BSEG
INTO TABLE IT_BSEG
FOR ALL ENTRIES IN IT_BKPF
WHERE HKONT IN S_HKONT
AND AUFNR IN S_AUFNR
AND BELNR IN S_BELNR
AND GJAHR = IT_BKPF-GJAHR
AND BUKRS = IT_BKPF-BUKRS.
ENDIF.
END-OF-SELECTION.
SORT IT_BKPF BY MONAT.
SORT IT_BSEG BY HKONT.
LOOP AT IT_BKPF INTO WA_BKPF.
Read table IT_BSEG INTO WA_BSEG WITH KEY BUKRS = WA_BKPF-BUKRS
BELNR = WA_BKPF-BELNR
GJAHR = WA_BKPF-GJAHR BINARY SEARCH.
WA_COLL-BELNR = WA_BKPF-BELNR.
WA_COLL-BUDAT = WA_BKPF-BUDAT.
WA_COLL-WRBTR = WA_BSEG-WRBTR.
WA_COLL-SGTXT = WA_BSEG-SGTXT.
WA_COLL-MONAT = WA_BKPF-MONAT.
COLLECT WA_COLL INTO IT_COLL.
CLEAR: WA_BKPF, WA_BSEG.
ENDLOOP.
SORT IT_COLL BY MONAT.
LOOP AT IT_COLL INTO WA_COLL.
WRITE:/06 WA_COLL-BELNR,
22 WA_COLL-BUDAT,
32 WA_COLL-WRBTR,
54 WA_COLL-SGTXT.
AT end of MONAT.
SUM.
WRITE:/ WA_COLL-MONAT.
WRITE:32 WA_COLL-WRBTR.
ENDAT.
ENDLOOP.
Thanks in advance,
ben2012.
Hi,
I tried this way to calculcate opening balance,
but it is not working kindly suggest me.
REPORT ZTEMP1.
" Types Declaration part
TYPES: BEGIN OF TY_COLL,
MONAT TYPE MONAT,
BUDAT TYPE BUDAT,
BELNR TYPE BELNR_D,
WRBTR TYPE WRBTR,
SGTXT TYPE SGTXT,
TOT TYPE WRBTR,
END OF TY_COLL.
DATA: TOT LIKE BSEG-WRBTR.
DATA: IT_BKPF TYPE TABLE OF TY_BKPF,
WA_BKPF TYPE TY_BKPF,
IT_BSEG TYPE TABLE OF TY_BSEG,
WA_BSEG TYPE TY_BSEG,
IT_BKPF1 TYPE TABLE OF TY_BKPF1,
WA_BKPF1 TYPE TY_BKPF1,
IT_BSEG1 TYPE TABLE OF TY_BSEG1,
WA_BSEG1 TYPE TY_BSEG1,
IT_COLL TYPE TABLE OF TY_COLL,
WA_COLL TYPE TY_COLL.
SELECTION-SCREEN: BEGIN OF BLOCK B1.
SELECT-OPTIONS: S_HKONT FOR WA_BSEG-HKONT memory id one,
S_AUFNR FOR WA_BSEG-AUFNR memory id twq,
S_BELNR FOR WA_BKPF-BELNR memory id twe,
S_BUDAT FOR WA_BKPF-BUDAT memory id two.
SELECTION-SCREEN: END OF BLOCK B1.
START-OF-SELECTION.
PERFORM SELECT1.
PERFORM OPB.
END-OF-SELECTION.
PERFORM P_SELECT1.
PERFORM P_OPB.
PERFORM P_COLL.
*& Form SELECT1
FORM SELECT1 .
SELECT MONAT
BUDAT
BELNR
GJAHR
BUKRS FROM BKPF
INTO TABLE IT_BKPF
WHERE BELNR IN S_BELNR
AND BUDAT IN S_BUDAT.
IF NOT IT_BKPF[] IS INITIAL.
SELECT BUKRS
BELNR
GJAHR
HKONT
WRBTR
SGTXT
AUFNR FROM BSEG
INTO TABLE IT_BSEG
FOR ALL ENTRIES IN IT_BKPF
WHERE HKONT IN S_HKONT
AND AUFNR IN S_AUFNR
AND BELNR = IT_BKPF-BELNR
AND GJAHR = IT_BKPF-GJAHR
AND BUKRS = IT_BKPF-BUKRS.
ENDIF.
ENDFORM. " SELECT1
*& Form OPB
FORM OPB .
SELECT MONAT
BUDAT
BELNR
GJAHR
BUKRS FROM BKPF
INTO TABLE IT_BKPF1
WHERE BELNR IN S_BELNR
AND BUDAT < S_BUDAT+3(8).
IF NOT IT_BKPF1[] IS INITIAL.
SELECT BUKRS
BELNR
GJAHR
HKONT
WRBTR
SGTXT
AUFNR FROM BSEG
INTO TABLE IT_BSEG1
FOR ALL ENTRIES IN IT_BKPF1
WHERE HKONT IN S_HKONT
AND AUFNR IN S_AUFNR
AND BELNR = IT_BKPF1-BELNR
AND GJAHR = IT_BKPF1-GJAHR
AND BUKRS = IT_BKPF1-BUKRS.
ENDIF.
ENDFORM. " OPB
*& Form P_SELECT1
FORM P_SELECT1 .
SORT IT_BKPF BY MONAT.
SORT IT_BSEG BY HKONT.
LOOP AT IT_BSEG INTO WA_BSEG.
READ TABLE IT_BKPF INTO WA_BKPF WITH KEY BUKRS = WA_BSEG-BUKRS
BELNR = WA_BSEG-BELNR
GJAHR = WA_BSEG-GJAHR BINARY SEARCH.
IF sy-subrc EQ 0.
WA_COLL-BELNR = WA_BKPF-BELNR.
WA_COLL-BUDAT = WA_BKPF-BUDAT.
WA_COLL-WRBTR = WA_BSEG-WRBTR.
WA_COLL-SGTXT = WA_BSEG-SGTXT.
WA_COLL-MONAT = WA_BKPF-MONAT.
COLLECT WA_COLL INTO IT_COLL.
endif.
CLEAR: WA_BKPF, WA_BSEG.
ENDLOOP.
ENDFORM. " P_SELECT1
*& Form P_OPB
FORM P_OPB .
SORT IT_BKPF1 BY MONAT.
SORT IT_BSEG1 BY HKONT.
LOOP AT IT_BSEG1 INTO WA_BSEG1.
READ TABLE IT_BKPF1 INTO WA_BKPF1 WITH KEY BUKRS = WA_BSEG1-BUKRS
BELNR = WA_BSEG1-BELNR
GJAHR = WA_BSEG1-GJAHR BINARY SEARCH.
IF sy-subrc EQ 0.
WA_COLL-TOT = WA_BSEG1-WRBTR.
COLLECT WA_COLL INTO IT_COLL.
endif.
CLEAR: WA_BKPF1, WA_BSEG1.
ENDLOOP.
ENDFORM. " P_OPB
*& Form P_COLL
FORM P_COLL .
SORT IT_COLL BY MONAT.
LOOP AT IT_COLL INTO WA_COLL.
WRITE:/06 WA_COLL-BELNR,
22 WA_COLL-BUDAT,
32 WA_COLL-WRBTR,
54 WA_COLL-SGTXT.
AT end of MONAT.
SUM.
WRITE:/ WA_COLL-MONAT.
WRITE:32 WA_COLL-WRBTR.
WRITE: WA_COLL-TOT. " getting value 0
ENDAT.
ENDLOOP.
ENDFORM. " P_COLL
Similar Messages
-
Report is giving wrong output while running in Background ?
Hi,
We have a report program which gives the correct output while running it in forground(or manually) but when we run it in backgroud it gives the wrong output. (The printout goes to the wrong printer.)
I've read in a SAP doc that:
NEW-PAGE PRINT ON even gives unpredictable
results when the print parameters are incomplete; and it suggested to use FM 'GET_PRINT_PARAMETERS to validate the print parameters before NEW-PAGE PRINT ON event . I tried the same but still our report is sending the printout to the wrong printer while running it in background.
Other events used in the program are AT NEW and AT LAST .
Can anyone confirm me NEW-PAGE PRINT ON, AT NEW and AT LAST events work correctly in background mode also.
Thanks,
Bhavanahi
good
NEW-PAGE PRINT ON should be work in the background also,check your syntax with the below syntax,if still it is going to the different printer in the background than check with the configuration setting of printer for the particular report that you r printing,sometime it happens that even in the foreground the correct printer ideanfies but in the background that same printer didnt identify.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
DO 440 TIMES.
WRITE (3) sy-index.
ENDDO.
NEW-PAGE PRINT OFF.
ENDFORM.
thanks
mrutyun^ -
Concurrent generating wrong output format with TEXT as output type
Hi,
I have create a custom rdf and set TEXT as its output type.
I want the text output to be specific format but the concurrent is not generating the exact expected output.
Expected Output:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE labels SYSTEM "label.dtd">
<labels FORMAT="E:WIPMATX.ZPL" _QUANTITY="1" _PRINTERNAME="Printer
1" _JOBNAME="LBL101">
<label>
<variable name="$$WIP_ENTITY_NAME$$">BLFTOP</variable>
<variable name="$$WIP_ENTITY_NAME$$">BLFTOP14</variable>
<variable name="COM">19AWG</variable>
<variable name="LOT_NUMBER"></variable>
<variable name="ASSEMBLY">A05A0084-1</variable>
<variable name="QUANTITY_ISSUED">0</variable>
</label>
</labels>
*Wrong Output:*
<?xml version="1.0" standalone="no"?>
<!DOCTYPE labels SYSTEM "label.dtd">
<labels _FORMAT="E:WIPMAT_X.ZPL" _QUANTITY="1" _PRINTERNAME="Printer
1" _JOBNAME="LBL101">
<label>
<variable name="$$WIP_ENTITY_NAME$$"> BLFTOP </vari
</variable>
<variable name="$$WIP_ENTITY_NAME$$"> BLFTOP
BLFTOP14</variable>
<variable name="COM">19AWG</variable>
<variable name="LOT_NUMBER"></variable>
<variable name="ASSEMBLY">A05A0084-1</variable>
<variable name="QUANTITY_ISSUED">0</variable>
</label>
</labels>
And Actually i am trying to generate this output format type because , wer are using Zebra Printer to print lable and it is a XML enabled bprinter and understand this specifice XML DTD type. We found when set Output type to XML, it was not generating XML in accordance with DTD which Zebra printer understand Hence we are tring to use TEXT output.
Please suggest.
Edited by: user5499188 on Oct 3, 2011 12:12 AM
Edited by: user5499188 on Oct 3, 2011 12:13 AM
Edited by: user5499188 on Oct 3, 2011 12:14 AM
Edited by: user5499188 on Oct 3, 2011 12:23 AMI get the solution for this issue.
The solution is to use XML Publisher etext temaplate.
Etext is used to get text output in any format.
Regards, :) -
Hi everyone,
I'm using an equi-ripple bandpass filter for my ECG signal and getting wrong outputs. Any idea why?
Regards,
Gerard
Attachments:
filter.JPG 10 KBHi Gerard,
What kind of wrong outputs are you getting with the filter? Furthermore what kind of signal are you getting from your ECG signal? Would it be possible to put the vi on the discussion forum?
Regards
Nadim
Applications Engineering
National Instruments -
Wrong output by pgrep -f command
Hello!
I have created a monitor, that check the running instances of a process under Linux (SLES11SP3) with SCOM 2012 SP1 CU4.
As monitor type I chose the "Microsoft.Unix.ShellCommand.TwoState.MonitorType" (which I have used successfully many times) and as shellcommand to get an output of the process count I used the shell command:
pgrep -l cron | grep -vc grep (in this example "cron"; the process name is irrelevant to our problem)
In the ssh session on the linux machine this command works fine and shows an output of "1", as exactly one cron is running. The SCOM Agent on the other hand shows an output (StdOut) of "2" on the same system (I have double checked
this with the winrm command to execute shellcommands from xml, too).
After some thinking I noticed that the "|grep -vc grep" part was not necessary (because pgrep does not list the "grep" process) and switched it with "| wc -l". Unfortunately the SCOM Agent and the winrm command for shellcommands
still showed a "StdOut" of "2" although only "1" cron was running on the system.
Now comes the interesting part:
Instead of "pgrep -f" I chose "pgrep -l" and finally the "StdOut" in SCOM matched the one on the system. So after another round of testing I found out that only "pgrep -f" seem to deliver a wrong "StdOut".
I can post proof for that, unfortunately Im on a tight schedule today, so if needed I can provide it on monday.
Maybe one of you has an idea, why scom always adds "1" when using "pgrep -f"?If I understand correctly, you are comparing two situations:
1) You manually run 'pgrep' in at a shell command prompt after using ssh to login to the Linux server
2) The OpsMgr agent runs 'pgrep' as part of a monitor
And you are getting different results from the two cases.
In case #2, doesn't the command line you are giving to OpsMgr actually starts with /bin/sh -c, so that you can specify a command line that contains pipes, etc. which are executed by /bin/sh? If so, then the OpsMgr agent is spawning a /bin/sh
process that has the pgrep command line as an argument, including the process name that pgrep is looking for. /bin/sh is then in turn spawning the pgrep process. The "extra" process that pgrep is finding is the /bin/sh process that is spawned by
the OpsMgr agent. You won't have that process in case #1 when you are just running pgrep manually at a shell prompt.
Michael Kelley, Lead Program Manager, Open Source Technology Center -
After two weeks I finally got my project to run only its not outputting all the information that is suppose to.
My output should display the dollar amount along with the tax catergory, but its only displaying the tax category, can someone please assist me in locating what am doing wrong.
Correct Output: The tax rate category for an annual salary of 34400 is 3.
My Ouput: The tax rate category for annual salary of 6
* AnnualSalary.java
* Johnise Felder
* This program should display the annual salary and tax category.
package annualsalary;
* @author felde301
import javax.swing.JOptionPane;
public class AnnualSalary {
/** Creates a new instance of AnnualSalary */
public AnnualSalary() {
* @param args the command line arguments
public static void main(String[] args) {
float annualsalary = 0;
int taxratecategory = 0;
String input =
JOptionPane.showInputDialog (null,"Enter an annual salary",
"Input Dialog Demo",
JOptionPane.QUESTION_MESSAGE);
annualsalary = Integer.parseInt(input);
if (annualsalary < 15000){
taxratecategory = 1;
else if (annualsalary > 15000 && annualsalary < 25000)
taxratecategory = 2;
else if (annualsalary > 25001 & annualsalary < 40000)
taxratecategory = 3;
else if (annualsalary > 400001 & annualsalary < 65000)
taxratecategory = 4;
else if (annualsalary > 65001 & annualsalary < 80000)
taxratecategory = 5;
else if (annualsalary > 80000)
taxratecategory = 6;
//end if
//display the result
JOptionPane.showMessageDialog(null,"The tax rate category for an annual salary of:" + taxratecategory);
}hi,
take your modified code
* AnnualSalary.java
* Johnise Felder
* This program should display the annual salary and tax category.
package annualsalary;
* @author felde301
import javax.swing.JOptionPane;
public class AnnualSalary {
/** Creates a new instance of AnnualSalary */
public AnnualSalary() {
* @param args the command line arguments
public static void main(String[] args) {
float annualsalary = 0;
int taxratecategory = 0;
String input =
JOptionPane.showInputDialog (null,"Enter an annual salary",
"Input Dialog Demo",
JOptionPane.QUESTION_MESSAGE);
annualsalary = Integer.parseInt(input);
if (annualsalary < 15000){
taxratecategory = 1;
else if (annualsalary >= 15000 && annualsalary <= 25000)
taxratecategory = 2;
else if (annualsalary >= 25001 && annualsalary <= 40000)
taxratecategory = 3;
else if (annualsalary >= 400001 && annualsalary <= 65000)
taxratecategory = 4;
else if (annualsalary > 65001 && annualsalary <= 80000)
taxratecategory = 5;
else if (annualsalary >= 80000)
taxratecategory = 6;
//end if
//display the result
JOptionPane.showMessageDialog(null,"The tax rate category for an annual salary of:" + taxratecategory);
} -
Internal display color is wrong, outputs just fine. GPU or lcd trouble?
Hi there, I'm doing some troubleshooting for a clients son. He has a 2008 macbook air, A1237. It boots, but the internal display looks all wrong. The colors are low res and very washed out. However, when I have it connected to an external monitor the display appears fine. Even when holding down option on boot, the graphics are the same washed out quality. I have a couple pictures here. For some reason the kid completely removed OSX and has Win7 installed... I can't explain that. Anyway, I was wondering if anyone has come across this and if you're thinking it's a GPU issue or maybe just a broken display. I tried to determine if the kid had been rough with it and he insists he just turned it on one day and it was like this. No external damage from what I can see. I've attached a picture showing the two displays side-by-side.
If anyone can help me determine where the problem is I would be very grateful.So, a quick update. I started by checking the display cable connection on the logic board. It appeared fine but I re-seated it anyway. But the display was the same. I then blew out the Win7 installation and re-installed Snow Leopard. Throughout the install and the subsequent boot up the internal display was the same as it had been; all the colors looked inverted, dark and lo-res. So I hooked up an external monitor to check out some statistics and when I first connected it, it showed up as an extended display. I chose to mirror the display and the internal display turned back to normal! All bright and Snow Leopard purple! I rebooted and the white screen showed up on start, where before it had been black. For one moment on reboot the white did invert to black, but only for a moment. It's currently back to the desktop, looking normal and I'm running updates. Any ideas here, at all?
-
Reg: Error in Getting Wrong output using concurrent request
Hi all,
I created a rdf using oracle 10g report for below query
SELECT EMPNO,ENAME,DEPTNO,SAL,MGR FROM EMP
I Registered above created rdf in oracle apps with output format as xml
when i ran the report using concurrent request, i am getting below output.
*<G_EMP>*
* <EMPLOYEE>*
* <EMPNO>1</EMPNO>*
* <ENAME>ALEX</ENAME>*
* </EMPLOYEE>*
* <EMPLOYEE>*
* <EMPNO>2</EMPNO>*
* <ENAME>RAGHU</ENAME>*
* </EMPLOYEE>*
*<EMPLOYEE>*
* <EMPNO>3</EMPNO>*
* <ENAME>GURU</ENAME>*
* </EMPLOYEE>*
* </G_EMP>*
NOTE:_
I am not getting for rest of column in above query (ie. DEPTNO,SAL,MGR)_
How to resolve this. Its urgent .. PlzDuplicate thread (please post only once).
Reg: Plz Help me.. Not Getting output
Reg: Plz Help me.. Not Getting output -
Some apps use wrong output device
I have an iBook G4 with 10.3.9, builtin speakers and an external FireWire audio interface (a Presonus FireBox). When I select the FireBox as the default audio output device, most programs adhere (iTunes, the system alert sounds, the volume buttons, QuickTime, etc).
However, a lot of them continue to play audio from the builtin speakers - Flash, the Windows Media Player plugin for Safari (Flip2Mac or whatever it's called), and the "say" command line program.
Is there anyway to correct this? If I select "builtin speakers" and then turn the volume down and switch back to the FireBox, the misbehaving programs are now quiet... so the controls appear to be having SOME effect.
iBook G4 Mac OS X (10.3.9)This has now been fixed! I found a different thread on these forums about OS X dropping wireless connections - deleting these:
Go to Macintosh HD -> Library -> Preferences -> SystemConfiguration ->
Delete the following Plists:
com.apple.airport.preferences.plist
com.apple.nat.plist
come.apple.network.identification.plist
com.apple.PowerManagement.plist
Networkinterfaces.plist
Thread I used: thanks quann
http://discussions.apple.com/thread.jspa?threadID=2142725&tstart=0
Resetting those plists helped me! -
SCCM collection Query - Wrong output
Hi
We are working on Creating Dynamic SCCM collection which get populated based on following two condition
1) Belongs to a Test OU in AD
2) Doesn't have scom agent installed
We have been trying to work out why following query doesn't populate collection with correct object instead populate by every object that exist in this OU. Seems like condition after AND is totally ignored. is there anything I am doing wrong here
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SERVICE on SMS_G_System_SERVICE.ResourceID =
SMS_R_System.ResourceId where SMS_R_System.SystemOUName = "AD.local/Servers/DEV/Test" and SMS_G_System_SERVICE.DisplayName != "Microsoft Monitoring Agent"
Where as below query is working and condition after AND is calculated and collection get populated with right objects.
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SERVICE on SMS_G_System_SERVICE.ResourceID =
SMS_R_System.ResourceId where SMS_R_System.SystemOUName = "AD.MONASH.EDU/Managed/Servers/DEV/OCIO/SplunkTest" and SMS_G_System_SERVICE.DisplayName = "Microsoft Monitoring Agent"
We tried with different combination such as "not like", "is null" etc etc. seems to us that as soon as we try have negative criteria after AND that criteria has been ignored.
To my little knowledge of SQL query, condition after AND is not optional and has to meet, if it doesn't query should return no value.
is this same with SCCM collection query? will appreciate if some one can shade some light here.
Thank you in advance.Thank you All for the reply
Our End Goal is to be able to automate software/configuration deployment based on criteria we set. SCOM is first of the rank if you like and we want this to be hands off approach so when a server move into certain OU based on criteria server get populated
into SCCM collection and SCCM pushes out software/configuration packages out to the server.
but having said that if we have to create two collection to satisfy our two criteria than most likely we will need number of collections depending on numbers and types of criteria. This will make managing collection and their relationship more challenging
and not sure if that is the path we want to take. This will need to be discussed through unless we find better solution.
Thank you again -
Wrong output when executed in UNIX machine
Hi All,
We have created a java class which takes a file name as command line arguments and trying to test whether that file which has taken from command-line is accessible if it is already in use (like copying from/to other path). For this we are passing filename as argument to FileInputStream Class .
This java class when executed in windows machine is giving expected output i.e. throwing Exception if the file is already in use. But the same code when ran from UNIX machine, there it is not giving expected result as mentioned above. Can anyone please help us in resolving this problem?
Thanks in AdvanceNot sure if this has anything to do with it, but did ftp the text file up to the UNIX machine? If you did, were you using ascii mode?
Windows:
file in use.becomes
file in use.^Min unix when I transfer the file using the binary mode.
-J -
Greetings,
I have a report that returns wrong data. I tried to attach the report wo any success. I'm not sure if it helps, but following is the syntax I have.
If [End Date] Between ( ToDate("7/1/2008";"mm/d/yyyy") ; ToDate("6/30/2009";"mm/d/yyyy") ) Then "FY 2009"
ElseIf [End Date] Between ( ToDate("7/1/2009";"mm/d/yyyy") ; ToDate("6/30/2010";"mm/d/yyyy") ) Then "FY 2010"
Can you please point me to the right direction?
Thanks.
OCMmm represents minute. To represent month, use MM.
Try
=If([End Date] Between (ToDate("07/01/2008";"MM/dd/yyyy") ;ToDate("06/30/2009";"MM/dd/yyyy") );"FY 2009";If([End Date] Between (ToDate("07/01/2009";"MM/dd/yyyy") ; ToDate("06/30/2010";"MM/dd/yyyy") );"FY 2010";"")) -
Reading a UTF-8 Web encoded page - Wrong output
Dear All,
I have used Java to fetch Greek web pages encoded in ISO-8859-7 without any problems. The HTML source along with the greek letters shows up to my console (Eclipse) just fine.
However now that i am trying to fetch a web page encoded in UTF-8 i get question marks in some characters. So far i had the best results by using the following code :
byte[]b=line.getBytes();
String newLine=new String(b,"UTF-8");
System.out.println(newLine);
The above outputs questionmarks for 2 specific Greek letters. I have tried everything yet no luck...can someone help ??Dear All,
I have used Java to fetch Greek web pages encoded in
ISO-8859-7 without any problems. The HTML source
along with the greek letters shows up to my console
(Eclipse) just fine.
However now that i am trying to fetch a web page
encoded in UTF-8 i get question marks in some
characters. So far i had the best results by using
the following code :
byte[]b=line.getBytes();
String newLine=new String(b,"UTF-8");
System.out.println(newLine);
The above outputs questionmarks for 2 specific Greek
letters. I have tried everything yet no luck...can
someone help ??Remember that the Strings in java are always utf-8, its the byte arrays that have different encodings. When you do
byte[]b=line.getBytes();
you are translating it into a byte array with default encoding, which would be something to the affect of iso8859_1, hence you end up losing the greek characters.
Then you do
String newLine=new String(b,"UTF-8");
telling that create a String(which is always going to be utf8) from a byte array with encoding utf-8 while when you created the byte array it was iso8859-1 so there is no way you would get the right String -
Arabic language Smartform given Wrong Output format.
Hi,
I have developed Arabic Language smartform and tested in Print Privew mode working fine .
Problem with smartform Converted into PDF format and downloded to PC given wrong format.
Pl let me know any changes required.Sorry I do not have answer to your question. But can you share with me how you managed to display Arabic language in Smartform?
-
I am trying to look for sub programs that use the synonyms in the schema.I wrote the following query.But its giving strange output.
select usy.synonym_name, us.text, us.name, us.type
from user_synonyms usy, user_source us
where upper(us.text) like ('%' || usy.synonym_name || '%')
and usy.synonym_name in
(select synonym_name
from user_synonyms us
where us.synonym_name <> us.table_name
and table_owner = 'XYZ')
order by usy.synonym_nameOutput
synonym_name text
txn_deposit select pir_detail_txn.instrument_amnt
I wonder why txn.instrument is taken same as txn_instrument which is the synonym name??where name like 'txn_instrument'
give all outputs like
txn_instrument
txn.instrument
txn1instrument
txn2instrument .......
but
where name like 'txn\_instrument' escape '\'
gives only txn_instrument
~Praveen
Maybe you are looking for
-
Version:1.0 StartHTML:0000000176 EndHTML:0000003270 StartFragment:0000002398 EndFragment:0000003234 SourceURL:file://localhost/Users/markvega/Desktop/ADOBE%20SUPPORT.doc I was provided with PDF of contacts but there is no specific contact e-mail for
-
Color marking a person in the adressbook
I remember outlook express made it possible to put different colors on different people in the adressbook. So when you got a mail it would show up colored in the inbox. Fantastic ! That´s not possible in TB, is it ?
-
Convert Word for Mac 3 documents
Sorry for my borderline inquiry: I am sitting on some older documents written by WORD for Mac 3 (in the early nineties) that I need to open again for my work. MS Word 2004 doesn't, neither does Apple Works or even MacLinkPlus up from version 12. The
-
When using filters I get a "Cyclic Redundancy Check"
Anyone know why this happens? When I try to use the "Liquify" filter, which I tend to use ALOT, this happens now: Error: The operation could not be completed. Data error (cyclic redundancy check). Sometimes it happens with other filters too but alwa
-
Foreign language fonts for iMovie title pages and captions
I would like to write title pages and captions i iMovie in the Polish language. Typically, characters that are specific to the Polish language are entered by using the alt key and the letter that is to be accented. This doesn't seem to work in iMovie