<?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: GSBER is empty via BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570686#M1078544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you eloborate on the problem , bcos i could not understand what exactly you have done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2008 12:20:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-08T12:20:20Z</dc:date>
    <item>
      <title>GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570683#M1078541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating the financial document through BAPI_ACC_DOCUMENT_POST with two tax positions.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  PE_DOCUMENTHEADER-BUS_ACT = 'RFBU'.
  PE_DOCUMENTHEADER-USERNAME = SY-UNAME.
  PE_DOCUMENTHEADER-HEADER_TXT = PI_BKTXT.
  PE_DOCUMENTHEADER-COMP_CODE = '40'.
  PE_DOCUMENTHEADER-DOC_DATE = '20080901'.
  PE_DOCUMENTHEADER-PSTNG_DATE = '20080901'.
  PE_DOCUMENTHEADER-FISC_YEAR = '09'.
  PE_DOCUMENTHEADER-FIS_PERIOD = '01'.
  PE_DOCUMENTHEADER-DOC_TYPE = 'SA'.
  PE_DOCUMENTHEADER-REF_DOC_NO = PI_XBLNR.

  LWA_ACCOUNTTAX-ITEMNO_ACC = '0000000001'. 
  LWA_ACCOUNTTAX-GL_ACCOUNT = '1420-'. 
  LWA_ACCOUNTTAX-TAX_CODE = 'NX'. 
  append LWA_ACCOUNTTAX to PET_ACCOUNTTAX. 
  LWA_ACCOUNTTAX-ITEMNO_ACC = '0000000002'. 
  LWA_ACCOUNTTAX-GL_ACCOUNT = '1420-20'. 
  LWA_ACCOUNTTAX-TAX_CODE = 'RT'. 
  append LWA_ACCOUNTTAX to PET_ACCOUNTTAX. 

  LWA_CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'. 
  LWA_CURRENCYAMOUNT-CURRENCY = 'KZT'.
  LWA_CURRENCYAMOUNT-AMT_DOCCUR = '819809,65'. 
  LWA_CURRENCYAMOUNT-AMT_BASE = '6306228,10'. 
  append LWA_CURRENCYAMOUNT to PET_CURRENCYAMOUNT.
  LWA_CURRENCYAMOUNT-ITEMNO_ACC = '0000000002'. 
  LWA_CURRENCYAMOUNT-CURRENCY = 'KZT'.
  LWA_CURRENCYAMOUNT-AMT_DOCCUR = '-819809.65 '. 
  LWA_CURRENCYAMOUNT-AMT_BASE = '-6306228.10 '. 
  append LWA_CURRENCYAMOUNT to PET_CURRENCYAMOUNT.

  LWA_EXTENSION1-FIELD1+0 (5) = 'ID001'.
  LWA_EXTENSION1-FIELD1+5 (5) = 'DOC02'.
  LWA_EXTENSION1-FIELD1+10 (10) = '0000000001'. 
  LWA_EXTENSION1-FIELD1+20 (4) = '4001'.
  LWA_EXTENSION1-FIELD2 = PI_SGTXT.
  append LWA_EXTENSION1 to PET_EXTENSION1.
  LWA_EXTENSION1-FIELD1+0 (5) = 'ID001'.
  LWA_EXTENSION1-FIELD1+5 (5) = 'DOC02'.
  LWA_EXTENSION1-FIELD1+10 (10) = '0000000002'. 
  LWA_EXTENSION1-FIELD1+20 (4) = '4001'.
  LWA_EXTENSION1-FIELD2 = PI_SGTXT.
  append LWA_EXTENSION1 to PET_EXTENSION1.

    call function 'BAPI_ACC_DOCUMENT_POST'
      exporting
        DOCUMENTHEADER = PI_DOCUMENTHEADER
      tables
        ACCOUNTTAX = PIT_ACCOUNTTAX
        CURRENCYAMOUNT = PIT_CURRENCYAMOUNT
        EXTENSION1 = PIT_EXTENSION1
        RETURN = PET_RETURN.
    commit work.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In 'Customer Exit'&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  read table EXTENSION index 1.
  case EXTENSION-FIELD1+0 (5).
    when 'ID001.' " ZFIAM_LIZING
        loop at EXTENSION.
  case EXTENSION-FIELD1+5 (5).
    when 'DOC01'.
      read table IT_ACCIT with key POSNR = EXTENSION-FIELD1+10 (10).
      if SY-SUBRC is initial and EXTENSION-FIELD1+20 (2) ne SPACE.
        IT_ACCIT-BSCHL = EXTENSION-FIELD1+20 (2).
      endif.
      modify IT_ACCIT index SY-TABIX.
    when 'DOC02'.
      read table IT_ACCIT with key POSNR = EXTENSION-FIELD1+10 (10).
      if SY-SUBRC is initial.
        if EXTENSION-FIELD1+20 (4) ne SPACE.
          IT_ACCIT-GSBER = EXTENSION-FIELD1+20 (4).
        endif.
        if EXTENSION-FIELD2 is not initial.
          IT_ACCIT-SGTXT = EXTENSION-FIELD2.
        endif.
        modify IT_ACCIT index SY-TABIX.
      endif.
  endcase.
        endloop.
endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Customer exit I put Business Area into IT_ACCIT-GSBER but in the created document Business Area is empty.&lt;/P&gt;&lt;P&gt;When I create the same document through transaction FB01, Business Area is not empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570683#M1078541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570684#M1078542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are reading the table it_accit right, please check if the value for posnr in accit and the value you pass from extension have the same length ,see if you are missing any leading zeros in any one of the values, &lt;/P&gt;&lt;P&gt;if this is the problem,&lt;/P&gt;&lt;P&gt;please use the FM CONVERSION_EXIT_ALPHA_INPUT to add the leading zeros to the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing check the condition&lt;/P&gt;&lt;P&gt;if EXTENSION-FIELD1+20 (4) ne SPACE,&lt;/P&gt;&lt;P&gt;may be you can give it as &lt;/P&gt;&lt;P&gt;if not EXTENSION-FIELD1+20 (4) is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please verify these, if not we can see for more solutions. &lt;/P&gt;&lt;P&gt;Hope this should solve the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570684#M1078542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570685#M1078543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer but value saved is correct in the table it_accit.&lt;/P&gt;&lt;P&gt;I tryed to find where GSBER is cleaning and found FM FI_SUBST_GSBER. Lower I wrote piece of code where GSBER is cleaning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      IF t_accit-taxit = xon AND t_accit-xbilk = xon.
        IF brazil IS INITIAL.   "do not clear for brazil  "note 436374
          CLEAR t_accit-gsber.
          MODIFY t_accit.
        ENDIF.                                            "note 436374
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I don't undestand what I must do so as not to cleaning GSBER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marat Ashimov on Oct 8, 2008 2:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570685#M1078543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570686#M1078544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you eloborate on the problem , bcos i could not understand what exactly you have done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 12:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570686#M1078544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T12:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570687#M1078545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Shobana k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My English is not good. What you meant said 'eloborate'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 12:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570687#M1078545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570688#M1078546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you debug the Customer Exit at all? Just set a break-point and see what happens there. If the field gets its value properly, than the problem it later in the BAPI (whicv, again, you have to debug)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 12:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570688#M1078546</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-08T12:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570689#M1078547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I debug all programe code in customer exit. After customer exit in the BAPI call FM 'FI_SUBST_GSBER'. In this FM GSBER is cleaned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 12:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570689#M1078547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T12:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570690#M1078548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating fi-document with only two tax position through BAPI_ACC_DOCUMENT_POST. In customer exit I put value into GSBER.&lt;/P&gt;&lt;P&gt;The document was creating but in positions field GSBER is empty.&lt;/P&gt;&lt;P&gt;When I create document through FB01 in the tax positions I indicate GSBER. After save field GSBER isn't empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 12:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570690#M1078548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T12:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570691#M1078549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2008 05:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570691#M1078549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-09T05:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570692#M1078550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the user exit, also try to change the status_new field of the header line. When this is set to 2, the FI_SUBST_GSBER FM will immediately finish (just check its source code)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2008 06:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570692#M1078550</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-09T06:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570693#M1078551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed status to 2. BAPI send back message what document is created, but actually document isn't created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't now how I can decide this problem. On the Support portal said: 'This isn't our problem because the system don't send back error message'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2008 07:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570693#M1078551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-09T07:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570694#M1078552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there COMMIT WORK after the BAPI call? (or FM BAPI_TRANSACTION_COMMIT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2008 07:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570694#M1078552</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-09T07:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570695#M1078553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2008 07:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570695#M1078553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-09T07:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: GSBER is empty via BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570696#M1078554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided my problem. I put value into GSBER field through OpenFi (process 00001120).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 07:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gsber-is-empty-via-bapi-acc-document-post/m-p/4570696#M1078554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T07:29:46Z</dc:date>
    </item>
  </channel>
</rss>

