Skip to Content

How to pass extension data in BAPI_GOODSMVT_CREATE.

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Jul 13, 2017 at 05:43 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 14, 2017 at 05:33 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 16, 2017 at 10:17 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 17, 2017 at 05:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Jul 15, 2017 at 10:29 AM

    Any Replies ??

    Add comment
    10|10000 characters needed characters exceeded