Skip to main content

All articles

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

Web: Using Eclipse to debug PHP scripts on a remote server

Submitted by Stefan Barsuhn on

Interesting enough, there is no proper guide out there that explains how to set up PHP debugging in Eclipse when you are working with a remote server. There are tons of guides, but they all assume that you're running PHP on your local machine. (Update: Actually, one of the first pages that come up on Google regarding PDT remote debugging is this manual page. However, this assumes you're running Zend and not XDebug.

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