How can i write an apostraphy in the following code? ?if:LanguagePreference_ID335='F'? ?'Numéro d'inscription TVQ'? ?end if?
Hello
I keep getting an error message when I write the following
<?if:LanguagePreference_ID335='F'?><?'Numéro d’inscription TVQ'?><?end if?>
Is there anyway to write this code and keep the apostraphy?
try as below:
<?if:LanguagePreference_ID335='F'?><?'Numéro d?’inscription TVQ'?><?end if?>
Cheers
AJ
Similar Messages
-
How can I write new objects to the existing file with already written objec
Hi,
I've got a problem in my app.
Namely, my app stores data as objects written to the files. Everything is OK, when I write some data (objects of a class defined by me) to the file (by using writeObject method from ObjectOutputStream) and then I'm reading it sequencially by the corresponding readObject method (from ObjectInputStream).
Problems start when I add new objects to the already existing file (to the end of this file). Then, when I'm trying to read newly written data, I get an exception:
java.io.StreamCorruptedException
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
Is there any method to avoid corrupting the stream? Maybe it is a silly problem, but I really can't cope with it! How can I write new objects to the existing file with already written objects?
If anyone of you know something about this issue, please help!
JaiHere is a piece of sample codes. You can save the bytes read from the object by invoking save(byte[] b), and load the last inserted object by invoking load.
* Created on 2004-12-23
package com.cpic.msgbus.monitor.util.cachequeue;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
* @author elgs This is a very high performance implemention of Cache.
public class StackCache implements Cache
protected long seed = 0;
protected RandomAccessFile raf;
protected int count;
protected String cacheDeviceName;
protected Adapter adapter;
protected long pointer = 0;
protected File f;
public StackCache(String name) throws IOException
cacheDeviceName = name;
f = new File(Const.cacheHome + name);
raf = new RandomAccessFile(f, "rw");
if (raf.length() == 0)
raf.writeLong(0L);
* Whne the cache file is getting large in size and may there be fragments,
* we should do a shrink.
public synchronized void shrink() throws IOException
int BUF = 8192;
long pointer = getPointer();
long size = pointer + 4;
File temp = new File(Const.cacheHome + getCacheDeviceName() + ".shrink");
FileInputStream in = new FileInputStream(f);
FileOutputStream out = new FileOutputStream(temp);
byte[] buf = new byte[BUF];
long runs = size / BUF;
int mode = (int) size % BUF;
for (long l = 0; l < runs; ++l)
in.read(buf);
out.write(buf);
in.read(buf, 0, mode);
out.write(buf, 0, mode);
out.flush();
out.close();
in.close();
raf.close();
f.delete();
temp.renameTo(f);
raf = new RandomAccessFile(f, "rw");
private synchronized long getPointer() throws IOException
long l = raf.getFilePointer();
raf.seek(0);
long pointer = raf.readLong();
raf.seek(l);
return pointer < 8 ? 4 : pointer;
* (non-Javadoc)
* @see com.cpic.msgbus.monitor.util.cachequeue.Cache#load()
public synchronized byte[] load() throws IOException
pointer = getPointer();
if (pointer < 8)
return null;
raf.seek(pointer);
int length = raf.readInt();
pointer = pointer - length - 4;
raf.seek(0);
raf.writeLong(pointer);
byte[] b = new byte[length];
raf.seek(pointer + 4);
raf.read(b);
--count;
return b;
* (non-Javadoc)
* @see com.cpic.msgbus.monitor.util.cachequeue.Cache#save(byte[])
public synchronized void save(byte[] b) throws IOException
pointer = getPointer();
int length = b.length;
pointer += 4;
raf.seek(pointer);
raf.write(b);
raf.writeInt(length);
pointer = raf.getFilePointer() - 4;
raf.seek(0);
raf.writeLong(pointer);
++count;
* (non-Javadoc)
* @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCachedObjectsCount()
public synchronized int getCachedObjectsCount()
return count;
* (non-Javadoc)
* @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCacheDeviceName()
public String getCacheDeviceName()
return cacheDeviceName;
} -
How can I link .svg files in the .html code?
How can I link .svg files in the .html code?
I use the FileBrowser app by Stratospherix to do this. I can watch / stream my movies on my iPhone / iPad from my hard drive connected to my Airport Extreme. I can access all the files on that hard drive as well.
-
How can i write a blog in the XI forum.....
i want to write a blog....
i have created a scenario which i feel ...may be helpful for many...
how can i write that in the XI forum.....
and do my blog need to examined by some authorityHi,
Check this
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/community/gettingStartedWith+Blogs&
Regards,
Chandra -
Pls help me in write a join for the following code.
can any one give me optimized code for the posted query..
DATA :BEGIN OF BAPITABLE OCCURS 1,
EDITELEM LIKE TOJTB-EDITELEM,
FUNCTION LIKE SBAPIS-FUNCTION,
SHORTTEXT LIKE TFTIT-STEXT,
END OF BAPITABLE.
SELECT EDITELEM INTO (BAPITABLE-EDITELEM)
FROM TOJTB
WHERE APPLIC = APPLICATIONCODE
AND MODELONLY = 'R'
and ACTIVE = 'X'.
SELECT FUNCTION INTO (BAPITABLE-FUNCTION)
FROM SBAPIS
WHERE OBJECT = JEDITELEM.
SELECT STEXT INTO (BAPITABLE-SHORTTEXT)
FROM TFTIT
WHERE SPRAS = 'EN' AND FUNCNAME = BAPITABLE-FUNCTION.
APPEND BAPITABLE.
ENDSELECT.
ENDSELECT.
ENDSELECT.
waiting for ur replies....
RESHALIHi
i'm giving you a sample code please change according to your requiirement.
I've taken required fields from 3 different tables and put them in one internal table.
please see the following code.
types : begin of ty_kna1,
kunnr type kna1-kunnr,
name1 type kna1-name1,
vbeln type vbap-vbeln,
erdat type vbak-erdat,
end of ty_kna1.
data : it_kna1 type table of ty_kna1,
wa_kna1 type ty_kna1.
data : it_fieldcat type slis_t_fieldcat_alv,
wa_fieldcat type slis_fieldcat_alv.
start-of-selection.
select kkunnr kname1 v1erdat v2vbeln
into corresponding fields of table it_kna1
from ( ( kna1 as k
inner join vbak as v1 on kkunnr = v1kunnr )
inner join vbap as v2 on v1vbeln = v2vbeln )
up to 100 rows.
Reward if helpful
Regards
Lakshman -
I have a product code for my photoshop c6 and i used a different account to register this software. how can i use this product that i have with my new account that i just made?
please advise
I dont have the serial number so yeah
i have a product codeContact Adobe Customer Service directly by phone or web chat (they don't do email). They don't do email. If you can provide proof of purchase to their satisfaction, they may be able to help you.
These are user forums, so you're not addressing Adobe here. We can't help you with this type of issue. -
HT1937 How can I block my iPhone without the Imei code?
Hello,
my iPhone 5 got stolen, but I can't find the IMEI Code to block, does anybody can help me?
thanksYou can only attempt to find / lock it if you had Find My iPhone enabled before it got stolen.
-
How can I write more voices using the score editor?
I'm writing a guitar piece with the score editor but I need to voices; the voice below should be a semibreve and the voice above a dotted minim and then a crotchet, how do I do it?
Hi, here is one way to do this:
http://help.apple.com/logicpro/mac/10/#lgcp8535c140
…..let us know if you need more assistance.
Cheers! -
How can I print my calendar without the color codes?
I need to print my 2005 and 2006 calendars (one month to a page) and then to highlight some of the line items for certain dates. I don't know how to get rid of the darn "color coding" so I just get a simple calendar with no group colors. I appreciate your help! Thank you!
Roger,
Thank you so much for the reply but that only removes the times from the screen. Even when they are not visible on the screen, they are still there when I print the calendar. Do you know how to get them to not print?
Thanks! -
help please
Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: Wrong passcode results in red disabled screen
If recovery mode does not work try DFU mode.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
For how to restore:
iTunes: Restoring iOS software -
How can I get WDS working in the following scenario?
Hello all,
I am going to be trying out Windows Deployment Services at one of our sites because we are moving toward Windows 8 computers in our newest deployments. Being that Windows 8 uses UEFI-type BIOS, Symantec Ghost will not work
for it.
My question is, how does one go about setting up a WDS server that is standalone? Meaning it does not run DHCP or Active Directory. We already have a Linux DHCP server and a seperate Domain controller that serves Active Directory.
I have already tried to set up a WDS seperate server, but doesn't seem to be pushing out any PXE information... well at least the clients aren't seeing it.
Any help would be great.
Thanks,
GrimLokHi,
Are your DHCP, WDS and clients locate in the same subnet?
Build a test computer in the same subnet. Configure DHCP option 66, 67.
Make port 4011 on WDS is not blocked.
Then try again. If there is still any problems, I recommend you install Netmon on WDS server, capture packet, filter DHCP protocol. And post the result here.
Hope this helps. -
How to write test procedures of the following code, need someones help
ITS VERY URGENT.....PLEASE SEND ME THE REPLY ON MY EMAIL ID [email protected]
// Account.java - Data class for account files
// MODULE INDEX
// NAME CONTENTS
// Account Constructor
// Account Constructor
// getAccountNo Get account identifier
// getAccountType Get account type
// getCustNo Get customer identifier
// getBalance Get balance
// getCurCode Get currency code
// setAccountNo Set account identifier
// setAccountType Set account type
// setCustNo Set customer identifier
// setBalance Set balance
// setCurCode Set currency code
// MAINTENANCE HISTORY
// DATE PROGRAMMER AND DETAILS
// 6-5-08 TLT Original
// IMPORTATIONS
import java.util.*;
import java.lang.*;
// CLASS DECLARATIONS
public class Account
// INSTANCE DATA
private String accountNo; //Account identifier
private String accountType; //Account type
private String custNo; //Customer identifier
private double balance; //Balance
private String curCode; //Currency code
// CLASS CONSTRUCTOR
Account (
String accountNo) //Account idenfier
this.accountNo = accountNo;
Account (
String accountNo, //Account identifier
String accountType, //Account type
String custNo, //Customer identifier
double balance, //Balance
String curCode) //Currency code
this.accountNo = accountNo;
this.accountType = accountType;
this.custNo = custNo;
this.balance = balance;
this.curCode = curCode;
// Get account identifier
String getAccountNo () {
return accountNo;
// Get account type
String getAccountType () {
return accountType;
// Get customer identifier
String getCustNo () {
return custNo;
// Get balance
double getBalance () {
return balance;
// Get currency code
String getCurCode () {
return curCode;
// Set account identifier
void setAccountNo (
String accountNo)
this.accountNo = accountNo;
// Set account type
void setAccountType (
String accountType)
this.accountType = accountType;
// Set customer identifier
void setCustNo (String custNo) {
this.custNo = custNo;
// Set balance
void setBalance (double balance) {
this.balance = balance;
// Set currency code
void setCurCode (String curCode) {
this.curCode = curCode;
}123shweta wrote:
ITS VERY URGENT.....W00t? Well if its soo urgent then perhaps you should learn from this and do some planning ahead in the future so you dont find ur self in these urgent needs.
PLEASE SEND ME THE REPLY ON MY EMAIL ID [email protected]
Wat tha.., do you expect someone to just magically solve your problem for ya just like that? with an half asked question even.
Last but not least.. Why would you even need an test for an getters and setter class? -
How do you encode getmessage calls in the following code below?
Im trying to HTML/JavaScript ecode the getmessage calls in the code listed below. Can someone explain how to properly do this? The code below is a snippit from a program which is used to handle a failed authentication attempt. Thanks in advance for your help.
if(logger.isDebugEnabled())
logger.debug("Authentication Failure: " + exception.getMessage());
response.sendError(HttpServletResponse.SC_FORBIDDEN, "Authentication Failed: " + exception.getMessage());Do you want to format your message with HTML so you can show it in a error web page?
-
How can I Write a sine wave in an Access-fil​e?
I measure a sine wave in LabView 6i. How can I write the datas automatically to an Acces-file, at the same time?
In my program, I managed it with Execute SQL.vi, I change a number in a SQL statement(String) -> after this I push start and then it writes the statement in the Access-file.
The problem is, it writes only one data per measurement in the file. How can I write all datas in the Access-file and measure the wave at the same time?
Thanks for help!
Attachments:
getwave.vi 49 KBOn the waveform palette, you will find a "to components" vi that you can break out the array of the waveform. You can then, using a for loop write all of the values from the waveform.
Better yet, there are examples in the database toolkit manual on pages 3-13 to 3-15 that deal with reading arrays (and even has a waveform example).
Good luck! -
How to add a receipt number in the following Query for PO Report
Hi Guys,
I need a help regarding following query.
Its a PO report for 11.5.10.2
select distinct pv.segment1 supplier_number,
pv.vendor_name supplier_name,
pha.segment1 po_number,
pha.revision_num revision_num,
pha.authorization_status po_status,
to_char(pha.creation_date, 'DD/MM/YYYY') creation_date,
pha.currency_code currency_code,
pla.sum_amount_ordered sum_amount_ordered,
pda.sum_quantity_ordered sum_quantity_ordered,
pda.sum_amount_received sum_amount_received,
pda.sum_quantity_received sum_quantity_received,
(pla.sum_amount_ordered - pda.sum_amount_received) sum_accrued, --AVI
( pda.sum_quantity_ordered - pda.sum_quantity_received) quantity_accrued, --AVi
to_char(rsl.date_receipt, 'DD/MM/YYYY') date_receipt,
-- rsl.receipt_num receipt_number,
ppa.segment1 project_code, ppa.project_status_code, --10.0.0.4
aia.invoice_num invoice_num,
aia.invoice_date invoice_date, --AVI
aia.creation_date invoice_creation_date, --AVI
aia.amount invoice_amount_allocated_to_po, --AVI
pla.purchase_basis,
pla.category_id,
-- pda.item_description,
haou.name organisation, --10.0.0.3
pda.sum_quantity_billed sum_quantity_billed , --10.0.0.3
gcc1.CONCATENATED_SEGMENTS,
gcc2.CONCATENATED_SEGMENTS
from po_headers_all pha,
po_vendors pv,
pa_projects_all ppa,
hr_all_organization_units haou,
(select po_header_id,
sum(quantity * unit_price) sum_amount_ordered,
org_id,
purchase_basis,
category_id
-- pla.item_description,
from po_lines_all
group by po_header_id, org_id
, purchase_basis,
category_id
-- pla.item_description
) pla,
(select pla.po_header_id,
pda.project_id,
sum(pda.quantity_ordered) sum_quantity_ordered,
sum(pda.quantity_delivered * pla.unit_price) sum_amount_received,
sum(pda.quantity_delivered) sum_quantity_received,
sum(pda.quantity_billed) sum_quantity_billed, --10.0.0.3
accrual_account_id
from po_distributions_all pda, po_lines_all pla
where pla.po_line_id = pda.po_line_id
group by pla.po_header_id, pda.project_id,accrual_account_id
) pda,
(select po_header_id, charge_account_id,
-- rsh.receipt_num,
min(rsl.creation_date) date_receipt
from rcv_shipment_lines rsl
where rsh.SHIPMENT_HEADER_ID=rsl.SHIPMENT_HEADER_ID
group by po_header_id,charge_account_id
) rsl,
(select distinct aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
, aia.creation_date , sum(aida.amount) amount
from po_distributions_all pda,
ap_invoice_distributions_all aida,
ap_invoices_all aia
where pda.po_distribution_id = aida.po_distribution_id(+)
and aia.invoice_id(+) = aida.invoice_id
Group by
aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
, aia.creation_date) aia,
(select haou2.organization_id, haou2.name
from fnd_flex_value_sets ffvs,
fnd_flex_value_norm_hierarchy ffvnh,
fnd_flex_values_vl ffvv,
hr_all_organization_units haou1,
FND_FLEX_VALUE_CHILDREN_V ffvcv,
hr_all_organization_units haou2
where ffvs.FLEX_VALUE_SET_NAME = 'CAP_CODE_BU'
and ffvs.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
and ffvnh.parent_flex_value like 'PO%'
and ffvv.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
and ffvv.FLEX_VALUE between ffvnh.child_flex_value_low and ffvnh.child_flex_value_high
and substr(haou1.name, 1, Instr(haou1.name, '-')) =
substr(ffvv.DESCRIPTION, 1, Instr(ffvv.DESCRIPTION, '-'))
and haou1.organization_id = fnd_global.org_id
and ffvcv.parent_flex_value = ffvnh.parent_flex_value
and ffvcv.flex_value_set_id = ffvs.flex_value_set_id
and substr(haou2.name, 1, Instr(haou2.name, '-')) =
substr(ffvcv.DESCRIPTION, 1, Instr(ffvcv.DESCRIPTION, '-'))
union --10.0.0.1
select f.organization_id, f.name --10.0.0.1
from hr_all_organization_units f --10.0.0.1
where f.organization_id = fnd_global.ORG_ID --10.0.0.1
) bu
, po_line_locations_all plla --10.0.0.4
, gl_code_combinations_kfv gcc1
,gl_code_combinations_kfv gcc2
where pv.vendor_id = pha.vendor_id
and pla.po_header_id = pha.po_header_id
and pda.po_header_id = pha.po_header_id
and pha.po_header_id = rsl.po_header_id(+)
and pda.project_id = ppa.project_id(+)
and pha.po_header_id = aia.po_header_id(+)
and aia.po_header_id = pha.po_header_id
and pla.org_id = haou.organization_id
and pha.authorization_status in ('APPROVED', 'OPEN')
and plla.po_header_id = pha.po_header_id --10.0.0.4
and plla.closed_code in ('APPROVED', 'OPEN', 'CLOSED FOR INVOICE', 'CLOSED FOR RECEIVING', 'CANCELLED') --10.0.0.4
and bu.organization_id = haou.organization_id
AND gcc1.code_combination_id = pda.accrual_account_id
AND gcc2.code_combination_id =rsl.CHARGE_ACCOUNT_ID
In the following query I have commented receipt_num using the table rcv_transaction_headers.
If I uncomment it the query results huge number of unexpected report.
How can I add receipt number to the following query?
Should I use rcv_transactions. If yes, what would be the join conditions.
Kindly help as its urgent.
Thanks in advance.
Regards
AvijitSandeep is correct. I don't have time to tell you the correct query, but mine is something like this based on Sandeep's information:
SELECT rsh.receipt_num
FROM rcv_transactions rcvt,
po_lines_all pla,
rcv_shipment_headers rsh
WHERE rcvt.shipment_header_id = rsh.shipment_header_id
AND rcvt.PO_LINE_ID = pla.PO_LINE_ID
AND pla.item_id = (select distinct inventory_item_id
from mtl_system_items
where segment1 = '1216107-2')
Maybe you are looking for
-
Hi, i'm trying to develop an AIR application using Sencha Touch (sencha.com). When running the application i'm getting sandbox security exceptions. I've asked the Sencha guys already, they said to get Sencha working with AIR, some major changes are r
-
Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 & Head-Text Elements
Hi all, I hape that sb can help me with my problem. I have created a ABAP-Program to create sales-orders with the function module: BAPI_SALESORDER_CREATEFROMDAT2 Everythiunk works fine but I can not create text-elements (from the head) with this bapi
-
So what do we do when Windows 7 comes out?
I mean regarding the One Key Partition on our system. If we put Windows 7 on our systems, do you think Lenovo will work on some updates to the One Key to make Windows 7 take advantage of it?
-
Change order type based on sold to party
Hi all, Is there any user exit to change the order type based on Sold to party. Eg: if any user select some sold to party during sales order creation then using sold to party the order type is changed. Any suggestions welcome. Regards,
-
Access to KeyPolicy mapping table
Hi all, i've the following scenario: - Sender system: B1.2007 - Sender Object: customized Purchase Order - Receiver system: B1.2007 - Receiver Objcet: standard Sales Order For the insert operation of a new PO, it's all right. About the operation of u