Skip to Content
0

idoc to web services

Mar 01 at 09:15 AM

54

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sikander Narula
Mar 01 at 03:50 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 04 at 08:00 AM
0

Hi Sikander ,

Thank you for Your reply

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

Thanksℜgards,

Naveen

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0
avatar image
Former Member Mar 07 at 12:57 PM
0

Dear Sikander,

Thank you for your Help My issue Got Resolved.

Thanksℜgards

Naveen

Share
10 |10000 characters needed characters left characters exceeded