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: 

Change Segment name in IDoc user-exit / badi

Former Member
0 Kudos
882

Hello Guys,

I have a situation wherein I need to change the source system of an existing Idoc processing. So, I need to define the Idoc type on this new source system. However, I cannot define one specific segment in the Idoc type because of name space constraint. So, I was thinking of a possibility to change the segment name during runtime of outbound processing via a User exit/ Badi / or some standard conversion table. In this way, I could avoid changes on the receiving system

Is it possible to change the segment name during outbound processing of an Idoc ?

Thanks for your help.

6 REPLIES 6

Former Member
0 Kudos
490

Hi Fayaz,

You question is not clear. Are you trying to modify the extension IDOC type custom segment name?

Thanks,

Venkat

0 Kudos
490

Yes, I am trying to change the segment name of the extension Idoc type. I would like to know if it's possible to do so by some customizing or via a user-exit/ badi ?

Thanks,

Fayaz

0 Kudos
490

Hi Fayaz,

For the outbound or inbound IDOCs, there will be a function module associated. In that function module, SAP provides with few customer user exits. Go to that function module and search with 'Call customer-function' and you will find few customer exits. Try to find the correct user exit which has the table segment structure (EDIDD). If you are able to find this, implement the exit and try to modify the custom segment of your extension idoc type. You cannot change the standard segment names.

Thanks,

Sandy

0 Kudos
490

Hi Sandeep,

Thanks for your reply.

I use the function "MASTER_IDOC_DISTRIBUTE" to send the Idoc. I see that there is only one user exit which is provided to change the control record.But, I do not see a user exit to change the Idoc data record.

Regards,

Fayaz

former_member205763
Active Contributor
0 Kudos
490

I dont think you can change the name, it would lead to inconsistency,

0 Kudos
490

This message was moderated.