Skip to main content

All articles

C4C: Reuse functions - don't forget the return parameter!

Submitted by Stefan Barsuhn on

I recently wrote a reuse function that handled all kinds of scenarios and returned different values. However, I forgot to handle the negative case, i.e. where none of these scenarios apply and no (or an empty) value should be returned.

C4C does something funny in this case: It doesn't just return a "blank" value, it returns the value of the last successful "return". 

The Four Classes of SAP Consultants

Submitted by Stefan Barsuhn on

I'm a big fan of the Lazy Admin approach. Little did I know that its spiritual father was Kurt von Hammerstein-Equord, a German general and prominent Hitler opponent, who died much too soon.

He classified military officers as follows:

I distinguish four types. There are clever, hardworking, stupid, and lazy officers. Usually, two characteristics come together.

Tags

C4C: Security Considerations when switching Inbound Integrations to Certificate-based Authentication

Submitted by Stefan Barsuhn on

Historically, many users preferred the simplicity of "set-and-forget" basic authentication over the hassle of expiring certificates. However, rising security scrutiny has shifted this mindset.

Authentication Method field in C4C

In SAP Cloud for Customer (C4C), switching to inbound certificate-based integration seems straightforward:

Tags

C4C: Return Value in Reuse Functions

Submitted by Stefan Barsuhn on

C4C has an interesting quirk (I wouldn't go so far and classify it as a bug): 

Assume you have a reuse function that returns a value.

In this case, you need to make sure that your script always (i.e. in all scenarios) explicitly (i.e. using the return statement) returns a value.

If you don't, it will return the same value it returned when it was previously called.

Tags

C4C: Integration - System Instance ID vs. Business System ID vs. IDOC Logical System ID

Submitted by Stefan Barsuhn on

When you maintain a communication system in SAP C4C for integration with an SAP backend system (ERP, S/4), you flag the "SAP Business Suite" field and then maintain the "Business Instances".

The terminology has always confused me, but I just came across a pretty old blog by SAP that explains these fields under a somewhat unintuitive title: Communication System Setup and Message Header Hand... - SAP Community.

Tags

C4C: New Visual Studio 2022: "Project Not Checked Out" error

Submitted by Stefan Barsuhn on

For a few months now, whenever I've opened a solution in the new Visual Studio 2022 SDK plugin, I've been receiving the annoying warning that my project targets an unsupported version of .NET, asking me whether I want to upgrade the target to .NET 4.8.

It was a mere nuisance, usually clicked okay and could continue to work.

Tags

C4C: New Visual Studio 2022 - unable to create script files in Custom BO

Submitted by Stefan Barsuhn on

In the new Visual Studio 2022 plugin, it is not possible to create script files (or perform other BO operations) without first checking out and making a dummy edit to any custom BO.

I had created a custom BO yesterday and wanted to proceed with the script files today, when I noticed that I couldn't create them: