on 02-25-2015 10:00 AM
Hi experts,
I have a TABLE AS INPUT to an RFC which i am mapping to create odata.
for the table with fields : i have created a entity type RFCINPUT with property as :
MANDT | Types | MANDT |
VBELN | Types | VBELN |
POSNR | Types | POSNR |
ERDAT | Types | ERDAT |
ERZET | Types | ERZET |
QUERY 1:
WHERE should the mapping be done?? under create or getentityset(query) or update of the entity type.???
QUERY 1:
while giving we can use $filter for single input in the URL itself.
However for multiple input as a table how to handle using rest client postman .( $batch is used i think which i have no idea about)
Cannot we JSON as an INPUT in postman.
Thanks in ADVANCE.
Hello Convay,
According to me two ways ->
1. In SEGW ( GW Service Builder ) create Data Model and under implementation choose Create Entity and use Map to Data Source option to map inputs to RFC and generate run time objects.
Manually Redefine ChangeSet begin and ChangeSet end methods of the DPC_EXT class and activate.
Use BATCH operation to accomplish this.
You can send a PAYLOAD in JSON or XML format which will have all table of entries and for each entry your RFC is called each time to perform Create Operation in BackEnd.
Refer ->
2. In SEGW create Data Model ( GW Service Builder ),create association and navigation between the same entity and generate run time objects.
Now manually implement Create_Deep_Entity in DPC_EXT class.
In a single JSON or XML payload you can send all the entries in one request and perform POST operation.
Refer ->
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.