cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with object context

Former Member
0 Kudos

Hello,

I've one IDOC for two interfaces. Both interfaces are IDOC-JDBC, they have in common a interface determination and receiver determination.

I read in this forum that i must use the object context for tell what interface must execute. But I don't know how to create this Context Object.

I create the two Context Object and I inform one of them in MESCOD field of the IDOC in one of the message interface, and the other in other message interface.

When I execute the transaction that invoque the IDOC, in Monitoring I see 3 lines, one with 2 interfaces, another one with one of the interfaces and the last with the other interface.

It will generated only one lines with the interface that verify the condition,

What it is doing wrong?

Thanks very much,

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

You cannot assign a context object to IDoc.

So instead use xpath in your case. Ref the below links to help you.

Receiver Det- Xpath:

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

XPATH in Interface Det:

/people/suraj.sr/blog/2006/01/05/multiple-inbound-interfaces-within-a-service

Answers (3)

Answers (3)

siddhesh_pathak4
Contributor
0 Kudos

Hello,

Verify if you have defined the context objects as suggested in below link,

[http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm]

Former Member
0 Kudos

Hi,

i think you will not be able to use context object in the case of IDOCs in PI7.1 because when you declare context object you have to attach the context object to a node in the msg interface.......but since in IDOC you are having the IDOC structure as the msg interface ifself, so i think you will not be able to attach your context object in ESR to your IDOC structure..........

now if you want to have conditional recever determination, then in condition editor, you can navigate in your IDOC struc to the MESCOD field, choose operator as equal to sign and in right operand have the value of MESCOD field........then in the right side add your correspondign business system...

then try to run your scenario again.

Regards,

Rajeev Gupta

Former Member
0 Kudos

Rather creating Context Object, go for conditional Interface Determination there you can give the conditions. Based on those condition respective interface mapping will be triggered.