Skip to main content
Closed

New feature for SAP/DB extarctor

Related products:Extractors

Hi,

Is it feasible to incorporate a new feature into the SAP extractor that facilitates reporting? 

For instance, scheduling the SAP extractor on a daily basis to append data to the raw database, even if the primary key remains the same for subsequent days, and ensuring that it does not overwrite existing data.

Presently, we've implemented a workaround by including a date field in the key and utilizing our own extractor to accomplish this. Can this functionality be achieved using the Cognite SAP extractor?

Also same for DB extractor 

 

Support ticket raised is https://cognite.zendesk.com/hc/en-us/requests/10724?page=1.

 

Thanks,

Shubha

8 replies

Hunter Beck
Seasoned Practitioner
  • Seasoned Practitioner
  • 24 replies
  • April 9, 2024

Thanks for logging this @shubha k v we’re looking into this feature and will followup as we consider it further.

Apologies for the slow response. Unfortunately, we had a bug which meant we did not get this feature idea reflected in our internal system for review until 2 days ago. 


Forum|alt.badge.img

Hi @shubha k v, and thanks for the request. 

This is probably my lack of understanding on full display, but I’m unclear as to whether you’re wanting us to add support/functionality to simplify reporting from the extracted data (if so, what kind of reporting/reports are you wanting to enable?), or if you’re asking us to add something equivalent to a “data last modified” timestamp to the base functionality for one or more of the SAP extractor variants listed on our extractors page?

Would be helpful to me if you would be able to describe the business problem you’re wanting to solve (that we’re not currently solving for you)?


Hi @shubha k v 


In the SAP Extractor configuration you have the option to add a list of fields to be used as keys in CDF raw. These fields will be concatenated during extraction, creating an unique raw key. Here is an extraction configuration example for MaintenanceNotification standard entity in S/4HANA:

  -
    source_name: mys4hana
    name: notifications
    destination:
      type: raw
      database: sap_extractor_v2
      table: notifications

    sap_service: API_MAINTNOTIFICATION
    sap_entity: MaintenanceNotification
    sap_key: [MaintenanceNotification, LastChangeDateTime]

Result in CDF RAW:
 


Let me know if this suggestion works for you. Otherwise, please let me know more details your needs so we can evaluate this further as a feature request.

Regards,

Rogerio Junior
Cognite Engineering


Forum|alt.badge.img+1
  • Author
  • Committed
  • 3 replies
  • May 3, 2024
Thomas Sjølshagen wrote:

Hi @shubha k v, and thanks for the request. 

This is probably my lack of understanding on full display, but I’m unclear as to whether you’re wanting us to add support/functionality to simplify reporting from the extracted data (if so, what kind of reporting/reports are you wanting to enable?), or if you’re asking us to add something equivalent to a “data last modified” timestamp to the base functionality for one or more of the SAP extractor variants listed on our extractors page?

Would be helpful to me if you would be able to describe the business problem you’re wanting to solve (that we’re not currently solving for you)?

I want support/functionality to simplify reporting from the extracted data.

In my case need to add report_date field to primary keys even tough its not available


Forum|alt.badge.img+1
  • Author
  • Committed
  • 3 replies
  • May 3, 2024
Rogerio Júnior wrote:

Hi @shubha k v 


In the SAP Extractor configuration you have the option to add a list of fields to be used as keys in CDF raw. These fields will be concatenated during extraction, creating an unique raw key. Here is an extraction configuration example for MaintenanceNotification standard entity in S/4HANA:

  -
    source_name: mys4hana
    name: notifications
    destination:
      type: raw
      database: sap_extractor_v2
      table: notifications

    sap_service: API_MAINTNOTIFICATION
    sap_entity: MaintenanceNotification
    sap_key: [MaintenanceNotification, LastChangeDateTime]

Result in CDF RAW:
 


Let me know if this suggestion works for you. Otherwise, please let me know more details your needs so we can evaluate this further as a feature request.

Regards,

Rogerio Junior
Cognite Engineering

If last change date field is not availble in our source system then how can we handle this


Forum|alt.badge.img

@shubha k v ,

If last change date field is not availble in our source system then how can we handle this

 

Since LastChangeDateTime is supposed to be included for standard SAP tables, have you tried verifying that ithe data doesn’t exist on the source system?

 


Forum|alt.badge.img+1
  • Author
  • Committed
  • 3 replies
  • June 18, 2024
Thomas Sjølshagen wrote:

@shubha k v ,

If last change date field is not availble in our source system then how can we handle this

 

Since LastChangeDateTime is supposed to be included for standard SAP tables, have you tried verifying that ithe data doesn’t exist on the source system?

 

Hi Thomas,

Yes LastChangeDateTime  is not available as its SAP standard API. 

And what data we get daily they want to  append the data and upsert


Forum|alt.badge.img

After investigating, we've determined that we do not want our extractor(s) to add and append data as real data is being extracted. Closing as "Won't do"


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings