Problem in displaying dynamiic japanese data
I am trying to display japanese data (address) fetched from RDBMS database but only ???????? getting displayed.
First the data is fetched from database then populated in xml. XML is in UTF-8 encoding,From xml ,databean is created .
Steps taken
I have put chartset =shift-jis in jsp response header .
I made sure the encoding for XML file is UTF-8.
I am not sure what needs to be done to display japnese text properly.
cheers
svp
Tien ,
I tired this but it did not work.
I was curious knowing how japanese static text is put into jsp code. I want to know whether i followed right way because if the change te encoding to utf-8 ,my jsp displays question marks even for static content.
Similar Messages
-
Problem in displaying dynamic japanese data in JSP
Hi all,
I am trying to display japanese data (address) fetched from RDBMS database but only ???????? getting displayed. First the data is fetched from database then populated in xml. From xml databean is created .
Steps taken
I have put chartset =shift-jis in jsp response header .
I made sure the encoding for XML file is UTF-8 for parsing. I am using documentbuilder object for parsing for xml.
I am not sure what needs to be done to display japnese text properly.
I appreciate if i get solution as i am struck with this for long time
Regards,
prasadYour JSP pages need to contain a JSP directive that specifices the encoding for the pages (one that supports Japanese).
I use:
<%@ page contentType="text/html;charset=UTF-8" %>
You could also use:
<%@ page contentType="text/html;charset=SHIFT-JIS" %>
When you view with your browser also remember to set the page encdoing and ensure your OS has the proper fonts installed. -
Problem in working with Japanese data
Hello,
We have an application, which should work for both English and Japanese languages. Our application is working fine for English data but in case of Japanese, we are facing problems. In the application, there is a language setting, where the user can select either English or Japanese. This changes the language of the labels to English or Japanese. We are handling this thru' ResourceBundles. But the data that is entered can be independent of this. In English setting also, the data entered or diplayed could be Japanese. Now we are facing problems at vaious places -
1. When we enter Japanese data and save it, it gets copied into the bean and if there is any error in the saving, the same data from bean comes back on the screen. This data doesn't appear properly in Japanese.
2. When we try to retrieve the already saved data from database, it doesn't show poperly in Japanese.
We are using our own 'toUnicode' function, which converts the data to Unicode before saving the data to database. Similarly, we have tried different encodings like SJIS / Shift_JIS / ISO-2022-JP at various places i.e. in 'Page' directive or in HTML Meta tag or various combinations of these two. Nothing is working reliably. Sometimes for some combination, data retained in the first case is correct but it can't be saved. Sometimes it works with Unicode, sometimes without Unicode. Some combination affects the Japanese labels as well. Otherwise the labels at least are displayed properly.
The same code with just Shift_JIS setting in 'page' directive, worked well in IIS Server for both English and Japanese.
What could be the problem in WebLogic? Does it matter if WL is installed on English or Japanese machine?
Kindly answer ASAP, since the project is getting delayed.
Thanking in anticipation...
-MedhaHi,
is there a difference in handling Japanese and Chinese chars? If not I
might be able to give you some hints.
Daniel
-----Original Message-----
From: JSB [mailto:[email protected]]
Posted At: Monday, February 12, 2001 6:22 PM
Posted To: internationalization
Conversation: Problem in working with Japanese data
Subject: Re: Problem in working with Japanese data
Have u solved this yet, and how ?
Medha <[email protected]> wrote in message
news:[email protected]...
>
Hello,
We have an application, which should work for both English andJapanese
languages. Our application is working fine for English data but in case
of
Japanese, we are facing problems. In the application, there is a
language
setting, where the user can select either English or Japanese. This
changes
the language of the labels to English or Japanese. We are handling this
thru' ResourceBundles. But the data that is entered can be independent
of
this. In English setting also, the data entered or diplayed could be
Japanese. Now we are facing problems at vaious places -
1. When we enter Japanese data and save it, it gets copied into thebean
and if there is any error in the saving, the same data from bean comes
back
on the screen. This data doesn't appear properly in Japanese.
2. When we try to retrieve the already saved data from database, itdoesn't show poperly in Japanese.
We are using our own 'toUnicode' function, which converts the datato
Unicode before saving the data to database. Similarly, we have tried
different encodings like SJIS / Shift_JIS / ISO-2022-JP at various
places
i.e. in 'Page' directive or in HTML Meta tag or various combinations of
these two. Nothing is working reliably. Sometimes for some combination,
data
retained in the first case is correct but it can't be saved. Sometimes
it
works with Unicode, sometimes without Unicode. Some combination affects
the
Japanese labels as well. Otherwise the labels at least are displayed
properly.
The same code with just Shift_JIS setting in 'page' directive,worked
well in IIS Server for both English and Japanese.
What could be the problem in WebLogic? Does it matter if WL isinstalled on English or Japanese machine?
Kindly answer ASAP, since the project is getting delayed.
Thanking in anticipation...
-Medha -
Smartform Problem in Displaying a string data
Hi Friends,
I am facing a problem while displaying a string data in smartform. Actually it is a one of the field's data in an internal table. It is a STRING field type of length 0. While populating in an internal table it is having a all the data(Around 700 char data). But while displaying in a smartform surprizingly only few characters(Around 225 char data). How can i overcome this problem?
Regards,
Sekhar.JHi
try this and see
Declare some Variables of 72 char each and split that long string data of internal table text field into them and display these variables strings one below other in smartform
var1 = itab-text+0(72)
var2 = itab-text+72(72)
var3 = itab-text+144(72)
like that
and display one below other in smartform.
&VAR1&
&VAR2&
&VAR3&
Reward points for useful Answers
Regards
Anji -
Urgent : Problem in displaying 0fiscper as dynamic data col.
Hi SEM gurus,
I have a problem in displaying 0FISCPER in data columns. Say, in my planning level I have restricted 0FISCPER to 0001.2005 to 012.2005. and I did selected in data column, Dynamic for 0fiscper.
Now when I run my lay out for keyfig. 0Amount the lay out is like this
Customer Amount Amount Amount
Xxxxxx 10 20 30
Its not displaying the month what I want in the lay out should be like this
001.2004 002.2004 003.2004
Customer Amount Amount Amount Amount
Xxxxxx 10 20 30 40 .........
Can any one Please help me out to fix this ???
Thanks a bunch in advance
Rohith.
Message was edited by: rohith gentle
Message was edited by: rohith gentleRohith,
change HEADING column in the 2nd screen of the layout design to "0FISCPER Amount".
I think, current HEADING is named as only "Amount".
This will give layout as
Customer 001.2004Amount 002.2004Amount 003.2004Amount
hope that helps.
Hari Immadi
http://immadi.com
SEM BW Analyst -
Wrong Display of Japanese Currency in ALV Report
Dear Friends,
I am facing a problem in Displaying a Japanese Currency in the ALV Report Output. I am mentioning the Currency Key field and the Currency field in the Report.
For example, the amount field should be displaying as 22838 instead of 228.38 where this is correct in case of USD but not correct in case of JPY.
Code where the i am appending the fieldcatlog:
ls_fieldcat-fieldname = 'WAERK'.
ls_fieldcat-datatype = 'CUKY'.
ls_fieldcat-outputlen = 8.
ls_fieldcat-seltext_l = Text-088.
ls_fieldcat-seltext_m = Text-088.
ls_fieldcat-seltext_s = Text-088.
ls_fieldcat-reptext_ddic = Text-088.
APPEND ls_fieldcat TO lt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'BUCK0'.
ls_fieldcat-datatype = 'CURR'.
ls_fieldcat-outputlen = 16.
ls_fieldcat-seltext_l = Text-017.
ls_fieldcat-seltext_m = Text-017.
ls_fieldcat-seltext_s = Text-017.
ls_fieldcat-reptext_ddic = Text-017.
Please do suggest if any inputs on the same.
Thanks in Advance for you reply.
Thanks and Regards,
Saritha KHi,
All the Decimals related to currency fields will be stored in the table tcurx.
You have to get the currency and respective decimals into internal table.
Read the internal the table with key equal to currency.
And calculate the values as below :
loop at gt_output.
READ TABLE gt_tcurx WITH KEY currkey = gt_output-zwaers.
IF sy-subrc EQ 0.
IF gt_tcurx-currdec = '0'.
gt_output-dmbtr = gt_output-dmbtr * 100.
ELSEIF gt_tcurx-currdec = '3'.
gt_output-dmbtr = gt_output-dmbtr / 10.
ENDIF.
ENDIF.
MODIFY gt_output.
endloop. Then pass the gt_output to ALV FM.
In the above code gt_output is my final internal table which i am passing to the ALV FM. And gt_tcurx is the internal table consists of all the currency and their decimals.
Thanks,
Sri. -
Problem with displaying chart data
Hello everybody,
I have problem with displaying chart data correctly. I'm using a cartesian chart with DateTimeAxis. The stockdata I'm using is for half a year and
with ticks for every day. The problem is, that Flex displays the data of february in march together with the data of march. I have added a picture
to show the result. The second column of the grid is for february and the third for march.
Could anybody help me with this problem. Thanks in advance.
ThomasHi Chris,
thanks for your reply. Here you get the source code:
The following method creates the LineChart:
public function init():void
model.upperChart = this;
model.upperChartStyle.setChartViewStyle(this);
this.hAxis = new MyDateTimeAxis();
model.upperChartData.configureHAxis(this.hAxis);
this.vAxis = new LinearAxis();
model.upperChartData.configureVAxis(this.vAxis);
this.vAxisTitle = new Label();
this.vAxisTitle.text = model.upperChartData.getVAxisTitle();
model.upperChartStyle.setVAxisTitleLabelStyle(this.vAxisTitle);
this.vAxisTitle.x = 10
this.vAxisTitle.y = 0;
this.addChild(this.vAxisTitle);
this.myChart = new CartesianChart();
//remove default datatip
this.myChart.showDataTips = false;
this.myChart.x = 10;
this.myChart.y = 0;
this.myChart.width = 768;
this.myChart.height = 196;
model.upperChartStyle.setChartStyle(this.myChart);
this.addChild(this.myChart);
//Remove line shadow
this.myChart.seriesFilters = null;
this.myChart.horizontalAxis = this.hAxis;
this.myChart.verticalAxis = this.vAxis;
this.hAxisRenderer = new AxisRenderer();
model.upperChartData.configureHAxisRenderer(this.hAxisRenderer);
this.hAxisRenderer.axis = this.hAxis;
model.upperChartStyle.setHAxisRendererStyle(this.hAxisRenderer);
this.myChart.horizontalAxisRenderers.push(this.hAxisRenderer);
this.vAxisRenderer = new AxisRenderer();
model.upperChartData.configureVAxisRenderer(this.vAxisRenderer);
this.vAxisRenderer.axis = this.vAxis;
model.upperChartStyle.setVAxisRendererStyle(this.vAxisRenderer);
this.myChart.verticalAxisRenderers.push(this.vAxisRenderer);
model.upperChartStyle.setVAxisDataLabelStyle(this.vAxisMinLabel);
this.addChild(this.vAxisMinLabel);
model.upperChartStyle.setSeriesStyle(model.upperChartData.series, model.upperChartData.shares);
this.myChart.dataProvider = model.upperChartData.dataProvider;
this.myChart.series = model.upperChartData.series;
The data for dataprovider and series you can see in attached file dataprovider.xml.
xfield is equivalent to timestamp
yfield is equivalent to absolute
I think the problem could be the configuration of the datetimeaxis. The following method shows the parameter for the datetimeaxis:
public function configureHAxis(axis:MyDateTimeAxis):void
axis.parseFunction = UtilityClass.parseYYYYMMDDHHNNSSString2Date;
axis.dataUnits = "days";
axis.dataInterval = 1;
axis.title = "";
axis.minimum = new Date(UtilityClass.parseYYYYMMDDHHNNSSString2Date("2009-01-07 00:00:00").time);
axis.maximum = new Date(UtilityClass.parseYYYYMMDDHHNNSSString2Date("2009-07-06 00:00:00").time);
And finally you get the function, that I'm using for string to date conversion:
public static function parseYYYYMMDDHHNNSSString2Date(input:String):Date
var result:Date = new Date();
var year:Number = Number(input.substring(0,4));
var month:Number = Number(input.substring(5,7));
var date:Number = Number(input.substring(8,10));
var hours:Number = Number(input.substring(11,13));
var minutes:Number = Number(input.substring(14,16));
var seconds:Number = Number(input.substring(17,19));
result.setUTCFullYear(year);
result.setUTCMonth(month-1);
result.setUTCDate(date);
result.setUTCHours(hours);
result.setUTCMinutes(minutes);
result.setUTCSeconds(seconds);
return result;
I hope that will help to locate the reason for the wrong chart visualization.
Thanks for any help. -
Problem in displaying data.
Hi,
I am facing a problem in display of data for a particular employee. This is a HR report with 5 selection variables out of which 3 are mandatory and rest 3 like company code, Cost centre and Employee are optional.
when i run the report with company code and cost centre variable it shows me list of employees whose timesheet are missing in a particular time frame which misses out 1 employee and when i run the report with same variables but put in the employee it shows me the data of that employee which is assigned to same cost centre and company code. Its just that in first case i am using 2 diff optional variables and in 2nd i am using only 1 with rest of the variables same. This is so weired. For the first time i have encountered such issue. and if i run the report with company code and cost center and after getting the necessary output i select the filter value as that emplyees name i get the data for that employee.... I am unable to understand as to how where exactly is the problem?
i checked the master data of employees, cost centre and company code. Everything is working fine.
Kindly help to figure out the issue.
Kind regards,
Shailja kaul.Please perform the consistency check for the cube in RSRV and confirm that all the dimensions in the cube are consistent. Sometimes, this happens, which generates such situation that some of records disappear in the result set if not mentioned in the selection screen.
Here as per your msg, if you mention the employee number, the record appears, that means you should also perform the consistency check for 0EMPLOYEE (if that is the infoobject for employee) master data.
Thanks
Danny. -
Sql Devloper 4.0.0.13 - problems with displaying user data types
Hi,
I have installed new version of sqldeveloper and have discovered some problems with displaying user data types. The data that is described as VARCHAR2 are displayed with ‘???’.
The problem persist in table view, script output and exported files.
My type is described as follows:
create or replace TYPE "DPTY_ADRESA" AS OBJECT
ID_DPSF_OPCINE NUMBER,
ID_DPSF_MJESTA NUMBER,
OPCINA VARCHAR2(100),
MJESTO VARCHAR2(100),
ULICA VARCHAR2(200),
BROJ VARCHAR2(20),
SPRAT VARCHAR2(20),
OSTALO VARCHAR2(100),
CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
when make select column from table that contains this type I get next results:
CASE 1:
SQLDeveloper Version 3.2.20.09; Build MAIN-09.87; JDK 1.6.0_43; Windows 7 64 bit
Select:
select id, adresalokacija
from dptr_saglasnosti
where id = 1;
Result:
ID ADRESALOKACIJA
1 COMP.DPTY_ADRESA(124,4913,'TRAIK','TURBE','BABANA','3452','0',NULL)
END CASE 1;
CASE 2:
SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_40; Windows 7 64 bit
Select1:
select id, adresalokacija
from dptr_saglasnosti
where id = 1;
Result1:
ID ADRESALOKACIJA
1 COMP.DPTY_ADRESA(124,4913,'???','???','???','???','???',NULL)
But if I select one element it is displayed normal.
Select2:
select id, a.adresalokacija.opcina
from dptr_saglasnosti a
where id = 1;
Result2:
ID ADRESALOKACIJA.OPCINA
1 TRAVNIK
END CASE 2;
I have tried this scenario on three different pc with same output.
Pleas help me to get rid of the '???' in result.
Best Regards,
OmerI tried on SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_45; Windows 7 64 bit; NLS setting is default
all data can show,No ??? in result
Test step as following:
create or replace TYPE "DPTY_ADRESA" AS OBJECT
ID_DPSF_OPCINE NUMBER,
ID_DPSF_MJESTA NUMBER,
OPCINA VARCHAR2(100),
MJESTO VARCHAR2(100),
ULICA VARCHAR2(200),
BROJ VARCHAR2(20),
SPRAT VARCHAR2(20),
OSTALO VARCHAR2(100),
CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
alter TYPE "DPTY_ADRESA" add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
CREATE TABLE dptr_saglasnosti (
adresalokacija DPTY_ADRESA,
id number);
INSERT INTO dptr_saglasnosti VALUES (
DPTY_ADRESA (65,225,'Vrinda Mills', '1-800-555-4412','sss','aaaa','eeeee','attta'),1 );
select id, adresalokacija from dptr_saglasnosti where id = 1;
ID ADRESALOKACIJA
1 HRCP.DPTY_ADRESA(65,225,'Vrinda Mills','1-800-555-4412','sss','aaaa','eeeee','attta') -
Problem with displaying data's in a chart
I have a main VI (Hovedprogram) and 5 VI's (Ferdigprogram temp tur , Ferdigprogram temp retur, Ferdigprogram nivå, Ferdigprogram temp i fyr and Ferdigprogram trykk)who starts when I start the main VI.
I want to display data for last 15 seconds, last 24 hours, last week, last month and last year.
The problem is that the graphs for last week, last month and last year do not display all the data's. I just got a dot where I started the program 28.April. The graphs shows the data's from 2.May
Any suggestion how I can change my program to appear as described?
Attachments:
Hovedprogram.vi 748 KBAnd here is one of the 5 VI's
Attachments:
Ferdigprogram temp retur.vi 125 KB -
Problem in displaying detail along with Aggregate data.
Hi
I am new to BIP and I am facing problem to display detail as well as aggregate values at a time.
My data is like below
Security Value
S1 10
S2 20
S3 30
S3 40
S4 50
S5 60
S5 70
I want to display data in report as
Security Value
S1 10
S2 20
S3 30
S3 40
Total S3 70
S4 50
S5 10
S5 70
Total S5 80
I tried using for <?for-each-group:G_2;./Security?> but I am getting following output:
Security Value
S1 10
S2 20
S3 30
Total S3 70
S4 50
S5 10
Total S5 80
Template:
<?for-each-group:G_2;./Security?> <?Security?>:<?Value?>
<?if:count(current-group()/SECNAME)>1?> Total <?Security?>:<?sum(current-group()/Value)?> <?end if?> <?end for-each-group?>
The problem is I need to display detail as well as aggregate data. Please suggest.Hi Kavipriya
Thanks for your response.
I tried the code you provided but I am getting blank PDF report from RTF template.
Also I didn’t understand <?variable:GRP;G2?>, is this declaration of group variable or something?
Below is my xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Oracle BI Publisher 11.1.1.3.0-->
<DATA_DS>
<G_1>
<SECURITY>S1</SECURITY>
<VALUE1>10</VALUE1>
</G_1>
<G_1>
<SECURITY>S2</SECURITY>
<VALUE1>20</VALUE1>
</G_1>
<G_1>
<SECURITY>S3</SECURITY>
<VALUE1>30</VALUE1>
</G_1>
<G_1>
<SECURITY>S3</SECURITY>
<VALUE1>40</VALUE1>
</G_1>
<G_1>
<SECURITY>S4</SECURITY>
<VALUE1>50</VALUE1>
</G_1>
<G_1>
<SECURITY>S4</SECURITY>
<VALUE1>30</VALUE1>
</G_1>
</DATA_DS>
And following is the code I used in RTF template
<?variable:GRP;G1?>
<?for-each-group:G1;./SECURITY?> <?xdoxslt:set_variable($_XDOCTX,'SEC',./SECURITY)?>
<?for-each:$GRP[./SECURITY= xdoxslt:get_variable($_XDOCTX,'SEC')]?>
<?SECURITY?>:<? VALUE1?> <?end for-each?>
<?if:count(current-group()/SECURITY)>1?> Total <?SECURITY?>:<?sum(current-group()/VALUE1)?> <?end if?>
<?end for-each-group?> -
Problem while displaying the data when double clicked on JTable element
Hi All,
i have one List box( JList ) and one table (JTable). Both JTable and JList are positioned on the same Frame. I am able to drag the elements from JList to JTable and also i have added the mouse click action on both List box and JTable.
if i double click on JList element, that will popup one dialog box.
if i double click on JTable cell element that was dragged from JList, that will popup same dialog box which was opened earlier for JList action.
But my problem here is:
Suppose if i drag the four elements one by one from JList to JTable and (after four elements dragged) double clicked the first element which was dragged first that displayed the popup dialog box structure correctly but the data displayed in that was not correct. It is showing the data of recent dragged element( i.e, fourth element).
But if i double click on JList element that is showing the correct data according to the double clicked element.
What might be the problem here, why it was not displaying the correct data when double clicked on JTable element.
Please help me here.
Many thanks in advance.
The following code is used in mouse clicked event method of JList
private void listMouseClicked(java.awt.event.MouseEvent evt) {
if(evt.getClickCount()==2){
AssigningResourcesUI assignResource=new AssigningResourcesUI(this,true);
assignResource.show();
} AND The following code is used in mouse click enevet method of JTable.
private void tableMouseClicked(java.awt.event.MouseEvent evt) {
if(evt.getClickCount()==2){
int row=table.rowAtPoint(new Point(evt.getX(), evt.getY()));
int col=table.columnAtPoint(new Point(evt.getX(), evt.getY()));
if(row==-1||col==-1){
return;
Object obj=table.getModel().getValueAt(row, col);
if(obj==null||(obj.equals(""))){
}else{
AssigningResourcesUI assignResource=new AssigningResourcesUI(this,true);
assignResource.show();
} Thanks & Regards,
Maadhav....
Edited by: maadhav on Jul 1, 2009 7:22 AMI doubt it is related to your problem but:
int row=table.rowAtPoint(new Point(evt.getX(), evt.getY()));Why are you creating a new Point? Just use evt.getPoint().
Object obj=table.getModel().getValueAt(row, col);Don't get the data through the model method, get the data through the table method:
Object obj = table.getValueAt(...)
This way it will work even if the table happens to be sorted.
Instead of creating a AssigningResourcesUI object, just disply the value retrieved from the model. That way you know whether the problem is with the mouse event code or your UI class. Like Walter suggested above I"m guess the problem is with your UI class. -
Problems with displaying read data from a .lvm file
Hi all.
I aquire data with the PCMCIA card 6036E. I aquire online in Labview 7 and store the data in a .lvm file. When i try to display the same data i aquired before with the "read .lvm file" express vi, the waveform chart redraws itself after an undefined time, sometimes it redraws faster and sometimes it takes longer. WHY? i have only one header per aquisition and if i restart the aquisition a new file is written! I tried almost everything. Is this a bug from labview 7?
I really appreciate your help.
best regards,
BerndHi Khalid,
Here is a simplified version of my VI and also 2 .lvm files from the logged data. Sorry for the size, but I aquire with a sample rate of 20 kS/s and my main frequency is only 0.3 Hz. In the 6MB file I aquired a little more than 3 periods. When you run the VI with this file at the beginning it redraws very often and very fast, then after some time it draws about 1 period and then it redraws again and so on. I want that the hole data from this file is displayed at once. The 900kB file is aquired with 10kS/s and about 1.5 periods. This is the last size the displaying is working with. You think it is possible that the VI only works until 1MB? But my data usually is much bigger than that. I hope you can use the data because it is
zipped, but otherwise it wouldnt be possible to post it.
Thank you very much for your help, I really appreciate it!
Best regards,
Bernd
Attachments:
simplified_VI_for_offline_data_display.vi 79 KB
2004-07-01_Messung9.zip 191 KB
2004-07-01_Messung4.zip 680 KB -
Problem in displaying data in Vendor Ageing through abap
Hi,
I had developed a vendor ageing report in which i am facing due to the dates i.e. As on date and select-option date. The As on date is sy-datum and other date is to sepcify from which date range it is displaying the date.
When i execute the report in it there Open date is sy datum and select option date i am taking 01.04.2007 so that when a user try to take data it can be done and match the data of Tcode FBL1N (only open items data ) of it. if remove the select option date or change the As on date from date remain same of selec option output gets wrong.
As on date is used basically used for calculating the number of days with the posting date so that no.. of days can be calculated.
Is there any way of displaying the right data.Hi,
The one field "As On Date" is required to calculate the difference in days.
The other select option - is normally not required.
There are two tables which are very important. BSIK and BSAK.
BSIK stores open items, AS ON TODAY only.
BSAK stores closed items i.e. which have been cleared.
(But which were open at some time, in the past)
So, if on selection screen, if we give some past date, then that record will not be there in BSIK,
but it will be in BSAK with clearing date greater than or equal to the selection screen date.
So, we have to write query similar to
SELECT
bukrs lifnr umskz budat bldat blart bschl dmbtr augdt belnr buzei
shkzg rebzg rebzj rebzz gjahr
FROM bsik
INTO CORRESPONDING FIELDS OF TABLE t_bsik
FOR ALL ENTRIES IN t_lfb1
WHERE bukrs EQ p_bukrs
AND lifnr EQ t_lfb1-lifnr
* AND saknr EQ t_lfb1-akont
AND budat LE p_date.
SELECT bukrs lifnr umskz budat bldat blart
bschl dmbtr augdt belnr buzei shkzg rebzg rebzj rebzz gjahr
FROM bsak
INTO CORRESPONDING FIELDS OF TABLE t_bsak
FOR ALL ENTRIES IN t_lfb1
WHERE bukrs EQ p_bukrs
AND lifnr EQ t_lfb1-lifnr
AND budat LE p_date
AND augdt GT p_date.
IF NOT t_bsak IS INITIAL.
APPEND LINES OF t_bsak TO t_bsik.
ENDIF.
Note : In 2nd query for BSAK, we have to use AUGDT (clearing date) also.
Hope this helps.
Regards,
Amit Mittal. -
Problem in searching japanese data in DB2
Hi,
I have japanese data stored in my DB2 database. I have to search that data in DB2. For that I have writen test program.
Following is the SQL query:
"select adrnr from sapr3.sadr where land1='JP' and adrnr = '1000027051' and name1 like '"+sname+"%'"
Where sname is japanese data stored in DB2.
Before running this query I am retrieving sname from database using following:
"select name1 from sapr3.sadr where adrnr='1000027051'";
But its not able to search the same record if I also provide name1.
Please guide.
Thanks in advance.Hi,
i am working on three operating systems, but lets take the example of linux
oracle version :Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
charaterset : AL32UTF8
nls settings are :
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_CHARACTERSET AL32UTF8
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS CHAR
NLS_NCHAR_CONV_EXCP FALSE
Regards,
Vikas Kumar
Maybe you are looking for
-
My second BT ordeal in six months - second attempt
Oops.. I think I may have only posted the title of this message first time around. Earlier this year, I made what I thought was a simple request to BT to upgrade my broadband from Option 1 to Option 3. This they did, but at the same time they cancell
-
Transparency preview - color faded
Hi, I used PSD images (based on a transparent layer) and placed in a Indesign document. I used to export to PDF without no problems to preview in CS2. But now, when I open the document in Acrobat professional 8 (CS3) the color of the same tranparent
-
Setting up LOCALE in solaris sparc 10
HI, Please let me know how to set the locale in solaris 10, whether it need to be set at a session level or OS level to install BO XI 3.1 SP3? What is the language (LANG) to set if LC_ALL is en_US.UTF-8. Thanks in Advance, Mani
-
ok...so Ive decided to send in my Macbook for a simple repair before my warranty expires. Its a pretty common issue it seems. My left command key got popped off by my nephew, after sticking it back on it works 90 percent of the time, but will come ba
-
6988 wireless & Win 7 can't connect
I tried installing the 6988 disk on a new Win-64-bit laptop and eventually was told to download the needed driver from the printer via cord, which I did. I can print when corded but not wirelessly. Re-running the set up disk put me in the same loop t