Application Development 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: 

How to extend Generated Idoc types?

narabio
Explorer
0 Kudos

I want to create Idoc type ZMRESCR01 as an Extension of Basic Idoc type MRESCR01.

I have created the Segments that I want to add to the Basic type using transaction WE31.

When I try to extend the Basic Idoc type with transaction WE30, the error message "Action is not possible for generated idoctypes" appears.

In Note 913901, I have read that I can extend this Basic type using transactions BDFG and BDBG, but I can't find any documentation about how to do it.

Can you point me to any documentation or show me how to extend Generated Idoc types?

Reward points are waiting for responses.

5 REPLIES 5

Former Member
0 Kudos

i nthink u might be entered in some wrong way..

go to WE30, give the idoc type MRESCR01, select extension and click on create.

try this...

narabio
Explorer
0 Kudos

Hello,

I will answer my own question.

After sending an OSS note to SAP, this is what they answered (my words):

The error is not that in most recent releases extension of generated Idoctypes is not allowed. The error is that in previous versions it was possible to extend such Idoctypes!

In fact, Note 913901, corrected this error. So, what you have to do if you want to extend this Idoctype is:

1. Copy the BAPI of the method I want to extend (For me, it is BAPI_RESERVATION_CREATE) and modify it, adding the new fields.

2. Use transaction BDBG to create a new ALE interface. Then a new Idoctype, new Inbound and Outbound Function Modules and new Message will be created for my new BAPI.

This is the Note I created: 0001040039.

As for the documentation on transaction BDBG, they provided me a link to the Sap help:[http://help.sap.com/saphelp_nw70/helpdata/en/78/21740f51ce11d189570000e829fbbd/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/78/21740f51ce11d189570000e829fbbd/frameset.htm].

I hope this helps someone,

Narcís Abio

Former Member
0 Kudos

Hi Narcís Abio,

I have a smiler requirment. I need to Create extension for the PROJECT01.

I am getting a Error  "Action is not possible for generated idoctypes" appears.

can yo answer the following doubts.

1)How to get the BAPI of the method ( Becasue i am new to IDOCS)

2) IF u can explain in breif that how to use BDBG and BDFG Tcodes

Thanks in advance

Regards,

Shekahr

Former Member
0 Kudos

Hi Shekhar,

I've got a similar requirements as yours:

- Create a copy of BAPI_PROJECT_SAVEREPLICA

-  Add TABLE parameter EXTENSIONIN TYPE BAPIPAREX( This will let us fill our custom fields )

- Add your code to fill custom fields

- Make a copy BOR 'BUS2054', add your COPY bapi in the method 'SaveReplica'

- Save and generate

- Go to transaction BDBG Enter your copy BOR object and method 'Savereplica' and click on create

  A new Message Type and IDoc type will be created.

http://saptechnical.com/Tutorials/LSMW/BAPIModify/Main.htm

http://help.sap.com/saphelp_46c/helpdata/en/c3/4099ac8b8911d396b70004ac96334b/content.htm

http://help.sap.com/saphelp_46c/helpdata/en/6b/3f6d136d0711d396a50004ac96334b/content.htm

Regards,

Bernard