IS Mapping required in JDBC to PROXY asynchronous scenario?
Hi,
I am working on JDBC to PROXY asynchronous scenario. The scheduled stored procedure fetches the data from database tables and stores them in staging table in the same database. XI will fetch the records via JDBC adapter. Now these records are to be posted into SAP custom table via proxy without any transformation. Now is Message mapping and Interface mapping required in this case?
Hi
I assume that your source and traget structure will be different as you are using JDBC.
SO you will need to create message mapping and operation mapping.
-Deepak.
Similar Messages
-
JDBC Sender to Asynchronous Scenario
Hello.
I´m implementing a JBDC Sender to a RFC Asynchronous. The import parameter of the RFC is an optional table.
In TA: SXMB_MONI the payload of my inbound message is:
And i´m not getting any value in my sap system.
Thanks in advance.It´s seems to failed the RFC Channel Communication:
A resume of the error message in RWB is the following.
Error can not instantiate RfcPool caused by:
com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed -
JDBC to ABAP PROXY ASYNCHRONOUS SENARIO
Hi Experts
JDBC to ABAP PROXY ASYNCHRONOUS SENARIO IN PI 7.4 ?
Can you tell me any one step by step procedure
BR,
SagarHi Sagar
Check the documents below and you will be able to create the whole scenario.
JDBC sender part:
SAP PI Adapter Series: JDBC Adapter Configuration
ABAP proxy receiver part:
Step-by-step FTP to ABAP Proxy - Process Integration - SCN Wiki -
Payload issue in jdbc to proxy scenario
HI Experts,
We have designed a new interface from jdbc to proxy where in it went fine with the design part.
But while testing it the records are pulled by XI but were not posting to ECC.
So when collected the payload to test in mapping I see a red color to the fields in the structure. due to which am not able to get the output in mapping.
Can anyone help me out how to resolve this issue.
Appreciate the quick response.
Thanks and regards,
Ranganath.Add those Extra fields in your Data type and dont map it with target.
or
In select stataement in sender JDBC adapter mention the fieldname you want to pick
Suppose employee table has 3 field
EmployeeeID,
Employeename
address
but you dont want address field then write the select query like this
Select EmployeeeID, Employeename from employee
mention the table fieldnames in select query which you have in your mapping source structure.
if you are write select * from employee
then address will come as extra field and create problem in mapping
Refer this
http://www.java2s.com/Code/SQLServer/Select-Query/Specificcolumnnamesaredefinedinthequery.htm -
JDBC To Proxy Scenario Problem
Dear All,
I am doing JDBC to Proxy scenario. In SXMB_MONI in XI Message is sucessful and JDBC Adaptor fetching records also. These records are seen in SXMB_MONI.
When I check in SXI_MONOTOR in R/3 , message is sucessful, but payload is Blank. The selected records in JDBC are not reaching R/3 . What may be the problem
RaghvendraCheck the mapping between the JDBC response and the Proxy response in XI?
Does the JDBC response have the valid rows? If yes, check what is the output mapping that is sent to the Proxy.
Regards
Bhavesh -
XSLT mapping requirement.. Only numbers need to be picked..!!
Hi ,
XSLT mapping requirement.
I will be getting the value as mix of numbers and alphabets like " 1343: -BIZ USA ".
I need to pick only number '1343' from the input field.
Is there any function in XSLT to pick only numbers and ignore alphabets?
Thanks
DeepthiHi There,
The below piece of code could cater your requirement, for flltering the non digit chars from your field,
<xsl:value-of select="translate(<your field name>, translate(<your field name>, '0123456789', ''), '')"/>
This would separate the non numeric chars from your field in mapping.
Let me know this works.
Regards,
Rajesh Kumar T -
Mapping requirement about grouping with restriction
Hi,experts:
There is a complex mapping requirement.
There are 2 document types(A and B) in the source records.
I need collect the amount with the document which is type A.
The source records are as follows:
Doc_No Doc_Type Doc_Itm_No Amount
0001 A 0010 3
0001 A 0020 4
0002 B 0010 5
0002 B 0020 6
0003 A 0010 11
0003 A 0020 22
The target records should be:
Doc_No Doc_Type Amount
0001 A 7
0003 A 33
The source and the target data type are the same as follows:
Documents 1...unbound
---Doc_No 1...1
---Doc_Type 1...1
---Doc_Itm_No 1...1
---Amount 1...1
Q1: How to create the target top node(Documents) with restriction(Doc_Type = 'A')?
Without the restriction,i can handle it well as follows:
removecontext(Doc_No)->sort->splitbyvalue(value changed)->collapsecontexts->Documents
Q2:How to collect the amount?
Regards
Minghi ming,
do this mapping
Q1: How to create the target top node(Documents) with restriction(Doc_Type = "A")?
Doc_type-->(if equals "A")>(remove context)-->(createif)----->Documents
q2. How to collect the amount?
Doc_type(Documents context) + Amount(Document's context)--->UDF1>(SplitByValue)->Doc_type
Doc_type(Documents context) + Amount(Document's context)--->UDF2>(SplitByValue)-->Amount
//****************************UDF1***********************//
public void get_batch_name(String[] Doc_type,String[] Amount,ResultList result,Container container){
//write your code here
Hashmap myHashmap=new Hashmap();
for(int i=0; Doc_type.length(), Amount.length())
if(myHashmap.get(Doc_type<i>==null))
{myHashmap.add(Doc_type<i>, Amount<i>);}
else
String amt= amt+myHashmap.get(Doc_type<i>);
myHashmap.put(Doc_type<i>,amt);
Set s=myHashmap.keySet();
Iterator i=s.iterator();
while(i.hasNext())
result.addValue(i.next());
//********************UDF2***************************//
public void get_batch_name(String[] Doc_type,String[] Amount,ResultList result,Container container){
//write your code here
Hashmap myHashmap=new Hashmap();
for(int i=0; Doc_type.length(), Amount.length())
if(myHashmap.get(Doc_type<i>==null))
{myHashmap.add(Doc_type<i>, Amount<i>);}
else
String amt= amt+myHashmap.get(Doc_type<i>);
myHashmap.put(Doc_type<i>,amt);
Arraylist s=myHashmap.values();
String array[]=s.toArray();
while(int i=0;i<array.length();i++)
result.addValue(array<i>);
Message was edited by: self
sudeep dhar -
Mapping requirment based on field value
Hi All,
I have a mapping requirement
where in the file i have a 2 AM records as shown
AM U 00000000000010000C
AM X 00000000000120000
Based on AM-03 field i..e,, AM-03 = 'C'
then to the target field i need to pass the value(00000000000120000) of next AM02 record.
so when ever AM03 filed is 'C' then i need to pass the value of next AM record.
can any body suggest me how i it can be acheived.
Thanks
Sai_SHAi am not sure whether i have understood ur req correctly or not..
but u can chk this UDF in ur mapping:
execution type: all values of a context
if(var1[0].equals("C"))
result.addValue(var2[1]);
filed3---removecontext
UDF----target
field2---removecontext -
Mapping Requirement for File to IDOC
Hi All,
I have a requirement related to Mapping and need your help on this. There is a financial posting Interface and the data is being fetched from database using strored procedure.
The source file is having structure like as shown below
<FIExport>
<resultset>
<row>
<headerid>12345</header id>
<field2>5</field2>
<field3>1</field3>
<field4>29</field4>
<field5>3</field5>
</row>
<row>
<headerid>12345</header id>
<field2>5</field2>
<field3>1</field3>
<field4>48</field4>
<field5>3</field5>
</row>
<row>
<headerid>12345</header id>
<field2>5</field2>
<field3>1</field3>
</field4>
<field5>3</field5>
</row>
<row>
<headerid>12346</header id>
<field2>5</field2>
<field3>1</field3>
<field4>2</field4>
<field5>3</field5>
</row>
<row>
<headerid>12347</header id>
<field2>5</field2>
<field3>1</field3>
<field4>2</field4>
<field5>3</field5>
</row>
</resultset>
</FIExport>
Condition:
For creating target structure follwoing conditions are required
1) IDOC at receiver side will be created as per unique header id therefore in the current source structure 3 Idocs will be created for 3 unique header id like 12345 , 12346 , 12347
2) Target EIFISEG which is line item will be created based on per row per unique header id under each IDOC and there has to be 2 SEGMENTS (2A & 2B ) per row based on the VAT amount presence and also two additional E1FISEG has to be created statically per idoc for BSCHL = 34
so for the above source structure the target should have number of EIFISEG as follows:
As there are 3 rows for header id 12345, therefore under IDOC1 the number of EIFISEG will be
since VAT Amount(field 4) is present therefore for 2rows of 12345 header id IDOC it will generate 2X2=4 , E1FISEG segments (each for 2A & 2B) and 1 E1FISEG for 3 row of header id IDOC 12345.
In addition to this 2 additional segment will be created for BSCHL=34( it's duplicate segment of E1FISEG, so no issues in this)
Total number of E1FISEG segments in IDOC for header id(12345) will be = 4 + 1 + 2 = 7 segments
Similarly for IDOC with header id (12346) the total number of EIFISEG will be = 2( 2A & 2B as vat amount (field 4) is present + 2(bschl =34) = 4 segments
Similarly for IDOC with header id(12347) the total number of E1FISEG will be = 2( 2A & 2B as vat amount (field 4) is present + 2(bschl =34) = 4 segments
So the target strcuture should look like:
Target Structure
IDOC1 for header id= 12345
E1FIKPF
field 1
E1FISEG1
field 2
E1FISEG2
field 2
E1FISEG3
field 2
E1FISEG4
field 2
E1FISEG5
field 2
E1FISEG6
field 2
E1FISEG7
field 2
IDOC1 for header id= 12346
E1FIKPF
field 1
E1FISEG1
field 2
E1FISEG2
field 2
E1FISEG3
field 2
E1FISEG4
field 2
IDOC1 for header id= 12347
E1FIKPF
field 1
E1FISEG1
field 2
E1FISEG2
field 2
E1FISEG3
field 2
E1FISEG4
field 2
Please help me to complete this mapping requirement as it seems to be complex.
Thanks & Regards
PrabhatHi,
There was one typo mistake, the TARGET structure will be
Target Structure
IDOC1 for header id= 12345
E1FIKPF
field 1
E1FISEG1
field 2
E1FISEG2
field 2
E1FISEG3
field 2
E1FISEG4
field 2
E1FISEG5
field 2
E1FISEG6
field 2
E1FISEG7
field 2
IDOC2 for header id= 12346
E1FIKPF
field 1
E1FISEG1
field 2
E1FISEG2
field 2
E1FISEG3
field 2
E1FISEG4
field 2
IDOC3 for header id= 12347
E1FIKPF
field 1
E1FISEG1
field 2
E1FISEG2
field 2
E1FISEG3
field 2
E1FISEG4
field 2
Thanks & Regards
Prabhat -
Required appropriate JDBC driver for Oracle 9i
Required appropriate JDBC driver for Oracle 9i Enterprise Edition Release 9.2.0.6.0.
And?
Download them from the Oracle website or get them from your Oracle client application's jdbc directory. -
Why is a sender communication channel not required for IDOC and PROXY ?
Hello,
In case of IDOCs, metadata will be available in PI for the IDOCs used both at inbound and outbound.
Why is a sender communication channel is not required in case of IDOC and PROXY outbound scenarios (i.e. IDOC to File or PROXY to file ..) when a receiver channel is required for scenarios like file to IDOC or file to PROXY.
Though this might be a regular question, I am not able to find a proper reason.
Please let me know the reason for the above request.
Thanks & Regards.You will create RFC destination in ECC , it will have details about PI system details, when ever you send IDoc, ECC will use Port and RFC destination to connect PI Integratiion engine to deliver data to PI.
But when receiver side you will create RFC destination in PI with ECC details, but to call RFC destination and Port we need medium that was the reason we create IDoc communication channel.
Even the same case for Proxy also, but HTTP deastination establish the conection between ECC and PI, but receiver side you have to create XI channel with PI integratioin engine adress to post data.
Regards,
Raj -
Dear all,
I have a mapping requirment based on IDOC Segment to SOAP.
My IDOC Structue is like this:
Source Target
segement1:
itemA
itemB
itemC ID
itemD
Segement2:
itemD
itemE Description
itemF Value
Based on ItemF ,if its value is 00 then get itemC from Segement1 and itemE from Segement2 and map to target as ID and Desciption .
Please provide me the graphical mapping design.
Regards
Vsantoshcan u provide me some more information like
if ItemF value is 00 then ur trying to get the data from the two fields from the source side ,
what do u want to do with those two values (means u want concatnate or what) and
if itemf value is not queals to 00 then what to do ....... -
Database error for JDBC to Proxy Scenario
Hello SAP PI Gurus,
I am having a JDBC to Proxy Scenario .And the interface is running at 10 min of duration.
However, my other interface are running fine with the same details.
But for this interface, it giving the belwo error :
Database-level error reported by JDBC driver
while executing statement 'call proc_dtdc_prod_summary'.
The JDBC driver returned the following error message: '
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table
'dtdc_prod_summary_temp' already exists'. For details,
contact your database server vendor.
So increased the time from 10 min to 20 min to 30 min. But the erro remians.
So pls look into this and give your suggestion.
Regards,
RaviHi Ravi,
Please check execution of your stored procedure is resulting with creation of Table : dtdc_prod_summary_temp.
Modify your stored procedure to just fetch records or insert records in the existing table. Or change the code to Create a table 'dtdc_prod_summary_temp only if it doesn't exits in the Table data base.
Regards
Praveen K -
Required setting for ABAP proxy.
Hi Experts,
I want to know what settings are required in both R3 and Xi to create and execute the ABAP proxies?
Thanx in advance.
Regards,
Pramod Thorat.Hi Pramod,
To create an ABAP proxy communication scenario, you need Web AS with wersion release >= 6.40
You can start with separate client proxy scenario and a server proxy scenario and then move on with a proxy to proxy scenario.
Also, Please go through this links:
http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
/people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies
/people/siva.maranani/blog/2005/04/03/abap-server-proxies
Thanks & Regards,
Varun Joshi -
JDBC syn to proxy syn Scenario
Hi firnends,
JDBC (syn) to Proxy (Sys)
I need to pick the data from JDBC and status need to update back from ECC (proxy).
What are the best possible soluctions ? With or without BPM ?
Pls reply back.
Regards,
vasudeva
Edited by: vasudeva gembali on Oct 7, 2010 7:40 AMHi friends,
I started my scenario like
JDBC syn - proxy syn - JDBC without BPM using Using Request Response Bean Module
as in link
http://wiki.sdn.sap.com/wiki/display/XI/UsingRequestResponseBeanModuleinFILE+Adapter
. Now i am getting the issue like
JDBC is picking the data and can't update the status SET = 1 instead of 0.
It was working when it was asynch.
2. Do i need to create Receiver determination or receiver agreement two times ?
Maybe you are looking for
-
ITunes moves music up one level after play
Hi All: iTunes recently started moving played music up a folder level once played. I have iTunes 10.4.1 on a Windows 7 machine, and it is set to organize my music. Normally, music is kept in the subfolder Music in my iTunes library folder, but the M
-
Sign in failed : unknown server error (-6)
Hello, am facing lot of huddles with the initial setup in my playbook.. Now i completed the s/w updates and installed the new s/w. but now facing one more problem. when i enter my blackberry UserID and password on the blackberry ID page., i get an er
-
I have a ~26 MB CSV file, which I had wanted to open in Numbers 09. But when I did, Numbers displayed the Opening dialog box, and then said that the file can't be opened because it was too big. How can I work around this and open the CSV file?
-
Calling batch file using dbms_scheduler
Hello, i have created a schedule, program and a Job to using the DBMS_SCHEDULER. creates all those fine but when i try to run i get errors. here is the code: begin dbms_scheduler.create_schedule( schedule_name => 'dailyjob', repeat_interval => 'FREQ=
-
I see this in the manual-- Supports the following double hard drive configurations: ● 2 TB: (1 TB, 5400 rpm, 12.5 mm × 2) ● 1500 GB: (750 GB, 7200 rpm, 9.5 mm × 2) ● 1500 GB: (750 GB, 5400 rpm, 9.5 mm × 2) ● 1 TB: (500 GB, 5400 rpm, 9.5 mm × 2) Does