Help Center>Winshuttle Function Module Help

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 Line
    Type - 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 item
    Type - /WINSHTLQ/ACCTGL_MULTI_CURR
  • ACCOUNTRECEIVABLE - Customer Item
    Type - BAPIACAR09
  • ACCOUNTPAYABLE - Vendor Item
    Type - BAPIACAP09
  • ACCOUNTTAX - Tax item
    Type - BAPIACTX09
  • CRITERIA - Posting in accounting: CO-PA acct assignment characteristics
    Type - BAPIACKEC9
  • VALUEFIELD - Posting in accounting: CO-PA acct assignment value fields
    Type - BAPIACKEV9
  • EXTENSION1 - Container for 'Customer Exit' Parameter
    Type - BAPIACEXTC
  • RETURN - Return Parameter
    Type - BAPIRET2
  • PAYMENTCARD - Payment Card Information
    Type - BAPIACPC09
  • CONTRACTITEM - Add. Contract Accounts Rec. and Payable Document Line Item
    Type - BAPIACCAIT
  • EXTENSION2 - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
    Type - BAPIPAREX
  • REALESTATE - Real Estate Account Assignment Data
    Type - BAPIACRE09
  • ACCOUNTWT - Withholding Tax Information
    Type - BAPIACWT09