SAP Knowledge Base Article - Public

3348899 - Data inconsistency after making changes in offline mode

Symptom

You have an offline script in your SAP Cloud Applications Studio custom solution which is executed in offline mode. After going online, you notice some data inconsistency or mismatch.

Environment

  • SAP Cloud for Customer
  • SAP Cloud Applications Studio

Cause

The root cause could be that the same script logic exits online. When going online and syncing data, the script runs and the same logic is executed again. This could cause inconsistencies when handling date and time related fields.

Resolution

You can make use of the reuse library function "Context.IsOfflineUploadRunning" in your script to skip redundant execution of business logic online that has been already executed offline.

See Also

Please refer to SAP Help Portal documentation:
Context (Reuse Library)

Keywords

PDI, SDK, logic, sync, absl, script, execution, offline, json, twice, executed, run , KBA , AP-RC-BDS-OFL , PDI Offline Enhancements , AP-RC-MOB-OFL-RT , Offline Runtime , How To

Product

SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions