dbTalk Databases Forums  

SSIS and SAP

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS and SAP in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default SSIS and SAP - 05-10-2006 , 10:31 AM






I'm transfering data from a SAP system to my local SQL Server 2005
Database by using customized RFCs with SSIS. I'm using .NET Data
Provider for mySAP Bussiness Suite.

By example I simply create a SAP Connection (.NET Data Provider for
mySAP) and a Data Reader Source and set the SqlCommand property of Data
Reader Source as "EXEC Z_RFC001 @BEGINDATE='20040101,
@ENDDATE='20040131'". Then set the target and execute.

The Z_RFC001 function has two parameters BEGINDATE and ENDDATE
hardcoding them in SqlCommand property is not an effective way.
Especially if you are thinking to schedule a task that updates your
local table in your database.

For the table updating issue: I'm trying to find a way that provides me
the automatic SqlCommand property setting. I tried many different ways
like setting SqlCommand as an expression of Package variables but it
didn't work. Now I'm trying to create a Script Task that changes the
SqlCommand property of the Data Reader Source. And I'm not going on
this well. My further idea is to schedule a program that edits the
Package.dtsx file and execs a batch like "dtsexec Package.dtsx".

Do anybody know a solution for this mechanism?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.