Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>AcctngServices



Index

AcctngServices

AcctngServices


The business object Accounting services is an object that offers cross-application services within Accounting.



Integration



These services, for example, a general account assignment check, can be used in the same way in various accounting transactions.


11-Dec-2005


Methods

Available Methods


  • CheckAccountAssignment : Additional Account Assignment Validation [ BAPI_ACCSERV_CHECKACCASSIGNMT ]
  • DocumentDisplay : Accounting: Display Method for Follow-On Document Display [ BAPI_ACC_DOCUMENT_DISPLAY ]
  • PreCheckPayrollAccountAssign : ACO: Acct Assignments in Payroll [ BAPI_CODINGBLOCK_PRECHECK_HR ]

11-Dec-2005


CheckAccountAssignment

CheckAccountAssignment


Method for internal SAP use: validation of characteristics from the coding block in posting transactions in HR and Logistics.

For customer-specific programs, use the following methods for business transactions instead of this module:

  • BAPI_ACC_BILLING_CHECK Accounting: Check billing document

  • BAPI_ACC_GOODS_MOVEMENT_CHECK Accounting: Check goods movement
  • BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check invoice receipt
  • BAPI_ACC_PURCHASE_ORDER_CHECK Accounting: Check purchase order
  • BAPI_ACC_PURCHASE_REQUI_CHECK Accounting: Check purchase requisition

  • BAPI_ACC_EMPLOYEE_EXP_CHECK Check HR posting G/L account assignment
  • BAPI_ACC_EMPLOYEE_PAY_CHECK Check HR posting vendor acct assignment
  • BAPI_ACC_EMPLOYEE_REC_CHECK Check HR posting customer acct assignment
  • You can find more check BAPIs in function group ACC4.

  • Additional account assignments from the coding block are validated inthis function module. Normally, this validation takes place at the timeof a PAI event after the entry of a line item in a posting transaction.The validation checks whther the combination of additional account
    assignments is permitted and whether all the specified additional account assignments exist and can be posted to.

    If a receiver system is maintained in ALE Customizing for this method(CheckAccountAssignment for object BUS6001 AccountingServices), you can use this function module to validate in the receiver system
    synchronously, using RFC.

    Any errors, warnings or information that occurs during the validation are collected and displayed in the RETURN table. Because additional account assignments may be derived when validation takesplace, the enlarged coding block will also be displayed.


    The CO account assignment types, that result from the additional account assignments entered, are displayed in theparameter AccountAssignmentTypes.


    11-Dec-2005


    DocumentDisplay

    DocumentDisplay


    You use this online method to trace the document flow in Accounting.When you call the method, a dialog box first appears in which you candisplay the follow-on documents from the Accounting components. By selecting a document, you reach the line item reports for the
    respective component.


    11-Dec-2005


    PreCheckPayrollAccountAssign

    PreCheckPayrollAccountAssign


    This method checks account assignments, one after the other, atdiffering levels of detail. The T_COBLHR-RESULT parameter informs you at which level of detail the check was successful.

    1. First of all, the account assignments entered in HR (such as cost
      center or order) are checked for validity from a CO viewpoint. If thisis successful, the T_COBLHR-RESULT = "0" is set by the system.
    2. If these checks are negative, the system checks the transferred mastercost center of the employee. If successful, the system sets T_COBLHR-RESULT = "1".

    3. If this check should also be negative, the system determines and checksa cost center that can be stored in CO Customizing. If successful, T_COBLHR-RESULT = "2" is set by the system and the cost centerdetermined is contained in the T_COBLHR-COSTCENTER_DEFAULT field.

    4. If no general cost center is stored in CO Customizing or this costcenter cannot be posted to, the system sets T_COBLHR-RESULT = "3".

    11-Dec-2005