Hi ,
I am trying to Insert records into Ztable using an RFC where the logic for Insert records has been written .
*Now in SEGW using a DataModel Imported the RFC ,
*Created a EntitySet using Entity Type .
*Later on Generated the RuntimeObjetcs and Maintained the Service .
* Finally Mapped RFC for Create Operation .
RFC Logic:
DATA : IT_POST TYPE STANDARD TABLE OF ZTABLE_POST,
WA_POST TYPE ZTABLE_POST,
T_FINAL TYPE STANDARD TABLE OF ZTABLE_POST,
W_FINAL TYPE ZTABLE_POST.
LOOP AT T_FINAL INTO W_FINAL.
WA_POST-EMPID = W_FINAL-EMPID.
WA_POST-ENAME = W_FINAL-ENAME.
WA_POST-CITY = W_FINAL-CITY.
MODIFY ZTABLE_POST FROM WA_POST.
ENDLOOP.
COMMIT WORK.
Now Do I have to write the same logic in Create Method again in ABAP workbench or Anyneed of calling that RFC in create Method or nothing is needed.
I am using RestClient to Insert Records using the Odata Service and collection using XML content .
Let me know the exact procedure...
Appreciate your help.
Thanks,
Uday.