https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/NW-ABAP-Internet-Communication-Framework-qa.xmlSAP Community - NW ABAP Internet Communication Framework2024-05-20T11:11:13.788361+00:00python-feedgenNW ABAP Internet Communication Framework Q&A in SAP Communityhttps://community.sap.com/t5/technology-q-a/send-image-cl-http-client/qaq-p/12666158Send Image CL_HTTP_CLIENT2023-02-27T18:08:38+01:00sid_07_https://community.sap.com/t5/user/viewprofilepage/user-id/844552<P>Hello Experts,</P>
<P>I need to send an image via the post method of cl_http_client. The target system is expecting the image in binary format. I have tried using 'SCMS_XSTRING_TO_BINARY' but this gives the result in hexadecimal format. I then tried passing xstring and base 64 encoded file but the target system is unable to convert it. Is there anyway to achieve this? </P>
<P>This is Service Now API, I am trying to add an attachment to an Incident. This is the link for API documentation.</P>
<P><A href="https://developer.servicenow.com/dev.do#!/reference/api/rome/rest/c_AttachmentAPI#attachment-POST-file" rel="nofollow noopener noreferrer">https://developer.servicenow.com/dev.do#!/reference/api/rome/rest/c_AttachmentAPI#attachment-POST-file</A></P>
<P>I am using POST/now/attachment/file</P>
<P>I need to add the image in request body. here is the documentation screenshot for your reference. </P>
<P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2144603-image.png" /></P>
<P>Below is the sample code I am using </P>
<PRE><CODE>
REPORT ztest_api_call.
DATA:
ls_desc TYPE soli,
lv_response TYPE string,
lv_data TYPE string,
* Data Declarations for http client.
lo_http_client TYPE REF TO if_http_client,
lo_rest_client TYPE REF TO cl_rest_http_client,
* Data Declarations for http client header.
lt_headers TYPE tihttpnvp,
ls_headers LIKE LINE OF lt_headers.
* create an instance of type CL_HTTP_CLIENT to perform the HTTP communication in ABAP
DATA(lv_url) = 'https://instance.servicenow.com/api/now/attachment/file?table_name=incident&table_sys_id=d71f7935c0a8016700802b64c67c11c6&file_name=Issue_screenshot.jpg'.
cl_http_client=>create_by_url(
EXPORTING
url = CONV string( lv_url )
IMPORTING
client = lo_http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4 ).
CHECK lo_http_client IS BOUND.
* Disable the authentication Pop-up
lo_http_client->propertytype_logon_popup = if_http_client=>co_disabled.
* Authenticate using the Service now user id and pwd.
CALL METHOD lo_http_client->authenticate
EXPORTING
username = 'username'
password = 'password'.
* Set method as post method.
lo_http_client->request->set_method(
EXPORTING
method = if_http_entity=>co_request_method_post ).
* Set content type as json
lo_http_client->request->set_content_type(
EXPORTING
content_type = 'image/png' ).
*Get the current active screen as screen shot.
CALL METHOD cl_gui_frontend_services=>get_screenshot
IMPORTING
mime_type_str = DATA(lv_mime)
image = DATA(lv_img)
EXCEPTIONS
access_denied = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
lo_http_client->request->set_cdata(
EXPORTING
data = CONV string( lv_img ) ).
*Prepare header of the API call.
CREATE OBJECT lo_rest_client
EXPORTING
io_http_client = lo_http_client.
ls_headers-name = lc_content_type..
ls_headers-value = 'image/png'.
APPEND ls_headers TO lt_headers.
CALL METHOD lo_rest_client->if_rest_client~set_request_headers
EXPORTING
it_header_fields = lt_headers.
* Send and recieve the data to and from Service now API
lo_http_client->send(
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2 ).
CHECK sy-subrc = 0.
lo_http_client->receive(
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3 ).
* Response manipulation to get the incident number.
lv_response = lo_http_client->response->get_cdata( ).
</CODE></PRE>
<P>Regards,</P>
<P>Siddhesh </P>2023-02-27T18:08:38+01:00https://community.sap.com/t5/technology-q-a/change-the-403-message/qaq-p/12712977Change the 403 message2023-03-09T00:18:28+01:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hi There, <BR /><BR />I'm wondering if it's possible to change the text in the 403 message.<BR /><BR />Regards.</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-03-09T00:18:28+01:00https://community.sap.com/t5/technology-q-a/icf-services-to-be-disabled/qaq-p/12654225ICF services to be disabled2023-03-14T18:53:56+01:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hi,<BR /><BR />SAP Solution Manager functionality Security and Compliance Monitor is suggesting to disable ICF services under the /sap/public node.<BR /><BR />Kindly suggest if we can disable these ICF services.</P>
<P><BR />Regards.</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-03-14T18:53:56+01:00https://community.sap.com/t5/technology-q-a/icf-services-to-be-disabled/qaq-p/12654253ICF services to be disabled2023-03-14T18:55:25+01:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hi,<BR /><BR />SAP Solution Manager functionality Security and Compliance Monitor is suggesting to disable ICF services under the /sap/public node.<BR /><BR />Kindly suggest if we can disable these ICF services.</P>
<P><BR />Regards.</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-03-14T18:55:25+01:00https://community.sap.com/t5/technology-q-a/tls-1-2-enforcement-causing-errors/qaq-p/12654309TLS 1.2 Enforcement causing errors2023-03-14T19:58:54+01:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hello,<BR /><BR />We have tried to enforce TLS 1.2 using these values in the profile<BR /><BR /></P>
<P> ssl/ciphersuites = 545:PFS:HIGH::EC_P256:EC_HIGH</P>
<P> ssl/client_ciphersuites = 560:PFS:HIGH::EC_P256:EC_HIGH</P>
<P> SETENV_26 = SECUDIR=$(DIR_INSTANCE)$(DIR_SEP)sec</P>
<P> SETENV_27 = SAPSSL_CLIENT_CIPHERSUITES=560:PFS:HIGH::EC_P256:EC_HIGH</P>
<P> SETENV_28 = SAPSSL_CLIENT_SNI_ENABLED=TRUE</P>
<P> icm/HTTPS/client_sni_enabled = TRUE</P>
<P> ssl/client_sni_enabled = TRUE<BR /><BR />But we encountered errors upon starting the application after. Kindly let me know if there are any thing else is needed.</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-03-14T19:58:54+01:00https://community.sap.com/t5/technology-q-a/custom-message-text-in-webgui/qaq-p/12721686Custom Message text in Webgui2023-03-24T20:21:28+01:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hello,<BR /><BR />For our landscape we are looking to put some text messages in SAP Webgui Home Login Screen.<BR /><BR />Please can you suggest how can this be achieved or there is any sap help link or Note to refer.<BR /><BR />Thanks.</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-03-24T20:21:28+01:00https://community.sap.com/t5/technology-q-a/php-to-odata-payload-issue-error-while-parsing-an-xml-stream/qaq-p/12657316PHP to OData Payload issue - Error while parsing an XML stream2023-05-11T22:21:22+02:00nikhilshinde1234https://community.sap.com/t5/user/viewprofilepage/user-id/1199757<P>Hello All,</P>
<P>I am trying to submit a JSON data to SAP which is resulting an Error : Error while parsing an XML stream.</P>
<P><STRONG>Current payload submitting to the SAP</STRONG></P>
<P>{</P>
<P>"Aufnr": "000001000703",</P>
<P>"werks": "1200",</P>
<P>"gamng": "106160.000",</P>
<P>"gmein": "KG",</P>
<P>"type": " ",</P>
<P>"message": " "</P>
<P>}</P>
<P><STRONG>Resulting format in SAP getting :</STRONG></P>
<P>"{\"Aufnr\":\"000001000703\",\"werks\":\"1200\",\"gamng\":\"106160.000\",\"gmein\":\"KG\",\"type\":\" \",\"message\":\" \"}"</P>
<P><U>what I am suppose to get in SAP from PHP</U></P>
<P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2167728-microsoftteams-image-4.png" /></P>
<P><U>what I am getting in SAP from PHP</U></P>
<P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2167729-microsoftteams-image-3.png" /></P>2023-05-11T22:21:22+02:00https://community.sap.com/t5/technology-q-a/support-for-data-compression-in-odata-v2-response/qaq-p/12685406Support for Data Compression in OData V2 response2023-05-17T10:09:40+02:00abhi_3120https://community.sap.com/t5/user/viewprofilepage/user-id/793918<P>As per the SAP Documentation, <A href="https://help.sap.com/docs/SAP_NETWEAVER_750/68bf513362174d54b58cddec28794093/4cf5ff5082d2793ee10000000a423f68.html" rel="noopener noreferrer">How to Enable Compression</A>. I followed the instructions and tried to achieve data compression. Unfortunately, it didn't work as mentioned in the document. I passed the request Header <STRONG>Accept-Encodin</STRONG>g and set to <STRONG>gzip</STRONG> and made a HTTP GET request call. On receiving the OData HTTP response there was no change in the <STRONG>content-length </STRONG>nor some information in the response header stating the data has been sent in a compressed format. Do I need to make any configuration changes for the SAP GATEWAY CLIENT or enablement of any sort of Network Compression in order to achieve this?</P>2023-05-17T10:09:40+02:00https://community.sap.com/t5/technology-q-a/sap-security-notes-3274585-3282663-3269118-3269151/qaq-p/12686428SAP Security notes 3274585 3282663 3269118 32691512023-05-17T16:42:20+02:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>I would like to have information on the implementation of these notes 3274585<BR />3282663<BR />3269118<BR />3269151<BR />.<BR />In particular I would like to know if I can implement them with SNOTE because on some of them it reports as Solution application of the indicated SPs without clearly indicating that alternatively you can implement the corrections with SNOTE</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-05-17T16:42:20+02:00https://community.sap.com/t5/technology-q-a/query-about-if-http-client/qaq-p/12725901Query about IF_HTTP_CLIENT2023-05-29T21:52:26+02:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>When using IF_HTTP_CLIENT at same time from 50 users, will same session be used or different sessions?</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-05-29T21:52:26+02:00https://community.sap.com/t5/technology-q-a/is-it-possible-to-deactivate-basic-authentication-for-webgui/qaq-p/12765670Is it possible to deactivate basic authentication for WEBGUI?2023-06-07T19:18:24+02:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hi,<BR /><BR />Is it possible to deactivate basic authentication for WEBGUI?<BR /><BR />We are using SAML single sign on but want to block the use of basic authentication for this service? Is this possible?<BR /><BR />Kind Regards.</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-06-07T19:18:24+02:00https://community.sap.com/t5/technology-q-a/question-abount-http-response-size-limit/qaq-p/12797543question abount http response size limit2023-07-24T07:19:08+02:00yescskang91https://community.sap.com/t5/user/viewprofilepage/user-id/1375201<P>Dear SAP developers.</P>
<P>Developers in my project will develop ODATA API in S/4HANA.</P>
<P>I worry that large http response may kill ICM.</P>
<P>I know i can restrict http request size using ICM parameter: icm/HTTP/max_request_size_KB.</P>
<P>so, my worries about http request side is cleared.</P>
<P>then, is there other parameter which can restrict http "response" size?</P>
<P>Parameter for memory pipes "mpi/total_size_MB" may seems to do it.</P>
<P>Question is whether "mpi/total_size_MB" intended for restricting the size of a single http response or it is intended for restring the total size of all http response.</P>
<P>or, is there other paramter which can restrict http "response" size?</P>
<P>Best regards.</P>2023-07-24T07:19:08+02:00https://community.sap.com/t5/technology-q-a/configuration-change-from-http-to-https-in-abap-java-servers/qaq-p/12761990Configuration change from http to https in abap & java servers2023-07-31T15:17:51+02:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hi<BR /><BR />We are trying to configure HTTPS in our landscape and change all existing configuration in HTTP to HTTPS. As we dont have a proper documentation Kindly assist us to proceed further.</P>
<P>Thanks</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-07-31T15:17:51+02:00https://community.sap.com/t5/technology-q-a/access-via-load-balancer/qaq-p/12786285Access via load balancer2023-08-08T19:02:32+02:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hello</P>
<P>I want to open a browser via a load balancer when executing NWBC or SAML2 from a transaction code.<BR />Is it possible to add the load balancer setting to the table "HTTPURLLOC" to make that setting?</P>
<P>Can it be implemented by adding load balancer settings to the table "HTTPURLLOC" to do that setting?</P>
<P>Please let me know if there is anything else I need to do.</P>
<P>Regards,</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-08-08T19:02:32+02:00https://community.sap.com/t5/technology-q-a/activate-a-given-web-service/qaq-p/12805565Activate a given web service2023-08-31T06:19:11+02:00ricky_shawhttps://community.sap.com/t5/user/viewprofilepage/user-id/202195<P>Hi Experts,</P>
<P>I was told to activate Web Services. I did google but couldn't find 100% satisfying solution.</P>
<P>I have these 2 details:</P>
<P> Service Name: EmployeeMasterDataBundleReplicationRequest_In in component PA_SE_IN</P>
<P>Service URL (Called by middleware) : <A href="http://sd1ascs.clientname.loc:443/sap/bc/srt/scs/sap/employeemasterdatabundlerepli1?sap-client=550" target="test_blank" rel="nofollow noopener noreferrer">http://sd1ascs.clientname.loc:443/sap/bc/srt/scs/sap/employeemasterdatabundlerepli1?sap-client=550</A></P>
<P>I followed this link:</P>
<P><A href="https://www.linkedin.com/pulse/how-activate-web-services-sap-find-wsdl-end-point-urls-rajesh-dadi" target="test_blank" rel="nofollow noopener noreferrer">https://www.linkedin.com/pulse/how-activate-web-services-sap-find-wsdl-end-point-urls-rajesh-dadi</A></P>
<P>But i am hearing that "its NOT active complete with some connection error while accessing"</P>
<P>My action: I went to tcode: SOAMANAGER and then i chose "Simplified Web Service Configuration".</P>
<P>In the "Search Pattern", i happened to input *Emp*Bundl* and pressed 'GO'.</P>
<P>I happened to see Web service Name or Service Definition(i think) under Internal Name column.</P>
<P>I checked on the box Username/Password(basic) and saved .</P>
<P>I got msg under "Text" column like "activation successful" with config name : 98798777978</P>
<P>Please tell me if i did something wrong?</P>
<P>Thanks</P>2023-08-31T06:19:11+02:00https://community.sap.com/t5/technology-q-a/replacement-of-standard-range-table-type-ism-adrnr-range-tab-for-s-4-hana/qaq-p/12766943Replacement of Standard range table type ISM_ADRNR_RANGE_TAB for S/4 HANA Remediation2023-09-11T11:08:50+02:00akarthik1818https://community.sap.com/t5/user/viewprofilepage/user-id/863780<P>Hi experts,</P>
<P>I'm stuck in one of the HANA Remediation while replacing the Range table type i.e., <STRONG>ISM_ADRNR_RANGE_TAB</STRONG> from ECC . </P>
<P>I tried to find the alternative for that, but didn't get any. If anybody knows the alternative for this, please let me know.</P>
<P>Thanks & regards,</P>
<P>Karthik</P>2023-09-11T11:08:50+02:00https://community.sap.com/t5/technology-q-a/httpurlloc-for-view-designer/qaq-p/12754415HTTPURLLOC for View Designer2023-10-20T20:11:11+02:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003When going to SE80 and opening a Webdynpro view (Layout tab), it is using our wildcard /WEBDYNPRO/* rule in HTTPURLLOC to render the preview. We are wanting to add an entry so that it uses the normal application server hostname. Can you please advise what the entry / context for this would be?<BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-10-20T20:11:11+02:00https://community.sap.com/t5/technology-q-a/logoff-and-redirect-login-prompt-does-not-work/qaq-p/12780387logoff and redirect login prompt does not work2023-11-22T00:59:00+01:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hello</P>
<P>We have a service in ITS Mobile, this service work fine, but when we try a logoff, the session ended successfully, but does not offer the option to re-enter credentials. (log off and Redirect to login prompt).</P>
<P>This is a problem for us, this browser is used by a radio frequency device, which needs to continually change users.</P>
<P>Services in SICF transaction are active.</P>
<P>/sap/bc/gui/sap/its/zlm00</P>
<P>/sap/public/bc/icf/logoff<BR /><BR />thansk in advance.<BR /><BR />BR.<BR /><BR /></P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-11-22T00:59:00+01:00https://community.sap.com/t5/technology-q-a/sap-http-security/qaq-p/12781657SAP HTTP security2023-12-14T21:51:47+01:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>Hello,<BR /><BR />In my system SAP ECC that I want to change the error message in path '/' on sicf. I try to change on service name "default_host" but it affected only sub directory not affected in '/' . <BR /><BR />Please suggest for change it.<BR /><BR />Regards.</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B>2023-12-14T21:51:47+01:00https://community.sap.com/t5/technology-q-a/http-1-to-http-2/qaq-p/13644667HTTP/1 to HTTP/22024-03-20T17:11:48.958000+01:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P>We are preparing to move from HTTP/1 to HTTP/2 in all environments. Can you provide guidance on how to transition from HTTP/1 to HTTP/2 without any negative impact on the business. </P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A target="_blank" href="https://community.sap.com/t5/enterprise-resource-planning-blogs-by-sap/maximizing-the-power-of-sap-community-at-product-support/ba-p/13501276">here</A>.</B>2024-03-20T17:11:48.958000+01:00