cancel
Showing results for 
Search instead for 
Did you mean: 

Determining the Mapping at runtime

Former Member
0 Kudos

Hi,

iam doing IDOC to file scenario

I have two message mappings in IR with Single IDOC at source side and the Target side structure will be varies.

I have mapped source IDOC------Target Structure1

source IDOC------Target Structure2

Similarly i have done 2 interface mappings

In ID

1) Created 1 Receiver channel

2) 1 receiver determination

3) 2 Interface determinations

4) 2 Receiver agreements

In Interface determination i have place the condition on one of the incomming payload field as if that value is = 1 means first mapping shld execute

If value =2 means second mapping shld execute.

Then iam getting this error in MONI

<SAP:Code area="IF_DETERMINATION">NO_IIF_CASE_ASYNC</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Unable to find an inbound interface</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

Regards

Suman

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Ans

Former Member
0 Kudos

Hi Suman,

in SXMB_MONI for this msg, just check the inbound msg payload.......see the value for your field in the incoming msg........have you specified this value in your receiver determination............you do not have to use double quote in recever determination condition but just the value and the value should be exactly same with no difference...........i think your values are different......just give the same value and restart your msg in SXMB_MONI, then your this error should be removed.

Regards,

Rajeev Gupta

Former Member
0 Kudos

Hi,

This is Strange issue

The scenario is IDOC to file

When i sent the message from RWB -


IE

By giving the values like Sender service , Receiver service,

Interface as -


Sender Interface

Namespace as -


IDOC namespace

The Above mentioned error is comming

If i changed these two as

Interface as -


Receiver Interface

Namespace as -


Name of the namespace which we have for the scenario in IR

Then now in MONI it is showing success

Iam a little bit confusing abt this.

Please clear this

Regards

Former Member
0 Kudos

Hi,

But if I Test the config from the Test Tool in ID means Interface det and error is comming

Regards

Suman

Former Member
0 Kudos

Suman,

The conditions look good to me. Make sure there are no extra spaces in either the condition editor or the source message. Check this by going to SXMB_MONI and open the payload, right click on this and say view source and check for extra space.

>>Interface as -


Sender Interface

I guess you are giving the IDOC name here. If you are using any Outbound Interface, avoid this and give the IDOC name directly.

Regards,

Jaishankar

Former Member
0 Kudos

Hi Jai,

I have checked the payload for spaces, there no spaces.

First of all i want to get the success in ID by doing the Config Test using the Test tool.

Here iam not getting success.

iam getting the error at Interface determination.

In IDOC to File scenario I took the inbound message from Mapping to trigger from RWB---IE

One more doubt is what is the *interface and Interface namespace * we have to give in this case???

Regards

Sum

justin_santhanam
Active Contributor
0 Kudos

Suman,

If you are triggering messages from RWB then you must give,

Outbound Interface, Outbound Interface namespace and Sender Service.

raj

Former Member
0 Kudos

Try to send the message from RWB and check.

Sender Service : Your Sender Service

Sender Interface Name : IDOC Name

Sender Interface namespace : IDOC namespace (standard)

Regards,

Jaishankar

Former Member
0 Kudos

Hi Jai,

I have given as u said only. Then only iam getting the Error like

<SAP:Code area="IF_DETERMINATION">NO_IIF_CASE_ASYNC</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Unable to find an inbound interface</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

If i mentioned the following details means , it is giving the success in MONI

Sender Service : My Sender R/3 Business Service

Interface Name : Inbound Interface which i Created for File Service

Interface namespace : Namspace which i created in IR

Regards

Suman

Former Member
0 Kudos

>>>Interface Name : Inbound Interface which i Created for File Service

Interface namespace : Namspace which i created in IR

Interface name should be the IDOC name and name space name should be the IDOC name space.

You should not give File (Inbound) Interface name and Namespace,

Regards,

Jaishankar

Former Member
0 Kudos

Hi,

Okay Jai.I will agree with you.

But what abt the Error which iam getting now??

What will be the Solution

Regards

Suman

Former Member
0 Kudos

Hi Jai,

And one more info is i have the field name in IDOC as TCODE.

But i didnt mapped this Field in any of the mapping???

Is this will impact any thing??

If we have to mapp means to which field we need to mapp that in the target side???

Regards

Suman

Former Member
0 Kudos

Hi,

But in the mapping iam filling that value manually and passing the values according to the condition and i havent mapped that in mapping

Regards

Suman

Former Member
0 Kudos

>>But i didnt mapped this Field in any of the mapping???

Is this will impact any thing??

No. It is not necessary you should map the node to any target fields. It is enough if your source IDOC has the correct value.

The only possible reason I can guess is Object not activated or CPA cache failure.

Regards,

Jaishankar

Former Member
0 Kudos

Hi,

Iam sure abt that i have activated all Objects.

We will look into the CPA Cache.

How to do this and how this will function in this sceanrio . can u tel me

What is the URl for this CPA Cache

Regards

Suman

Former Member
0 Kudos

Hi Jai,

When i tested the other scenaris using the config test tool . iam getting success.

When i tested this scenario which iam having the conditions on Interface determination is geeting error.

Please let me know the Sol

Regards

Suman

Former Member
0 Kudos

Hi,

It has been solved by self.

When i trigger the IDOC from R/3 means its giving success where as if i triggered the message from RWB means its giving the error.

Regards

Suman

Former Member
0 Kudos

>>It has been solved

Glad to hear.

>>When i trigger the IDOC from R/3 means its giving success where as if i triggered the message from RWB means its giving the error.

This is not possible unless you enter the payload differently than when the IDOC is triggered from the R/3.

Regards,

Jaishankar

Former Member
0 Kudos

Hi Jai,

Yes mee too though like that only

Regards

Suman

Former Member
0 Kudos

Suman,

Your Interface determination object is failing. It can be due to

1. The source data value is neither 1 nor 2.

2. Your Interface Determination object is not activated/ refreshed in CPA cache.

3. You have given some wrong paramters while creating Interface Determination. Check the Sender service/interface/namespace and Receiver service details for this object. This should be exactly the same as what you have given in Receiver Determination object.

Regards,

Jaishankar

Former Member
0 Kudos

Hi Jai,

i have created only one receiver determination and two interface det's with conditions

Is this process is right to call the one of the mapping at runtime based on the condition???

do we need to place the condition value with in the Double quotes???I tried this also

I have provided the value 1 in the payload which is taken from Message maping Test tab

Or else do we need to use Enhanced det in this case???

Regards

Suman

Former Member
0 Kudos

Hi Jai,

Do i need to create the condition in Receiver determination or Interface determination to call the right mapping at run time based on the input values

Regards

Suman

Former Member
0 Kudos

>>have created only one receiver determination and two interface det's with conditions

Is this process is right to call the one of the mapping at runtime based on the condition???

Yes. You are in the correct track.

You dont need any Enchanced Interface Determination for this. That is for a different purpose.

Only the condition is failing. Usually I give the values without any quote in the condition editor. It works.

Can you send screen shot of Receiver Determination and Interface Determination to my mail Id? You can find my id in my Business card.

Regards,

Jaishankar

Former Member
0 Kudos

Hi Jai,

I have send it , please look into that

Regards

Suman

Former Member
0 Kudos

Hi,

We cant specify conditions in Interface Mapping, we have to do it in Receiver determination. But here you have the same target system but different mapping program has to be executed. It should be possible in enhanced Receiver determination where we can specify dynamic Interface determination in other words dynamic Message Mapping. How to configure Enhanced Receiver Determination?

For this, have a look at below line which is posted in SAPTECHNICAL.COM by one of my friend. Surely, you will get it.

[Enhanced Receiver Determination|http://saptechnical.com/Tutorials/XI/RecvDetermination/Enhancement.htm]

P.S: reward some points if it is helpful.

Thanks,

Vijay Kumar T.

Former Member
0 Kudos

>>We cant specify conditions in Interface Mapping

Are you sure about this? Please refrain from giving wrong ideas.

Regards,

Jaishankar

GabrielSagaya
Active Contributor
0 Kudos

First of all did you create Interface Mapping -:)

Check if you have given the interface mappings in the interface determination. This should get reflected in the receiver determination. Also, Check if you have given the right interfaces wherever necessary...inbound, outbound, etc.

Make sure in repository there is an active interface mapping for the inbound interface.

Former Member
0 Kudos

Hi,

Yes, i have done the 2 interface mapping correctly only.

i have selected the correct MI's and MM's for the corresponding Interface mappings.

In the interface det also i have selected those according to the condition placed only

Regards

Suman

Former Member
0 Kudos

i thinkyou need to specify the mapping program name in the enhanced interface determination,even though you maintained a condition

note:reward points if solution found helpfull.....

regards

chandrakanth.k

Former Member
0 Kudos

hi

try applying OSS note 787484

regards

krishna