diff --git a/viadot/flows/sap_rfc_to_adls.py b/viadot/flows/sap_rfc_to_adls.py index a4f65eb3c..009296d44 100644 --- a/viadot/flows/sap_rfc_to_adls.py +++ b/viadot/flows/sap_rfc_to_adls.py @@ -18,7 +18,7 @@ def __init__( rfc_unique_id: List[str] = None, sap_credentials: dict = None, sap_credentials_key: str = "SAP", - env: str = "PROD", + env: str = "DEV", output_file_extension: str = ".parquet", local_file_path: str = None, file_sep: str = "\t", @@ -70,7 +70,7 @@ def __init__( ) sap_credentials (dict, optional): The credentials to use to authenticate with SAP. By default, they're taken from the local viadot config. sap_credentials_key (str, optional): Local config or Azure KV secret. Defaults to "SAP". - env (str, optional): SAP environment. Defaults to "PROD". + env (str, optional): SAP environment. Defaults to "DEV". output_file_extension (str, optional): Output file extension - to allow selection of .csv for data which is not easy to handle with parquet. Defaults to ".parquet". local_file_path (str, optional): Local destination path. Defaults to None. file_sep(str, optional): The separator to use in the CSV. Defaults to "\t". diff --git a/viadot/tasks/sap_rfc.py b/viadot/tasks/sap_rfc.py index 1925439df..b2ef7552b 100644 --- a/viadot/tasks/sap_rfc.py +++ b/viadot/tasks/sap_rfc.py @@ -26,7 +26,7 @@ def __init__( rfc_total_col_width_character_limit: int = 400, sap_credentials: dict = None, sap_credentials_key: str = "SAP", - env: str = "PROD", + env: str = "DEV", max_retries: int = 3, retry_delay: timedelta = timedelta(seconds=10), timeout: int = 3600, @@ -60,7 +60,7 @@ def __init__( of characters, so we add a safety margin. Defaults to 400. sap_credentials (dict, optional): The credentials to use to authenticate with SAP. By default, they're taken from the local viadot config. sap_credentials_key (str, optional): Local config or Azure KV secret. Defaults to "SAP". - env (str, optional): SAP environment. Defaults to "PROD". + env (str, optional): SAP environment. Defaults to "DEV". By default, they're taken from the local viadot config. """ self.query = query @@ -96,7 +96,7 @@ def run( replacement: str = "-", sap_credentials: dict = None, sap_credentials_key: str = "SAP", - env: str = "PROD", + env: str = "DEV", func: str = None, rfc_total_col_width_character_limit: int = None, rfc_unique_id: List[str] = None, @@ -112,7 +112,7 @@ def run( inside the string to avoid flow breakdowns. Defaults to "-". sap_credentials (dict, optional): The credentials to use to authenticate with SAP. By default, they're taken from the local viadot config. sap_credentials_key (str, optional): Local config or Azure KV secret. Defaults to "SAP". - env (str, optional): SAP environment. Defaults to "PROD". + env (str, optional): SAP environment. Defaults to "DEV". func (str, optional): SAP RFC function to use. Defaults to None. rfc_total_col_width_character_limit (int, optional): Number of characters by which query will be split in chunks in case of too many columns for RFC function. According to SAP documentation, the limit is