Skip to main content

SAP

C4C: Object Identifier Mapping WebService - Employee type codes

Submitted by Stefan Barsuhn on

The C4C object identifier webservice (CommunicationServicesManagementQueryObjectIdentifierMappingIn/Query Object Identifier Mappings) only works if you supply the correct Remote and Local ID type code. Thankfully, the documentation (linked above) provides a list of type codes for commonly used objects, however, the employee business object is missing.

To make it short, the type codes for employee are:

Tags

SAP: Change request body in BSP response

Submitted by Stefan Barsuhn on

I recently needed to modify the body of an HTTP response in a BSP page. Previously, the request was simply returning a status 403. This was done using request->set_status. So I assumed that I simply had to do request->set_cdata to set the HTML body corresponding to the status. But this was incorrect. 

The correct approach was to use me->write (me referring to the BSP page in the DO_REQUEST method). I know too little about BSP to explain why the request and the BSP page are two different objects.

Tags

SAP: Download IDOC WSDL in SAP ERP

Submitted by Stefan Barsuhn on

WSDLs for an IDOC can be downloaded in transaction WE62.

Simply enter the IDOC type and click Documentation --> Download XML Schema

image 41

If you get the error "Segment X is unknown in release Y" (EA 257), it generally means that the segment in question has not been released. If it's a custom IDOC you've built or generated yourself, you can do the release in BDFG or WE30.

Tags

SAP: CPI Default Message Headers and Properties

Submitted by Stefan Barsuhn on

Anybody ever looking for a list of standard CPI message headers and properties:

https://help.sap.com/docs/cloud-integration/sap-cloud-integration/headers-and-exchange-properties-provided-by-integration-framework

These properties can be used, for instance, in Groovy functions like this (where SAPMessageID is the property from above link):

Tags

SAP: ChatGPT in the SAP context

Submitted by Stefan Barsuhn on

Not sure if you're familiar with the saying "You don't need to know everything, you just need to know where to find it". I have a strong can-do attitude, so I regularly work in areas I haven't worked in before. This means starting at square one and having to google all the beginner questions about transactions and tables or even debugging.

Tags