Generating pseudorandom bit sequence
Can you generate a digital PRBS signal e.g. PN9, and add different coding to it in Labview?
Also can the signal data be converted to a known format so that is can be imported by another application? Ex. Matlab ASCII format.
If you have the analysis toolkit than there is a VI for creating PRBS signals. The VI is called "MLS Sequence Waveform" and is located in the Waveform Generation palette. It creates for you based on a seed and polynomial order an analog waveform containing a PRBS signal of 0's and 1's.
I guess you could then export that waveform to some ASCII file for use in another application via the File I/0 functions found in the waveform datatype palette. You could even just pull the 1d array out of the analog waveform and use the high level VIs found in the basic File I/O palette.
Hope this helps. -Jared
Similar Messages
-
Generating a pulse sequence in NI5401 board
Sirs,
I?m sending this email massage because I have a doubt concerning NI 5401 Function Generator Board.
I?m working with a PXI system together with a NI5401 board, and I want to generate a pulse sequence with this board.
The propose of this is to synchronize my pulses with the acquisition of data by another board (PXI board from Goeppel ? Boundary Scan board which has 4 I/0 ports of 8 bits)
I want for each pulse generated to acquire and transfer data in that board, thus I need to know how can I send a predetermined sequence of pulses, (N pulses and then stop). (attached I send a figure to illustrate my question)
Please, I tried to understand the triggers but....
If the triggers is the solution for my probl
em please send me an example.
Note: Now I'm generating a sequence of pulses using a simple pin I/O of the Goeppel Board but the problem is if I run many Labview applications sometimes the software is not fast enough to generate that pulses. Then I think if I use a hardware solution, like in the 5401 board,I could get faster a better responses for my pulses. Note that I'll need to now, in each instant, how is the level of each pulse.
Note2:I'm using LabView6i software.
Thanks very much.
Attachments:
PULSE.jpg 25 KBHi
The NI 5401 is a Function Generator; this is significant in that it is made to make periodic waveforms such as Sine, Square, and even a user defined periodic waveform that a user can download (the 16K buffer). The board can be triggered to start generation, and with a software call, abort generation. But there is no hardware that can specify how many cycles of a waveform has been generated to control the number of cycles at the output.
Depending on the rate of the pulses you need, it may be possible to do something. A pulse train is essentially a square wave with a certain duty cycle. Set up the device for a certain frequency that matches the rate of your pulses, and program it to start with a Software trigger. The best output to use is the Sync output which w
ill give you a TTL pulse.
After the software trigger is called in your code, use the Wait VI to wait a certain amount of time that corresponds to the number of cycles/pulses for the signal that you need, and then after the wait, immediately call NI-FGEN Abort to stop the output generation.
If you are unable to control the number of pulses through software, the NI 5401 really isn't made for this operation. The NI 5411 Arbitrary Waveform Generator is the device made to do this, create the pulse waveform you need, select how many times you want it to "loop", and then generate a waveform of zero volts. The NI 5411 has the hardware to count number of loops, and trigger, etc.
I hope this helps.
Jerry -
We have got around 32 different warehouse where various material are stored......
I have to design a form in such a way that i generate a different sequence number for the materials stored in 32 different ware house
ex
name:suhail
pwd:123
warehouse: America
Now after i login i want to generate a sequene number only for america's ware house say 21001
name:ANDREAS
pwd:345
warehouse:France
for this user the sequence number generted should be different say some thing like 31001can any one help me out with this :)
Edited by: Suhail Faraaz on Oct 2, 2010 10:37 PMSuhail,
I'm not a big fan of using "Intelligent Numbers." What happens when you reach the maximum number for a given warehouse (France's value range = 31000 - 40999)? I have seen this methodology cause problems time and time again. The better option would be to use a generic sequence and a seperate warehouse identifier on the record. This offers the greater flexibility and doesn't force limitations on the number of items that can be assigned to a given warehouse. If you are not locked into this numbering method, I recommend you add a warehouse_ID column to your table and create a unique ID for each warehouse and record this unique_id in the warehouse_ID column. Then use a generic Sequence as Andreas suggested. In addition to greater flexibilty, this method also provides a unique ID that could be used to Partition your warehouse tables if the size of the tables become a performance issue later.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Hello Evryone,
I have a requirement to generate a letter sequence A, B, C, D....till Z. How can I fill a field with next letter, each time in a loop?
Thanks for all your help in advance,
RushiHello Rushi
If you have syst-abcde available on your SAP system you could do the following:
DATA: ld_offset TYPE i.
DO 26 TIMES.
ld_offset = syst-index - 1.
ld_char = syst-abcde+ld_offset(1).
APPEND ld_char TO lt_chars.
ENDDO.
Regards
Uwe -
Comparing Bit Sequences - O - Bits are One
Hi Gurus,
I need an info on Comparing Bit Sequences, for example O operator - Bits are One.
An ABAP code piece from Include LBZFCF01; Form BMASKE_TO_FTAB looks like this:
IF <b> O hex01. ftab-inp = on. ENDIF.
IF <b> O hex02. ftab-req = on. ENDIF.
IF <b> O hex04. ftab-out = on. ENDIF.
IF <b> O hex08. ftab-act = on. ENDIF.
IF <b> O hex16. ftab-int = on. ENDIF.
IF <b> O hex32. ftab-inv = on. ENDIF.
Now I would like to know; whether this is bit wise equivalent XOR operation.
II need to do the similar comparison in SAP BO Data services.
Please help.
Best Regards, Murugesh*
-
How to generate a special sequence?
Hi there,
I need to generate a special sequence like this:
A0A0A0
A0A0A1
A0A0A2
A0A0A9 ---when add 1 to 9, it will be from A9 to B0
A0A0B0
A0A0Y9
A0A0Z0
A0A0Z9
A0A1A0
...You are right.
I was just about to edit my post... but unfortunately you replied :-)
SQL> SELECT CHR ( 65 + SUBSTR ( len, 1, 2 ))
2 || SUBSTR ( len, 3, 1 )
3 || CHR ( 65 + SUBSTR ( len, 4, 2 ))
4 || SUBSTR ( len, 6, 1 )
5 || CHR ( 65 + SUBSTR ( len, 7, 2 ))
6 || SUBSTR ( len, 9, 1 ) sequence_value
7 FROM ( SELECT len
8 FROM ( SELECT LPAD ( LEVEL - 1, 9, 0 ) len
9 FROM DUAL
10 CONNECT BY LEVEL <= 259259259 )
11 WHERE SUBSTR ( len, 1, 3 ) <= 259
12 AND SUBSTR ( len, 4, 3 ) <= 259
13 AND SUBSTR ( len, 7, 3 ) <= 259 )
14 /
SEQUENCE_VALUE
A0A0A0
A0A0A1
A0A0A2
A0A0A3
A0A0A4
A0A0A5
A0A0A6
A0A0A7
A0A0A8
A0A0A9
A0A0B0
A0A0B1
A0A0B2
A0A0B3
A0A0B4
A0A0B5
A0A0B6
A0A0B7
A0A0B8
A0A0B9
SEQUENCE_VALUE
A0A0C0
A0A0C1
A0A0C2
A0A0C3
A0A0C4
A0A0C5
A0A0C6
A0A0C7
A0A0C8
A0A0C9
A0A0D0
A0A0D1
A0A0D2
A0A0D3
A0A0D4
A0A0D5
A0A0D6
A0A0D7
A0A0D8
A0A0D9
A0A0E0
SEQUENCE_VALUE
A0A0E1
A0A0E2
A0A0E3
A0A0E4
A0A0E5
A0A0E6
A0A0E7
A0A0E8
A0A0E9
A0A0F0
A0A0F1
A0A0F2
A0A0F3
A0A0F4
A0A0F5
A0A0F6
A0A0F7
A0A0F8
A0A0F9
A0A0G0
A0A0G1
SEQUENCE_VALUE
A0A0G2
A0A0G3
A0A0G4
A0A0G5
A0A0G6
A0A0G7
A0A0G8
A0A0G9
A0A0H0
A0A0H1
A0A0H2
A0A0H3
A0A0H4
A0A0H5
A0A0H6
A0A0H7
A0A0H8
A0A0H9
A0A0I0
A0A0I1
A0A0I2
SEQUENCE_VALUE
A0A0I3
A0A0I4
A0A0I5
A0A0I6
A0A0I7
A0A0I8
A0A0I9
A0A0J0
A0A0J1
A0A0J2
A0A0J3
A0A0J4
A0A0J5
A0A0J6
A0A0J7
A0A0J8
A0A0J9
A0A0K0
A0A0K1
A0A0K2
A0A0K3
SEQUENCE_VALUE
A0A0K4
A0A0K5
A0A0K6
A0A0K7
A0A0K8
A0A0K9
A0A0L0
A0A0L1
A0A0L2
A0A0L3
A0A0L4
A0A0L5
A0A0L6
A0A0L7
A0A0L8
A0A0L9
A0A0M0
A0A0M1
A0A0M2
A0A0M3
A0A0M4
SEQUENCE_VALUE
A0A0M5
A0A0M6
A0A0M7
A0A0M8
A0A0M9
A0A0N0
A0A0N1
A0A0N2
A0A0N3
A0A0N4
A0A0N5
A0A0N6
A0A0N7
A0A0N8
A0A0N9
A0A0O0
A0A0O1
A0A0O2
A0A0O3
A0A0O4
A0A0O5
SEQUENCE_VALUE
A0A0O6
A0A0O7
A0A0O8
A0A0O9
A0A0P0
A0A0P1
A0A0P2
A0A0P3
A0A0P4
A0A0P5
A0A0P6
A0A0P7
A0A0P8
A0A0P9
A0A0Q0
A0A0Q1
A0A0Q2
A0A0Q3
A0A0Q4
A0A0Q5
A0A0Q6
SEQUENCE_VALUE
A0A0Q7
A0A0Q8
A0A0Q9
A0A0R0
A0A0R1
A0A0R2
A0A0R3
A0A0R4
A0A0R5
A0A0R6
A0A0R7
A0A0R8
A0A0R9
A0A0S0
A0A0S1
A0A0S2
A0A0S3
A0A0S4
A0A0S5
A0A0S6
A0A0S7
SEQUENCE_VALUE
A0A0S8
A0A0S9
A0A0T0
A0A0T1
A0A0T2
A0A0T3
A0A0T4
A0A0T5
A0A0T6
A0A0T7
A0A0T8
A0A0T9
A0A0U0
A0A0U1
A0A0U2
A0A0U3
A0A0U4
A0A0U5
A0A0U6
A0A0U7
A0A0U8
SEQUENCE_VALUE
A0A0U9
A0A0V0
A0A0V1
A0A0V2
A0A0V3
A0A0V4
A0A0V5
A0A0V6
A0A0V7
A0A0V8
A0A0V9
A0A0W0
A0A0W1
A0A0W2
A0A0W3
A0A0W4
A0A0W5
A0A0W6
A0A0W7
A0A0W8
A0A0W9
SEQUENCE_VALUE
A0A0X0
A0A0X1
A0A0X2
A0A0X3
A0A0X4
A0A0X5
A0A0X6
A0A0X7
A0A0X8
A0A0X9
A0A0Y0
A0A0Y1
A0A0Y2
A0A0Y3
A0A0Y4
A0A0Y5
A0A0Y6
A0A0Y7
A0A0Y8
A0A0Y9
A0A0Z0
SEQUENCE_VALUE
A0A0Z1
A0A0Z2
A0A0Z3
A0A0Z4
A0A0Z5
A0A0Z6
A0A0Z7
A0A0Z8
A0A0Z9
A0A1A0
A0A1A1
A0A1A2
A0A1A3
A0A1A4
A0A1A5
A0A1A6
A0A1A7
A0A1A8
A0A1A9
A0A1B0
A0A1B1
SEQUENCE_VALUE
A0A1B2
A0A1B3
A0A1B4
A0A1B5
A0A1B6
A0A1B7
A0A1B8
A0A1B9
A0A1C0
A0A1C1
A0A1C2
A0A1C3
A0A1C4
A0A1C5
A0A1C6
A0A1C7
A0A1C8
A0A1C9
A0A1D0
A0A1D1
A0A1D2
Z9Z9Z9
Message was edited by:
G.
Dont need to_number either -
Generate 32-Bit Images with MapViewer?
Hi,
is there any posibilitiy to generate 32-bit images with an alpha-channel (RGBA)?
Currently I can only produce 24-bit images without an Alpha-Channel (RGB).
Regards
KerstinIt's been out for months.
You're using CC, not CC 2014 -- it may already be installed, and you're just launching the wrong version. -
Converting digital waveform into bit sequence
Dear friends,
I am stuck with the task of converting a digital waveform (16 bit values) into
the following waveform:
each sample of the original waveform should be represented by a sequence of
bits (or H and L analog values) in the second waveform,
the duration of the bit sequence should be half (in general arbitrary fraction)
of the sample clock period of the original waveform,
the bit sequence should be padded by zeros so that the total duration of the
bit sequence and the pad equals to the sample clock period of the first
waveform.
I tried to represent these two waveforms in the picture attached.
It would be really great if someone could give me hints/suggestions to this
problem!
Thanks in advance!
Attachments:
waveforms.JPG 21 KBHi SamboNI,
Thanks for your reply!
I have couple of notes:
I tried to implement your instructions but the LabView gives error message
(please see the screenshot attached).
I guess there should be "Boolean to (1,0)" VI between "Number to
Boolean Array" and "Build Array" VIs (?)
The problem I have is a bit more complex:
I have a digital waveform (16 bit integers). I need to transform the waveform
in the easiest and fastest way into the following form:
Each sample of the original waveform (16 bit integer number, i.e. 5) should be
represented by a sequence of 0s and 1s corresponding to the bit sequence of that number (0000000000000101 for 5) padded
by a sequence of zeros (i.e. 00000) in the final waveform. I will use the
final waveform to drive single line of the 6534 board instead of 16 lines of
this bopard in the case of the original waveform.
More generally:
I need to realize communication protocol with the AD5541
Digital-to Analog converter from Analog Devices (
http://www.analog.com/en/prod/0%2C2877%2CAD5541%2C00.html ) using 6534 NI
board. Therefore I need also build SCLK and CS waveforms and synchronize
them with the DATA waveform I was talking above. Is there a way to do this?
By the way - do LabView have standard means to communicate
with devices like AD5541? Does it require a special software module and/or
hardware board?
Thanks in advance!
Attachments:
NumToBoolErr.JPG 16 KB -
How to generate a number sequence for a column of a Z*table?
Hi ,
How to generate a number sequence for a column of a Z*table?
plz guide me.
thanks
Albert1) Use SNRO for defining a number range.
2) Use FM NUMBER_GET_NEXT for getting the next number with object, sub object etc..
See one example below.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = c_01
object = c_z_prd_code
* QUANTITY = '1'
subobject = p_vkorg
* TOYEAR = '0000'
* IGNORE_BUFFER = ' '
IMPORTING
number = in_prd_code
* QUANTITY =
* RETURNCODE =
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8
3) You may write these code in main program of the table maintinence
rgds,
TM. -
Generating a new sequence using another sequence
Hi All,
I wish to generate a new sequence file from some external text file/XML file/seq file itself.... can I possibly do it???I have created a TestStand sequence that creates another sequence and inserts and configures a Message popup step. Its not complete, but it does run (as long as you dont have a sequence of similar name loaded).
The sequence is saved as "C:\temp\Steves.seq"
My sequence makes calls to the TestStand API from within TestStand using the Automation Adapter but you can make similar calls from all of the other enviroments listed in the Adapters drop down.
Its really to give you a feel for the sort of things you need to do to create a sequence on the fly. NI should be able to give you some quality examples.
Regards
Steve
Message Edited by SercoSteve on 03-14-2006 08:50 AM
There are 10 types of people in the world that understand binary, those that do and those that don't.
Attachments:
SequenceCreator.seq 28 KB -
Hello All,
I want some help writing a method which generates a set of 100 numbers with values 0 and 1, but the input should be percent of number of 1's and 0's...I mean if I give 20% for 0's and 80% for 1's then in the generated sequence I should get 20, 0's and 80, 1's...randomly.....hope Iam clear with my question.....please help me
Thanks,
Raghu.Here is a utility you can use.. you just need to make the call to get the proper random number of ones and pass the size you want.. it returns an array of strings of ones and zero's but you can convert it to whatever type you need.
--John Putnam
import java.util.*;
* <p>Title: ShuffleBits</p>
* <p>Description: example of creating a string of 1's and 0's and shuffling them</p>
* <p>Copyright: Copyright (c) 2003</p>
* @author John Putnam
* May be use freely with inclusion of this copyright notice
* @version 1
public class ShuffleBits
* method to create an array of strings of 1's and zeros then shuffle them
* @param numberOfOnes exatly to include (the rest are zero's)
* @param maxNumberOfBits total number of ones and zeros.
* @return randomized list of ones and zeros
public String[] randBits(int numberOfOnes, int maxNumberOfBits)
ArrayList bits = new ArrayList(maxNumberOfBits);
for(int i=0;i<numberOfOnes;i++) bits.add("1");
for(int j=0;j<(maxNumberOfBits-numberOfOnes);j++) bits.add("0");
Collections.shuffle(bits); //--do the shuffling of order
Iterator ib = bits.iterator();
String[] bitsBack = new String[maxNumberOfBits];
//--pull out the shuffled bits
int rb = 0;
while(ib.hasNext()) bitsBack[rb++] = (String)ib.next();
return bitsBack;
} //--end randBits
//--------------------------------unit testing main--------------------------------
public static void main(String[] args)
ShuffleBits test = new ShuffleBits();
int numOnes;
int maxNumber;
String[] bitsBack = null;
numOnes = 5;
maxNumber = 15;
bitsBack = test.randBits(numOnes,maxNumber);
System.out.println("\n--Test for #ones: " + numOnes + " max: " + maxNumber);
for(int i=0;i<maxNumber;i++) System.out.println("--I: " + i + " bit: " + bitsBack);
numOnes = 12;
maxNumber = 15;
bitsBack = test.randBits(numOnes,maxNumber);
System.out.println("\n--Test for #ones: " + numOnes + " max: " + maxNumber);
for(int i=0;i<maxNumber;i++) System.out.println("--I: " + i + " bit: " + bitsBack[i]);
numOnes = 12;
maxNumber = 15;
bitsBack = test.randBits(numOnes,maxNumber);
System.out.println("\n--Test for #ones: " + numOnes + " max: " + maxNumber);
for(int i=0;i<maxNumber;i++) System.out.println("--I: " + i + " bit: " + bitsBack[i]);
numOnes = 12;
maxNumber = 15;
bitsBack = test.randBits(numOnes,maxNumber);
System.out.println("\n--Test for #ones: " + numOnes + " max: " + maxNumber);
for(int i=0;i<maxNumber;i++) System.out.println("--I: " + i + " bit: " + bitsBack[i]);
} //--end main
} //--end shuffle bits
The output was.
--Test for #ones: 5 max: 15
--I: 0 bit: 0
--I: 1 bit: 1
--I: 2 bit: 0
--I: 3 bit: 0
--I: 4 bit: 1
--I: 5 bit: 0
--I: 6 bit: 0
--I: 7 bit: 0
--I: 8 bit: 0
--I: 9 bit: 1
--I: 10 bit: 0
--I: 11 bit: 0
--I: 12 bit: 1
--I: 13 bit: 1
--I: 14 bit: 0
--Test for #ones: 12 max: 15
--I: 0 bit: 1
--I: 1 bit: 1
--I: 2 bit: 0
--I: 3 bit: 0
--I: 4 bit: 1
--I: 5 bit: 1
--I: 6 bit: 0
--I: 7 bit: 1
--I: 8 bit: 1
--I: 9 bit: 1
--I: 10 bit: 1
--I: 11 bit: 1
--I: 12 bit: 1
--I: 13 bit: 1
--I: 14 bit: 1
--Test for #ones: 12 max: 15
--I: 0 bit: 1
--I: 1 bit: 1
--I: 2 bit: 0
--I: 3 bit: 1
--I: 4 bit: 1
--I: 5 bit: 0
--I: 6 bit: 1
--I: 7 bit: 1
--I: 8 bit: 0
--I: 9 bit: 1
--I: 10 bit: 1
--I: 11 bit: 1
--I: 12 bit: 1
--I: 13 bit: 1
--I: 14 bit: 1
--Test for #ones: 12 max: 15
--I: 0 bit: 1
--I: 1 bit: 1
--I: 2 bit: 1
--I: 3 bit: 1
--I: 4 bit: 1
--I: 5 bit: 1
--I: 6 bit: 1
--I: 7 bit: 0
--I: 8 bit: 0
--I: 9 bit: 1
--I: 10 bit: 1
--I: 11 bit: 1
--I: 12 bit: 1
--I: 13 bit: 0
--I: 14 bit: 1
notice the last few are the same sizes but come out in different order.
--John Putnam -
Generating 32 bit code on 64bit system
redhat el4 update 3, 2.6.9-34.ELsmp on a sun w2100z
With the Solaris x86 compiler the default is 32 bit code even
on a 64 bit system. Is a way to get 32 bit code generated on
a 64bit system with the Linux version? Other than running
on a 32 bit system (which works fine).
mwAs a general rule, you should try using appropriate gcc flag if that functionality is not covered in our compilers -flags output. If neither provides the needed functionality, ask, something could have been overlooked.
Chris, I don't think we have new flags mentioned anywhere yet, docs update is scheduled to happen later, somewhere closer to release. We could make a list of adopted gcc-style flags. -
Help required to generate primary key sequence
Hello All,
I need your help in generating a sequence for primary key in my db table created using java dictionary project in my NWDS 7.3.
The table column EMPL_ID is a primary and needs to be a sequence. The code in the JPA entity is as below. The underlying database is DB2 on Linux. Kindly help me resolve this issue.
* The persistent class for the TMP_EMPL_DATA database table.
@Entity
@Table(name="TMP_EMPL_DATA")
public class TmpEmplData implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@SequenceGenerator(name="EMPLID_GENERATOR", sequenceName="EMPID_SEQ", initialValue = 10000, allocationSize = 1)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="EMPLID_GENERATOR")
@Column(name="EMPL_ID")
private String _emplId_;
My bean class contains a public method as follows.
public TmpEmplData createEmployee(String employeeName, int age, String location)
TmpEmplData emplData = new TmpEmplData();
emplData.set_emplName_(employeeName);
emplData.setAge(age);
emplData.setLocation(location);
entityManager.persist(emplData);
entityManager.find(TmpEmplData.class, emplData.get_emplId_());
return emplData;
During execution, i am getting an error as below.
Caused by: javax.persistence.PersistenceException: The generated SQL statement is not valid for the underlying database platform (platform no. 99). For more details see attached exception. SQL statement is SELECT NEXT VALUE FOR "EMPID_SEQ" FROM ( VALUES (1) )
at com.sap.engine.services.orpersistence.sqlmapper.mapping.JPASQLMapperImpl.createSequenceIDGeneratorSelectText(JPASQLMapperImpl.java:1239)
at com.sap.engine.services.orpersistence.entitymanager.CachedJPASQLMapper.createSequenceIDGeneratorSelectText(CachedJPASQLMapper.java:259)
at com.sap.engine.services.orpersistence.generator.GeneratorFactory.<init>(GeneratorFactory.java:156)
at com.sap.engine.services.orpersistence.entitymanager.EntityManagerFactoryImpl$MetaDataImpl.<init>(EntityManagerFactoryImpl.java:323)
at com.sap.engine.services.orpersistence.entitymanager.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:137)
at com.sap.engine.services.orpersistence.entitymanager.JtaEntityManagerFactoryImpl.<init>(JtaEntityManagerFactoryImpl.java:39)
at com.sap.engine.services.orpersistence.provider.PersistenceProviderImpl.createJtaEntityManagerFactory(PersistenceProviderImpl.java:251)
at com.sap.engine.services.orpersistence.provider.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:236)
at com.sap.engine.services.orpersistence.container.EMFInstanceCreator.getEntityManagerFactory(EMFInstanceCreator.java:134)
at com.sap.engine.services.orpersistence.container.ORPersistenceObjectFactory.getEMF(ORPersistenceObjectFactory.java:300)
at com.sap.engine.services.orpersistence.container.ORPersistenceObjectFactory.getObjectInstance(ORPersistenceObjectFactory.java:73)
at com.sap.engine.lib.injection.ReferenceObjectFactory.getObject(ReferenceObjectFactory.java:96)
at com.sap.engine.lib.injection.FieldInjector.inject(FieldInjector.java:113)
... 122 more
Caused by: com.sap.engine.services.orpersistence.sqlmapper.generate.SQLMappingException: SQL statement is not valid for underlying database platform.
at com.sap.engine.services.orpersistence.sqlmapper.common.CommonSQLMappingResult.getStatementString(CommonSQLMappingResult.java:237)
at com.sap.engine.services.orpersistence.sqlmapper.mapping.JPASQLMapperImpl.createSequenceIDGeneratorSelectText(JPASQLMapperImpl.java:1237)
... 134 more
Caused by: com.sap.sql.tree.StringRepresentationFailureException: Cannot represent next value expression as string.
at com.sap.sql.tree.impl.OpenSqlTextExpert.nextValueExpressionToText(OpenSqlTextExpert.java:185)
at com.sap.sql.tree.impl.NextValueExpressionBuilderImpl$NextValueExpressionImpl.toSqlTxt(NextValueExpressionBuilderImpl.java:140)
at com.sap.sql.tree.impl.AbstractSqlTextExpert.selectSublistToText(AbstractSqlTextExpert.java:130)
at com.sap.sql.tree.impl.SelectSublistImpl.toSqlTxt(SelectSublistImpl.java:150)
at com.sap.sql.tree.impl.QuerySpecificationImpl.toSqlTxt(QuerySpecificationImpl.java:361)
at com.sap.sql.tree.impl.SelectStatementImpl.toSqlTxt(SelectStatementImpl.java:139)
at com.sap.sql.tree.impl.SQLStatementImpl.toSqlString(SQLStatementImpl.java:75)
at com.sap.engine.services.orpersistence.sqlmapper.common.CommonSQLMappingResult.getStatementString(CommonSQLMappingResult.java:233)
... 135 moreHi,
does the sequence exist? SAP JPA does not support creation of sequences, you have to create it manually.
Maybe SAP JPA also does not support DB2 sequences with "Open SQL" correctly.
- Tryp to set your data source to "native" or "vendor".
- Try to turn on oracle compatibility:
db2set DB2_COMPATIBILITY_VECTOR=ORA
Regards
Rolf -
Why is the text generator corrupting my sequence?
I'm trying to use the Text generator, but it's corrupting my sequence playback.
I keep having to quit FCE and restart it, in order to get my uncorrupted sequence playback to return.
Does anyone know why this is happening, or what I can "reset" from within FCE, without quitting and restarting, in order to restore correct sequence playback?
Thanks!Try trashing the FCE preferences.
Are you using the FCE text generator or Boris? (part of FCE)
Boris is recommended.
Al -
ALE Change pointer idocs generated in wrong sequence
We are using the serialization group to generate the MATMAS and CLFMAS idocs with the sequence MATMAS generated first and then CLFMAS.
Normally,this seems to work fine with the idocs generated in the right sequence.
However, during a period of every 24hours, I could see a couple of MATMAS and CLFMAS idocs being generated in the WRONG sequence with CLFMAS generated first and not MATMAS as maintained in the serialization group.
What could be the reason?
I checked in the BDCP and BDCPV tables, the timestamps for the wrong sequence idocs seem to be correct with MATMAS before CLFMAS. However the actual idoc creation time is not in correct sequence.Hi,
Can you check your serialization group via tcode BD44 and check the sequence number for MATMAS and CLFMAS?
Hope this will help.
Regards,
Ferry Lianto
Maybe you are looking for
-
How to change the master page and theme dynamically in sharepoint2013 anonymous site
hi I have to change the master page and theme dynamically in sharepoint2013 anonymous site. i have to show one master page to authenticated user another master page to anonymous user through code Srinivas
-
Put Phone in Freezer???
Every time I have powered down my phone I have been unable to restart it without putting it in the freezer for a few minutes. This bizarre little workaround has worked, without fail, including recently at an airport in Minnesota where I had to make d
-
Weird happenings on data loss and backup
Re Q10 At work my blackberry files somehow were synced to my computer even though I never intended them to be. I deleted my blackberry files off my computer. A few hours later I was missing a lot of pictures and music files. Some pictures and musi
-
10.4.3 Crash then Safari, Mail, Software Update Crash
I attempted to update to the most recent MacOS X 10.4.3 but I received an error in the process. I then went ahead and restarted the computer, now however none of the following applications are working - Mail, Safari, or Software Update Can someone he
-
N97 updetted not working Help Plz
Hi I've updated my N97 phone and my phone version 2.1 does not work my phone and the charging light does not work with the updated version of the successful, but turn off the phone, please Help me