cancel
Showing results for 
Search instead for 
Did you mean: 

idoc to web services

Former Member
0 Kudos

hi experts, from sap system am getting multiple company codes ,in idoc structure but target sytem of webservice

occurrence is (1,1)parent node as child node while am sending data to web services only one company code is reaching to web services

from pi how i can achieve to send all company codes to web-services when the occurrence is(1,1)

could any one help me its will be truly appreciable

Thanks in advance.

Regards,

Naveen

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Sikander,

Thank you for your Help My issue Got Resolved.

Thanksℜgards

Naveen

Former Member
0 Kudos

Hi Sikander ,

Thank you for Your reply

Could You Please help me on udf Code For Example to use

Thanksℜgards,

Naveen

former_member272234
Active Participant
0 Kudos

Dear Naveen

Kindly check the below blog

https://blogs.sap.com/2008/12/08/context-and-queue-in-message-mapping-udf/

Thanks and Regards

Sikander

former_member272234
Active Participant
0 Kudos

Dear Naveen

In this case, target web service is developed to accept 1 Company node per message.

Even if you send all the company code to target webservice, message may fail in the target system
If you still want to send all the company codes to 1 node, you can use the following approach:-

  • create a udf, input to this udf will be the IDOC node which is having all the company codes.
  • implement "for loop" which will loop through all the company codes from the input IDOC node.
  • concatenate the company codes using "," and return the concatenated value
  • map the udf to the web service company code field

Thanks and Regards

Sikander