Quantcast
Channel: SCN : Unanswered Discussions - SAP Gateway
Viewing all 1745 articles
Browse latest View live

Can we hide/ Rewrite the Fiori Launchpad URL using SAP Web- Dispatcher?

$
0
0

Hello Guru's,

 

Can we Hide/ Rewrite the Fiori Launchpad URL using SAP Web- Dispatcher?

 

I've created Custom Alias in SAP Web-Dispatcher which works pretty well. When I'm hitting https://abc.mycompany.com it is taking me to Fiori Launchpad without any error but it is giving me entire path which not only exposing the SAP Client No but also looks big.


SAP Web-dispatcher URL: - https://abc.mycompany.com

After login :- https://abc.mycompany.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB


My query is that I want to completely hide or Rewrite the URL even after login also. At this point of time, after login it is showing me complete URL https://abc.mycompany.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB

 

I've gone through other threads but no Luck,

 

Note: If we use same URL in Mobile Devices Browsers; it is perfect. It only shows the FQDN (No path after that.....)


I've tried this,

Incoming Source URL:  https://abc.mycompany.com

 

Internal Target URL:     https://ecc.fiori.intra:8011/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB

 

Redirect rule for internal URL would be:

 

icm/HTTP/redirect_0 = PREFIX=/, FROM=/, TO=/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB, PROT=HTTPS, HOST=abc.mycompany.com, PORT=443

 

To make our target URL hidden :


sapwebdis.pfl

icm/HTTP/mod_0 = PREFIX=/,FILE=c:\Program Files\sap\sapwebdisp\Filter_Rules.txt

 

Filter_Rules.txt

SetHeader clientProtocol HTTPS

RegIRewriteUrl (.*) /sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB=abc.mycompany.com [qsreplace]


Post to that, when hitting the URL...... Fiori Launchpad is not coming properly (No Flower, Logon Boxes are not in place) and its with error as "Uncaught SyntaxError: Unexpected token <"


Please advise.

 

KR,

~ Mahendra


Odata is not showing data in Browser

$
0
0

Hi All

 

I am working on ERP_UTILITIES_UMC Odata service. While i am executing the Contracts Entity, It is showing the data in Gateway but not showing the same data in browser and not giving any error.

 

Even all other entity are working fine on browser, This Problem is only with Contract Entity.

 

PFA the output, That i am getting in browser.

Hello Expertise ,

$
0
0

I have an requirement where I need to export all the data from an Odata project name to internal table inside an ABAP report .

Do anybody have ever faced this scenario or any knowledge on this. Thank You.

Need training material for odata

$
0
0

Hi All,

 

I am a beginner, Please help me to provide odata training material to learn odata.

Please guide me how should I move forward step by step.

 

Thanks

Dump BULK_NOTIFICATION_FAILED

$
0
0

Friends,

 

I am getting a short dump for BULK_NOTIFICATION_FAILED. It also shows in Inbound queue from SBGRFCMON.

When I debug, I see that it is looking for FM  STW_GW_BULK_FEED_SEND  which is called from /IWFND/FM_MGW_BULK_NOTIF_SEND.

FM /IWFND/FM_MGW_BULK_NOTIF_SEND is always called from class /IWFND/CL_MGW_NOTIF_FEED_AGTR method SEND_NOTIFICATIONS.

 

My system does not have this FM STW_GW_BULK_FEED_SEND.

 

Do we know how to bypass this FM, I mean why do we send bulk notifications when processing one test notification.

If not can you pls check if your system has this FM and let me know the support package for this?

I am on

IW_FND - 250 - 0006- SAPK-25006INIWFND

IW_BEP    200    0006    SAPK-20006INIWBEP

IW_CBS    200    0006    SAPK-20006INIWCBS

IW_CNT    200    0006    SAPK-20006INIWCNT

IW_SCS    200    0006    SAPK-20006INIWSCS

 

Thanks

seenu

Web Dispatcher - 503 Service not available Issue

$
0
0

Hi Experts, I managed to solve this issue in DEV server  with below steps.

- generated the PSE from gateway server and backend server

- Run below script

D:\sapcrypto>sapgenpse.exe maintain_pk -a D:\usr\sap\W03\W06\sec\GD3_W1.pse -p D :\usr\sap\W03\W06\sec\SAPSSLC.pse

maintain_pk for PSE "D:\usr\sap\W03\W06\sec\SAPSSLC.pse"

 

However, i got below error when repeating the steps in QA server.

[Thr 4256] SecuSSL_SessionStart: SSL_connnect() failed  (536872221/0x2000051d) [Thr 4256]    => "Failed to verify peer certificate. Peer not trusted." [Thr 4256] >> ---------- Begin of Secu-SSL Errorstack ---------- >>[Thr 4256] 0x2000051d | SAPCRYPTOLIB | SSL_connect [Thr 4256] SSL API error [Thr 4256] Failed to verify peer certificate. Peer not trusted. [Thr 4256] 0xa0600203 | SSL | ssl_verify_peer_certificates [Thr 4256] Peer not trusted [Thr 4256] 0xa0600297 | SSL | ssl_cert_checker_verify_certificates [Thr 4256] peer certificate (chain) is not trusted

 

I suspect that the script is not updating the PSE into SAPSSLC when i executed the scripts as below.

D:\sapcrypto>sapgenpse.exe maintain_pk -a D:\usr\sap\W03\W06\sec\GP3_W1.pse -p D :\usr\sap\W03\W06\sec\SAPSSLC.pse maintain_pk for PSE "D:\usr\sap\W03\W06\sec\SAPSSLC.pse" PKList NOT changed (2 entries total)

 

I have not idea why the script is not updating the SAPSSLC.

Please advise if you have any idea.

Thank you.

BRs, Por.

How to make changes to an existing Odata service ?

$
0
0

I had created an odata service (in SEGW transaction) for some tables and implemented basic CRUD operations. Now I have made some changes to the tables (deleted some fields and added some new fields). How do I modify/update my odata service to reflect the changes made to the tables?

Handing dynamic internal table within OData

$
0
0

Hi Guru,

Dynamic internal table (Scenario): A table which varies with respect to the entered input as company code with date range from 01.01.2016 to 29.02.2016,  after internal logic it returns table with 60 records.(daywise as 01.01.2016, 02.01.2016 and so on).

 

Issue :

Now in this case if user plans to filter this data sales office wise then we return the data sale office wise. (ex: 2001, 2002, 2003 etc). So that in gateway we have to map it to respective Property.

 

or else in gateway I end up mapping differnt - differnt table.

Is there any way other than making different tables.

 

Thank in advance

Would appreciate any good help.

 

Regards,

--PavanG

 

Message was edited by: Pavan Golesar


Central Hub Deployment Service Registration

$
0
0

Hi everyone,

 

We have installed a seperate Hub System now to implement the Hub Development Scenario with Development in Backend. In backend I have created a Gateway alias to my new Gateway Server. In Gateway Server i have created connection to the backend. Now i have try the following:

Going to Backend tcode SEGW create a small Odata-Service and make the service Registration. Under folder Servicemanagement i can see my created alias. I make right click Register than i have to make a remote login to my Gateway Server after that a message appears that i will be redirected to a system. And now a remote login to my backend appears. If I login in nothing happens. Does somebody know whats the problem here?

 

Second option:

I my Gateway Server I go to tcode /iwfnd/maint_service click on add Service and enter under systemalias my backend system. Now i can see my created services from backend. If I choose want i can activate that service and call it over the Gateway. So that works fine.

 

So is it the right way to first register a service in backend completly and than go to Gateway and register this service there again?

I thought i will create my odata with DPC and MPC Classes and than i click register Service and it gets registered at gateway.

 

Thanks for your Help.

UI5 deployment in gateway

$
0
0

Hi,

 

We want to develop a customed UI5 application with SD data in our sap landscape.

Our gateway deployment scenario is central hub with connection to backend. The gateway has been deployed stand-alone, In the backend, only IW_BEP has been installed.

 

My questions -

1. where can we develop the gateway services ? in backend ?

2. where can we deploy our UI5 application ? in front-end server - the gateway ?

3. if we use the eclipse ide to connect to gateway service, which system do we need to connect ? front-end or backend ?

 

 

Thank you.

 

Kind regards

 

Benj.

WebIDE not pointing to Z gateway Service

$
0
0

Hello

 

I have created a  Z gateway service( on top of the standard sales order app service). Created a new extension of standard app in SAP WebIDE and called this new Z gateway service in "Component.js" file under "Service url variable".

 

Standard Service : SRA017_SALESORDER_CREATE_SRV

Z Gateway Service : ZTESTSRA017_SALESORDER_CREATE1_SRV

 

But when the sales order app is launched, i can see from chrome( F12) that the standard service is what is always called from the path

/sap/opu/odata/sap/SRA017_SALESORDER_CREATE_SRV/ and not the Z one.

 

 

IN SICF, this new Z service is also configured and ACTIVE and testing of this Z service works from backend, yet from the app always the standard service gets called? Why is this case?

 

Thanks

Abishek

SAP tables of oData service

$
0
0

Hi,

 

I want to know how to check what SAP tables are used in oData service.

(Say OData Service PP_MRP_COCKPIT_SRV or any oData service.)

 

Thanks

Can we hide/ Rewrite the Fiori Launchpad URL using SAP Web- Dispatcher?

$
0
0

Hello Guru's,

 

Can we Hide/ Rewrite the Fiori Launchpad URL using SAP Web- Dispatcher?

 

I've created Custom Alias in SAP Web-Dispatcher which works pretty well. When I'm hitting https://abc.mycompany.com it is taking me to Fiori Launchpad without any error but it is giving me entire path which not only exposing the SAP Client No but also looks big.


SAP Web-dispatcher URL: - https://abc.mycompany.com

After login :- https://abc.mycompany.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB


My query is that I want to completely hide or Rewrite the URL even after login also. At this point of time, after login it is showing me complete URL https://abc.mycompany.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB

 

I've gone through other threads but no Luck,

 

Note: If we use same URL in Mobile Devices Browsers; it is perfect. It only shows the FQDN (No path after that.....)


I've tried this,

Incoming Source URL:  https://abc.mycompany.com

 

Internal Target URL:     https://ecc.fiori.intra:8011/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB

 

Redirect rule for internal URL would be:

 

icm/HTTP/redirect_0 = PREFIX=/, FROM=/, TO=/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB, PROT=HTTPS, HOST=abc.mycompany.com, PORT=443

 

To make our target URL hidden :


sapwebdis.pfl

icm/HTTP/mod_0 = PREFIX=/,FILE=c:\Program Files\sap\sapwebdisp\Filter_Rules.txt

 

Filter_Rules.txt

SetHeader clientProtocol HTTPS

RegIRewriteUrl (.*) /sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB=abc.mycompany.com [qsreplace]


Post to that, when hitting the URL...... Fiori Launchpad is not coming properly (No Flower, Logon Boxes are not in place) and its with error as "Uncaught SyntaxError: Unexpected token <"


Please advise.

 

KR,

~ Mahendra

Upload/download files to/from ABAP table using SAPUI5 and Odata Services.

$
0
0

I have created an Odata service to consume data from some abap tables in SAPUI5. I want to upload and download files (.doc, .xls, .xlsx,.xml,.msg,.pdf,.txt) to/from ABAP table using SAPUI5 and Odata service.

Can we hide/ Rewrite the Fiori Launchpad URL using SAP Web- Dispatcher?

$
0
0

Hello Guru's,

 

Can we Hide/ Rewrite the Fiori Launchpad URL using SAP Web- Dispatcher?

 

I've created Custom Alias in SAP Web-Dispatcher which works pretty well. When I'm hitting https://abc.mycompany.com it is taking me to Fiori Launchpad without any error but it is giving me entire path which not only exposing the SAP Client No but also looks big.


SAP Web-dispatcher URL: - https://abc.mycompany.com

After login :- https://abc.mycompany.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB


My query is that I want to completely hide or Rewrite the URL even after login also. At this point of time, after login it is showing me complete URL https://abc.mycompany.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB

 

I've gone through other threads but no Luck,

 

Note: If we use same URL in Mobile Devices Browsers; it is perfect. It only shows the FQDN (No path after that.....)


I've tried this,

Incoming Source URL:  https://abc.mycompany.com

 

Internal Target URL:     https://ecc.fiori.intra:8011/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB

 

Redirect rule for internal URL would be:

 

icm/HTTP/redirect_0 = PREFIX=/, FROM=/, TO=/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB, PROT=HTTPS, HOST=abc.mycompany.com, PORT=443

 

To make our target URL hidden :


sapwebdis.pfl

icm/HTTP/mod_0 = PREFIX=/,FILE=c:\Program Files\sap\sapwebdisp\Filter_Rules.txt

 

Filter_Rules.txt

SetHeader clientProtocol HTTPS

RegIRewriteUrl (.*) /sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-client=XXX&sap-language=GB=abc.mycompany.com [qsreplace]


Post to that, when hitting the URL...... Fiori Launchpad is not coming properly (No Flower, Logon Boxes are not in place) and its with error as "Uncaught SyntaxError: Unexpected token <"


Please advise.

 

KR,

~ Mahendra


We need URI to test Odata service for Document number search help

$
0
0

Hi all,

 

We are trying to create an Odata service for Document Number search help.The search help should show (Controlling Area, Document No,Posting  date,Document date).The user should pass the Controlling area as a mandatory field to get the search help.

There is no elementary serach help at data element level. So we followed two approaches :

 

1) Create a CDS view . Call the Get Entity Set method to AMDP which queries from CDS view.

2) Create a Custom Search Help.Import this Search Help in SEGW .

 

*Now we can have multiple controlling areas as input.

 

We need to find URI so that we can test our service. For example we tried below :

 

/sap/opu/odata/SAP/ZCASE_TEST_SRV/Ztest1Set (works fine).

 

When the user gives Controlling Area :

/sap/opu/odata/SAP/ZCASE_TEST_SRV/Ztest1Set(KOKRS='US00')  (No Result , BAd request).

 

Can we give other parameters as blank like below :

/sap/opu/odata/SAP/ZCASE_TEST_SRV/Ztest1Set(KOKRS='US00',BELNR='')  (This also gives no result).


Can we write URI where we can give filter like :

/sap/opu/odata/SAP/ZCASE_TEST_SRV/Ztest1Set?(SIGN='I', OPTION='EQ', LOW='US00', HIGH='') ( Status 200, but no result )

 

Please suggest URIs so that  we can test the Odata service.

 

 

Regards,
SHUBHAM

Leading zeros getting removed in xml output

$
0
0

Hi All,

 

I have a field in my entityset LIFNR (defined with standard data element of char type) . The problem I am facing is if there is value starting with 0's say"0000008" , in the xml output its shown as "8". Its removing the leading zero's while showing in xml.

 

I checked in debugging mode , the value in the internal table et_entityset , there its showing the value along with zero's but in the xml output in removes them. Please find the attached screenshots for the same. (One more screenshot is in reply to this thread since it does not allow more then 3 attachments)

 

Regards

Amber

Duplicate messages in response of GetEntitySet method

$
0
0

Hi,

In the standard Get_entityset method of DPC, when a RFC function gives an error in bapiret2, the rfc_save_log method writes the same message 3 times and raises a business exception. This results in 4 duplicate messages being shown in the UI5 message log.

 

Code in GET_ENTITYSET()

{

IF et_bapiret IS NOT INITIAL.

    me->/iwbep/if_sb_dpc_comm_services~rfc_save_log(

      EXPORTING

        iv_entity_type = iv_entity_name

        it_return      = et_bapiret

        it_key_tab     = it_key_tab ).

  ENDIF.

 

}

 

Does someone have similar experience and know what should be done. Thanks.

 

Gateway: GW_FND_740_010

 

Regards,

Prashanth Prabhu

Error 415 while Updating using OData.

$
0
0

Gurus,

 

I am trying to update Asset using BAPI  BAPI_FIXEDASSET_CHANGE.

 

I tried to follow the following link in SCN.

Detailed step by step procedure for Creating Gateway Service with all the CRUD Operations and testing them in Service Explorer Part1


But for some reason I wasn't successful, so what I did was I created the custom RFC and Passed 'X' in all necessary places (to whichever fields I needed to update) and used that RFC in ASSETCHANGESET_UPDATE_ENTITY


Capture.PNG


  Have also written codes to get entries in Read and Query Operations in ASSETCHANGESET_GET_ENTITY and ASSETCHANGESET_GET_ENTITYSET respectively.


Now finally when I dry-run my Odata Query runs fine and I then I select Use as request button and get XML code and then I change the necessary fields and then select POST-> F8, error 415. What did I do wrong?


BTW the XML generated by Use as request button doesn't start typically by <?xml version="1.0" encoding="utf-8" standalone="yes"?>

 

It starts with  <feed xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="The Service name">.

 

I am new to Netweaver Gateway, so, I kindly urge you to explain me in detail. Thanks.

odata CREATE SERVICE (post)ISSUE "The server is refusing to process the request because the entity has an unsupported format"

$
0
0

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="http://ULABSMDG27.ugi.com:8000/sap/opu/odata/sap/Z_FIORI_CREATE_EQUIPMENT_SRV/">

  <id>http://ULABSMDG27.ugi.com:8000/sap/opu/odata/sap/Z_FIORI_CREATE_EQUIPMENT_SRV/Z_EquipmentCreateSet</id>

  <title type="text">Z_EquipmentCreateSet</title>

  <updated>2015-11-10T09:57:56Z</updated>

  <author>

   <name/>

  </author>

  <link href="Z_EquipmentCreateSet" rel="self" title="Z_EquipmentCreateSet"/>

  <entry>

   <id>http://ULABSMDG27.ugi.com:8000/sap/opu/odata/sap/Z_FIORI_CREATE_EQUIPMENT_SRV/Z_EquipmentCreateSet('10000004')</id>

   <title type="text">Z_EquipmentCreateSet('10000004')</title>

   <updated>2015-11-10T09:57:56Z</updated>

   <category term="Z_FIORI_CREATE_EQUIPMENT_SRV.Z_EquipmentCreate" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

   <link href="Z_EquipmentCreateSet('10000004')" rel="edit" title="Z_EquipmentCreate"/>

   <content type="application/xml">

    <m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">

     <d:Equipment>10000004</d:Equipment>

     <d:Manfacture>SAP</d:Manfacture>

     <d:Descript>ODATA TEST</d:Descript>

     <d:Maintplant>0001</d:Maintplant>

     <d:Funcloc>ABCD-TER-RR-12</d:Funcloc>

     <d:Equicatgry>M</d:Equicatgry>

     <d:ExternalNumber>10000004</d:ExternalNumber>

     <d:Objecttype/>

     <d:Manmodel>asded- 1234 -344</d:Manmodel>

    </m:properties>

   </content>

  </entry>

</feed>

 

 

Here is my pay load for the create operation for POST , I could not understand the solution provide in other discussions, could you please guide me on what error is there in my payload.

HTTP Request properties

 

X-CSRF-TokenJ0LthASUesoef5I3HzvcyQ==
Content-Typeapplication/atom+xml;type=feed; charset=utf-8
Viewing all 1745 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>