<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reg: BAPI_ACC_GL_POSTING_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845819#M666683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;than you should go for what another commenter mentioned: there should be equal level debit and credit items. In your example there is only one item, there should be at least one more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand the logsys has to be LOGSYS (uppercase), just in case...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 12:20:34 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2007-10-01T12:20:34Z</dc:date>
    <item>
      <title>Reg: BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845813#M666677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u pls help me in entering the values for the BAPI_ACC_GL_POSTING_POST.&lt;/P&gt;&lt;P&gt;I am getting errors while giving the test data for the structure. I had given the below mentioned data in the structures documentheader, accountgl, currencyamount respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: &lt;/P&gt;&lt;P&gt;1. Error in document: 'BKPFF 490456946210102007 logsys110. &lt;/P&gt;&lt;P&gt;2. Balance in transaction currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test data:&lt;/P&gt;&lt;P&gt;documentheader-obj_type = 'BKPFF'.&lt;/P&gt;&lt;P&gt;documentheader-obj_key = '490456946210102007'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-obj_sys = 'logsys110'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-username = sy-uname.&lt;/P&gt;&lt;P&gt;documentheader-header_txt = 'Test using BAPI'.&lt;/P&gt;&lt;P&gt;documentheader-comp_code = '1010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-fisc_year = '2007'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-doc_date = '09/18/2007'.&lt;/P&gt;&lt;P&gt;documentheader-pstng_date = '09/18/2007'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-doc_type = 'WA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000510030'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '1010'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = '09/18/2007'.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'WA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000002030'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'USD'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '10.00'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arundhathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 11:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845813#M666677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T11:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845814#M666678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Arundhathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-obj_sys = 'logsys110'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. run the following FM in your system: OWN_LOGICAL_SYSTEM_GET. The export result of this FM has to be the value for the import parameter above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 11:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845814#M666678</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-01T11:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845815#M666679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error is related to the balance of the postings. Check the balance of the Debit &amp;amp; credit entries. both should be having the same amount but one should be negativ. e.g.: suppse debit entry is having amount 100 &amp;amp; credit entry should have &lt;/P&gt;&lt;P&gt;-100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashvender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 11:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845815#M666679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T11:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845816#M666680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to Standard program RBUS6030.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Document Header&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;Parameter for transferring document header data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following fields must be filled out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_TYPE     Sender ID&lt;/P&gt;&lt;P&gt;OBJ_KEY     Reference number of source document&lt;/P&gt;&lt;P&gt;OBJ_SYS     Logical system of source document&lt;/P&gt;&lt;P&gt;COMP_CODE     Company code&lt;/P&gt;&lt;P&gt;PSTNG_DATE    Posting date&lt;/P&gt;&lt;P&gt;USERNAME      User name&lt;/P&gt;&lt;P&gt;Default&lt;/P&gt;&lt;P&gt;The field COMPO_ACC must remain blank in the case of a general posting. If an SAP application component is entered in this field, posting only takes place in that application component. This function is only used for subsequent posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source document&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;When a business transaction is updated in Accounting, it may be that several documents are updated at the same time (FI document, CO document, etc). If the business transaction is not initiated in Accounting, a source document must exist outside Accounting. The information from this document must be transferred when the FI/CO interface is called up. The source information is updated in all accounting documents, and is made up of the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AWTYP (OBJ_TYPE) Reference transaction&lt;/P&gt;&lt;P&gt;Sender ID&lt;/P&gt;&lt;P&gt;AWKEY (OBJ_KEY) Reference key&lt;/P&gt;&lt;P&gt;Source document number&lt;/P&gt;&lt;P&gt;The reference key is made up of:&lt;/P&gt;&lt;P&gt;AWREF Reference document number (10 digits)&lt;/P&gt;&lt;P&gt;Source document number&lt;/P&gt;&lt;P&gt;AWORG Reference organizational unit (10 digits)&lt;/P&gt;&lt;P&gt;Number range ID (if required)&lt;/P&gt;&lt;P&gt;AWSYS (OBJ_SYS) Logical system&lt;/P&gt;&lt;P&gt;Logical system of source document&lt;/P&gt;&lt;P&gt;When the document is being processed, the system checks whether a reference document number (first part of the reference key) has been transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G/L Account Line Items&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;Parameter for transferring G/L account line items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following field must be filled out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GL_ACCOUNT    G/L account&lt;/P&gt;&lt;P&gt;The currency fields are not contained in this parameter. They must be transferred separately in the parameter CurrencyAmount for the various currency types and currencies. The system creates a link to the relevant line item via the line item number ITEMNO_ACC, which for this reason must be unique for each line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default&lt;/P&gt;&lt;P&gt;If this method can be used to post G/L account line items across several company codes, the following fields are also contained in the G/L account line items:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMP_CODE     Company code&lt;/P&gt;&lt;P&gt;PSTNG_DATE     Posting date&lt;/P&gt;&lt;P&gt;DOC_TYPE     Document type&lt;/P&gt;&lt;P&gt;AC_DOC_NO     Document number&lt;/P&gt;&lt;P&gt;FISC_YEAR     Fiscal year&lt;/P&gt;&lt;P&gt;FIS_PERIOD     Fiscal period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line Item Currency Fields&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;This parameter describes the currency fields for a particular line item.&lt;/P&gt;&lt;P&gt;The parameter is a required field for the method POST. If the parameter is not maintained for the method CHECK, only a general account assignment check is carried out. Individual line items or several documents can be checked at once in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following fields must be filled out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CURRENCY     Currency key&lt;/P&gt;&lt;P&gt;AMT_DOCCUR    Currency amount&lt;/P&gt;&lt;P&gt;Value range&lt;/P&gt;&lt;P&gt;The field CURR_TYPE (currency type) describes the role played by a currency in the SAP System.&lt;/P&gt;&lt;P&gt;The currency type can take on the following values, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;00      Transaction currency&lt;/P&gt;&lt;P&gt;10      Company code currency&lt;/P&gt;&lt;P&gt;20      Controlling area currency&lt;/P&gt;&lt;P&gt;30      Group currency&lt;/P&gt;&lt;P&gt;40      Hard currency&lt;/P&gt;&lt;P&gt;50      Index-based currency&lt;/P&gt;&lt;P&gt;60      Global company currency&lt;/P&gt;&lt;P&gt;60      Global company currency&lt;/P&gt;&lt;P&gt;If an entry is not made in the field CURR_TYPE, the default value "00" is retained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If only one data record is transferred in transaction currency for each line item, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Return Parameter&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;This table contains the return messages from the method call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value range&lt;/P&gt;&lt;P&gt;The first message contains the general status of processing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type ID Number Message  &lt;/P&gt;&lt;P&gt;S RW 605 Document posted successfully   &lt;/P&gt;&lt;P&gt;S RW 614 Document check without errors  &lt;/P&gt;&lt;P&gt;A RW 609 Error in document  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields MESSAGE_V1, MESSAGE_V2 and MESSAGE_V3 contain the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference transaction ( OBJ_TYPE)&lt;/P&gt;&lt;P&gt;Reference key ( OBJ_KEY)&lt;/P&gt;&lt;P&gt;Logical system of source document ( OBJ_SYS)&lt;/P&gt;&lt;P&gt;Additional messages are transferred with the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter ( PARAMETER)&lt;/P&gt;&lt;P&gt;Row ( ROW)&lt;/P&gt;&lt;P&gt;Field ( FIELD)&lt;/P&gt;&lt;P&gt;in which the error occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table for Customer Enhancement&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;Container used to transfer data for calling up user exits when processing update BAPIs in Accounting. The user exit must be activated with transaction CMOD (extension ACBAPI01) for this to be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to the container (structure BAPIEXTC), the document header (structure ACCHD) and line items (structure ACCIT) from the accounting document are also transferred in the exit. The accounting document header and line items can be supplemented or modified in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The container does not have a structure, which means that the user can transfer any data in character format. If line items are to be supplemented, the relevant line item ( ITEMNO_ACC,), which is also contained in other parameters, must be transferred, as well as the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 11:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845816#M666680</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2007-10-01T11:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845817#M666681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Look at the sample Program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: 
* Structure for document header 
g_docheader LIKE bapiache08, 
* Table and header for G/L Account Line Items 
gi_accountgl TYPE STANDARD TABLE OF bapiacgl08, 
g_accountgl LIKE bapiacgl08, 
* Table and header for Line Item Currency Fields 
gi_amount TYPE STANDARD TABLE OF bapiaccr08, 
g_amount LIKE bapiaccr08, 
* Return 
gi_return TYPE STANDARD TABLE OF bapiret2, 
g_return LIKE bapiret2. 

START-OF-SELECTION. 
*--------------------------------------------------------- 
* HEADER DATA 
* 
* OBJ_TYPE Objekttypes can be found in table TTYP 
* OBJ_KEY Seems that you can use any value 
* OBJ_SYS Logical system. Logical ystems can be found in 
* table TBDLS. If there is no logical system assigned 
* to the client, assign it this way: 
* 
* Transaction: SPRO 
* - Basis components 
* - Application Link Enabling (ALE) 

* - Sending and receiving systems 
* - Logical systems 
* - Define logical system 
* - Assign client o logical system 
* 
* 
*--------------------------------------------------------- 
g_docheader-obj_type = 'BKPFF'. 
g_docheader-obj_key = '1'. 
g_docheader-obj_sys = 'B3TCLNT800'. 
g_docheader-username = sy-uname. 
g_docheader-header_txt = 'BAPI test'. 
g_docheader-comp_code = '1000'. 

g_docheader-doc_date = sy-datum. 

APPEND g_amount TO gi_amount. 

*--------------------------------------------------------- 
* LINE ITEMS 
*--------------------------------------------------------- 
* Item 1 
g_accountgl-itemno_acc = '0000000001'. 
g_accountgl-gl_account = '0000192600'. 
g_accountgl-pstng_date = sy-datum. 

APPEND g_accountgl TO gi_accountgl. 


* Item 2 
g_accountgl-itemno_acc = '0000000002'. 
g_accountgl-gl_account = '0000192600'. 

g_accountgl-pstng_date = sy-datum. 

APPEND g_accountgl TO gi_accountgl. 

*--------------------------------------------------------- 
* CURRENCY AND AMOUNT 
*--------------------------------------------------------- 
* Item 1 
g_amount-itemno_acc = '0000000001'. 
g_amount-currency = 'EUR'. 
g_amount-amt_doccur = 5000. 

APPEND g_amount TO gi_amount. 

* Item 2 
g_amount-itemno_acc = '0000000002'. 
g_amount-currency = 'EUR'. 
g_amount-amt_doccur = -5000. 

APPEND g_amount TO gi_amount. 


END-OF-SELECTION. 
* Call the BAPI function 
CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST' 
EXPORTING 
documentheader = g_docheader 
* IMPORTING 
* OBJ_TYPE = 
* OBJ_KEY = 
* OBJ_SYS = 
TABLES 
accountgl = gi_accountgl 
currencyamount = gi_amount 
return = gi_return 
* EXTENSION1 = 
. 

LOOP AT gi_return INTO g_return. 

WRITE: / g_return-message. 
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 12:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845817#M666681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T12:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845818#M666682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have checked with ur function module the parameter documentheader-obj_sys = 'logsys110'  what i have given is correct.&lt;/P&gt;&lt;P&gt; Please suggest me any other thing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 12:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845818#M666682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T12:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845819#M666683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;than you should go for what another commenter mentioned: there should be equal level debit and credit items. In your example there is only one item, there should be at least one more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand the logsys has to be LOGSYS (uppercase), just in case...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 12:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-acc-gl-posting-post/m-p/2845819#M666683</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-01T12:20:34Z</dc:date>
    </item>
  </channel>
</rss>

