cancel
Showing results for 
Search instead for 
Did you mean: 

Outbound IDOC - Basic Type MBGMCR04 - not working

02-15-2021 11:08 PM
2764 views 6 comments
0 Likes
SAP Managed Tags
Subscribe

Hello,

I have searched the forum and could not get the correct steps.

Scenario: Create outbound IDOC to external system via DRF function for Method MBGMCR04 - Inventory Movement/Material document creation.

So far I have configured the following steps.

In DRFIMG, the following config is in place.

Logical system is configured ( other idocs type are getting generated)

Define Business system - Assigned "business object 467" to logical system

Outbound implementation: 467_1

Define Business Object setting: Business Object 467 assigned to Message Type MBGMCR

WE20- Partner profile for Logical system configured configured with Basic type and message type - MBGMCR and MBGMCR04. Collect IDOC, port,,

In BD64: Distribution Model, Add Bapi

Object name: GoodsMovement

Method name: CreateFromData

Method: MBGMCR

After doing MIGO good movement I don't get the IDOC.

Tried SLG1, and system gives error "Could not determine recipients for message type INVCON"

Could not understand why system is looking for Message type INVCON when I have assigned method MBGMCR04 in the first step " define business object setting"

Any help would be appreciated!

Also checked the SAP Help https://help.sap.com/saphelp_me60/helpdata/EN/7f/fbd6ec26ab423abe5c8e601fa1b21a/content.htm?no_cache...

Thanks

Jeraad.

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member197616
Active Contributor
0 Likes

Hi,

Pleasew check if the preceeding doc is based on GR based Inv Ver

Regards

Former Member
0 Likes

Hello Tuncay,

The business object 467 is coded with message type INVCON in the class CL_MES_DRF_GOODSMOV.

So we need a new ZClass which would call the message type MBGMCR04.

TuncayKaraca
Active Contributor
0 Likes

Hello Jeraad, it sounds you are doing some progress. Good luck!

Former Member
0 Likes

Hello Tuncay,

By doing simple config of DRFIMG/ distribution model/partner profile, I can generate the INVCON message IDOC for a " Material Document" which is saved.( for any movement type!)

I CANNOT create IDOC for the message type MBGMCR.

I just need basic step to create the IDOC when a "Material Document" is saved using basic type MBGMCR04 and method MBGMCR.

I'm passing the details to Add BAPI in BD64 -> Method CREATEFROMDATA, Message type: MBGMCR

and in DRFIMG i'm passing BO 467_1.

SLG1 give appropriate analysis.

Any help would be appreciated.

TuncayKaraca
Active Contributor
0 Likes

Hello Jeraad, I am sure you had already searched; check out MBGMCR04