GL account document posting with multiple currencies
Posting general ledger documents with multiple currencies requires a hierarchical mapping. To reduce the complexity of multiple-currency posting, Winshuttle Function Module (WFM) v11.3.0 provides the following solution.
The /WINSHTLQ/POST_ACDOC_MULT_CURR remote function module calls BAPI_ACC_DOCUMENT_POST and BAPI_TRANSACTION_COMMIT to post the document. The required CURRENCYAMOUNT field has been added to the ACCOUNTGL structure, and a new structure, /WINSHTLQ/ACCTGL_MULTI_CURR, has been created.
Function module interface
1. Import
- DOCUMENTHEADER - Header ,Type - BAPIACHE09
- CUSTOMERCPD - Posting in accounting: Partner billing doc (load receivable)Type - BAPIACPA09
- CONTRACTHEADER - Add. Contract Accounts Recievable and Payable Header LineType - BAPIACCAHD
- CHECK_POST - Flag,Post = 'P' and Check = 'C'TYPE - CHAR1
2. Export
- OBJ_TYPE Reference Transaction, Type - BAPIACHE09-OBJ_TYPE
- OBJ_KEY Reference Key, Type - BAPIACHE09-OBJ_KEY
- OBJ_SYS Logical system of source document, Type - BAPIACHE09-OBJ_SYS
3. Tables
- ACCOUNTGL - G/L account itemType - /WINSHTLQ/ACCTGL_MULTI_CURR
- ACCOUNTRECEIVABLE - Customer ItemType - BAPIACAR09
- ACCOUNTPAYABLE - Vendor ItemType - BAPIACAP09
- ACCOUNTTAX - Tax itemType - BAPIACTX09
- CRITERIA - Posting in accounting: CO-PA acct assignment characteristicsType - BAPIACKEC9
- VALUEFIELD - Posting in accounting: CO-PA acct assignment value fieldsType - BAPIACKEV9
- EXTENSION1 - Container for 'Customer Exit' ParameterType - BAPIACEXTC
- RETURN - Return ParameterType - BAPIRET2
- PAYMENTCARD - Payment Card InformationType - BAPIACPC09
- CONTRACTITEM - Add. Contract Accounts Rec. and Payable Document Line ItemType - BAPIACCAIT
- EXTENSION2 - Ref. structure for BAPI parameter ExtensionIn/ExtensionOutType - BAPIPAREX
- REALESTATE - Real Estate Account Assignment DataType - BAPIACRE09
- ACCOUNTWT - Withholding Tax InformationType - BAPIACWT09