Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9369

When using batch request, the bapi functionality is undesirable.

$
0
0

Hi Geeks,

 

I am creating a netweaver gateway service for Physical inventory cycle count.

For entering the count i an using the BAPI_MATPHYSINV_COUNT.

 

After entering the count, when we check in the table IKPF, we can see that the Count Status field gets updated.

'X' -- count completed.

'A' -- partially counted.

 

The problem which i am facing is that,

consider the physical inventory material document has 3 material to be counted,

 

I am using a batch request for entering the count when multiple materials are to be counted.

In each changeset i have a PUT request with details of a single material count.

 

When i am updating the count for all 3 material in a document in one go,

the count status as i mentioned earlier is reflected as 'A' which means partially counted.

But all the counts are succesfully entered.

In the actual scenario, the count status should have been reflected as 'X' since we have entered count for all materials.

 

Note: In the above case when i update the count for 2 materials in one request and the remaining one in another request, the count status is correctly populated as 'X'. The mentioned problem is also not present when the document has a single material in it.

 

please throw some suggestions on this to achieve it.

 

Thanks & Regards ,

Naseem VP.


Viewing all articles
Browse latest Browse all 9369

Trending Articles