SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | File Transfer Using FTP(BC-SRV-COM-FTP) SAP BC

RSHTTP44 SAP ABAP Report - SAPHTTP MULTIPLE GET / POST Test







RSHTTP44 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RSHTTP44 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RSHTTP44. "Basic submit
SUBMIT RSHTTP44 AND RETURN. "Return to original report after report execution complete
SUBMIT RSHTTP44 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: SAPHTTP MULTIPLE GET / POST Test


INCLUDES used within this REPORT RSHTTP44

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Create temporary file'. "#EC NOTEXT

HTTP_SUPPORT CALL FUNCTION 'HTTP_SUPPORT' destination dest EXPORTING filename = file_name function = function fsize = fsize IMPORTING error = cerror TABLES blob = original.

HTTP_SUPPORT CALL FUNCTION 'HTTP_SUPPORT' destination dest EXPORTING filename = file_name function = function size = isize IMPORTING error = cerror TABLES blob = original.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Generating REQUEST Tables'.

SCMS_URL_GENERATE CALL FUNCTION 'SCMS_URL_GENERATE' EXPORTING command = 'create' contrep = contrep docid = docid accessmode = 'c' docprot = 'r' IMPORTING absolute_uri = uri.

SCMS_URL_GENERATE CALL FUNCTION 'SCMS_URL_GENERATE' EXPORTING command = 'get' contrep = contrep docid = docid compid = file accessmode = 'c' docprot = 'r' IMPORTING absolute_uri = uri.

SCMS_URL_GENERATE CALL FUNCTION 'SCMS_URL_GENERATE' EXPORTING command = 'delete' contrep = contrep docid = docid accessmode = 'd' IMPORTING absolute_uri = uri.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Posting Documents to Server Together'.

HTTP_POST_FILE_EX CALL FUNCTION 'HTTP_POST_FILE_EX' EXPORTING RFC_DESTINATION = dest TABLES POSTFILES = postfiles EXCEPTIONS CONNECT_FAILED = 1 TIMEOUT = 2 INTERNAL_ERROR = 3 COMPONENT_ERROR = 4 TCPIP_ERROR = 5 SYSTEM_FAILURE = 6 COMMUNICATION_FAILURE = 7 OTHERS = 8.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Delete Documents in Content Server'. "#EC NOTEXT

HTTP_GET CALL FUNCTION 'HTTP_GET' EXPORTING absolute_uri = wa_deluri-line rfc_destination = dest IMPORTING status_code = status_code status_text = status_text TABLES response_entity_body = response response_headers = response_headers.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Posting Documents to Server Indivisually'.

HTTP_POST_FILES_255 CALL FUNCTION 'HTTP_POST_FILES_255' EXPORTING absolute_uri = wa_post-absolute_uri rfc_destination = dest COMPONENT_PATH = path IMPORTING status_code = status_code status_text = status_text TABLES response_headers = response_headers components = components EXCEPTIONS CONNECT_FAILED = 1 TIMEOUT = 2 INTERNAL_ERROR = 3 COMPONENT_ERROR = 4 TCPIP_ERROR = 5 SYSTEM_FAILURE = 6 COMMUNICATION_FAILURE = 7 OTHERS = 8.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Requesting All documents with a Single RFC call'.

HTTP_GET_FILE_EX CALL FUNCTION 'HTTP_GET_FILE_EX' EXPORTING RFC_DESTINATION = dest TABLES GETREQUESTS = getfiles EXCEPTIONS CONNECT_FAILED = 1 TIMEOUT = 2 INTERNAL_ERROR = 3 DOCUMENT_ERROR = 4 TCPIP_ERROR = 5 SYSTEM_FAILURE = 6 COMMUNICATION_FAILURE = 7 OTHERS = 8.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Requesting Documents With Indivisual RFC calls'.

HTTP_GET_FILE CALL FUNCTION 'HTTP_GET_FILE' EXPORTING ABSOLUTE_URI = wa_get-absolute_uri RFC_DESTINATION = dest DOCUMENT_PATH = newfile.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Delete Documents in Local disk'.

HTTP_SUPPORT





CALL FUNCTION 'HTTP_SUPPORT' destination dest EXPORTING filename = wa_get-filepath function = 'DELETE' IMPORTING error = cerror.

HTTP_SUPPORT CALL FUNCTION 'HTTP_SUPPORT' destination dest EXPORTING filename = newfile function = 'DELETE' IMPORTING error = cerror.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Delete Documents in Content Server'. "#EC NOTEXT

HTTP_GET CALL FUNCTION 'HTTP_GET' EXPORTING absolute_uri = wa_deluri-line rfc_destination = dest IMPORTING status_code = status_code status_text = status_text TABLES response_entity_body = response response_headers = response_headers.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING destination = dest EXCEPTIONS others = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RSHTTP44 or its description.