Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Customer Function to Import SAP Table Def?

$
0
0

Hi,

 

Hope someone has tried this before and found a solution.

 

I want to automate importing table definitions from our SAP system using a defined list of tables.  (553 left to import, and the list is growing).

Project is to migration data from SAP to another NON-SAP hosted solution.

 

Within the function I have worked out how to get the SAP parameters I think are required.

$LV_DB_Type = upper( db_type( $PV_Datastore )) ;

$LV_Repo_Username = datastore_field_value($PV_Datastore,'user');

$LV_Repo_Password = datastore_field_value($PV_Datastore,'Password');

$LV_SAP_Client = datastore_field_value('SAP_RE', 'sap_client');

$LV_SAP_SYSNO = datastore_field_value('SAP_RE', 'sap_system_number');

$LV_Hostname = datastore_field_value('SAP_RE', 'sap_host_name');

 

I am strugglig to find the appropriate parameters for AL_ENGINE.EXE, EG.

 

$LV_Repo_Info_for_al_engine ='-U'||$LV_Repo_Username||' -P'||$LV_Repo_Password||' -S'||$LV_Hostname||' -N'||$LV_DB_Type||' -Q'||$LV_Hostname;

 

The exec command for this looks are follows:

$Lv_Message = exec( 'al_engine.exe',' '|| $LV_Repo_Info_for_al_engine||' -I' || $PV_Datastore||'..' || $PV_Table, 0);

 

$PV_Datastore is 'SAP_RE' the name of the SAP Datastore, and

$PV_TABLE = 'ANLA'

 

Hoping to remove some of the mind numbing process of manual import.

 

Thanks and Kind Regards

David Cooper


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>