How to Determine Different Accounting Document Types for the Same Billing Type

June 4, 2018 | Author: Anupa Wijesinghe | Category: Information Technology Management, Information Technology, Areas Of Computer Science, Software, Technology
Report this link


Description

ContentsIntroduction .................................................................................................................................................. 2 Determine a different accounting document type for same billing type ................................................. 5 Define your own criteria ....................................................................................................................... 5 User Exit coding .................................................................................................................................... 5 Introduction As we all know, when a billing document is posted to FI, there will be an accounting document generated in the system. This has an accounting document type assigned to its header. The default accounting document type is assigned to the billing document type in customizing. This is configured in below IMG Path under the field "Document Type". Sales and Distribution / Billing / Billing Documents / Define Billing type / Define Billing Types For example, if you look at the standard billing type "F2", there is no default document type assigned. In that case, system always determines the accounting document type as "RV". These accounting document types can be configured under below IMG Path: For example, let's see how the accounting document type "RV" looks like; As per above mentioned customizing, accounting document type is always based on the billing type. If it is not defined in the billing type, then it is always set to "RV". This is coded in the SAP standard function module "RV_ACCOUNTING_DOCUMENT_CREATE" as shown below. Therefore it is not straight forward to determine a different accounting document type with the same billing type. This can be achieved through the below mentioned enhancements. Determine a different accounting document type for same billing type Define your own criteria First you need to define your own criteria to determine the new accounting document type. For example, let's say you want to determine different accounting document types based on each sales organization. Important: The complete determination criteria should be available in the billing document header table (VBRK), as it is the last point before we post the document in the FI. If you do not have the required data for this determination, then this logic will fail. Since VKORG is in the VBRK table, I can easily define my determination criteria. This is how you need to do it.  Create a Z table in the system for your determination criteria. For my case, I need only below fields; o VKORG - Sales Organization o FKART - Billing Type o VBTYP - SD document category o BLART - Document Type (To assign the different accounting document types) This table should have a maintenance view, where user can maintain data through transaction SM30 Let's say I have 2 sales organizations and I want to determine 2 different accounting document types for those two sales organizations for the billing type F2. In that case, I would maintain my table as follows, VKORG FKART VBTYP BLART A100 F2 M RV A300 F2 M ZY User Exit coding Now you need ABAP developer's help to enhance the billing user exit to determine the accounting document type based on the above mentioned table Include - LXVVFU02 Under the SAP provided custom include "ZXVVFU02", you need to develop a ABAP code which will read the above mentioned table. When the correct value is found from the table, this should be assigned to the below field "XACCIT-BLART" From that point onwards, standard SAP will use this value as accounting document type. Author: Anupa Wijesinghe E-Mail: [email protected] / [email protected] Website: www.learnsaptips.com View my profile in LinkedIn Follow me on Twitter Disclaimer This article is done based on my research and readings, unless otherwise stated. The views expressed are my own and not of anyone else. Author accepts no liability for the content of the articles in this website or for the consequences of any actions taken on the basis of the information provided. Using this information is at the users own discretion and responsibility.


Comments

Copyright © 2024 UPDOCS Inc.