Skip to Content
0

Issue while creating a goods movement using Create ENTITY for the BAPI BAPI_GOODSMVT_CREATE

Sep 11, 2017 at 04:04 PM

54

avatar image

Hi,

I have created OData service on top of the BAPI

BAPI_GOODSMVT_CREATE in TCode SEGW. I have my entityType with these fields - GMCode,Plant, Material(Key) , Stge_loc, Docdate, GM_Code and other fields. I have one entity set using that entity type. Under service implementation node, i have done mapping for Create where I will pass the value of Material as input(rest of the values are defaulted as of now) while calling the service and in return I am expecting the service to provide me MaterialDocNumber as output. I have activated and registered my service successfully. But I have two questions here -

1. If I am doing anything wrong here to post using the service, please let me know the recommended way to achieve this.

2. I do not have any idea how to call the service from HANA XS/JS so that I can pass the material number (rest of the mandatory values are defaulted) to create the Goods Movement and in return I will get the Material doc number.

Please note , I was successful when I was reading values using getEntitySet,getEntity to fetch records using BAPI_DELIVERY_GETLIST but here I dont have any idea how to use the 'Create' for posting using BAPI_GOODSMVT_Create.

Thanks for helping!

Regards,

Sunit.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers