Value key field in XML for JDBC scenario
Hi All,
I am working on RFC to JDBC scenario.
I have one table in Oracle DB (like mara in sap).
I wants to read whole data through JDBC adapter.
I am doing following mapping:
'1' - SELECT
'SELECT' - @action
access
<tablename> - table
'' - <fields1...n>
key
???? - <key field1>
Q1) Pls suggest what value i give in key field to
select all records from DB????
Q2) Pls suggest what value i give in key field to
select records with db_field1<> ''????
Regards
Thanks for reply.
But I am not clear How/Where to add optional attributes with key element?
Or
I give key_field name as <field_name compareOperation=NEQ>
Pls help in that.
"The XML elements in the <key>elements can have the following optional attributes:
compareOperation= <compareType>"
Regards
Similar Messages
-
hi
i have sharepoint 2013 enterprise over sql server 2012 standard, and i want to create some reports trhought excel services and performance point using EffectiveUserName feature, but right actually my environment is not working, when a configure an excel
to read a SSAS cube from my local machine the rol is ok, but when i published the excel and try to update from Internet Explorer this error is presenting
XML for Analysis parser: The Domain\User' value of the 'EffectiveUserName' XML for Analysis property is not valid.
Anybody can helpme is urgent find out for some solution
thanks a lotTurns out that you need the SP Farm service account to be an admin on the SSAS server as well. That fixed the problem for us.
MS: Please update your documentation :) -
Why should we select all key fields when using for all entries
Hi,
Why should we select all key fields in our select query when using for all entries statement?
I read about for all entries but this point was not clear in any post.
Please explain me
Regards,
SubhashiniDear Subhasini,
It is because FOR ALL ENTRIES deletes the duplicate entries before populating the target internal table.
Please do an F1 on FOR ALL ENTRIES & read the SAP documentation.
I mean how duplicate entries will not get deleted when we use this?
Quite simple, if you select all key fields then each entry will be unique & there will not be any duplicate entries to delete !!
BR,
Suhas
Edited by: Suhas Saha on Oct 16, 2009 9:41 AM -
Problem finding out datatype for jdbc scenario
Hi all,
Here is my scenario. JDBC(oracle)->FILE
I have a database table orders in oracle with three fields id,name,num. I want to select this table values and map to a different format and send it to a file system.
Can anyone tell me what should be the format of the sender message interface(or data type)?
I've created sender message as ordersJDBC with three fileds id name num. i've configured sender adapter too..but i didnt see any message in my xi server!!!
one more thing should i change the document name in sender jdbc communication channel form resultset to my sender message interface ?
I think the datatype may be wrong can anyone please help me with this?
Thanks in advance.......
Santhosh.Hi All,
It's been a great support from you all, I really appreciate your time.
I've seen the status of my adapter and got the message like "The Network adapter could not establish the connection".
Is it the problem with my connection parameter. Did i mention it correct?
can anyone please cross check my settings......
driver: oracle.jdbc.driver.OracleDriver
connection: jdbc:oracle:thin:@ipaddress:port:databasename
where can i find the information regadring oracle driver in my xi server?
Thanks in advance.......
Santhosh.
Message was edited by: santhosh goli -
How to add extra fields in xml for BI report
Hi ,
I am trying to create a po print report .
I took oracle standard po print program , Cloned it with output as xml and based on that i am creating the layout for my po print report using xml publisher word doc tool . Now In the oracle po print rdf there is no field like requestor email,phone numbers. I want these two fields on my po print .How can i get those fields .If i see requestor portion in xml its as below
<LIST_G_ONE_REQUESTOR>
<G_ONE_REQUESTOR>
<ONE_REQUESTOR_NAME>FRANK, SCOTT</ONE_REQUESTOR_NAME>
</G_ONE_REQUESTOR>
</LIST_G_ONE_REQUESTOR>
but I want some thing like
<LIST_G_ONE_REQUESTOR>
<G_ONE_REQUESTOR>
<ONE_REQUESTOR_NAME>FRANK, SCOTT</ONE_REQUESTOR_NAME>
<ONE_REQUESTOR_PHONE>select 123456</ONE_REQUESTOR_PHONE>
<ONE_REQUESTOR_FAX>111111111</ONE_REQUESTOR_FAX>
<ONE_REQUESTOR_EMAIL>[email protected]</ONE_REQUESTOR_EMAIL>
</G_ONE_REQUESTOR>
</LIST_G_ONE_REQUESTOR>
How can I achieve this ...should I make a change in standard RDF for this or is there a way we can pull these details in xml itself ??
Please help .
Regards,
ChandraI was just think on the same line if we can manage to fetch additional fields like phone number, email address of the requestor by writing a pl/sql in xml itself .But i see that atleast the requestor name should be passed into that query in case there is a way to do it .
Hopefully the change to rdf is the option .
Thanks Srini for prompt response.
--Chandra -
AIF Value mapping for outbound scenario
Hello All,
Is there any possibility of using same value mapping which is defined for Inbound scenario can be reused for outbound scenario as well ?
Since, AIF value mapping can be defined based on Sending system but there is no option of creating value mapping pair between sending system and receiving system (similar to SAP PI value mapping) , is it only defined to use for Inbound scenarios ?
Thanks & Regards,
Dijesh TannaMichael
-->>>>you cannot have the same target value for two source values ?
What does this mean? Can't we have If name = A1, then value in the target should be Sales consultant
and if name = A2 then value in the target should be sales consultant?
My question was :
If name = A1, then value in the target should be sales consultant
If surname = A1, then value in the target should be purchase consultant
In the same graphical message mapping, can this be achieved using value mapping?
Thanks -
How many primary key fields allowed for one table?
hi,
when i creating a table , how many primary key fields are allowed for one table.
please any one give ans
thanksJust checked it, Its 255, not 155. You can have as many key fields as you want, but you can not go over the 255 byte length for the total of all key fields. You will get a warning for over 120, as it says that there is limited functionality with a key over 120 in length.
Again, this is a total length of all key fields.
Regards,
Rich Heilman -
Value adjustment field in sq01
Hi
There is a requirement to fetch "value adjustment" field (in asset explorer) in an asset report (designed through sq01, logical database ada).
I tried abumn & value adjustment field gets populated for the asset but I can not trace out the table & the field where it is stored.
Can someone help me in pulling out this data from the table?
Regards
RaviThanks Bernhard.
I have developed sap abap query using sq01. fetched most of the details from ANLAV, ANLZ, ANLB, ANLK, ANLP.
specific reqirement is to include value adjustment field (Ord. Depreciation CY + Ord. Depreciation PY) in this report.
but ANEP provides amount posted with respect to transaction type.
Closest one I reached is: table ANEA with two fields (Ord Dep. CY, Ord Dep PY). There summation can provide the total value adjustment but that I doubt could be of any use.
There is one structure FIAA_COMPARE_VALUES which holds the value but this cant be used in the query.
So, am i missing out on a table which directly holds the value ?
Regards -
How to convert flat file to XMl without key field value
Hi experts,
I have a input CSV Flat file which has got one HEADER line and Multiple Detail records.
I do not have any key field value to convert this FLAT file to XML using normal file content conversion.
Is there any module or Bean which can be used to convert this Flat File to XML.
Or any other remedy to overcome this problrm.
Thanks in advance.
Regards
PradeepHi Saurabh,
Thanks for the reply.
Ur understanding is perfectly alright.Lets say my file is like below.
Account Number,Account Name,Currency,Unclear Balance,Account Balance010205000033,VAISHNAVI SALES CORPN,0.00,0.00,350000.00
010205000034,CHAKKA ENTERPRISES,0.00,-641350.47,8649.53
010205000035,SEHGAL TRADING COMPANY,338665.00,-220.00,461115.00
010205000036,SHUBH LAXMI AGENCIES,0.00,0.00,0.00
010205000037,EMPIRE AGENCIES,0.00,-245.11,0.00
010205000038,PIONEER AGENCIES,0.00,-696386.00,303614.00
I am not using the first line in the mappiing.
Are you saying that I need to ignore the first line while doing the conversion using Recordset OFFSET ?
Or do I need to make a single structure taking all the fields from header as well as details and while defining the structure I need to ignore the fields from header?
Please suggest. -
Key Field Value for File Adapter Sender Wildcard
Hello everybody, is there a way to use a wildcard for the property of NamA.keyFieldValue in the cc for a Fils Sender????, here's an example why, I need to take some Files via PI 7.0 and my key filed can change according to the file an example is that in a file can be HF28 and in another file can be HF29, the only character that is going to be constant is the H, I would really appreciate any suggestions, thanks in advance.
Regards,
Julio CesarHi Julio
File sender adapter will read the file using FCC
Key Field Value entry is mandatory if the key field name is set. Otherwise, the entry can be ignored
http://help.sap.com/saphelp_nw70/helpdata/EN/34/393071e9b998438ddb8ce97cd617a1/frameset.htm
Content Conversion ( The Key Field Problem )
Thanks
Gaurav Bhargava -
The value 1 is not allowed for the field variace key
Hi experts,
When i was creating material master i was getting the status message as "the value 1 is not allowed for the field variance key" , but its stopping there its not moving out of that screen and creating the material record. When i see this field in the material master configuration its an optional field. Can you give me suggestions, where it can go wrong.
Thanks & Regards,
Ravi.Hi
Can u tell me the field name . I cant get that field ref key. In which view does it come.
Reg
Raja -
Automated value generation for key field in db table
Hi All
I have created a table in SE11 and i want to autogenerate a value for the keyfield when the user adds a new record to the table. the keyfield is of type numc. this field represents a document id hence i do not want the user to physically enter in an id. Is it possible to achieve this without any additional coding. I am using a WDA app together with an adobe form to allow user to input data.
Thanks in advance
Regards
Thashin NaickerThere is one more method to do that.
Write a query to fetch all the records from the table into any temporary internal table.
Then, do a looping in that table & increment one temporary variable inside a loop.
after this add first value of your primary field to this temporary variable..
Ex.: To add one more record with an increment to a primary key field is shown below:
DATA: TEMP type I.
TEMP = 1.
SELECT * FROM <TABLENAME> INTO TEMP_TABLE.
ENDSELECT.
LOOP AT TEMP_TABLE.
TEMP = TEMP + 1.
ENDLOOP.
<Tablename>-<fieldname> = TEMP_TABLE-<fieldname> + TEMP.
Note: temp is a temporay variable and temp_table is a temporary table. -
F4 help values for currency key field in table
Hi all,
I have added currency and currency key fields in my Z table. For the curreny key field, i have assigned the standard data element WAERS. I have implemented Table Maintenance Generator for my table. But the F4 help values for the currency key field is not appearing when i tried to maintain table entry.
Should i need to check the Foreign key check box for the field attribute? But this check box is in disable field in screen layout.
Could someone tell me how to solve this issue?Hi,
Make the check table of the currency field of your Ztable as TCURC,which is the master table of Currency.Inside the domain of the field you write the TCURC as a value table.and make foriegn key relationship with the TCURC table.
Regards,
Suvajit. -
Hi Experts,
I have a scenario in PI, where I have 1 Header, n Data Records and 1 Trailer in the source file. This data is coming in CSV format.
I am using FCC to convert CSV into XML.
In the FCC, I have used keyFieldValue parameter. For the Header Record, the Key Field Value is constant "H"; for Trailer Record the key field value is constant "T".
However for Data Record, the key field value is not constant. The first character of Key field of Data Record will always be "D", but rest of the Alphabets can change.
Sample File:
"H","3.04",22/10/2009,16:31:12
"D2S",21/10/2009,20:00:26,"20044",00666,"S",1
"D2S",22/10/2009,14:26:20,"20044",00668,"S",1
"D0S",22/10/2009,08:33:34,"00044",04165,"S",1
"D0S",22/10/2009,11:59:59,"00044",04166,"S",1
"T",1393.27,1393.27,8
Here, first line is Header Line (Key Field Value "H"), Last Line is Trailer Line (Key Field Value "T") and all lines in between Header and Trailer are Data Records (Key Field Value starts with "D). I need to convert this file into XML.
I have no clue, if this can be converted into XML through FCC.
Any help will be highly appreciated.
Regards,
Varun>
Varun Agarwal wrote:
> Sample File:
>
"H","3.04",22/10/2009,16:31:12
> "D2S",21/10/2009,20:00:26,"20044",00666,"S",1
> "D2S",22/10/2009,14:26:20,"20044",00668,"S",1
> "D0S",22/10/2009,08:33:34,"00044",04165,"S",1
> "D0S",22/10/2009,11:59:59,"00044",04166,"S",1
> "T",1393.27,1393.27,8
>
> Here, first line is Header Line (Key Field Value "H"), Last Line is Trailer Line (Key Field Value "T") and all lines in between Header and Trailer are Data Records (Key Field Value starts with "D). I need to convert this file into XML.
>
> I have no clue, if this can be converted into XML through FCC.
> Any help will be highly appreciated.
>
>
> Regards,
> Varun
Write a simple module. The module will do a replace of the Dxx fields to D (you can use simple regex function for this)
After the module, use the messagetransformbean to do the FCC for you.
The module might sound complex, but trust me its a simple logic you need to implement and you can easily do the FCC with the messagetransformbean -
File Content Conversion - Key Field Value
Hi Experts,
I am using File to Idoc scenario for my mapping. In the receiver Communication channel, I am using File Content Conversion. My scenario is as follows :
I have a recordset with Header and Line items with Key Field Indicator as 'H' and 'L'. In some cases, the value for this Key Field is coming in as something other than 'H' and 'L'. I need to throw an exception when this Key Field is not 'H' or 'L'.
In the 'Content Conversion' tab, my attributes are as:
Header_Structure.keyFieldValue = 'H' and Line_Structure.keyFieldValue = 'L'. Is there any more attributes that I need to add ?
Please advise. Thanks a lot.
Regards,
Freddy.>>multiple key field values in FCC configuration i.e Line_Structure.keyFieldValue = H or L
AFAIK it is not possible but lets wait for other experts to comment on this...
>>Can keyFieldInStructure (add, ignore) parameter help me in this case ?
No. this parameter is only used when you want to include key filed in ur XML structure(add) or not (ignore)...
Chk this:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Maybe you are looking for
-
How to navigate from view of slave DC to view of matser DC?
Hello! I've got DC1 (master) and DC2 (slave) in different projects. Both projects are WD Java local DC projects. DC2 has one component (say A) with view, window, view interface, controller and controller interface and has no applications. This view s
-
Finally got Photoshop Elements 11 installed
I recently purchased PSE11 and just like everyone else in this forum I had massive problems trying to install this programme with the 'Shared Technologies' error. I spent three days reading everyone's suggestions and trying everything that was sugg
-
[BUG] Problem with Error message handling in JDeveloper 11.2.1.0
Hello! I'm Daniel from Brazil. I have been facing a problem recently to which I see no solution. I need to use a specific component called 'Panel Label and Message' in order to nest three other components which need to be grouped together to work pro
-
When I use facebook, I keep getting this message [Java Script Application] Error: options is undefined whenever I try to return something, click on a link, or message, open a game, etc. ... I have Windows 7, addons of greasemonkey and better facebook
-
Unsupported File Error??!! Help!
I am making a DVD with photos set to music. The other night, I previewed it before I closed the program... no problem. Today, when I went to preview it, there was no sound where the first song should be (I didn't get any further to see if the subsequ