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

Re: No Entity Sets in service

$
0
0

Hi All

 

FYI......

 

I worked out what the issue was: authorizations.

 

I had the correct authorizations in the front-end to access the odata feed, but I didn't have the correct authorization in the back-end!!!

 

So I could access the feed but not the entity sets which were built in the back-end.

 

Thanks

Andrew


Re: Gateway Service cannot be reached : error code 404 reason ''Not found''

$
0
0

Problem is resolved now.

 

I have restarted ICM using SMICM tcode.

 

Administrator then ICM then Exit hard then click Global.

Re: Gateway Service cannot be reached : error code 404 reason ''Not found''

$
0
0

Problem is resolved now.

 

I have restarted ICM using SMICM tcode.

 

Administrator then ICM then Exit hard then click Global.

Can I access table in backend ABAP server from frontend ABAP server ?

$
0
0

I developed an oData service in a Front-end ABAP NW server gateway, the oData data provider is custom ZTABLE in the front end ABAP NW server.

 

If I create a table in backed NW ABAP server, will I be able to access that table from Front-end ABAP NW server in same way I am currently doing ?

2015-05-17 13_45_53-Dictionary_ Display Table.png

{ orange color text is the custom table name }

 

method TIRES_GET_ENTITYSET.


DATA: lt_tires TYPE TABLE OF ztires,
ls_tires
LIKE LINE OF lt_tires,
lt_entityset
TYPE zcl_ztrucktire_mpc=>tt_tiresentity,
ls_entity   
TYPE zcl_ztrucktire_mpc=>ts_tiresentity.


...

.

.


endmethod.


currently I have query written in the oData CRUD methods that modify the table which is created in the Fronted ABAP server, I just use the table name to get or set the data from the service, what If the table in another Backed NW server will I be able to do the same ? also will I be able to call and access SAP tables and functions that is in backed server ?

Can we perform Distinct and Grouping operation on OData services ??

$
0
0

Hello Experts,

 

I am using an OData service whose output consists of few repeated rows. I want to display distinct data in the UI and also group the repeated rows. Can this manipulation be done in the service itself ??

 

Following is the scenario:

 

Lets say a customer orders same product in two different categories(different packs,but same product). Only one order number is generated for this order, but its displayed twice in the output because categories of product are different.  In my table, Order number must be visible only once and under "no of items" 2 must be displayed.(Hence grouping is required).

 

I hope i have explained my question properly.

 

Please reply,

Thnak you,

Best Regards,

Chetna

Re: Can we perform Distinct and Grouping operation on OData services ??

$
0
0

No, this is not possible in the service level, unless you try to do comparison and start blanking out properties in the DPC class.

I would not recommended this as well, as the requirement is more at 'How you display', and not about the data.

How is the function module can be exposed from back-end to gateway?

$
0
0

Dear Experts,

 

May i know how is the function module can be exposed from back-end to gateway?

Thanks.

 

Regards,

Chun Wooi

 

Tags edited by: Jitendra Kansal (Moderator)

Re: How is the function module can be exposed from back-end to gateway?

$
0
0

LOH CHUN WOOI

 

Please update your discussion in case you have any more related questions otherwise you can close it.

 

Regards,

JK (Moderator)


Re: Can we perform Distinct and Grouping operation on OData services ??

$
0
0

Could you please suggest some way ? Table gets directly binded to the Model, so how to remove this additional row from the model so that only required entries get binded.

 

Thank you,

Regards,

Chetna

Re: Can we perform Distinct and Grouping operation on OData services ??

$
0
0

Chetna,

Each item in the entity set is identified with a unique (set of ) key. Then how come you get duplicate values By the way , if you are not displaying the key, there are chances to get duplicated records in the UI table. Handle from data model level.

 

Sree

Re: Fiori Approve requisition (Header) can't fetch item data

$
0
0

Hi Oscar,

Were you able to solve the issue you mentioned above where it fails at the codeline.

>>>>>   ls_item = lr_item->get_data( ).

 

Please let me know the solution.

 

Thanks,

Anil.

Re: Can we perform Distinct and Grouping operation on OData services ??

$
0
0

Its not like that i am getting duplicate values, actually the scenario is something like this: if i place an order in flipkart for two different products or same product having different categories or packs alltogether, then though products are different, only one order number will be generated.

 

Now the output i receive from the service is i think on the basis of products which has been ordered. So when two products which were ordered by a person are displayed , With them the order id will also be displayed. In such cases same order id will be repeated for those two products which were ordered together.

 

I just want:

(1) to bind Distinct entries to my table, and

(2) group the two entries so that i can display no of items = 2 , for this order number

 

Do you any idea as to how can i approach dis?

Thank you,

Best Regards

Re: Fiori Approve requisition (Header) can't fetch item data

$
0
0

Hi Anil,

 

I was not able to solve so far.

 

We are implementing PO and Contract and after that go back to PR.

 

Regards,

Oscar

SAP Netweaver Gateway connection in Eclipse Kepler

$
0
0

Hello,

 

I'm trying to create an SAP Netweaver Gateway connection in Eclipse Kepler.

So I entered information related to the server hostname, port, client and username and password, but I'm getting the error message  Validation canceled

Please help me solve this issue.

 

 

Thanks in advance.

The Gateway does not take care of long text from backend

$
0
0

Hello,

 

A long text maintained in the message of the message class (Backend) is not transferred to the UI layer from odata. I had to manually add the long text in Odata layer to error detail component of the container. Am i missing something to automatically get the long text along with the main message in the UI layer? Or is it that Odata framework does not take care of the same? If so, why is it?

 

Thanks and Best Regards,

Govind


Re: Can we perform Distinct and Grouping operation on OData services ??

$
0
0

You can not o this from the odata service level . You will need to create another entity as expected and handle this situation from data provider class. Or , you will need to use odata.read() method to call the service after constructing your URL and manipulated thae returned JSON before binding it to the table .

 

Sree

Re: The Gateway does not take care of long text from backend

$
0
0

Showing your code, on how did you raise exception would help.

SAP Netweaver Gateway - oData - “Maintain Service Groups” not found

Re: The Gateway does not take care of long text from backend

$
0
0

Hi Krishna Kishore,

 

Following is the code.

 

catch cx_error into lx_error.

     ls_msg = lx_error->get_message( ).

     lo_msg_container = me->ar_context->get_message_container( ).

     lo_msg_container->add_message(

          iv_msg_type      = ls_msg-msgty

          iv_msg_id          = ls_msg-msgid

          iv_msg_number = ls_msg-msgno

          iv_msg_v1         = ls_msg-msgv1

          iv_msg_v2         = ls_msg-msgv2

          iv_msg_v3         = ls_msg-msgv3

          iv_msg_v4         = ls_msg-msgv4

          iv_error_category = /iwbep/if_message_container=>gcs_error_category

          iv_entity_type    = iv_entity_set_name ).

 

     raise exception type /iwbep/cx_mgw_busi_exception

          exporting

               message_container = lo_msg_container.

 

Thanks and Best Regards,

Govind

Re: The Gateway does not take care of long text from backend

Viewing all 6105 articles
Browse latest View live


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