Skip to Content
0

How to pass extension data in BAPI_GOODSMVT_CREATE.

Jul 13, 2017 at 08:18 AM

434

avatar image

Dear Experts,

I am using BAPI - (BAPI_GOODSMVT_CREATE) for GR creation and passing all the data from portal to RFC.

In same way I have created GR from R/3 Tcode- MIGO, In that I am passing PO for goods receipt and based on that Supplying vendor or Number of freight vendor/name field data is coming but while posting data from portal there is No structure field in RFC(BAPI_GOODSMVT_CREATE).migo.png

How can we pass above two fields(freight vendor/name) data in RFC. ?

Can I fix it use of BAPI_Extension parameter but in which table I have to add fields in R/3 Level ?

Kindly reply me on this issue an do the needful.

Thanks and Regards

sandeep

migo.png (32.5 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Pras Venkat Jul 13, 2017 at 05:43 PM
0

Can you tell if these fields are newly added ones in migo.

Share
10 |10000 characters needed characters left characters exceeded
sandeep patel Jul 14, 2017 at 05:33 AM
0

No, these in not newly added fields in MIGO.

If we define freight condition type against Supplying vendor then these freight vendor tab will come automatically in MIGO and we can change freight vendor code while creation of GR.

Share
10 |10000 characters needed characters left characters exceeded
Jürgen L
Jul 16, 2017 at 10:17 PM
0

already 7 years ago it was answered by a SAP employee that this BAPI can't do it: https://archive.sap.com/discussions/thread/1813484

Please make sure to search, it was the first hit in Google using the search term: BAPI_GOODSMVT_CREATE freight vendor

And if the BAPI for the goods receipt is not able to update the freight vendor then you need to take care to have the right vendor in the purchase order already

Share
10 |10000 characters needed characters left characters exceeded
Avik Mazumder Jul 17, 2017 at 05:30 AM
0

Hi,

As suggested already,this is not possible using standard BAPI,however,you might explore an alternate enhancement option if that suits your scenario.

1) please check if BADI -> MB_BAPI_GOODSMVT_CREATE is triggering in your case.

2)Then implement the BADI method,you will have EXTENSION_IN where you can pass the supply_vendor details

3) Inside this method write business logic/code and populate CT_IMSEG -LLIEF filed and check the result.

Regards,

Avik

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Dear Avik Mazumder,

Thank you for your relpy.

I checked above link posted by Jurgen L.

I found there is no function of supplying vendor LLIEF in table IMSEG and there given one alternative solution in above link, I can update EKBZ table with new freight vendor because after GR creation in MIGO the freight vendor data is saving in EKBZ table.

I want to know, if I will update freight vendor data at table level based on GR no. is there any table performance issue ?

Thanks

sandeep

0

Hi,

I read that link too. My understanding of the link is as below:

1) The link does not give any solution about automated interface IDOC or RFC based BAPI call to handle freight vendor.

2) It tells about standard MB01 or MIGO transaction process,and there how it can be achieved.

3) It talks about config pre-requisite for MB01 or MIGO

4) It talks about effect/End result : as EKBZ table will get updated.---all these though dialogue mode.

Now in case of your requirement you can not update EKBZ directly from within BADI,it has consequence and not at all suggested approach to directly update the DB table.

Regards,

Avik

0

Dear Avik,

I have created a GR use of RFC BAPI_GOODMVT_CREATE and its already passing supplying vendor data in table-field MSEG-LLIEF.

If I implement BADI--> MB_BAPI_GOODSMVT_CREATE and will pass freight vendor data in extension CT_IMSEG -LLIEF then it will may be overwrite the supplying/main vendor data.

Please suggest me to resolve this issue.....

Thanks

sandeep

0
sandeep patel Jul 15, 2017 at 10:29 AM
0

Any Replies ??

Share
10 |10000 characters needed characters left characters exceeded