on 01-06-2015 10:07 AM
Hello ,
In the Guide which you referring to please see the below screen where we are mapping all the entity properties to one output table called header data are you doing the same ?
multiple output tables cannot be mapped to single entity type with Mapping approach where as you can do that using Code based approach by Redefining entity set method in DPC_EXT
Thanks
Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ahmed,
You are mapping an input structure of your BAPI ES_HEADER as output which is causing the error.
You need to map the out put table as the response while performing mapping.
Correct this and issue will be resolved.
Also note that while mapping in SEGW you cannot map more than one table as response.
only one table can be mapped as response in SEGW while using performing mapping option.
If at all you need to map more than one table as GW Response then in that case you need to create GW Model with different entities and association between them with appropriate cardinality and Create run-time objects.
Then manually implement Expand Entity/Entity Set method by calling that BAPI inside it in DPC_EXT class.
Also while implementing QUERY there is no rule that input must be mapped. Its always an optional.
Only rule is the Key properties of your GW Model need to be a part of out put mapping.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
and one more thing map that GET_Detail BAPI in GET_ENTITY (Read) operation. your issue will get resolved.
Regards,
Venu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
The following are some of the mapping rules for the query operation:
You have to map atleast one attribute to Output table of RFC. Query operation expecting this.
Regards,
Venu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The error is because you have mapped the properties to the ES_HEADER i.e. a structure and not the table thus it can contain only a single line. Since this is a GET_ENTITYSET or query mapping, the gateway expects that you would map the property to the table so that it can contain multiple lines to serve the purpose of Query.
Hope this resolves your issue.
Hi,
I am assuming in your RFC Mandatory input Parameters orderid and number is there, which are mandatory to do input mapping. I didn't find any mapping for inputs in your mapping screen shot to RFC.
If you dont want to do input mapping then for input parameters in RFC mark Optional check box.. and again check in segw.
Regards,
Venu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dilshad,
As the error itself states that you can not use more than 1 output table in case of query. Please check your mapping. The SEGW tool will not let you map properties from 2 o/p tables.
If in any case you need to get the output from more than one table, you can do that in the GET_ENTITYSET method of respective entity set. In that method, you will find the code where we loop at the output table and populate the et_entityset table. Here you can alter the code as per your need and read the data from multiple tables.
Regards,
Ekansh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.