Skip to Content
0
Former Member
Sep 15, 2017 at 05:24 PM

HCI Task to load Planed Ind Reqts into S/4 using BAPI Web service not giving correct results

244 Views

Hello,

We are facing a issue with regards loading of Planned Independent Requirements from IBP to S/4 using BAPI_REQUIREMENTS_CREATE as a webservice.

We have been able to successfully execute the HCI task withone product and one location as filter. But when i execute the task with multiple locations for one product, the PIR's are getting summed up across all locations and puts in the same value (summed up value) across all the locations.

For e.g. Lets assume Product 1001201 has 2 locations AB01 and AB02.

Following is the CONSENSUSDEMANDPLANQTY in weekly buckets;

pirs-same-total-quantity-posted-across-all-locatio.jpg

We believe that there is an issue with the mapping of the iteration rule, since there are 2 repeatables in the BAPI Webservice XML Map, but we can only map the same iteration rule at the top level and at Item level.

Pl find below the dataflow with webservice;

pir-data-flow-with-webservice.jpg

In the webservice payload step, we have to define 2 iteration rules - One at top level

pir-data-flow-webservice-payload-iteration-rule-1.jpg

And 2nd Iteration rule at RequirementsScheduleIn - Item level

pir-data-flow-webservice-payload-iteration-rule-2.jpg

Since there is only one Input structure, we can map the same input repeatables to both on the right side repeatables.

I even tried to create 2 repeatables on the input side, but it still didn't work.

Has anyone experienced this and if so what is the resolution?

Appreciate your help in advance.

Thanks,

Mangesh