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: 
Read only

Changes to custom Idoc and BAPI

Former Member
0 Likes
1,586

Hello Ladies and Gentlemen,

I have developed a custom inbound BAPI (ZBAPI_UPDATE_DELV_TIMESEG) and Idoc (ZDELEVNTUPD)for my client, which has been released and tested successfully. However, the client would like to add 3 new fields to the inbound Idoc. I have modified the BAPI - no problem, but because the idoc segments have been released, I am unable to a) add fields to the idoc segment (ZDELEVNTUPD01) and b) get the idoc function module (ZIDOC_INPUT_ZDELEVNTUPD) to regenerate with the new import parameters of my modified BAPI (ZBAPI_UPDATE_DELV_TIMESEG).

I would approciate any suggestions on how to get the Idoc Function regenerated, and any further thoughts on how to modify the idoc segments.

Points will be awarded.

Cheers,

Steve

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,377

Hi,

You can cancel the release for your idoc and then you cancel the release of your segments and you can modify the segments. the changes will be affected in the idoc.

Afterwards again release your segments and idoc.

Procedure to cancel release for idoc:

Go to WE30.

And take the menu path EDIT->cancel release

Procedure to cancel release for segment

Go to WE31.

And take the menu path EDIT->cancel release

I hope it is helpful.

Reward points if you find it helpful.

Regards,

Prasanna

Hello Ladies and Gentlemen,

I have developed a custom inbound BAPI (ZBAPI_UPDATE_DELV_TIMESEG) and Idoc (ZDELEVNTUPD)for my client, which has been released and tested successfully. However, the client would like to add 3 new fields to the inbound Idoc. I have modified the BAPI - no problem, but because the idoc segments have been released, I am unable to a) add fields to the idoc segment (ZDELEVNTUPD01) and b) get the idoc function module (ZIDOC_INPUT_ZDELEVNTUPD) to regenerate with the new import parameters of my modified BAPI (ZBAPI_UPDATE_DELV_TIMESEG).

I would approciate any suggestions on how to get the Idoc Function regenerated, and any further thoughts on how to modify the idoc segments.

Points will be awarded.

Cheers,

Steve

5 REPLIES 5
Read only

Former Member
0 Likes
1,378

Hi,

You can cancel the release for your idoc and then you cancel the release of your segments and you can modify the segments. the changes will be affected in the idoc.

Afterwards again release your segments and idoc.

Procedure to cancel release for idoc:

Go to WE30.

And take the menu path EDIT->cancel release

Procedure to cancel release for segment

Go to WE31.

And take the menu path EDIT->cancel release

I hope it is helpful.

Reward points if you find it helpful.

Regards,

Prasanna

Read only

0 Likes
1,377

Thanks Prasanna,

Unfortunately, I have tried doing this. After I cancel the release on WE30 and WE31, I go to modify the WE31 segment and get the error message 'Segment Type Z1ZDELEVNTUPD cannot be changed'. A further drilldown on this message reveals the message 'Segment type Z1ZDELEVNTUPD is flagged as generated'. I suspect that this is because the Idoc Message and Type have been generated/activated via BDBG.

I need to get the segment 'ungenerated' before I can make the changes and try to regenerate again.

Any thoughts.

Cheers,

Steve

Read only

0 Likes
1,377

Hi Stephen,

For this U need to extend business object because its generated based on busineess object.

Use the transactions BDBG and BDFG.

Rgds

Sree M

Edited by: Sree M on Mar 27, 2008 11:13 AM

Read only

0 Likes
1,377

Thanks Sree - BDFG was the solution I needed.

Thanks for your help.

Read only

Former Member
0 Likes
1,377

Hi ,

Goto WE30 Provide your custom basic type ,in the menu select Edit and go for Cancel release . Now u can change

. To add fields any segment go to WE31. same Navigation.

I hope it resolve problem . Please let me know if u have any Query.

Rgds

Sree m