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

Document status (BSTAT) in 0FI_GL_14 datasource

$
0
0

Hi,

 

I have a reporting requirement for customer ageing with profit centers. Due to customer along with profit centers i can not use 0FIAR_C03 for reporting as it does not have profit center.

 

0FI_GL_14  has all the required fields for my reporting except the document status, it is not populated. So i decided that when i read delta 0FI_GL_14 data into DSO i will read the document status from 0FIAR_O03 DSO based on required selections.

 

Everything works fine until here the doc. status get updated. But here is the scenario. Suppose document 1100 for customer 9999, line item 1 has status 'O' in 0FIAR_O03. When the delta is made on 0FI_GL_14 this doc with same line item and customer gets updated with status 'O'. Now a clearing document arrives for doc-1100, customer -9999, line item 2.

 

What happens in 0FIAR_O03 is the doc-1100 with line item 1 and 2 are set to 'C' after delta. But when i run delta for 0FI_GL_14 i get only one change that is doc-1100, line item -2 because the bstat(doc. status) is empty from source so it will not detect change in doc status for line item 1. Hence when i look up to 0FIAR_O03 (via endroutine) during my delta load, the new doc . status for clearing doc is updated with 'C' but the doc-1100, line item 1 remains with 'O' as it is not captured in delta of 0fi_gl_14.

 

The work around to this is to do a self full load on target dso of 0fi_gl__14 with status 'O' and lookup again to 0FIAR_O03 for changed status of each document but this will lead to lakhs of record added daily to my DSO and i want to avoid this.

 

Is there any work around to my problem.

 

Your comments are highly appreciated and right answer with be given full points.

 

Thanks a lot.


Viewing all articles
Browse latest Browse all 9239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>