06-09-2011 12:36 PM
Hello,
I have a invoice of sale (SD) with two positions ( 10 and 11 )
The two positions refer to the same accounting document (FI)
Accounting is correct!
I can not find a relationship in table "BSEG" to select the BUZEI that corresponds to the position of the invoice (SD)
Or a BAPI or a function that return the correct buzei or correct accounting point.
If we look at each position of invoice SD is the same accounting document (FI) and I have reviewed the characteristics defined in VKOA and can not find a relationship.
I use this function "RV_ORDER_FLOW_INFORMATION" but I dont get to relationship with invoice position.
Only I have "accounting document".
Since the transaction VF03 when selecting any of the two positions.
Next, the system run the function "AC_DOCUMENT_RECORD.
EXPORTING
I_AWTYP = 'VBRK'
I_AWREF = VBRK-VBELN
I_AWORG = VBRK-LOGSYS
I_BUKRS = VBRK-BUKRS
Then: You select accounting document (FI) and the system run the function "FI_DOCUMENT_RECORD '.
Best regards,
Gustavo
06-09-2011 12:39 PM
Somehow i fail to see your Question/problem, but yeah good information given aside from that.
06-09-2011 2:17 PM
Hi Florian
I am sorry.
I am not found any relationship at all BSEG-buzei (accounting document) that refers to each position of the invoice of sale (SD).
My question is how I can get the relationship for each position of the invoice for the same accounting document?
This functión "RV_ORDER_FLOW_INFORMATION" can you help me?
Thank you very much.
Best regards,
Gustavo
02-06-2012 5:34 PM
Hello,
I used this function and solved my problem:
CALL FUNCTION 'ACCOUNT_ALLOCATION'
EXPORTING
invoice_header = komkcv
invoice_item = kompcv
protocol_mode = 'X'
IMPORTING
account = c000
INVOICE_HEADER_E =
INVOICE_ITEM_E =
.