Quantcast
Channel: SCN: Message List - SAP Gateway
Viewing all 6105 articles
Browse latest View live

How to get Domain And port information

$
0
0

Hi All,      I have one RFC connection in ERP system (SM59) and I have one FIORI app in gateway system. Now i need to provide navigation from app which is loaded in ERP to Fiori loaded in Gateway.      To do this i need Domain and port number of Gatway system.  IS there anyway to get this information in ERP ? Regards, Praveen


Re: How to get Domain And port information

$
0
0

Hi,

 

Please check in transaction: smgw.

 

Regards,

Deepa

Re: How to get Domain And port information

$
0
0

It is showing only currently active connections. I need to establish new HTTP connection using domainname:port/sap/bc....etc link.
Regards,
Praveen

Re: How to get Domain And port information

$
0
0

Hi,

Goto t-code  sicf and folow the path:-  sap->opu->odata->sap,  you will get the list of all the services.

Double click on the service which you want to work with. It will switch to a screen where you will get all the related data.

By default for http the port is 80.

 

Regards

Ashish

Re: How to get Domain And port information

$
0
0

Hi Ashish,           This logic will work if my BSP app and FIORI apps are in same system. But My BSP is running in ERP system(PD1) and my fiori app is deployed in gateway system (GT1).  i have RFC connection from PD1->GT1 system. Now the question is  how to get domain / port of GT1 system
using some code which is executed in PD1 system .
Regards,
praveen

Re: Upload Images into SAP DMS using Gateway/UI5

$
0
0

Thanks for your responses. I've found the solution on uploading a binary image into SAP DMS.

 

Solution:

1. Upload the file needs on App Server (AL11)

2. and then use the server file path to upload documents using standard BAPI

3. Delete the file from AL11 after successful upload into SAP DMS

 

Cheers,

Umesh

Re: How to get Domain And port information

$
0
0

Hi,

It depends where your services are registered. When you open your service in gateway builder and click on maintain, it will go to the system where they are registered. Simply open your service in  gateway, but firstly check where they are registered. Have a look at that and tell.

 

Regards

ashish

Re: $filter values are truncated when mapped to FILTER_SELECT_OPTIONS

$
0
0

Hi Mario,

 

I'm struggling with exactly the same problem. After implementing the notes 2245413 and 2205402 the problem is still happening.

Did you manage to fix it?

 

Regards,

Fabio Scaravelli


SAP Gateway Unable to Create Business Scenario Using BDC Model

$
0
0

Dear Experts,

 

i have created a data model using object navigator (SE80) for Generic Channel and Meta Model type is public Solution (PS).

data model generated successfully without any errors.

 

now  i am trying to create a business scenario Using BDC model from the GSDO type. When i try to select my GDSO type name using F4, the data model name is available in F4 list but nothing was created under business scenario name.

 

BDC_Model.png

 

Business Scenario.png

 

Can some one please advise what might be the issue and how to fix it.

 

 

Regards,
Siva.

Additional tabs in .xlsx file created through SAP Gateway

$
0
0

Hello Experts,

 

 

I am facing an issue while creating a .xlsx file through Gateway Service using Media entity.

 

 

We are getting additional tabs 'Input help', 'Column details', 'Column Alias Mapping' apart from 'Sheet 1' which contains the relevant data as per the attached screenshot. Also the name of excel file getting created is coming as $value even though the name is being passed in the class.

 

 

Below code is being used in DPC_EXT class.

 


"create excel file

   GET REFERENCE OF lt_excel_ex INTO lr_data_ref.

   TRY.

       cl_fdt_xl_spreadsheet=>if_fdt_doc_spreadsheet~create_document(

         EXPORTING

           itab               = lr_data_ref

           iv_call_type       = 2

           name               = lv_file_name

           iv_sheet_name      = lv_file_name

         RECEIVING

           xdocument          = cv_xstring ).

     CATCH cx_fdt_excel_core .

   ENDTRY.


This code is being executed via the URL /sap/opu/odata/sap/..MEDIA_ENTITY_SET/$value. The name of file is being taken from the URL. Is there any way of passing the file name and removing additional tabs in .xlsx file.


Regards,

Nishant Arora

Re: Error while doing the PUT operation

$
0
0

Hi Jibin

 

I have tried ...

It still not working

Re: Additional tabs in .xlsx file created through SAP Gateway

$
0
0

Hello Nishant,

 

Do you mean to say excel which is attached during POST operation had only 'Input help', 'Column details', 'Column Alias Mapping' sheets but after its saved you are getting additional sheet called 'Sheet1' ?

 

Regards,

Ashwin

Re: Error while doing the PUT operation

$
0
0

Hi Umesh ,

 

I Recommend . Please Post regarding this Issue in Gateway Development Blog . We can Continue our Discuss there .

 

Regards,

Jibin Joy

Re: Additional tabs in .xlsx file created through SAP Gateway

$
0
0

Hello Ashwin,

 

The below URL is being used as GET operation and used to create a file in the front end which should consist of the custom table entries which has the relevant contents as well as additional tabs.

 

/sap/opu/odata/sap/..MEDIA_ENTITY_SET/$value

 

We don't need any additional tabs. We only need one tab with our custom table entries . The additional tabs are created automatically via class which I mentioned in my question. Also the file that is created has the name $value. We need an appropriate name.

 

Regards,

Nishant

Re: Error while doing the PUT operation

$
0
0

Discussion successfully moved from SAPUI5 Developer Center to SAP Gateway

as suggested. 

 

By the way, it is better to simply Alert Moderator with Wrong Space than make the suggestion in the Discussion.  This brings it to the attention of the Moderators who can then move the entire Discussion to a more appropriate community (like I just did).  The member who started the Discussion does not have the same ability unless they start a new Discussion which then violates the Cross Posting part of the Rules of Engagement.

 

Cheers, Mike (Moderator)

SAP Technology RIG


Re: Additional tabs in .xlsx file created through SAP Gateway

$
0
0

Ok then its something which we need to see what is happening inside that class. Most likely this extra sheet 'Sheet1' along with actual data is created while media content is getting saved. On reading same media content is being rendered with actual data which is having that extra sheet 'Sheet1'.

 

However we can use Content-Deposition Header to set with what name you would like to download the file.

 

Recognizing file name and type in browser after downloading file from Netweaver Gateway

Re: Additional tabs in .xlsx file created through SAP Gateway

$
0
0

Hi Ashwin,

 

Thanks for the reply. Please note that extra sheets are Input help, column etc. which are being created by class mentioned. The sheet 'Sheet 1' has the data we need and is to be kept.

 

I will check the link given by you.

 

Regards,

NIshant

How to pass table value to oData service for Read operation

$
0
0

Hi.,

      I got one scenario., I have to pass table entries from front to backend and need to process those data with some logic then I wanted to return processed data

Anyone pls guide me how to achieve the same with oData service?

Regards.,

Mahendran

Re: How to pass table value to oData service for Read operation

$
0
0

Hello Mahendran,

 

Try to pass those inputs as part of filter parameters as below.

You will receive values as part of select options and can be used further in your logic.

 

Sample URL -

 

/sap/opu/odata/sap/ZGW_SRV/Employees?$filter=( EmployeeID eq '0001' or EmployeeID eq '0002' or EmployeeID eq '0003' or EmployeeID eq '0004' ) and ( DepartmentID eq 'A1' or DepartmentID eq 'J1' )

 

Regards,

Ashwin

Re: EXPORT INTERNAL TABLE TO EXCEL THROUGH ODATA SERVICE

$
0
0

Hello Shiva,

 

Not sure about what exactly is the scenario here as problem statement describes exporting data to excel through GW but you are also talking about using GUI_DOWNLOAD for uploading an excel as attachment. Being more specific on what is needed will help here.

 

I could not get if you want to upload an excel through GW, extract that data inside your ABAP code and use it further OR just download your internal table entries as an excel from GW.


However using GUI_DOWNLOAD will not work here for uploading. Its for SAP GUI only.

 

Below will give you some idea. Please have a look.

 

Convert XSTRING of CSV to Internal Table for mass actions

 

File Upload/Download through NetWeaver Gateway

 

Uploading Files to SAP GW, Downloading Files from SAP GW - New Techniques

 

Upload Image to SAP Gateway and Display Image in UI5 - Using New Fileuploader with SAP Gateway

 

How To Upload and Download Files Using SAP NW Gateway SP06

 

If at all, all you need is to simply download your internal table entries as excel through GW, then you just need to add ' $format=xlsx ' in your URI and GW itself will download the table entries as excel.

 

Excel Support - SAP Gateway Foundation (SAP_GWFND) - SAP Library

 

Sample -

 

/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/FlightCollection?$format=xlsx

 

Regards,

Ashwin

Viewing all 6105 articles
Browse latest View live


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