03-31-2006 8:12 AM
Hi ,
I Need to extract data from coss and cosp tables based on selection criteria given in Functional design.Company code and Fiscal Year and Fiscal Period is the selection screen input.
From cosp and coss tables
LEDNR,objnr,wrttp,versn,kstar,beknz,twaer fields needs to be retrieved and I need to write it in to a file at application server.At the same time I need to calculate debit balance and credit balance and netamount.
In these two tables GL account field is not available.
How can I calculate debit ,credit balances and net amount based on this criteria by cosidering G/L accounts.
Please give me clear picture of this.(Tables ,fields and regarding selection )
Please reply immediately.
Regards
vijaya P
03-31-2006 12:11 PM
you can go over cost-centre:
1) select all cost-centres from csks of your company code.
2) Loop that itab and concatenate the objnr for cosp:
concatenate 'KS' your_kokrs itab-kostl into objnr.
3) select cosp / coss for all object-numbers
Andreas
03-31-2006 1:01 PM
Hi ,
My Problem is from which table can I Get GL accounts and how can i link that field to coss and cosp and calculate debit balance and credit balance and net amount.please explain in detail.
I Need to extract GL BAlances data from coss and cosp tables based on selection criteria given in Functional design.Company code and Fiscal Year and Fiscal Period is the selection screen input.
From cosp and coss tables
LEDNR,objnr,wrttp,versn,kstar,beknz,twaer fields needs to be retrieved and I need to write it in to a file at application server.At the same time I need to calculate debit balance and credit balance and netamount.
In these two tables GL account field is not available.
How can I calculate debit ,credit balances and net amount based on this criteria by cosidering G/L accounts.
Please give me clear picture of this.(Tables ,fields and regarding selection )
Please reply immediately.
Regards
vijaya P
03-31-2006 1:19 PM
Here is the link:
FI CO
field saknr kstar
masterdata SKA1 CSKA
balances GLT0 COSP
org.unit bukrs kostl / objec-no.
hope that helps
Andreas
Message was edited by: Andreas Mann