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: 

Does IDOC extension has impact on existing applications/programs?

Former Member
0 Kudos

Hello,

In my in this case all is custom objects, FMs, IDOC, report.

We have already there is a IDOC creation/populating (1)interface report program and we also have a this IDOC posting to appilication (2)FM in our system.

Now, i need to add a additional new custom segment as a child segment to the exsting parent custom segment.

Actually, here the parent segment is also a child segment to a existing grand-parent segment.

Pls. let me know is my change (addiing a new child segment) does have any impact on existing above (1)&(2) items?

Thank you

1 ACCEPTED SOLUTION

Subhankar
Active Contributor
0 Kudos

This depends on your business requirement.

Obviously you need to make the child segment not mandatory. Also you need to take care the processing logic of this idoc. I am giving you an example.

Header segment: contain Business partner (label 1 segment)

Child segment: BP Address Data (label 2)

Next child: BP Email IDs (Label 3)

Here if any BP don't have Email ids the nothing need to pass on this segment also no need to add this segment to IDOC data..

Similarly for your case if nothing required to pass then don't pass and also need to change the processing logic so that if nothing pass to this segment it should work fine..

Thanks

Subhankar

4 REPLIES 4

Clemenss
Active Contributor
0 Kudos

Hi Raju,

it depends on (1)&(2) items as mentioned.

I'd expect the new segment is ignored.

Why don't you create new segment in development/sandbox system an try?

Regards,

Clemens

Former Member
0 Kudos

Pls. eloborate that in what scenarios it will depend?

Thank you

Clemenss
Active Contributor
0 Kudos

Raju,

I do not know the existing IDOC structure

I do not know the existing creation/populating interface report program

I do not know the existing IDOC posting to application FM

I do not know your system

so it is almost pure speculation.

If the creation/populating interface report program uses the segment structure definition, it might expect data for the new segment. If the new segment is not defined as obligatory, this should do no harm.

If the posting to application FM reads data in the new segment, it will probably not know how to handle this situation. The well formed program will raise an error and stop processing. If the FM detects the new structure in IDOC hierarchy definition and handling of the segment is not defined, same thing may happen - or not.

In your case, tests and program analysis will help more than speculative questions and respective answers.

Regards,

Clemens

Subhankar
Active Contributor
0 Kudos

This depends on your business requirement.

Obviously you need to make the child segment not mandatory. Also you need to take care the processing logic of this idoc. I am giving you an example.

Header segment: contain Business partner (label 1 segment)

Child segment: BP Address Data (label 2)

Next child: BP Email IDs (Label 3)

Here if any BP don't have Email ids the nothing need to pass on this segment also no need to add this segment to IDOC data..

Similarly for your case if nothing required to pass then don't pass and also need to change the processing logic so that if nothing pass to this segment it should work fine..

Thanks

Subhankar