SAP Table Connector - How to querying SAP table using RFC from Azure Synapse

Rafael Mendonca 1 Reputation point
2022-12-27T23:17:26.193+00:00

Hello Experts,

We are using SAP Table Connector on Azure Synapse to extract SAP tables. However, we would like to filter the data in the copy activity.
I tried using the RFC table options using the COLUMN EQ 'SOME VALUE' pattern,

274421-image.png

This worked, but we would like to apply more filters like "AND" and "OR", like this "COLUMN EQ 'SOME VALUE' AND COLUMN1 EQ 'SOME VALUE' ", I don't know if this is possible, or if there are better ways to do this type of filter.

How can we overcome this issue?

Thanks for listening.

SAP HANA on Azure Large Instances
SAP HANA on Azure Large Instances
Microsoft branding terminology for an Azure offer to run HANA instances on SAP HANA hardware deployed in Large Instance stamps in different Azure regions.
123 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,984 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,819 questions
{count} votes

2 answers

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,091 Reputation points
    2022-12-28T18:41:09.61+00:00

    Hello @Rafael Mendonca ,
    Thanks for the question and using MS Q&A platform.

    As I understand you are using the SAP Table connector in ADF / Synapse and want a query with more than one WHERE clause (:...WHERE A = B AND X - Y"). You have tried the obcious symbols like AND and && without luck.

    After checking the connector documentation, I thought someone just forgot to add the logic, but given you tried the obvious without success, I think it must be something else. I haven't found anything helpful in the SAP docs, which seems odd. Also odd is how sparse information about this is. I found two sources suggesting AND / OR is possible, but in both cases, the interface seems much different.

    What is even more bizzare, is that AND does not appear in SAP list of Reserved Words! Although it does appear in their operators.

    You may be right on it only takign 1 WHERE clause, given how the default module doesn't do table joins. A Custom function module definitely would be able to do this. I'll ask around.

    PyRDC with multiple optiosn
    read-sap-tables-with-rfc-read-table-in-mule-4
    RFC_READ_TABLE.html
    How to define where clause for RFC_READ_TABLE

    Please do let me if you have any queries.

    Thanks
    Martin


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

  2. MADHUSUDAN PANWAR 86 Reputation points
    2024-01-19T12:19:02.0433333+00:00

    Hi,
    I am able to use 'AND and 'OR' operator in RFC Function module. As an example, you can simply say-

    GJAHR EQ '2024' AND BUKRS IN ('VALUE1', 'VALUE2')

    GJAHR EQ '2024' OR BUKRS IN ('VALUE1', 'VALUE2')

    Let me know if it helped or you found any alternative solution.

    Thanks,
    Maddy

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.