Skip to Content
avatar image
Former Member

idoc to web services

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 01 at 03:50 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 04 at 08:00 AM

    Hi Sikander ,

    Thank you for Your reply

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

    Thanksℜgards,

    Naveen

    Add comment
    10|10000 characters needed characters exceeded

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

    Dear Sikander,

    Thank you for your Help My issue Got Resolved.

    Thanksℜgards

    Naveen

    Add comment
    10|10000 characters needed characters exceeded