on 10-11-2008 1:12 PM
Hi Guys,
I need to convert statistical charges posted to a finalized contract account into u2018realu2019 or u2018liveu2019 in order that the debt can be invoiced and followed up.
I am using dunning user exit 0350. Creating one FM for this.
Table: T_DFKKOP
Step1: Here first I will check whether account is finalized or not.
After that as per my understanding,
Step2: We have to clear the statistical document and post a new document to replace it, a real document. Is this right?
If above step is right:
Here how to find relationship between stat document and real document based on main/sub transaction. I found one TCode: FQC0. This shows Main/Sub Transaction of stat and real document in one row.
So for example if the statistical document to be reversed has the statistical key u201CGu201D and main/sub 0010/0010, the real document that replaces it must have the corresponding main/sub as per the table on transaction FQC0 for the posting area 1010 (example, 0010/0020).
So my questions are:
1. Here how to find relationship between stat document and real document based on main/sub transaction? (Please remember I have to code this part)
2. How to clear/reverse statistical document? Is there any standard FM?
3. How to post real document? Is there any standard FM?
I consider myself as a rookie in this area, so it would be of great help if you explain your answers in steps.
Thanks.
no answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my findings... let me know whether they are correct or not, any suggestions?
STEP 1:
Retrieve main/sub details of real document from Table u2018TFK033Du2019 where Application area = u2018Ru2019, Posting area = u20181010u2019, Key1 = u2018Gu2019, Key2 = Main Trans of stat doc, Key3 = Sub Trans of stat doc and store them into lv_real_main / lv_real_sub.
STEP 2:
Retrieve real document details from Table u2018DFKKOPu2019 where HVORG = lv_real_main, TVORG = lv_real_sub and store into ls_dfkkop.
STEP 3:
u2022 To reverse statistical document:
CALL FM u2018FKK_REVERSE_DOC_MASSu2019
Import:
E_OPBEL Document Number of Reversal Document = lv_rev_doc_no
STEP 4:
u2022 To post new real document:
Update details of ls_fkkko, lt_fkkop, lt_fkkopk using data retrieved from STEP 1 and 2.
CALL FM u2018FKK_CREATE_DOCu2019
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.