Skip to Content

Remove Segments from Target IDOC

Hello Gurus.

I have an XML -> PI -> IDOC(Orders05) scenario. One of the requirements is not to create line segment (E1EDP01) if the material does not much a Certain criteria.

I've managed to achieve this for every source line seperatlly with RFCLookup(For requirement check) and createif function, the problem for me is that it creates multiple calls to the RFM.

My question is whether this could be achieved by calling the RFM only once with all the materials and then removes segments according to the result?

And if it can be done, I would really appreciate some help and direction with the mapping.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 25, 2015 at 12:54 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Hi Gal,

      If you are unable to split it back to lines from the RFC call please correct me if i am wrong, can you put this UDF after the RFC lookup and see.

      public void fixList(String[] input, ResultList result, Container container) throws StreamTransformationException {
              for (int i = 0; i < input.length; i++) {