Accessing data from schema when using ftp adapter
Hi all,
Below is an example of the data i receive from my ftp adapter, i read the entire file into my schema:
<Header>
<batch_filler1>*BATCH</batch_filler1>
<batch_number>08110</batch_number>
<batch_date>20090417</batch_date>
<batch_extra>KW1310</batch_extra>
</Header>
-<Detail>
<cost_centre_comment>W1310</cost_centre_comment>
<cost_centre_code_comment>01310</cost_centre_code_comment>
<amount>-3000.00</amount>
<filler1/>
<payment_method>T</payment_method>
<description>TSHWANE MULTI SKILL FEATURE CONTRACTORS</description>
<receipt_number>338516</receipt_number>
<date_comment>20090417</date_comment>
<bill_to_cust_id>11748885</bill_to_cust_id>
<ref_value>999999</ref_value>
<detail_extra/>
*</Detail>*
-<Detail>
<cost_centre_comment>W1310</cost_centre_comment>
<cost_centre_code_comment>01310</cost_centre_code_comment>
<amount>-1870.00</amount>
<filler1/>
<payment_method>T</payment_method>
<description>UNIVERSITY OF SOUTH UNIVERSITY SOOUTH AF</description>
<receipt_number>338517</receipt_number>
<date_comment>20090417</date_comment>
<bill_to_cust_id>10414916</bill_to_cust_id>
<ref_value>048630</ref_value>
<detail_extra/>
*</Detail>*
-<Detail>
<cost_centre_comment>W1310</cost_centre_comment>
<cost_centre_code_comment>01310</cost_centre_code_comment>
<amount>-300.00</amount>
<filler1/>
<payment_method>T</payment_method>
<description>VET & AGRIC CONSULTA RB JACKSON</description>
<receipt_number>338549</receipt_number>
<date_comment>20090417</date_comment>
<bill_to_cust_id>11462639</bill_to_cust_id>
<ref_value>048893</ref_value>
<detail_extra/>
*</Detail>*
-<Trailer>
<cost_centre>W801408014</cost_centre>
<amount>18467.13</amount>
<trailer_extra>GROOTTOTAAL VIR W8014/8014 OP 20090417 BONDEL 08110 08110 20090417</trailer_extra>
</Trailer>
As you can see i have multiple data for Detail, i need to loop through my schema for Detail and take the values and pass it on. How do you reference a particular Detail in bpel ?
An example would be if i want the 2nd Detail amount which is -300.00, do i reference it with a [1] as in arrays ?
Thanks
it depends on what you want to do. Generally waht people do is map to a partner link, e.g. another service. In most situations the same structure is required for the target.
The transform activity is the best way to many multi nodes. You have the choose / if conditions that allow you to test conditions, if they match then you perform the map.
One thing that catches people out is the use of the for-each, if this is not specified only one row is mapped.
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28987/phase6.htm#sthref405
cheers
James
Similar Messages
-
Accessing Data from Stored Procedure using CallableStatement
I have created a Stored Procedure as shown , IS it possible to access these data inside my JDBC Program ??
CREATE or replace PROCEDURE getEmpName(EMP_NUM IN NUMBER)
is
CURSOR C1 is select from emp ;*
C2 c1%rowtype;
BEGIN
open c1;
loop
fetch c1 into c2;
exit when c1%NOTFOuND;
end loop;
END ;
*CallableStatement cs = conn.prepareCall("{call getEmpName(?)}");*What do you mean by :
IS it possible to access these data inside my JDBC Program ??JDBC provide/helps to execute a stored proc. when we say executing a proc, it actually executes on DB. So if a proc is written which has in and out parameter. and if does some work based on in parameter and returns the result in out parameter. Here if you mean, like can i read the out parameter and check what it has returned, then yes you can access this data from JDBC.
CREATE or replace PROCEDURE getEmpName(EMP_NUM IN NUMBER)
is
CURSOR C1 is select from emp ;*
C2 c1%rowtype;
BEGIN
open c1;
loop
fetch c1 into c2;
exit when c1%NOTFOuND;
end loop;
END ;
/But in your above proc it has only in parameter, no out parameter and has only select. so you could execute the proc using JDBC. -
How to retreive data from alv when using CL_GUI_ALV_GRID
Hi All,
I am using two subscreens to display 2 ALV grids in a screen using the OOPs concept and the class CL_GUI_ALV_GRID. I would like to download data from these two alv grids into an excel after any changes, i.e sort, filter or summation. I was able to capture data for sort and filter. The logic to capture summation and subtotals is becoming very complex. I need to simplify for better. I need help to see if there is any method which captures the changed data on the screen so that i can just call the method and retrieve the data to push into an internal table before downlaoding to excel.
Your help is greatly appreciated.
Thanks in advance.
RoopaStep 1, define the method in class grid_hdr:
METHODS:handle_data_changed CHANGING e_valid TYPE c.
Step 2, process the method:
METHOD handle_data_changed.
CALL METHOD zgrid->check_changed_data
IMPORTING
e_valid = e_valid.
ENDMETHOD. "handle_data_changed
Step 3, use the method in PAI:
DATA l_valid TYPE c.
CALL METHOD grid_hdr->handle_data_changed
CHANGING
e_valid = l_valid.
IF l_valid = 'X'.
ENDIF.
Also you can search BCALV_EDIT_* in your system.
Edited by: SAM XIAO on Nov 17, 2009 8:03 AM -
No audio from dock when using VGS adapter
Anyone else having this problem? I get fine audio output from the dock, but when I plug in the VGA adapter, the audio is muted. It only comes out of the iPad internal speakers. I cant find any settings to change this.
Any help would be appreciated.
WinI took it to a local Apple centre and it turned-out to be a faulty keyboard dock.
-
Problem archiving file using FTP adapter
Hi,
I am polling some files from another server using FTP adapter in SOA 11g. Even though I have checked the option to archive the files, the files get archived successfully on the server where the SOA process is running, but I am unable to archive the files on the server from which I am reading the file
I am not sure whether this is the default behaviour or is there any way to archive files on the same server from which I pick or read the file.
Any help is appreciated.
Thanks,
NamrataHi Neeraj,
Thanks, the archiving in the remoteLocation worked by doing what you told me...
I tried archiving to the local machine which is not working for me ... i gave both the properties as below...
<property name="UseRemoteArchive" value="false"/>
<property name="PhysicalArchiveDirectory" value="C:\Users\naresh\Desktop\ftp"/>
Thanks,
Naresh -
Duplicate File issue using FTP adapter - BizTalk 2010
Hi We encountered an Issue of picking Duplicate files in BizTalk 2010 from the FTP Location. Need your assistance on this.
Mainframe sends multiple files a 0 KB file to FTP and BizTalk picks during a particular service window using FTP Adapter.
Receive Location has a pipeline component which decodes the MF file(EBCDICRow format).
Send Port transmits the file which is decoded in the Receive location. There is no mapping or orchestration involved.
When 2 files are placed in FTP Location. BizTalk Transmits the files successfully
No suspended messages in BizTalk but we see below error in event log. we tried reproduce the issue but no luck.
Host Instance running FTP Location is Clustered
There was a failure executing the receive pipeline: "XXXX.XX.Pipelines.Receive_XXX_TransactionsMC_passthru, XXX.XX.Pipelines, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c2d1f476d5c2f97d"
Source: "EbcdicRowDeCode" Receive Port: "XXX.XX.MCSTransactionsMC" URI: "ftp://XXXXXXXX:21/'XXXX'/MCSDT.DEFKOP.R001.D*.T*" Reason: Unable to cast object of type 'Microsoft.BizTalk.Streaming.BasicStreamWrapper' to type 'XXX.BizTalk.Pipeline.Components.Streams.V3.VirtualStream
MF Puts below Files at FTP Location
PSNOX.MCSDT.DEFKOP.R001.D150406.T009000
PSNOX.MCSDT.DEFKOP.R001.D150406.T002100
BizTalk Picks ( at specified Service window) and Transmits as
PSNOX.MCSDT.DEFKOP.R001.D150406.T009000
PSNOX.MCSDT.DEFKOP.R001.D150406.T009000
PSNOX.MCSDT.DEFKOP.R001.D150406.T002100
Regards
-SriHi Sri,
There could be two reason for such a behavior:
1) Using Non-Clustered Hosts: It is always recommended to use the clustered host for FTP adapter. Because FTP don't allow
any locking mechanism on the files so in case of non-clustered with multiple host instances you might receive same file multiple times through different host instances.
2) If the original document is still being written to the FTP server by the host application, the FTP adapter cannot
delete the document and will retrieve another copy of the document at the next polling interval that is configured for the receive location. This behavior causes document duplication to occur.
Workaround could be:
Configure the host application to write to a temporary folder on the same hard disk as the public FTP folder and to periodically move the contents of the temporary folder
to the FTP folder. The temporary folder should be on the same hard disk as the public FTP folder to make sure that the move operation is atomic. An atomic operation is an operation that is functionally indivisible. If you write data to the public FTP folder
by using the BizTalk Server FTP adapter, you can do this by specifying a Temporary Folder property in the FTP Transport Properties dialog box when you configure a send port. If you specify a Temporary Folder property, make sure that this folder is on the same
physical disk as the public FTP folder.
Configure the FTP receive location to operate within a service window when the host application is not writing data to the FTP server. You can specify the service window
when you configure the receive location properties.
Refer: Known Issues with the FTP
Adapter
Rachit
Please mark as answer or vote as helpful if my reply does -
Error while reading access data (URL, user,password) for the Adapter Engine
Hi,
Any idea on below message? I am doing file to file scenario and got the below tarce from sxmb_moni.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
<SAP:P1>af.pi1.piserver1</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>no_messaging_url_found: Unable to find URL for Adapter Engine af.pi1.piserver1</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error while reading access data (URL, user, password) for the Adapter Engine af.pi1.piserver1</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Thanks
BalajiIt looks like the adapter engine is not able to register him self on SLD, you have to check in the SLD the "Exchange Infrastructure" domain, you have to verify restarting the J2EE the adapter engine update the entries in the SLD related to the specific XI Domain.
Launch Visual Administrator >> Server >> Services >> SAP AF CPA Cache
Enter the appropriate values for:
SLD.selfregistration.hostname (Use fully qualified hostname)
SLD.selfregistration.httpPort
SLD.selfregistration.httpsPort
Sandro -
How do I access data from one user account to another?
I want to access data from a different user account. How do I make all the files available?
I have another post here in the forum that explains in detail about the rez problem. It was read by a lot of people with no responses. 1 thing that might be important is that I was using a Wacom drawing tablet when this problem started. I removed the Wacom software and no help.
My Apple 23" Cinema display has very large icons but the display prefs says it is at 1920 x 1200. It's not just a low screen rez but the dock and all icons will scroll on the screen when I move the mouse.
The resolution will not change to anything else. The rez is fine on other user names.
I have booted from the Apple DVD and run disk repair, repaired disk permissions. Booted and run Tech Tool.
Booted from the Disk Warrior cd and ran that.
I have zapped the PRAM. I have plugged the display into the other port on the video card.
When I change to the problem user name it is fine for about 1 second and then changes to the "problem". I have never seen this before and I have been using a Mac since 1990.
It's a G-5. Dual 2.0 ghz. 2.5 gb ram. OS 10.5.8. Apple keyboard. Logitech mouse and
Thanks. -
Can I create a Stored Procedure That access data from tables of another servers?
I'm developing a procedure and within it I'm trying to access another server and make a select into a table that belongs to this another server. When I compile this procedure I have this error message: " PLS-00904: insufficient privilege to access object BC.CADPAP", where BC.CADPAP is the problematic table.
How can I use more than one connection into an Oracle Stored Procedure?
How I can access tables of a server from a Stored Procedure since the moment I'm already connected with another server?
Can I create a Stored Procedure That access data from tables of another servers?You need to have a Database Link between two servers. Then you could do execute that statement without any problem. Try to create a database link with the help of
CREATE DATABASE LINK command. Refer Document for further details -
How to change the JCA JNDI dynamically using FTP Adapter
We have 5 FTP Servers, each having a directory to poll. We have created 5 CCI instances for these FTP Adapters in the FTPAdapter deployment. We created a BPEL process and using FTP Adapter to connect to above mentioned servers.
Question: Customer's requirement is to use a single BPEL process to poll all these FTP Servers at a specified date and time. How can we connect dynamically to each FTP server at specified time.
(OR)
Is there any way to change the JCAJNDI dynamically in a FTP Adapter configuration ?
I have seen that FTP Adapter POLL doesnt take any JCA JNDI/hostname/un/pwd/date/time dynamically.
Regards
PavanHi Pavan,
It's possible to change the JNDI dynamically but only when you use put operation where you can control the JNDI name at the time of invoking the FTP Adapter as described in below link.
Dynamic JNDI in FTP Adapter | jca.jndi property not picked by Adapter
However, can you consider using BPEL process with SyncRead (and read files through all the JNDIs in a loop) and scheduling this BPEL process to a desired frequency?
Regards,
Neeraj Sehgal -
Processing files in Sequence using FTP Adapter
Hi Experts,
I have searched several forums but i am not clear on how to process the files using FTP Adapter based on Timestamp.
To process the files in sequence i.e, FIFO using FTP Adapter
i have the files with file name customer and timestamp : customer<yyyyMMddHHmmss>
there are around 50 files in the FTP server llike this.
I need to process these files acording to the timestamp and place the files in same processing sequence in the receiver end using the file adapter.
If i specify the parametes in sender FTP Adapter as
Qos= EOIO
Queue name = ACCOUNT
Whether these parameters would do the processing in sequence according to the Timestamp?
Suppose if the queue ID for Inbound(SMQ2) is XBTI0_ACCOUNT then whether it will be the same for Outbound(SMQ1)?
Kindly suggest me how to process the files in sequence according to the Timestamp using FTP Adapter
Please reply..
Thanks
SaiHi Shabarish,
But this would require one more additional channel to process
So i think it will take more time to process.
Let me clarify my question once again.
I need to Pick the files from FTP server based on their TimeStamp and in sequence.
the file names are like this Customer<YYYYMMDDHHmmSS>.
suppose i have 3 files as
Customer20050413044534
Customer20050414053430
Customer20050315034533
So i need to pick these files in this order and place the files in the same order to the receiver end(File Adapter)
Customer20050315034533
Customer20050413044534
Customer20050414053430.
As i am using FTP sender adapter i cannot use processing sequence "By Date".
please suggest me on this.
Thanks
Sai. -
Accessing data from other SAP system
Hi experts
I need to access data from one SAP system from other. My requirement is , perform applications (programs) in some SAP system, but using/accessing data from other SAP system .
For example, when we press F4 we get the match code (search help) for the field ; that window is alredy created by SAP and it shows the data for that field . Of course the application (ike any other program/application) read the data from the SAP system is being executing ; well i need execute that match code but show (taking) the data from other SAP system; i not refer to other MANDT in same system but other SAP system.
The communication between SAP1 system and SAP2 system is already created from BASIS.
My doubt is how can i execute that standard application (search help) but 'invoke' to standard application this take data from other system ?
I guess i can create Z search help wich call a Z Function (RFC) to get the data required from the other system ;
or maybe enhance the standar search help to call that Z RFC ; but standard application search help is already created and this access the data in several ways or places of code , and this has severals sub-windows and search features ; and i just need execute exactly same search help but accesing data from the other SAP system ; so my doubt is, is there some way to indicate to SAP the applications always (wherever) these applications acces the data do it but from other SAP system,
like if we 'redirect' the Data Base to other SAP system.
SAP1 applications are being executing -
> but all data (records) are taking from SAP2
Maybe the first suggestion is simply why do not we execute applications in SAP2 instead SAP1 , that's because the version package in SAP2 system (where we have the data) does not support some (non SAP) applications we need to use.
Excuse the long thread. Does somebody can help, any idea ?
Best Regards
FrankHi Frank,
Below are my thoughts, these are only conceptual and haven't had an opportunity to try these possibilities, also not sure if this is the right thing.
1) Create an entry in DBCON using TCode: DBCO for the Database of system SAP2. Now in the application of SAP1 use the "SET CONNECTION" construct as the very first statement, so that consecutive SQL statements will point at the DB of SAP2.
2) I have read somewhere that the Work Processes are connected to the Default database and i am not sure if you can change this setting, but if you can and provided you have have multiple application servers in your SAP1 landscape, then pick one of the application servers and change the settings on the WP to point at the DB of SAP2, you have the end users login to this particualr app server.
3) If there are multiple app servers in SAP1 landscape, then choose one of the app servers and change the default database setting to point at DB of SAP2.
Regards,
Chen -
Questions about accessing data from old drives
I am trying to access data from a 10-12 yr old IDE drive that I used with a PC way back when. I place it in an enclosure, and when connected, receive a message via Lion (see attached). Anyone have any idea if the drive may work when connected to a modern PC? Did Windows 10-12 years ago use some system that makes drives not recognizable with Macs OR are the drives just likely bad?
Thanks.Wired is with Ethernet. Connect both with an Ethernet cable
-
Error while reading access data (URL, user, password) for the Adapter Engin
Hi all,
I encountered a red flag in sxmb_moni and when I click on the flag, I get the following message:
Error while reading access data (URL, user, password) for the Adapter Engine
Is there any way I can resolve this? thanks all
Regards,
IXPossible reason is Adapter engine is not registered on SLD. Check in SLD.
You can also try restarting J2EE adapter engine and update SLD entries specific to XI domain.
Lauch Visual admin go to Server > services > SAP AF CPA Cache
Enter the appropriate values for:
SLD.selfregistration.hostname (Use fully qualified hostname)
SLD.selfregistration.httpPort
SLD.selfregistration.httpsPort
Finally, if all the above seem to be correct check the userID / pwd for user ID : PI*. -
ADS, Problem accessing data from Destination
Hello All,
I'm facing an error when executing transaction TRIP.
If I use the standard Adobe form it's OK no error.
If I use a Z-form copy of this standard form (after doing customizing in PE03) I have an error message: Error while initiating travel form
When I was deeper in the debugging I found that there was an exception rose which is:
ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: Problem accessing data from Destination: ...
I found some threads talking about ADS and transaction SM59u2026
When testing the connection in tx SM59 I have an error message 403: forbidden access
Is it the cause of the error generated in TRIP tx?
If yes why using the standard form works fine??
Thank you in advance for your help.
Regards,
Moez.Hello Otto,
Yes I'm using the same user for the two forms.
It works for the standard form and not for the Z-form.
That's why I'm expecting a customizing issue to resolve this problem.
All solution that I found are talking about administration and Visual Admin tool.
Regards,
Moez.
Maybe you are looking for
-
How to Update a clob column..it gives error string literal too long
I am trying to update a clob column of a table but it gives error string literal too long plz tell me what's the issue ORA-01704: string literal too long
-
Printing Issues with HP PSC 750 on Dell Inspiron 3647 using Windows 8.1
Recently purchased a Dell Inspiron 3647 desktop which has Windows 8.1 unable to get my HP PSC 750 to print correctly. I have downloaded all applicable Win 8.0 drivers and even tried using the HP print & Scan Doctor application. I get partial test pa
-
Alarm clock sometimes going off hour early.
I was under the impression that this alarm clock bug was only affecting people in other countries after daylight savings. However, it is happening to me in Chicago right now! I noticed this yesterday when an alarm I use everyday, woke me up an hour e
-
Best DVD burner software for mac
I have made some simple movies I want to burn to DVD with menu options. What is the best (at a reasonable cost) burner softwar to puchase. Have done some research and read the reviews but still confussed.
-
Naming the evaluated case statement field with concatenating input variable value
Hi, I am trying to add the input variable value to case statement evaluated field like below query: declare @Year varchar(4) select ProductCode,datepart(mm,Date) MonthValue, case when datepart(mm,Date) = 1 then sum(Price) else 0 END AS Jan+@Year,