Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reading header fields from WebDynpro for ABAP

Former Member
0 Kudos

Hello,

i want to read the header fields from my webdynpro-application.

i hope it is possible to read all the fields like it is done in the BSP-App http://host:port/sap/bc/bsp/sap/it00

i tried to use the class cl_http_request but there were nothing.

please help me,

best regards,

Michael

1 REPLY 1

Former Member
0 Kudos

I have found the solution...

best regards,

Michael

DATA: cl_request  TYPE REF TO IF_HTTP_REQUEST,
        lt_header_fields TYPE tihttpnvp,
        ls_header_fields LIKE LINE OF lt_header_fields.

  cl_request = wdr_task=>request.
  DATA: name TYPE string,
        value TYPE string,
        data TYPE xstring.
  CALL METHOD cl_request->if_http_entity~get_header_fields
    CHANGING
      fields = lt_header_fields.