2015 Sep 03 9:22 AM
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.
2015 Sep 17 11:21 AM
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.
2015 Sep 04 3:35 AM
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
2015 Sep 08 2:18 PM
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.
2015 Sep 09 12:22 AM
Hello Linto Jose,
Please refer also to the Wiki documentation:
Regards,
David
2015 Sep 09 10:52 AM
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.
2015 Sep 17 11:21 AM
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.