JDBC- PI7.1- BAPI Synchronus
Hi Experts,
I have a scenario where Data of Sales orders are to be picked up from SQL Server using a STORED PROCEDURE and need to be sent to a BAPI -Sales Order which creates sales order in SAP ECC system and I would need to send the Sales ordenumber created back to the database using Update statement.
Can any how you give me links or steps of how to start my Datatypes and Message types and Graphical mapping programm for a Sender STORED PROCEDURE to BAPI and in the same for BAPI -RESPONSE SQL UPDATE statement.
Thanks in Advance.
KishoreJ.
>
RAVI KISHORE wrote:
> Hi Experts,
>
> I have a scenario where Data of Sales orders are to be picked up from SQL Server using a STORED PROCEDURE and need to be sent to a BAPI -Sales Order which creates sales order in SAP ECC system and I would need to send the Sales ordenumber created back to the database using Update statement.
>
> Can any how you give me links or steps of how to start my Datatypes and Message types and Graphical mapping programm for a Sender STORED PROCEDURE to BAPI and in the same for BAPI -RESPONSE SQL UPDATE statement.
>
> Thanks in Advance.
>
>
> KishoreJ.
you have two flows here,
JDBC -> RFC.Request and RFC.Response -> JDBC.
Since the RFC is a sync one, your scenario is Async - Sync
ref:
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File(Without+BPM)
Regarding stored procedures, you cannot use a single stored procedure in this case. So you can have a SP at the sender JDBC and another at the receiver JDBC.
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
Similar Messages
-
JDBC-- PI7.0-- SAPBI with Proxy
Hi Experts,
I have a requirement like this : JDBC(Sql Server)>PI7.0>SAPBI.
I need a suggestions from the above requirement. For this requirement I am planning to use sender as a JDBC Adapter and Reciver as Proxy. I have some questions on this requirement.
1) I need to extract data with more than 15 tables of Sql server data base. Is it possible to extract all data at a time, If yes plase give me some tips.
2) How to combined all 10 extracted tables data into as a Proxy. Please provide some inputs. or it better each table as a one XML file like this....
Lastly one more question is, what is best process for the above requirement either Proxy or IDOc's.
Thanks in advance.
Regards,
Chandra.Hi Chandra,
In addition to the above responses you can follow the approach as:
1. Discuss with your DB team and find out what is the average number of records to be selected from each table on each run of the interface.
2a. If the number of records are large then its better to go for separate interface for separate tables.
2b. If the number of records are limited say 15-20 then you can work either with a single staging table or a stored procecdure after discussing with the DB team what they can agree to.
3a. In case of a single staging table:
i. Create a data type similar to the staging table fields.
ii. Generate a proxy accordingly.
[http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/frameset.htm]
3b. In case of stored procedure
i. Ask the DB team to include a single Select querry with in the Stored Procedure, and also to include a update querry to update the read records once called by Stored Procedure/ DELETE the read records.
ii. In the JDBC sender adapter in the field Query SQL Statement write the querry as as: EXEC "Stored Procedure Name" ("Parameters if any").
iii. In this case your Sender Data type structure should be same as the structure being called by the Select query with in the stored proc. or in other words the sequence followed in the Select query should be same in the sender DT.
iv. Generate a proxy accordingly.
[http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/frameset.htm]
Note: Proxy is always better in this case upon IDOC. If asked by business or BI team you can as well go with RFC keeping in consideration the load/no. of records. In case of bigger messages Proxy is always better being a adapter less communication.
Hope this helps you.
Regards,
Rahul Grover -
Hi Experts,
I have a scenrio JDBC -PI7.1- RFC syn. I got a table in JDBC . First i have to read the table and responce i need to update back to same table..
Jdbc table:
H Delivery no stutus cust addre XX XXXXX XX XXXXX
D Delivery no XXXX XXX XXXX 10 materail1 10 100.00
D Delivery no XXXX XXX XXXX 20 material2 20 200.00
D Delivery no XXXX XXX XXXX 30 maserial3 3 300.00
H
D
D
H :header D: details XX: empty space
If the table is like that. How can i create sturucture in PI as source side ?
What are the steps need to follow for RFC to JDBC syn scenrio ?
Note : In the table H D D ,like that repeating headers and items
Do you recomend , change request from oracle structure ?
Regards,
vasu
Edited by: vasudeva gembali on Sep 22, 2010 4:51 AM
Edited by: vasudeva gembali on Sep 22, 2010 4:54 AM
Edited by: vasudeva gembali on Sep 22, 2010 4:55 AMHi Sateesh,
These are the colum fields.
DELIVERY_ID VARCHAR2(40) H/D Delivery Number
FLAG_STATUS
CUSTOMER_NO VARCHAR2(30) H Customer Number
SAP_CUSTOMER_NO VARCHAR2(30) H SAP Customer Number from Attribute 8
SHIP_TO_NO VARCHAR2(30) H Ship to number
SHIP_TO_ADDRESS1 VARCHAR2(240) H Ship to address 1
SHIP_TO_ADDRESS2 VARCHAR2(240) H Ship to address 2
SHIP_TO_ADDRESS3 VARCHAR2(240) H Ship to address 3
SHIP_TO_ADDRESS4 VARCHAR2(240) H Ship to address 4
SHIP_TO_CITY VARCHAR2(60) H Ship to city
SHIP_TO_POSTALCODE VARCHAR2(60) H Ship to postal code
LINE_ITEM VARCHAR2(6) D LINE ITEM NUMBER
INVENTORY_ORG VARCHAR2(10) D Default u2018DS1u2019 u2018DRS2u2019
CUST_ITEM_CODE VARCHAR2(40) D Customer Item code
GF_ITEM_CODE VARHCAR2(40) D Internal Item code
ITEM_DESCRIPTION VARCHAR2(240) D Item Description
PLAN_ISSUE_DATE DATE D Schedule Shipment Date
QUANTITY NUMBER??? D Shipment quantity
UOM VARCHAR2(3) D Unit of Measure -
Can BPM communicate with FTP and JDBC Adpater??
Hello All Experts,
I have seen a scenario FILE TO RFC TO FILE using BPM, where BPM (integration process) is having a Synchronous communication with RFC and then sends the response to FILE.
SO i just want to ask, can i use other adpater(FIle or JDBC) in BPM for synchronus communication
Plz help.
Thanks and regards,
Vanita JainRaj,
Let me explain my scenario clearly...
I just want to transfer a selected records from database to other system as a file and once that file is gets created than only i have to update the file-name field in database otherwise not. because there may be case when file is not gets created on other system.
so i had created a BPM which receives a records from JDBC adpater asynchronously and then send it to other system for file creation synchronously and then BPM sends a response to JDBC adapter for file name update.
But my scenario is not working, as you said FTP adpater can't be use for synchronous communication.
as Abhishek said i can use Transport acknowledgement option,but am not aware of how to implement this.
Plz help and give example(if possible) ........if you can.
Regards,
Vanita -
hi
XI experts,
i am sending data from oracle(jdbc)>xi>sap(bapi fm ).
i am getting success mesage at sxmb_moni & rwb.
but i am not able to see the data in the r/3 side.
thanks
kalyanIt might be the case that ur RFC at receiver end is not performing the task properly. If it is successfully both in moni and in RWB for receiver, then this is not related to XI. U may tr testing ur RFC again
Regards,
Parteek -
Check the existence of sales order
Hi all,
I am working on the scenario Jdbc to SAP(BAPI's).In Jdbc there is a flag field which indicates the status whether it is create or update or delete.I am using recieve and steps in BPM.
If it is create i have to first check whether already sales order is presented in the SAP data base.If it is already there ,then it must update the existing salesorder with create option.
similarly with update also...
How can i check the data existed in SAP database in BPM ?
Could anybody please help me?
Thanks,
sekhar.you receive a jdbc "data type" and you want to post an rfc to check if the sales order is created so
you have to map the "jdbc" to RFC (transformation step)
then after the swith you can map your "jdbc" again to your z_bapi which now will create or update a sales order for instance
now a little bit clearer?
Regards,
michal
Message was edited by: Michal Krawczyk -
Synchronus file to jdbc Adapter configuration.
Hi ,
I want to configure for Synchronus File to Jdbc Adapter.
Can anyone tell me how to do it.
hemantHi,
In this case you would definitely need one file sender and one jdbc receiver adapter.
Create data taype and message type for file sender ,then create message interface for this message type.
Then create datatype for receiver i.e. jdbc.
For jdbc receiver there is one standard format as below:
<root>
<StatementName1>
<dbTableName action=UPDATE | UPDATE_INSERT>
<table>realDbTableName</table>
<access>
<col1>val1</col1>
<col2>val2new</col2>
</access>
<key1>
<col2>val2old</col2>
<col4>val4</col4>
</key1>
</dbTableName>
</StatementName1>
Then create message type and message interface for this message type.This interface will be inbound and synchronous.
Map your file message to jdbc receiver message.
Then map interfaces.
In ID create configuration scenario,assign file sending and jdbc receiver business system to this scenario.
Then create file sender and jdbc receiver communication channel.Create receiver determination,sender agreement and receiver agreement.
But if you want file synchronous scenario then,you need to use BPM for this.
Thanks. -
Proxy to JDBC Synchronus with ccBPM
Hi Experts,
my scenario is : Proxy to JDBC Synchronus with ccBPM
we are fetting data from ECC to PI and same data inserting into DataBase Table Name : ABC via JDBC
after 2 mins i need to get same data from DataBase Table Name : ABC and sending back to ECC with ccBPM.
what are BPM steps required for this requirement and i need to handle the exception handling with control step also.
Table name is same Table Name : ABC in DataBase for request data and response data.
Please anybody help me on this requirement, i am new to BPM scenarios.
Thanks,
AadiHi,
Have you checked the JDBC XML request?, you need to check that the XML has all the company codes in the SELECT.
Regards. -
File---- XI----- JDBC(synchronus)---- transformation-------- Proxy ??
can u tell me,
if i have scenario with multiple receivers,
file-->XI->JDBC(synchronus)>transformation--
>Proxy
i want to make it without BPM,
how can i do that,
coz, without BPM, how will the sequence of those two receivers(JDBC and Proxy) be specified, coz in my ID, when i do receiver determionation for the two receivers, how will the sequence be maintained....Your scenario isn't simply multiple receivers, as you have also multiple senders (JDBC here plays as receiver and sender).
You can't do it properly without BPM.
And by properly I mean maintaing all the correct logical routing steps (receiver/interface determination etc).
What you could do is a File2Proxy async scenario and in mapping you could perform Lookup in DB. That is only way of achieving it without BPM.
Regards,
Henrique. -
BAPI Sync Call using JDBC Staging Table..
Hello.. (a bit of a newbie so I apologize in advance)
I'm having a problem with an integration. It looks like the xml is coming into XI fine from the JDBC source, but not getting to the correct mapping program. In Runtime Workbench, I get two messages in the Adapter engine. One says successful and has the payload of the JDBC pull data. The other is at a Waiting status and has the same data structure. The error messages says unable to find channel ID. Here are the details.
Synchronous Integration:
- JDBC table Source (polled every 5 mins)
- Mapped to BAPI_PO_CREATE1 (request)
- BAPI call to BAPI_PO_CREATE1
- BAPI resonse BAPI_PO_CREATE1.Response (for PO number)
- Mapped to custom message for JDBC insert command.
- JDBC table updated with PO number from BAPI_PO_CREATE1.Response
I have created two separate Interface Mappings for this, one is a Synch interface outbound with the JDBC source message type output and the JDBC target (with PO number) message type input. The second Interface Mapping is also outbound and has the BAPI CREATE1 as output and the BAPI Response as input.I have gotten this to work and submit to the adapter. As it turns out, I had a problem in my source data structure. The JDBC call (sql) was pulling in the format below. I was missing the subelement "row"
Now I am onto more mapping questions. Thank you for your help though!
<?xml version="1.0" encoding="utf-8" ?>
- <PO_Combined_in>
- <row>
<MANDT />
<EBELN>D02</EBELN>
<EBELP>00010</EBELP>
<ACTION_KEY>A</ACTION_KEY>
<CR_DATE>2005-12-12 00:00:00.0</CR_DATE>
<CR_TIME>12000000</CR_TIME>
<BSART />
<SEQUENCE>1</SEQUENCE -
Hi doubt BAPI to JDBC scenario
Hi experts,
Can you send step by step procedure for BAPI to JDBC sceanrio.
thanks
dhanush,Maybe you can consider searching on SDN for sender rfc adapter scenarios and Jdbc adapter scenarios? Or is searching really that difficult a task?
-
Complete knowledge on jdbc adaptor in PI7.1
Hi all,
I would like to have the complete knowledge on JDBC adaptor.
Please provide me with links (of previous forumns if any) or blogs...
what are the capabilities of using JDBC adaptor and also limitations....
Cheers,
karthickHi,
The only way to become expert in JDBC adapter is first reading help documentation clearly,try to understand the usage and how to deploy the drivers and how execute the queries.do some diferent scenarios and execute some stored procedure scenarios too.
refer below link for sap pi7.1 jdbc adapter doc
http://help.sap.com/saphelp_nwpi71/helpdata/EN/22/b4d13b633f7748b4d34f3191529946/frameset.htm
there is no specific limitations as per my experiece,some times when we updating huge amount of data in to data base,i faces some problems,we resolved following some best development standards like using good sql queries.
Regards,
raj -
Any Blog for Scenario Webservice to BAPI/JDBC/*
Hi All:
Can any one send me a blog for webservice to BAPI/JDBC/* scenario. Also how to deploy it in j2ee engine.
I will reward max points for it.
Thanks
Farooq.How To Develop a Simple Web Service Application Using SAP NetWeaver
Developer Studio & SAP XI 3.0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555 -
Hi,
I have a scenario where i have to sent a set of lines of data from the SQL server and the receiver BAPI should recieve this data in an internal table.Is this possible?If yes,what all steps shud i do?
Thanks and Regards
JishiUsually 0:unbounded data (in case of JDBC <b>row</b>) is mapped to the BAPI structure table 0:unbounded.
That is BAPI structures made by <b>Table Types</b>, they exactly represent the way you create the data types in XI.
regards
Shravan -
JMS and JDBC Adapter in PI7.1
Hi All,
Kindly tell me about the blogs for JMS and JDBC adapter.
Please tell me about the Message Types in JMS adapter.
Thanks in advance.Hi Shwetambari,
Thanks for the reply.
We need to mention the Adapter Modules while configuring the communiucation channels in JMS
e.g. Adapter/ConvertJMSMessageToBinary,Adapter/ConvertBinaryToXMBMessage etc.
So please tell me whether we need to write the cide for the same in JAVA or it is already there ?If it is there then whre can we get it?Do we need to decompile the archeve ?If so, then how to do it?
Can you give me the Adaqpter Modules for which the code is already there?
The JMS adapter (Java Message Service) enables you to connect messaging systems to the Integration Engine or the PCK.
What are the different types of Messaging Systems?Or what is meant by the Messaging System in JMS?
What are the different types of Messages used?
Thanks in advance.
Edited by: Shweta Kullkarni on Sep 4, 2009 5:22 AM
Maybe you are looking for
-
How to get the size of the blob file uploaded ?
Hi , Is there anyway to get the size of the file i have uploaded to a blob type attribute ? What i can see is that when we upload a file in contributor UI ,once the file is uploaded successfully and if we hover on it , it will show the filename , typ
-
My Blackberry Curve 8530 has stopped saving pictures even though the display appears to indicate the pics are being saved. There is also plenty of memory left. I have no idea why this is happening. On another point, browsing through the various commu
-
Every time I try to play a song downloaded from itunes it asks me to sign in to itunes. After signing in it says.. There was an error storing your authorization information on this computer. The required directory was not found or has a permissions e
-
Re-creating techniques in photoshop
Hi, I'm relatively new to photoshop and am wondering if anybody could share some knowledge of how to re-create a similar effect, to the below image. I want to make my images have a yellow tone to them and look slightly old and faded. Can anyone help?
-
Is there a way to click on a contact name, have apple script capture first name, last name, address, then print these in a document? I know I can use mail merge in Pages, but can't in other text editors