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

Re: how to pass multiple single entry for a variable in odata

$
0
0

Hi Preeti,

 

As I said, the entity property ZTCOUNTRY_SSV should be set to Edm.String in gateway.

 

Since you pass multiple values to the field, You need multiple records to display.

 

Implement GET_ENTITY_SET method and customize the method with the data population logic as split the string into multiple values and pass the same to ABAP logic to fetch data.

 

The ODATA query should be,

 

/sap/opu/odata/sap/TESTQUERY_SRV/TESTQUERY?$filter=ZTCOUNTRY_SSV eq 'ZZ,AA'.


Re: Issue: Different login Pop-Up window for different services.

$
0
0

I compared both SICF Config and it looks same.

Please find below snap shot:

 

Pop-Up 1:


2016-05-12 12_44_09-Win7-DE.png

2016-05-12 12_37_35-Win7-DE.png

Pop-Up 2:


2016-05-12 12_43_55-Win7-DE.png

2016-05-12 12_37_21-Win7-DE.png

Thanks,

Madhu M V

Re: Issue: Different login Pop-Up window for different services.

Re: Unable to open SAP gateway client.

$
0
0

No Ashish I am not able to open even through the report.

How to undo merge of objects

$
0
0

Hi

 

I have a query regarding merge objects.I have captured my objects in a transport request then I have created another tr and using include objects first tr is merged in newly created tr.I want to demerge it since it was done by mistake.How can I do it?If I delete the second tr will the objects in first tr also gets deleted?Any help would be appreciated.

Re: How to undo merge of objects

Re: Enhance MPC Class in Odata

$
0
0

Hello Phani,

 

Not all the services would have been developed using SEGW. Few are developed manually by inheriting the classes as well. You need to check this.

 

Use table /IWBEP/I_SBD_GA to find the project associated to the service name.

Pass your service name to the field 'NAME' and get the project name.

 

If found then open this project in SEGW.

Now add the new fields in the structure HROVIS_S_NODE_GENERIC. Then you need to import those newly added fields inside the Entity of your GW model. Once this is done regenerate the run-time objects.

No need to change/enhance the MPC/MPC_EXT class here as the structure HROVIS_S_NODE_GENERIC having your new fields would have already been bound to the MPC.

This you can check if above structure binding is there inside MPC.


Now you can add extra code inside appropriate method in DPC_EXT to populate values into those newly added fields.


I think below should help you.

Extending an OData Service Using Service Builder - SAP NetWeaver Gateway - SAP Library

 

If its not developed using SEGW then you need to manually write code inside MPC and logic inside DPC.

 

Regards,

Ashwin

Multiple File Attachments upload via Odata Service Call in GOS

$
0
0

Hi Experts,

 

We have a requirement where we need to attach multiple files with different file extensions via Odata Service Call in GOS (no Z-table).

I know that we need to redefine method CREATE_STREAM to upload files.

 

Has anyone implemented such kind of a service where multiple files attached on UI side are read in a single service call and the files are uploaded in GOS?

 

From U5 side we are using Upload Collection Entity.

SAPUI5 Explored


Variant Management Odata Service

$
0
0

Hi Experts,

 

Has anyone implemented Variant Management for Odata Service? Can anyone suggest the approach for saving Variants at backend via Odata service call?

 

UI Variant Management Control SAPUI5 Explored

Re: Multiple File Attachments upload via Odata Service Call in GOS

$
0
0

Hi Rahul,

             For saving files in GOS ,we have SAP standard Class methods which need to be used. Is your question related to the backend filesave using GOS or the Gateway part how to.

Arka

Re: Multiple File Attachments upload via Odata Service Call in GOS

$
0
0

I know we have standard class methods to save files in GOS.

We will upload multiple files from UI side and those need to be stored in GOS, so that these can be read later.

Re: Multiple File Attachments upload via Odata Service Call in GOS

$
0
0

Hi Rahul,

             Assuming you are seeking information on the gateway part, you can check the following steps:

  • Redefine the "DEFINE" method in your MPC_EXT and put the below code there:

super->define( ).

 

     DATA:

       lo_entity   TYPE REF TO /iwbep/if_mgw_odata_entity_typ,

       lo_property TYPE REF TO /iwbep/if_mgw_odata_property.

 

     lo_entity = model->get_entity_type( iv_entity_name = <Your Entity Name>).

 

     IF lo_entity IS BOUND.

       lo_property = lo_entity->get_property( iv_property_name = 'Mimetype' ).

       lo_property->set_as_content_type( ).

     ENDIF.

  • As you have mentioned redefine the CREATE_STREAM method in your DPC_EXT and put the following code

CASE iv_entity_name.

       WHEN <Your Entity>.

         ls_upload-mimetype = is_media_resource-mime_type.

         ls_upload-filename = iv_slug.

         ls_upload-value = is_media_resource-value.

        Call the GOS method here to save the attachment. LS_UPLOAD used here is a local structure with only the below fields.

FILENAME - CHAR200

VALUE       - XSTRINGVAL

MIMETYPE- CHAR100

 

LS_FILE used here is of type your entity.

 

         <your entity>set_get_entity(

           EXPORTING

             iv_entity_name     = iv_entity_name

             iv_entity_set_name = iv_entity_set_name

             iv_source_name     = iv_source_name

             it_key_tab         = it_key_tab

             it_navigation_path = it_navigation_path

           IMPORTING

             er_entity          = ls_file ).

 

         copy_data_to_ref( EXPORTING is_data = ls_upload

                           CHANGING  cr_data = ER_ENTITY ).

     ENDCASE.

From UI pass the attachements one by one by calling the entity set (method "POST") and passing the filename in the slug parameter of the http request.


Hope this helps.

Arka

Re: Odata Service for CDS View with Input Parameter

$
0
0

Hi Binay,

 

Append the query string $metadata and check the entity set name.After getting the entity set name use it and pass the required key field in the CDS view and the parameter that u have defined.

 

For eg:

 

cdsqry1.PNG

 

 

And call the URl either from the gateway client or from the browser as below screen.

 

cdsqry2.PNG

 

You can figure out the entity set name from the metadata information.

 

 

Regards,

Vishnu.

Re: Variant Management Odata Service

$
0
0

Hi Rahul,

 

How about using RS_CREATE_VARIANT_RFC and RS_CHANGE_CREATED_VARIANT_RFC in your method to save variants at backend.

 

regards,

Tarun

Re: Publishing an oData from CDS View with Parameters

$
0
0

Give @OData.publish: true in the CDS Editor.Then activate the servie in /iwfnd/maint_service.

 

Regards,

Vishnu


Re: Variant Management Odata Service

Re: Unable to open SAP gateway client.

$
0
0

Hi

 

The issue seems to be with SAP GUI version.Installed latest GUI version and there seems to be no problem now.Thanks for your help guys!!.

Re: Unable to open SAP gateway client.

$
0
0

Hi,

That was the last option which I was having in my mind to suggest you. But anyways , it's cool to know that you are able to access gateway client.

Re: Multiple single values to a parameter in ODATA bex query

$
0
0

Hi All,

 

Thanks for all replies.

 

we figured out a solution by passing the value of filters to the variables of Bex query in the classes generated by ODATA query.

 

Filters works once the result set is generated(millions of records).but we need the result set (hundreds of records)to be generated based on the values given.

How to get Domain And port information

$
0
0

Hi All,       I have one RFC connection ERP system in SM59. 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

Viewing all 6105 articles
Browse latest View live


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