cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to load 2 External Definition in Message Mapping

nirmalkumar_v
Participant
0 Kudos

Hi Everyone,

I have to map 2 messages to an idoc.  One message is the header and the other is Line item.  Two WSDL has been provided to me by the salesforce team.

Both the WSDLs are in synchronous format.  Meaning they contain both the notificationsRequest and notificationsResponse. 

Now When i load the 2 notificationsRequest in Source side of the message mapping.  Both the structures are reflecting as either header or lineitem.

i am unable to load both the structures.

Is it because both the External message have the same name notificationsRequest ?  The data structure is different inside both the EDs.  Has anyone experienced this issue ? Is there any work around to this?

Thanks,

Nirmal.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Nirmal,

Please try creating two different message types(namely Header, Line) using these external definitions and in message mapping use message types instead of EDs.

Hope this helps !

Cheers

Bibek

suchitatomar
Participant
0 Kudos

Hi Bibek,

I had posted my content to  link https://scn.sap.com/thread/3866250

but giving "Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here."

Dont know y but can someone help me here please as requirement is very urgent.

Former Member
0 Kudos

Hi Tomar,

Tried accessing your post: https://scn.sap.com/thread/3866250 but getting an error message. I would suggest to check your profile, may be the post is up for moderation before being published. This should give you an idea.

Meanwhile please ask a moderator about your post (if above is the case), else create a fresh one.

Thanks

Bibek

suchitatomar
Participant
0 Kudos

Thanks Bibek for help. Appreciate it..!!

I have posted again query to link

Please have a look and provide your inputs.

Regards

Tomar

suchitatomar
Participant
0 Kudos

Hi All,

I have one requirement for a sync scenario in which for below fault message we have 2 external defination coming whenever there is a wrong data request for a WS.

so can any one help me ,how we can handle 2 ext def in message mapping for same target fault message typ.


Also i tried to add two ext defination in signature tab but itz not working as at a time we can have only one source external def.


PFB screenshot for reference:-

some logic to change this to ServiceError( 2nd external Definition Name) in case 2nd ext definition is send and rest the target structure is same.

Its just that, we are getting two types of external definition so the one which is there in message mapping(selected) runs successfully for other it gives us mapping error.

Help me with the logic to handle such kind of situation

Your quick response shall be highly appreciated.

Former Member
0 Kudos

Hey Tomar,

Please create a fresh thread to post your question and do not add them onto existing ones.

Cheers
Bibek

suchitatomar
Participant
0 Kudos

Thanks Bibek..!! I have created thread . Request you to please help what can be the possible solutions.

iaki_vila
Active Contributor
0 Kudos

Hi Nirmal,

May be the best solution is to do two scenarios SOAP to Proxy, In the proxy code when you have the second message you could generate the IDOC. In this way you shoul store the first message on a Z table and when second message arrives you read the first message and with the second you will generate the IDOC from the proxy code, what do you think?

Another thing,  and per the name of the WSDLs, are you sure that you are really getting two messages?, it seems the notificationsRequest will be used as outbound message for you sender interface and the notificationsResponse as the inbound message for you sender  interface, may be im wrong but you should clarify this.

Regards.

nirmalkumar_v
Participant
0 Kudos

Hi Inaki,

kindly refer the below image. PA_ID and PA_LItem are the ED names of the saved WSDLs.

Thanks,

Nirmal.

former_member186851
Active Contributor
0 Kudos

Nirmal,

If there is way why don;t you change the name of WSDL like Notification_Header and Notification_Line and try

Harish
Active Contributor
0 Kudos

Hi Nirmal,

AFAIK - you can only load on message/structure to the source side of message mapping. in your case you need to create two message mapping for two structure.

regards,

Harish