![sap debit credit indicator sap debit credit indicator](https://monicaradytia.files.wordpress.com/2014/02/img-2-8f.png)
![sap debit credit indicator sap debit credit indicator](https://blogs.sap.com/wp-content/uploads/2015/02/amount_643486.png)
we are having value as ‘S’ then the posting key is fetched as 40 i.e. Based on the debit/credit indicator and account type the posting key is fetched. IF gs_accit – shkzg = ‘H’ AND “note 1596139 PERFORM koart_v_active ( saplfaci ) IF FOUND
#SAP DEBIT CREDIT INDICATOR CODE#
This code is written in form routine ‘FILL_BAPI_ACCIT’.įollowing are the account types which are present in SAP:ĭepending on the values in gs_bapi_accit-parameter the account type is chosen.If gs_bapi_accit-parameter is holding value as ‘ACCOUNTGL’ then ‘S’ account type will be hard-coded.Īnd for remaining parameters please check the below code which is written in form routine ‘FILL_ACCOUNTTYPE’.
![sap debit credit indicator sap debit credit indicator](https://i.stechies.com/706x517/userfiles/images/display-bom-12.jpg)
These internal tables are checked and then if the data is present in their respective fields then the parameter field is hard-coded with ACCOUNTRECEIVABLE, ACCOUNTPAYABLE, ACCOUNTGL, and ACCOUNTTAX respectively.īelow Snippet shows how the values are getting populated in field parameter. The IDOC data it is split-ed into 4 internal tables as account_receivable, account_payable, account_gl and Account_tax. Account type is fetched on the basis of parameter field in it_bapi_accit. Once the debit/credit indicator is fetched, the account type should be fetched. If amount is greater than ‘0’ then field SHKZG (debit/credit indicator) will hold the ‘S’ Value which indicate debit and if amount is less than zero then field SHKZG (debit/credit indicator) will hold the ‘H’ Value which indicate Credit.īelow snapshot shows the code written in the form routine ‘PROCESS_ACCCR’.įigure 3: Fetching Debit/Credit Indictor (SHKZG)ģ. The code for the same is written in FORM ‘PROCESS_ACCCR’.Īs we know for debit/credit indicator there are two values which are fixed i.e. Depending on amount the debit/credit indicator is fetched. In the below snapshot the amount ‘349.9000-’ indicate that amount should be credited and the amount ‘284.4500’ indicate that amount should be debited.Ģ. In the above segment pass the amount in field AMT_DOCCUR with ‘-’ negative sign for credit and for debit there is no need to attach ‘+’ sign. We need to pass the amount in AMT_DOCCUR field.įigure 1: Segment E1BPACCR09 (Currency Item) The BAPI which we are using for the posting the FI document itself does this.īAPI_IDOC_INPUT1 is the BAPI used for individual posting.ġ. This can be handled even though we do not pass the credit debit indicator or posting key. This blog determines how these are being determined automatically and the steps to check those required fields. When using the basic type ACC_DOCUMENT03, in order to pass the values of posting key and credit/debit indicator the respective fields are not available.