<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>http &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/http/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sapewmhelp.com</link>
	<description>SAP EWM questions answered by experts — ABAP, S/4HANA, warehouse management</description>
	<lastBuildDate>Sat, 11 Oct 2025 19:16:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>Post API call</title>
		<link>https://www.sapewmhelp.com/question/post-api-call/</link>
					<comments>https://www.sapewmhelp.com/question/post-api-call/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Sat, 11 Oct 2025 19:16:25 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=post-api-call</guid>

					<description><![CDATA[Use the same destination (DEMO_EHS_DEST) Fetch a CSRF token Serialize an ABAP structure into JSON Send it as the POST body to the demo OData endpoint Handle the response cleanly CLASS /iap/cl_intelligent_matching DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. TYPES: BEGIN OF ty_rawmat_result, uuid TYPE string, material_id TYPE string, material_name TYPE string, material_group TYPE string, [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>Use the same destination (<code>DEMO_EHS_DEST</code>)</li>
<li>Fetch a CSRF token</li>
<li>Serialize an ABAP structure into JSON</li>
<li>Send it as the POST body to the demo OData endpoint</li>
<li>Handle the response cleanly</li>
</ul>
<p>CLASS /iap/cl_intelligent_matching DEFINITION<br />
PUBLIC FINAL<br />
CREATE PUBLIC.</p>
<p>PUBLIC SECTION.</p>
<p>TYPES: BEGIN OF ty_rawmat_result,<br />
uuid TYPE string,<br />
material_id TYPE string,<br />
material_name TYPE string,<br />
material_group TYPE string,<br />
material_group_name TYPE string,<br />
is_active TYPE abap_bool,<br />
END OF ty_rawmat_result.</p>
<p>CLASS-METHODS:<br />
create_client_proxy<br />
RETURNING VALUE(ro_client_proxy) TYPE REF TO /iwbep/if_cp_client_proxy,</p>
<p>get_rawmat_data<br />
RETURNING VALUE(rt_rawmat_data) TYPE STANDARD TABLE OF ty_rawmat_result,</p>
<p>post_rawmat_data<br />
IMPORTING is_payload TYPE ty_rawmat_result<br />
RETURNING VALUE(rv_status_text) TYPE string,</p>
<p>convert_to_json<br />
IMPORTING it_data TYPE any<br />
EXPORTING ev_json TYPE string.</p>
<p>PRIVATE SECTION.<br />
CONSTANTS:<br />
c_destination TYPE string VALUE &#8216;DEMO_EHS_DEST&#8217;. &#8221; Destination name in BTP Cockpit</p>
<p>ENDCLASS.</p>
<p>CLASS /iap/cl_intelligent_matching IMPLEMENTATION.</p>
<p>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8221; 1. Create OData V4 Client Proxy (for typed OData calls if needed)<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
METHOD create_client_proxy.</p>
<p>TRY.<br />
DATA(lo_destination) = cl_http_destination_provider=&gt;create_by_cloud_destination(<br />
i_name = c_destination<br />
i_authn_mode = if_a4c_cp_service=&gt;service_specific ).</p>
<p>DATA(lo_http_client) = cl_web_http_client_manager=&gt;create_by_http_destination( lo_destination ).</p>
<p>ro_client_proxy = /iwbep/cl_cp_factory_remote=&gt;create_v4_remote_proxy(<br />
is_proxy_model_key = VALUE #(<br />
repository_id = &#8216;DEFAULT&#8217;<br />
proxy_model_id = &#8216;/IAP/CHM_SCM_IM&#8217;<br />
proxy_model_version = &#8216;0001&#8217; )<br />
io_http_client = lo_http_client<br />
iv_relative_service_root = &#8216;/sap/opu/odata/sap/ZDEMO_EHS_SRV/&#8217; ). &#8221; Demo endpoint</p>
<p>CATCH cx_root INTO DATA(lx_root).<br />
MESSAGE lx_root-&gt;get_text( ) TYPE &#8216;E&#8217;.<br />
ENDTRY.</p>
<p>ENDMETHOD.</p>
<p>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8221; 2. GET Request &#8211; Fetch Raw Material Data<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
METHOD get_rawmat_data.</p>
<p>DATA: lo_destination TYPE REF TO if_http_destination,<br />
lo_http_client TYPE REF TO if_web_http_client,<br />
lo_response TYPE REF TO if_web_http_response,<br />
lv_json TYPE string,<br />
lv_status TYPE i.</p>
<p>TRY.<br />
lo_destination = cl_http_destination_provider=&gt;create_by_cloud_destination(<br />
i_name = c_destination<br />
i_authn_mode = if_a4c_cp_service=&gt;service_specific ).</p>
<p>lo_http_client = cl_web_http_client_manager=&gt;create_by_http_destination( lo_destination ).</p>
<p>&#8221; === Fetch CSRF Token ===<br />
DATA(lo_req_token) = lo_http_client-&gt;get_http_request( ).<br />
lo_req_token-&gt;set_header_field( name = &#8216;X-CSRF-Token&#8217; value = &#8216;Fetch&#8217; ).</p>
<p>DATA(lo_resp_token) = lo_http_client-&gt;execute( if_web_http_client=&gt;get ).<br />
DATA(lv_csrf_token) = lo_resp_token-&gt;get_header_field( &#8216;X-CSRF-Token&#8217; ).</p>
<p>&#8221; === Call the Demo OData API (GET) ===<br />
DATA(lo_req_get) = lo_http_client-&gt;get_http_request( ).<br />
lo_req_get-&gt;set_header_field( name = &#8216;X-CSRF-Token&#8217; value = lv_csrf_token ).<br />
lo_req_get-&gt;set_header_field( name = &#8216;Accept&#8217; value = &#8216;application/json&#8217; ).</p>
<p>lo_response = lo_http_client-&gt;execute(<br />
i_method = if_web_http_client=&gt;get<br />
i_relative_url = &#8216;/sap/opu/odata/sap/ZDEMO_EHS_SRV/C_RawMatInfoSet&#8217; ).</p>
<p>lv_status = lo_response-&gt;get_status( ).</p>
<p>IF lv_status = 200.<br />
lv_json = lo_response-&gt;get_text( ).<br />
/ui2/cl_json=&gt;deserialize(<br />
EXPORTING json = lv_json<br />
CHANGING data = rt_rawmat_data ).<br />
ELSE.<br />
MESSAGE |HTTP Error { lv_status }: { lo_response-&gt;get_status_text( ) }| TYPE &#8216;E&#8217;.<br />
ENDIF.</p>
<p>CATCH cx_root INTO DATA(lx_any).<br />
MESSAGE lx_any-&gt;get_text( ) TYPE &#8216;E&#8217;.<br />
ENDTRY.</p>
<p>ENDMETHOD.</p>
<p>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8221; 3. POST Request &#8211; Create a new Raw Material record<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
METHOD post_rawmat_data.</p>
<p>DATA: lo_destination TYPE REF TO if_http_destination,<br />
lo_http_client TYPE REF TO if_web_http_client,<br />
lo_response TYPE REF TO if_web_http_response,<br />
lv_json_body TYPE string,<br />
lv_csrf_token TYPE string,<br />
lv_status_code TYPE i.</p>
<p>TRY.<br />
&#8221; === Create destination ===<br />
lo_destination = cl_http_destination_provider=&gt;create_by_cloud_destination(<br />
i_name = c_destination<br />
i_authn_mode = if_a4c_cp_service=&gt;service_specific ).</p>
<p>lo_http_client = cl_web_http_client_manager=&gt;create_by_http_destination( lo_destination ).</p>
<p>&#8221; === Fetch CSRF Token ===<br />
DATA(lo_req_token) = lo_http_client-&gt;get_http_request( ).<br />
lo_req_token-&gt;set_header_field( name = &#8216;X-CSRF-Token&#8217; value = &#8216;Fetch&#8217; ).<br />
DATA(lo_resp_token) = lo_http_client-&gt;execute( if_web_http_client=&gt;get ).<br />
lv_csrf_token = lo_resp_token-&gt;get_header_field( &#8216;X-CSRF-Token&#8217; ).</p>
<p>&#8221; === Serialize ABAP structure to JSON ===<br />
lv_json_body = /ui2/cl_json=&gt;serialize(<br />
EXPORTING<br />
data = is_payload<br />
pretty_name = /ui2/cl_json=&gt;pretty_mode-camel_case<br />
conversion_exits = abap_true ).</p>
<p>&#8221; === Prepare POST Request ===<br />
DATA(lo_req_post) = lo_http_client-&gt;get_http_request( ).<br />
lo_req_post-&gt;set_header_field( name = &#8216;X-CSRF-Token&#8217; value = lv_csrf_token ).<br />
lo_req_post-&gt;set_header_field( name = &#8216;Content-Type&#8217; value = &#8216;application/json&#8217; ).<br />
lo_req_post-&gt;set_header_field( name = &#8216;Accept&#8217; value = &#8216;application/json&#8217; ).<br />
lo_req_post-&gt;set_text( lv_json_body ).</p>
<p>&#8221; === Execute POST ===<br />
lo_response = lo_http_client-&gt;execute(<br />
i_method = if_web_http_client=&gt;post<br />
i_relative_url = &#8216;/sap/opu/odata/sap/ZDEMO_EHS_SRV/C_RawMatInfoSet&#8217; ).</p>
<p>lv_status_code = lo_response-&gt;get_status( ).<br />
rv_status_text = |{ lv_status_code } { lo_response-&gt;get_status_text( ) }|.</p>
<p>CATCH cx_root INTO DATA(lx_any).<br />
rv_status_text = lx_any-&gt;get_text( ).<br />
ENDTRY.</p>
<p>ENDMETHOD.</p>
<p>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8221; 4. JSON Serializer Utility<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
METHOD convert_to_json.<br />
ev_json = /ui2/cl_json=&gt;serialize(<br />
EXPORTING<br />
data = it_data<br />
conversion_exits = abap_true<br />
pretty_name = /ui2/cl_json=&gt;pretty_mode-camel_case ).<br />
ENDMETHOD.</p>
<p>ENDCLASS.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/post-api-call/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>API call &#8211; HTTP</title>
		<link>https://www.sapewmhelp.com/question/api-call-http/</link>
					<comments>https://www.sapewmhelp.com/question/api-call-http/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Sat, 11 Oct 2025 19:14:13 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=api-call-http</guid>

					<description><![CDATA[This ABAP class is designed for SAP BTP ABAP Environment to connect securely to an external OData or REST API (for example, an EHS Raw Material service).It demonstrates: Secure HTTP communication via BTP destinations CSRF token handling JSON serialization/deserialization Clean separation between connection setup and data retrieval Code: CLASS /iap/cl_intelligent_matching DEFINITION PUBLIC FINAL CREATE PUBLIC. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This ABAP class is designed for <strong>SAP BTP ABAP Environment</strong> to connect securely to an external OData or REST API (for example, an EHS Raw Material service).<br />It demonstrates:</p>
<ul>
<li>Secure HTTP communication via <strong>BTP destinations</strong></li>
<li>CSRF token handling</li>
<li>JSON serialization/deserialization</li>
<li>Clean separation between connection setup and data retrieval</li>
</ul>
<p><span style="text-decoration: underline"><strong>Code:</p>
<p></strong></span></p>
<p>CLASS /iap/cl_intelligent_matching DEFINITION<br />
PUBLIC FINAL<br />
CREATE PUBLIC.</p>
<p>PUBLIC SECTION.</p>
<p>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8221; Structure for API Response (Raw Material Compliance Info)<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
TYPES: BEGIN OF ty_rawmat_result,<br />
uuid TYPE string, &#8221; Unique ID of the record<br />
material_id TYPE string, &#8221; Material number<br />
material_name TYPE string, &#8221; Material description<br />
material_group TYPE string, &#8221; Material group code<br />
material_group_name TYPE string, &#8221; Material group name<br />
is_active TYPE abap_bool, &#8221; Active status flag<br />
END OF ty_rawmat_result.</p>
<p>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8221; Public Methods<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
CLASS-METHODS:<br />
create_client_proxy<br />
RETURNING VALUE(ro_client_proxy) TYPE REF TO /iwbep/if_cp_client_proxy,</p>
<p>get_rawmat_data<br />
RETURNING VALUE(rt_rawmat_data) TYPE STANDARD TABLE OF ty_rawmat_result,</p>
<p>convert_to_json<br />
IMPORTING it_data TYPE any<br />
EXPORTING ev_json TYPE string.</p>
<p>PRIVATE SECTION.<br />
CONSTANTS:<br />
c_destination TYPE string VALUE &#8216;DEMO_EHS_DEST&#8217;. &#8221; Destination configured in BTP Cockpit</p>
<p>ENDCLASS.</p>
<p>CLASS /iap/cl_intelligent_matching IMPLEMENTATION.</p>
<p>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8221; 1. Create OData V4 Client Proxy<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
METHOD create_client_proxy.</p>
<p>TRY.<br />
&#8221; Create destination object from BTP destination service<br />
DATA(lo_destination) = cl_http_destination_provider=&gt;create_by_cloud_destination(<br />
i_name = c_destination<br />
i_authn_mode = if_a4c_cp_service=&gt;service_specific ).</p>
<p>&#8221; Create HTTP client for communication<br />
DATA(lo_http_client) = cl_web_http_client_manager=&gt;create_by_http_destination( lo_destination ).</p>
<p>&#8221; Create remote OData V4 proxy for the target service<br />
ro_client_proxy = /iwbep/cl_cp_factory_remote=&gt;create_v4_remote_proxy(<br />
is_proxy_model_key = VALUE #(<br />
repository_id = &#8216;DEFAULT&#8217;<br />
proxy_model_id = &#8216;/IAP/CHM_SCM_IM&#8217;<br />
proxy_model_version = &#8216;0001&#8217; )<br />
io_http_client = lo_http_client<br />
iv_relative_service_root = &#8216;/sap/opu/odata/sap/ZDEMO_EHS_SRV/&#8217; ). &#8221; Demo endpoint</p>
<p>CATCH cx_http_dest_provider_error INTO DATA(lx_dest_err).<br />
MESSAGE lx_dest_err-&gt;get_text( ) TYPE &#8216;E&#8217;.<br />
CATCH cx_root INTO DATA(lx_root).<br />
MESSAGE lx_root-&gt;get_text( ) TYPE &#8216;E&#8217;.<br />
ENDTRY.</p>
<p>ENDMETHOD.</p>
<p>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8221; 2. Fetch Raw Material Data from External API<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
METHOD get_rawmat_data.</p>
<p>DATA: lo_destination TYPE REF TO if_http_destination,<br />
lo_http_client TYPE REF TO if_web_http_client,<br />
lo_response TYPE REF TO if_web_http_response,<br />
lv_json TYPE string,<br />
lv_http_status TYPE i.</p>
<p>TRY.<br />
&#8221; Obtain HTTP destination (configured in BTP cockpit)<br />
lo_destination = cl_http_destination_provider=&gt;create_by_cloud_destination(<br />
i_name = c_destination<br />
i_authn_mode = if_a4c_cp_service=&gt;service_specific ).</p>
<p>lo_http_client = cl_web_http_client_manager=&gt;create_by_http_destination( lo_destination ).</p>
<p>&#8221; === Step 1: Fetch CSRF Token ===<br />
DATA(lo_req_token) = lo_http_client-&gt;get_http_request( ).<br />
lo_req_token-&gt;set_header_field( name = &#8216;X-CSRF-Token&#8217; value = &#8216;Fetch&#8217; ).</p>
<p>DATA(lo_resp_token) = lo_http_client-&gt;execute( if_web_http_client=&gt;get ).<br />
DATA(lv_csrf_token) = lo_resp_token-&gt;get_header_field( &#8216;X-CSRF-Token&#8217; ).</p>
<p>&#8221; === Step 2: Perform GET Request to Demo API ===<br />
DATA(lo_req_get) = lo_http_client-&gt;get_http_request( ).<br />
lo_req_get-&gt;set_header_field( name = &#8216;X-CSRF-Token&#8217; value = lv_csrf_token ).<br />
lo_req_get-&gt;set_header_field( name = &#8216;Accept&#8217; value = &#8216;application/json&#8217; ).</p>
<p>lo_response = lo_http_client-&gt;execute(<br />
i_method = if_web_http_client=&gt;get<br />
i_relative_url = &#8216;/sap/opu/odata/sap/ZDEMO_EHS_SRV/C_RawMatInfoSet&#8217; ). &#8221; Demo path</p>
<p>lv_http_status = lo_response-&gt;get_status( ).</p>
<p>IF lv_http_status = 200.<br />
lv_json = lo_response-&gt;get_text( ).</p>
<p>/ui2/cl_json=&gt;deserialize(<br />
EXPORTING json = lv_json<br />
CHANGING data = rt_rawmat_data ).</p>
<p>ELSE.<br />
MESSAGE |HTTP Error { lv_http_status }: { lo_response-&gt;get_status_text( ) }| TYPE &#8216;E&#8217;.<br />
ENDIF.</p>
<p>CATCH cx_http_dest_provider_error INTO DATA(lx_dest_error).<br />
MESSAGE lx_dest_error-&gt;get_text( ) TYPE &#8216;E&#8217;.</p>
<p>CATCH cx_web_http_client_error INTO DATA(lx_http_error).<br />
MESSAGE lx_http_error-&gt;get_text( ) TYPE &#8216;E&#8217;.</p>
<p>CATCH cx_root INTO DATA(lx_any).<br />
MESSAGE lx_any-&gt;get_text( ) TYPE &#8216;E&#8217;.<br />
ENDTRY.</p>
<p>ENDMETHOD.</p>
<p>&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8221; 3. Convert Any ABAP Data Structure to JSON String<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
METHOD convert_to_json.<br />
ev_json = /ui2/cl_json=&gt;serialize(<br />
EXPORTING<br />
data = it_data<br />
conversion_exits = abap_true<br />
pretty_name = /ui2/cl_json=&gt;pretty_mode-camel_case ).<br />
ENDMETHOD.</p>
<p>ENDCLASS.</p>
<p><span style="text-decoration: underline"><strong> </strong></span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/api-call-http/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
