Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error while extending idoc type MBGMCR03

0 Kudos
2,217

Hi experts,

I want to add few fields in segment E1BP2017_GM_SERIALNUMBER. For this I have created a custom segment with the fields which are needed to add. Now when I proceed with extending idoc in WE30 for the idoc type MBGMCR03, I am getting an error "Action is not possible for generated idoc types". Please help.

Thanks & Regards,

Linto Jose.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
802

Hi Linto,

Create a structure in SE11with the fields which you want to extend in IDOC MBGMCR03.

Now pass that structure name in the first field of the table parameter extension of BAPI_GOODSMVT_CREATE,

i.e., Structure and pass the values in the second field onwards of the table parameter extension. You should include maximum field values from first value field onwards.

5 REPLIES 5

DavidLY
Product and Topic Expert
Product and Topic Expert
0 Kudos
802

Hello,

Generated either means an ALE message type interface is generated for a BAPI (via ta BDBG) or for an own function module (via ta BDFG). Generated IDoc types cannot be changed manually and you are not allowed to create own enhancements/extensions. Please also take a look at
SAP note:
913901 WE30: Rejecting extensions for generated IDoc types


You need to extend the BAPI - not the IDoc. This is how: Create an own BAPI sub-type including your new fields and afterwards create an own new ALE interface via tx BDBG. This will lead to a new IDoc type. Automatically all relevant objects like the ALE inbound function module are created. You can find the documentation for these transactions in the following links:

For BDFG:

http://help.sap.com/saphelp_nw70/helpdata/en/00/a814b5d05b11d6b2ca00508b6b8b11/frameset.htm

For BDBG:

http://help.sap.com/saphelp_nw70/helpdata/en/78/21740f51ce11d189570000e829fbbd/frameset.htm

Regards,

David

0 Kudos
802

Hi David Liu,

Thanks for your reply.

As you said the required bapi is BAPI_GOODSMVT_CREATE. How to extend this bapi with the four fields?

Regards,

Linto Jose.

DavidLY
Product and Topic Expert
Product and Topic Expert
0 Kudos
802

Hello Linto Jose,

Please refer also to the Wiki documentation:


http://wiki.scn.sap.com/wiki/display/ERPSCM/How+To+Goods+Movements+with+BAPI?original_fqdn=wiki.sdn....

Regards,

David

0 Kudos
802

Hi David,

I created a custom BAPI by copying BAPI_GOODSMVT_CREATE. Then I added the fields in EXTENSIONIN parameter of the custom BAPI by appending the structure with the fields I needed to extend in the IDOC type MBGMCR03. Then I generated the IDOC type and message type in BDBG transaction after creating the object type in SWO1 transaction. I could generate the IDOC type and message type, but there was an inconsistency in the corresponding segment of the BAPIPAREX structure which I extended. So the fields which I added in BAPIPAREX structure were not there in corresponding segment of the generated IDOC. What do you mean by extending BAPI? Is it appending the structure in EXTENSIONIN parameter of the BAPI as I did?

Thanks,

Linto Jose.

Former Member
0 Kudos
803

Hi Linto,

Create a structure in SE11with the fields which you want to extend in IDOC MBGMCR03.

Now pass that structure name in the first field of the table parameter extension of BAPI_GOODSMVT_CREATE,

i.e., Structure and pass the values in the second field onwards of the table parameter extension. You should include maximum field values from first value field onwards.