Xpath to pull data from EDI Batch Message
Hi,
Can anyone help me to pass xpath code to pull DocType (MessageType) or ST01 from BizTalk EDI Batch message inside the orchestration?
I'm routing all batched messages from a custom batch router odx and will have to handle by message type.
New to xpath and any help will be greatly appreciated.
S
I think, if I can grab the attribute DocType from <Functionalgroup DocType = "MessageType'>, that would resolve my issue. Pasting part of the Batched Message.
<?xml version="1.0"?>
-<X12InterchangeXml DelimiterSetSerializedData="124:13:10:42:126:-1:-1:-1:-1">
-<ns0:ISA xmlns:ns0="http://schemas.microsoft.com/Edi/X12ServiceSchema">
<ISA01>*</ISA01>
<ISA02>*</ISA02>
<ISA03>*</ISA03>
<ISA04>*</ISA04>
<ISA05>01</ISA05>
<ISA06>XXXXXXXXX </ISA06>
<ISA07>ZZ</ISA07>
<ISA08>YYYYYYYYY </ISA08>
<ISA09>*</ISA09>
<ISA10>*</ISA10>
<ISA11>U</ISA11>
<ISA12>00401</ISA12>
<ISA13>*</ISA13>
<ISA14>0</ISA14>
<ISA15>T</ISA15>
<ISA16>~</ISA16>
</ns0:ISA>
-<FunctionalGroup DocType="http://schemas.microsoft.com/BizTalk/EDI/X12/2006#X12_00401_810">
-<ns0:GS xmlns:ns0="http://schemas.microsoft.com/Edi/X12ServiceSchema">
<GS01>IN</GS01>
<GS02>XXXXXXXXX</GS02>
<GS03>YYYYYYY</GS03>
<GS04>*</GS04>
Similar Messages
-
B2B adapter is not polling any data from EDI X12 810 ECS file
Hi All,
I am new to Oracle B2B. I am using
Jdev 11.1.1.6
Oracle Editor : 7.0.5.4016
Document Protocol : EDI_X12
Document type : 810 (Invoice )
Version: 4010
Weblogic server :11.1.1.6.0
Requirement is : i had an EDI file and i need to translate the EDI map using the B2B adapter, transport to SOA Suite and insert into a custom DB.
Issue is : B2B adapter is not polling any data from EDI X12 810 ECS file
for this i created sample EDI X12 810 ecs file, i converted the same to .xsd and .dat file. I created partner, and while configuring channel i used '*Generic File 1.0*' protocol and i given folder path( i also checked, by just giving folder Name) in the folder name property of 'Transport Protocol Parameters' , i also placed sample xml file into this folder. And I created sample process in Jdev to poll data from this folder.
build and deployment is fine for this process, but no instances is created for this process. and the Process is not Polling any data from the folder which i mentioned in the Transport Protocol Parameters.
is this the way am doing is wrong for my current requirement or am i did any wrong step (as stated above ) ? Please help me. How can i receive data from this EDI file to my bpel process so that i can continue with the rest of the Process. Thank you in advance
Edited by: 979032 on Feb 12, 2013 11:02 PM
Edited by: 979032 on Feb 13, 2013 12:14 AMHi Anuj ,
I placed .dat file now. The file Picked by B2B adapter. But i was getting the Error. The error i found in Business Message as
"Error Code B2B-50547
Error Description Machine Info: (soabpm-vm) Description: Agreement not found for trading partners: FromTP null, ToTP MyCompany with document type 810-3070-INBOUND.
Error Level ERROR_LEVEL_COLLABORATION
Error Severity ERROR
Error Text Agreement not found for trading partners: FromTP null, ToTP MyCompany with document type 810-3070-INBOUND. "
But i created agreement for the partner and my document type name is "NewDocumentType" and in the wire message a am getting as shown below
Id 7F00000113CFC36785C0000017D7E2B0
Message Id 7F00000113CFC36785C0000017D7E2B0
Business Message 7F00000113CFC367A450000017D7E2B7
Packed Message Packed Message
Payload Payload
Protocol Message Id EDIX12810.dat@7F00000113CFC36799B0000017D7E2B4
Refer To Protocol Message Id
Protocol Collaboration Id
Protocol Transport Binding filename=EDIX12810.dat filesize=2289 ChannelName=MyCompany_ListeningChannel file_ext=dat fullpath=/home/oracle/Desktop/B2BFiles/EDIX12810.dat timestamp=2013-02-21T01:58:21.000-08:00 MSG_RECEIVED_TIME=Thu Feb 21 02:04:53 PST 2013
Message Digest Message Digest
Digest Algorithm
Transport Protocol File
Transport Protocol Version 1.0
Url file://localhost//home/oracle/Desktop/B2BFiles/
security
Transport Headers filename=EDIX12810.dat filesize=2289 ChannelName=MyCompany_ListeningChannel file_ext=dat fullpath=/home/oracle/Desktop/B2BFiles/EDIX12810.dat timestamp=2013-02-21T01:58:21.000-08:00 MSG_RECEIVED_TIME=Thu Feb 21 02:04:53 PST 2013
certificates certificates
State ERROR
Reattempt Count
Error Code
Error Description
Error Text
exchangeRetryInterval
exchangeRemainingRetry
Message Size 2289
I also has one more doubt, now i created ecs,xsd and .dat by selecting sample EDI file in Document editor. suppose i want create the same ecs ,.xsd and .dat for my gentran file which is of EDI x12 810 standard but i have it in PDF format , then how can i access that to in Document editor ( in the import option, i found Gentran DDF and Gentran Unix IG and i was getting the following error while importing my PDF file
ErrorCode : 0xC00CE508
File Position : 10
Line Number : 2
LineByte Position :2
Reason: An invalid character was found in text content error) so that i can create .dat file and i can place the same in my folder in order to pick the file.
Please help us . Thank you .
Regards,
Kotresh
Edited by: 979032 on Feb 21, 2013 2:17 AM -
I'm trying to pull data from an Oracle database using SSIS. When I try to select a few fields from the source table, it returns the following error message:
[OLE DB Source [47]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14.
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80040E14 Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80004005 Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
The source columns are a combination of numeric and texts, and I've also tried selecting one of them, which didn't work. I'm using the Oracle client 11.2.0.1, and it works fine with any other data sources I have connected to so far. How can I resolve this
error?Hi H.James,
According to your description, the issue is a non-numeric character was found where a numeric was expected while pulling data from an Oracle database in SSIS.
Based on the error message, the issue should be you are comparing a number column to a non-number column in a query. Such as the query below (ConfID is a number, Sdate is a date):
where C.ConfID in (select C.Sdate
from Conference_C C
where C.Sdate < '1-July-12')
Besides, a default behavior for the Oracle OleDb Provider that change the NLS Date Format of the session to 'YYYY-MM-DD HH24:MI:SS can also cause the issue. For more details about this issue, please refer to the following blog:
http://blogs.msdn.com/b/dataaccesstechnologies/archive/2012/01/20/every-bug-is-a-microsoft-bug-until-proven-otherwise.aspx
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Stages when pulling data from CRM datasource?
Hi,
We are pulling data from CRM.Please explain me the steps while pulling data from CRM.Hi,
Data from CRM to BW is divided into diiferant Data sources.
First need to find data source name.
Use the following seps
First of all, activate the CRM DSs by scenario:
1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
2) Activate the Business Content DataSources (tcode RSA5).
Select/enter the application component and choose Execute (F8).
To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
All BW-Adapter metadata is considered when versions are compared:
Header information (Table SMOXHEAD)
Mapping information (Table SMOXRELP)
Global selection conditions (Table SMOXGSEL)
Attribute key fields (Table SMOXAFLD)
It is depends if you want to use in BW some ready made (Business Content) data analysis models.If so, you need to find your data source in RSA5 in CRM and activate it. See this link http://help.sap.com/saphelp_nw2004s/helpdata/en/04/47a46e4e81ab4281bfb3bbd14825ca/frameset.htm to find Cube you want to analyze in BW, and Data Source connected to it.
BW CRM analysis.
http://help.sap.com/bp_biv135/html/bw.htm
CRM Extraction
Pls chk this link for Crm enhancement
Enhance standard data sources in CRM
BWA1 is for all standard crm datsource maintaince
rsa2 for generic datasource
BWA5 i think we use this Tcode after RSA5 activation additionally.
yes(incase of delta)
BWA7 do we have to use this tcode along with BWA1 for standard datasources also or else only for generic datasource.
irrespective of the type of dtasource,use it if you want to load delta(you need to delta enable the datasource here)
So we don't need to put the code as we traditionally do it for R/3 , if we just mapp the fields that would bring the data for these fields.
as i told in CRM we willwrite code in BADI in case you have done enhancement
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/a-c/customer%20enhancements%20and%20userexits%20in%20bw%20-%20sap%20netweaver%20%20know-how%20network%20webinar.pdf
also chk this(credit goes to the writer)
CRm enhancement:
1. Enhance Extract Structure with the required fields. (Create & include an append structure to the extract structure via transaction RSA6).
2.a) Release the fields of the append for usage. ( To do this, double click on the Datasource and remove the flags in the column 'Hide Field' for all fields of Append).
2.b) If the new fields cannot be seen in the extract structure of the transaction BWA1 then change and save the datasource, and then activate it in RSA6.
3. Define your mappings in BADI (CRM_BWA_MFLOW) to fill these fields.
Goto SPRO . Follow the path ->SAP Implementation guide ->Implementation with other mySAP components ->Data transfer to the Business Information Warehouse-> Settings for the application specific datasources (CRM)->Settings for BW adapter-> Badi :BW adapter :Enhancement of datasources in messaging flow.
4. Replicate the new Datasource to BW.
5. Expand the Communication Structure in BW.
6. Maintain transfer Rules for the new Datasource.
7. Activate the trasfer rules and perform the upload.
Refer to the SAP Note 692195 for more info ......
pls Check this links..
regarding bw crm extraction
http://help.sap.com/bp_biv235/BI_EN/html/BW/CRMAnalytics.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/be/92fb3b28904f73e10000000a114084/frameset.htm
CRM extraction
Hope this helps,
Regards
CSM Reddy -
Pulling data from table to a flat file
hi all,
Good day to all,
Is there any script which i can use for pulling data from tables to a flat file and then import that data to other DB's. Usage of db link is restricted. The db version is 10.2.0.4.
thanks,
baskar.lIs there any script which i can use for pulling data from tables to a flat file and then import that data to other DB'sFlat file is adequate only from VARCHAR2, NUMBER, & DATA datatypes.
Other datatypes present a challenge within text file.
A more robust solution is to use export/import to move data between Oracle DBs. -
Unable to connect to the server to pull data from mysql
Hello,
I am novice working with Flash Builder 4 and I just created a test application which runs well in my computer pulling data from Mysql using PHP and populating a datagrid. But when I transfered it to the my hosting provider failed. I have been doing some modifications to the gateway.php and amf.config.ini to solve some of the issues. Now the application try to run but doesn't populate the data in the datagrid. I included a tracking point in my data service file to read the connections variables, but they come up in blank. I highly appreciate any help. Here are my gateway.php, amf.config.ini and the data service.
gateway.php
<?php
ini_set("display_errors", 1);
$dir = dirname(__FILE__);
$webroot = $_SERVER['DOCUMENT_ROOT'];
$configfile = "$dir/amf_config.ini";
$fp = fopen("tracking.txt", "a");
fwrite($fp, "1-config file " . $configfile . "\r\n");
//default zend install directory
$zenddir = $webroot. '/ZendFramework/library';
//-$zenddir = $webroot;
fwrite($fp, "2-default zendir" . $zenddir . "\r\n");
//Load ini file and locate zend directory
if(file_exists($configfile)) {
$arr=parse_ini_file($configfile,true);
if(isset($arr['zend']['webroot'])){
$webroot = $arr['zend']['webroot'];
$zenddir = $webroot. '/ZendFramework/library';
if(isset($arr['zend']['zend_path'])){
$zenddir = $arr['zend']['zend_path'];
fwrite($fp, "3-after zendir" . $zenddir . "\r\n");
// Setup include path
//add zend directory to include path
set_include_path(get_include_path().PATH_SEPARATOR.$zenddir);
// Initialize Zend Framework loader
require_once 'Zend/Loader/Autoloader.php';
//-require_once 'Autoloader.php';
Zend_Loader_Autoloader::getInstance();
// Load configuration
$default_config = new Zend_Config(array("production" => false), true);
$default_config->merge(new Zend_Config_Ini($configfile, 'zendamf'));
$default_config->setReadOnly();
$amf = $default_config->amf;
fwrite($fp, "4- configfile" . $dafault_config["production"] . "\r\n");
// Store configuration in the registry
Zend_Registry::set("amf-config", $amf);
// Initialize AMF Server
$server = new Zend_Amf_Server();
$server->setProduction($amf->production);
if(isset($amf->directories)) {
$dirs = $amf->directories->toArray();
foreach($dirs as $dir) {
// get the first character of the path.
// If it does not start with slash then it implies that the path is relative to webroot. Else it will be treated as absolute path
$length = strlen($dir);
$firstChar = $dir;
if($length >= 1)
$firstChar = $dir[0];
if($firstChar != "/"){
// if the directory is ./ path then we add the webroot only.
if($dir == "./"){
$server->addDirectory($webroot);
}else{
$tempPath = $webroot . "/" . $dir;
$server->addDirectory($tempPath);
}else{
$server->addDirectory($dir);
fwrite($fp, "5-temp path" . $tempPath . "=>" . "\r\n");
fwrite($fp, "******************************************" . "\r\n");
// Initialize introspector for non-production
if(!$amf->production) {
$server->setClass('Zend_Amf_Adobe_Introspector', '', array("config" => $default_config, "server" => $server));
$server->setClass('Zend_Amf_Adobe_DbInspector', '', array("config" => $default_config, "server" => $server));
// Handle request
echo $server->handle();
?>
amf.config.ini
[zend]
;set the absolute location path of webroot directory, example:
;Windows: C:\apache\www
;MAC/UNIX: /user/apache/www
;-webroot =c:/wamp/www/
webroot = /home/frutiexp/public_html
;set the absolute location path of zend installation directory, example:
;Windows: C:\apache\PHPFrameworks\ZendFramework
;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework
;zend_path = /home/frutiexp/public_html/ZendFramework
[zendamf]
amf.production = true
amf.directories[]=fb41/services
;amf.directories[]=./
CoursesService.php
<?php
* README for sample service
* This generated sample service contains functions that illustrate typical service operations.
* Use these functions as a starting point for creating your own service implementation. Modify the
* function signatures, references to the database, and implementation according to your needs.
* Delete the functions that you do not use.
* Save your changes and return to Flash Builder. In Flash Builder Data/Services View, refresh
* the service. Then drag service operations onto user interface components in Design View. For
* example, drag the getAllItems() operation onto a DataGrid.
* This code is for prototyping only.
* Authenticate the user prior to allowing them to call these methods. You can find more
* information at <link>
class CoursesService {
var $username = "myusername";
var $password = "mypassword"
var $server = "localhost";
var $port = "3306";
var $databasename = "frutiexp_trainsur";
var $tablename = "courses";
var $connection;
* The constructor initializes the connection to database. Everytime a request is
* received by Zend AMF, an instance of the service class is created and then the
* requested method is invoked.
public function __construct() {
$this->connection = mysqli_connect(
$this->server,
$this->username,
$this->password,
$this->databasename,
$this->port
$fp = fopen("./tracking.txt", "a");
fwrite($fp, "1-service". $databasename . " " . $username . "\r\n");
fclose($fp);
$this->throwExceptionOnError($this->connection);
* Returns all the rows from the table.
* Add authroization or any logical checks for secure access to your data
* @return array
public function getAllCourses() {
$stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename");
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
$rows = array();
mysqli_stmt_bind_result($stmt, $row->cou_id, $row->cou_title, $row->cou_overview, $row->cou_objectives);
while (mysqli_stmt_fetch($stmt)) {
$rows[] = $row;
$row = new stdClass();
mysqli_stmt_bind_result($stmt, $row->cou_id, $row->cou_title, $row->cou_overview, $row->cou_objectives);
mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);
return $rows;
* Returns the item corresponding to the value specified for the primary key.
* Add authroization or any logical checks for secure access to your data
* @return stdClassHello Jdesko,
Thank you for you prompt response. Yes, I have changed the connections variables in my dataservice ( I didn't post real values). You are right, after all I didn't make changes on the gateway.php except to add some tracking points. The one that I changed is the amf.config,ini. The application runs without any error exceptions, but don't populate the datagrid. According with the tracing is stoping just when establishing the connection to the database. Please let me know if you have any other clue. thanks -
SSRS pulls data from ESSBASE cube, data not showing
Dear Experts,
We are connecting SSRS 2012 to Essbase 11.1.3 to pull data from the cube, and having some issues with some members data not showing in the query designer and report, while some have no problem. And we couldn't find a pattern on which members won't show. We are wondering if this is a known issue and if there is a way to solve the problem.
Thanks very much.
GraceHi ,
Check the following:-
1 Check whether you have made the joins properly.
2 Check data at multiprovider level .
3 is data available for reporting in both the cubes
Regards
Rahul -
Pull data from a table in HTML format from external URL into a Servlet
How do I pull data from existing website html table into a Servlet?
I will need to pull the data into a servlet. So, the servelet will need to go to the URL and get the data and save them as variables.
I know I will need an array to store the data. I just dont know how to call the URL and have the servelet search the site for the <table> </table>.
I will later use this to save to a database.
Thanks
Edited by: DJMegabit on Apr 14, 2010 7:36 PMMaybe give us more details about what exactly You'd like to achieve. I guess that there might be better solutions to the problem.
-
How to pull data from a c/c++ Application
I am working on a project to instrument a product which runs on java as well as c/c++.
Is there a way to pull data from a c/c++ application to a MBean?
I am able to push the data through a custom TCP Adapter, But I could not get much help on a pull model.
Also I would like to get some pointers on instrumentation techniques / patterns.
Regards
ChandramohanI'm not aware of any JMX out-of-the-box support for managing C++ applications with JMX or MBeans, but you can find some ideas on how this might be done in [this thread|http://forum.java.sun.com/thread.jspa?threadID=5240363] from [this very forum|http://forum.java.sun.com/forum.jspa?forumID=537&start=0].
-
Automated process to pull data from a web page without using VS and PS.
Hello,
I'm looking at finding a solution to pull data from an external web page and creating a list. I'm looking for a NON-POWERSHELL AND NON-VISUAL STUDIO solution. I am open to using InfoPath Designer.
There exists a custom, non-SharePoint page built for us which has raw data. We've already created a custom list to match the data and now need to come up with a solution to automatically update the data. In this particular scenario, power shell and visual
studio cannot be used.
Thanks in advance.Why would you cripple yourself and restrict PowerShell at the very least which has perfect functionality for doing exactly that.
I doubt you could use the InfoPath data sources to pull the raw data in, re-map it and save to SharePoint without resorting to some sort of coding within InfoPath.
Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times. -
Using ABAP DATA FLOW to pull data from APO tables
I am trying to use an ABAP Data flow to pull data from APO and receive error 150301. I can do a direct table pull and receive no error, but when I try to put it in an ABAP data data flow I get the issue. Any help would be great.
Hi
I know you "closed" this, however someone else might read it so I'll add that when you use an ABAP dataflow, logic can be pushed to ECC - table joins, filters, etc. (Which can be seen in the generated ABAP).
Michael -
UNIQUE Problem in pulling DATA from DATA base table to internal table
Dear Experts,
I am new to ABAP. I have a very basic question but looks a quite puzzling one to me. Hemnce I am posting it here.
I am facing an unique problem in pulling data from database table and populating that data into internal table for further use.
The data in the database table "Zlt_mita" with fields M1 (Employee Name, Type: Char20) and M2 (Employee Code, Type Char7) are:
Plz refer the screenshot in the attached file:
My Code:
1) When I try to pull data from Dbase table by taking M2 as parameter.
This code is succcessful and I am able to populate data in internal table it_dat.
TYPES: Begin Of ty_DAT,
M1 TYPE Zlt_mita-M1,
M2 TYPE ZLT_mita-M2,
END OF ty_DAT.
DATA: it_dat TYPE STANDARD TABLE OF ty_dat with header line,
wa_dat TYPE ty_dat.
PARAMETERS: p_mitar TYPE Zlt_Mita-M2.
SELECT M1
M2
FROM ZLt_mita
INTO TABLE it_dat
Where M2 = p_mitar.
Loop at it_dat into wa_dat.
WRITE:/2 wa_dat-M1,
10 wa_dat-M2.
ENDLOOP.
2) When I try to pull data from Dbase table by taking M1 as parameter.
This code is NOT succcessful and I am NOT able to populate data in internal table it_dat.
TYPES: Begin Of ty_DAT,
M1 TYPE Zlt_mita-M1,
M2 TYPE ZLT_mita-M2,
END OF ty_DAT.
DATA: it_dat TYPE STANDARD TABLE OF ty_dat with header line,
wa_dat TYPE ty_dat.
PARAMETERS: P_Mita TYPE ZLT_Mita-M1.
SELECT M1
M2
FROM ZLt_mita
INTO TABLE it_dat
Where M1 = P_Mita.
Loop at it_dat into wa_dat.
WRITE:/2 wa_dat-M1,
10 wa_dat-M2.
ENDLOOP.
Why is this happening when both M1 and M2 are Type Character fields.
Looking forward for your replies.
Regards
Chandan KumarHi Chandan ,
Database fetch is case sensitive ,So u need to give exact format in where condition.
Make your parameter and database in same case so that you need not worry about case sensitivity .
Check the lowecase check box in the domain .
Then declare your parameter
PARAMETERS:
P_Mita
TYPE ZLT_Mita-M1 LOWER CASE .
You can do the vice versa also by unchecking lowercase and giving Upper case instead of lower in parameter declartion .
Regards ,
Juneed Manha -
How to pull data from sql server ( Seperate server) & upload it into sap
Hi All,
I have a SQL Server database in System1,
data base name DB1
Table name TB1
I want pull data from TB1 & upload the same into ztable in SAP.
How I can I achive this in ABAP.
Thanks in Advance
Appropriate points will be rewarded.
Arun kumarHi Arun,
You have to do the following:
1. Create an entry in Trxn DBCA for SQL Server in SAP, you are creating a database connection for the SQL server in SAP.
2. You use this connection, and write Native SQL stmnts...between EXECSQL...ENDEXEC to fetch the data..and then normal ABAP statements to put that data into your ztable.
Regards,
Raj
For eg:
TABLE DBCON Entry can be like this...depends on your External database..
CON_NAME Raj Logical name for connection
DBMS MSS Microsoft SQL Server
USER_NAME <User name> For SQL Serve
PASSWORD <password> " "
CON_ENV MSSQL_SERVER=<server> MSSQL_DBNAME=<database name>
DB_RECO Availability type for an open database connect
FUNCTION z_houston_connect.
""Local interface:
EXEC SQL.
CONNECT TO 'RAJ' AS 'V'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'V'
ENDEXEC.
*- Get the data from MS-SQL Server
EXEC SQL.
open C1 for
select
l.loc_id,
l.loc_name,
a.acc_id,
a.acc_name,
d.person
from ho_loc_mast as l
inner join snd_acc_mast as a on l.loc_id = a.loc_id
inner join snd_acc_addr as d on a.loc_id = d.loc_id and
a.acc_id = d.acc_id
where l.loc_id = '001'
ENDEXEC.
DO.
EXEC SQL.
FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_acc_id, :wa-c_acc_name, :wa-c_person
ENDEXEC.
IF sy-subrc = 0.
PERFORM loop_output.
ELSE.
EXIT.
ENDIF.
ENDDO.
EXEC SQL.
CLOSE C1
ENDEXEC.
ENDFUNCTION. -
Oracle B2B 11g question about pulling data from remote TP sftp server
Hi,
We would like replace our custom b2b solution with oracle b2b, but without resulting much changes in remote TP side. To do that the following issues are to be resolved.
1) in the existing custom b2b, host tp is pulling data from remote TP location. How does oracle b2b pull data from remote location using sftp(AS1 1.1)? Oracle document says that by using global listening channel, we can make oracle b2b listen to the sftp server? Is that correct? Is there any sample about how to configure and test it.
2) For outbound file we would like to preserve the file name. If you use sftp for sending the file out, is it possible to preserve the filename?
3) Some incoming files which are datafiles , does not have any identification pattern. Is there any other way to identify the document type? For example from which location we are pulling the file can tell us the document type.1) in the existing custom b2b, host tp is pulling data from remote TP location. How does oracle b2b pull data from remote location using sftp(AS1 1.1)? Oracle document says that by using global listening channel, we can make oracle b2b listen to the sftp server? Is that correct? Is there any sample about how to configure and test it. I am not sure what do you mean by AS1 1.1 but yes, SFTP is supported in Oracle B2B and if you want to poll a SFTP location, then you need to create a listening channel in Oracle B2B. For creating a listening channel, please refer -
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/bb_listen_chan.htm#BAJJICJJ
2) For outbound file we would like to preserve the file name. If you use sftp for sending the file out, is it possible to preserve the filename?Yes, it is possible. There is a setting "Preserve Filename" in transport protocol parameter of a SFTP channel which should be enabled for this purpose.
3) Some incoming files which are datafiles , does not have any identification pattern. Is there any other way to identify the document type? For example from which location we are pulling the file can tell us the document type. In case of FTP/FILE/SFTP, file name can be used to pass document type and revision information to Oracle B2B. Please refer "Filename format" setting on the above mentioned link.
I figured it out from another thread about how to pull the file. I configured the listening channel so that it reads from a remote server using sftpo protocol. And I have given the filename format as %FROM_PARTY%.dat. I am putting a file like TESTBC.dat. TESTBC is the name of the remote TP. B2B is reading the file but, recognizes the document tupe, but says that FromTP null. What is the solution?
Make sure that TP name is same as what you are giving in filename (cross-check for spelling). You may also try with default naming convention (do not mention anything in Filename format in listening channel configuration) - %FROM_PARTY%_%TIMESTAMP%.dat
for eg -
Acme_12345.dat
Regards,
Anuj -
Is BW able to pull data from R3 by XI
Hi everybody:
I'd like to use XI to integrate BW, R3 and other system. I read serveral documents. I can only find documents with XI you can only push data into BW. Does that mean bw system is not able to pull the data through XI?
If I use bw connects R3 directly, I can connect to R3 in Source Systems easliy.
If I use XI, I find I have to reconstruct all manually. Maybe can not use any predefined things in BW.
My scenario is that bw pulls data from R3 periodically. In that case, I think direct connecting BW and R3 is better. XI is not a good way to do that, is it?
Thanks and will reward answers
Elliotthi Sravya:
The traditional method to pull data from R3 to BW is to define a source system. Then follow the steps to establish ETL. What I need to do is to create ABAP connection in sm59. That's easy. We has already use that method to connect BW and R3. Now, I'd like to connect BW and R3 by XI. In all the document about BW and XI integration, I find the traditional method is no long used. I have to define every data structure and the connection method comes to push data into BW.
The original way is to define a data source and copy that data source to BW. I dont know whether I can create a ABAP connection between BW and R3 by XI. If I cant create that kind of connection by XI, I think the traditional way is not support by XI. So that it is a big task to connect bw and R3 by XI.
Thanks
Elliott
Maybe you are looking for
-
Issue in retrival of Old Appraisal system template
Dear Expert, landscape :ecc 6 , business package 1.41 Currently i am facing a problem in ESS/MSS regarding extracting old appraisal template.the scenario is currently old and new (objective setting and appraisal ) both are available at server . i act
-
Mouse and Trackpad Clicks Sticking
Every time I click with either the mouse or the trackpad the click seems to stick as if I did a half click. For example, if I click in a text area in any application, the cursor won't blink and just seems to be stuck and static. If I try to type no t
-
Solution manager 3.2 Test
Dear sap developers, I am currently using ecatt to record business scenarios in different satellite systems from solution manager 3.2, and when I record MM , FI or PP transactions by using ECATT from solman in R/3 system a popup appears with "transac
-
Why is this group missing from the main page?
Why have the C++, C, HPC, and dtrace forums all disappeared from forum.sun.com recently?
-
When welcome page comes up I click edit, why does the page disappear?
When the welcome page is on my screen and I click on edit, why does the page disappear and nothing comes up?