Small SAP Talk. On Viewing HTTP Headers from SAP System Calls

Small SAP Talk. On Viewing HTTP Headers from SAP System Calls

Problem Statement

View the contents of an HTTP header generated in the SAP system and sent “outward” from some ABAP development where an HTTP call is executed.

See: Example program: Executing an HTTP Request

Solution

To demonstrate the issue outlined in this note, I will use a simple program that attempts to access some web resource, hoping to receive a 200 response code in return.

To obtain information about the HTTP header being generated in the outgoing request, I will need to enable HTTP tracing using transaction SMICM. The following video snippet shows the corresponding sequence of actions:

See: ICM Tracing
0:00
/0:10

Then, you can try running the ABAP program and view the contents of the generated trace. A short video snippet is provided for this paragraph.

0:00
/0:39

The log file can later be downloaded to your local machine and viewed using your favorite text editor.

0:00
/0:30

It is also worth mentioning that tracing should be disabled immediately after the necessary information has been obtained.

For more information about the "Small SAP Talk" series, refer to the following note:​

See: Small SAP Talk