<?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: Error occuring while using  BAPI BAPI_ACC_DOCUMENT_POST For F-02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073186#M1178543</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;U have checked for plant not for company code..check for company code and see..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2009 12:03:09 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2009-02-05T12:03:09Z</dc:date>
    <item>
      <title>Error occuring while using  BAPI BAPI_ACC_DOCUMENT_POST For F-02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073184#M1178541</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;Please look at the below coding :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT record INTO wa_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF wa_record-newbs_010 NE '31'.&lt;/P&gt;&lt;P&gt;          it_accountgl-itemno_acc  = ser .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              input  = wa_record-newko_011&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              output = wa_record-newko_011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          it_accountgl-gl_account  = wa_record-newko_011.&lt;/P&gt;&lt;P&gt;          CONDENSE it_accountgl-gl_account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          it_accountgl-item_text   = wa_record-sgtxt_021.&lt;/P&gt;&lt;P&gt;          CONDENSE it_accountgl-item_text.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        it_accountgl-tax_code    = 'V0'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          it_accountgl-bus_area    = wa_record-gsber.&lt;/P&gt;&lt;P&gt;          it_accountgl-comp_code   = bukrs.&lt;/P&gt;&lt;P&gt;          APPEND it_accountgl TO it_accountgl.&lt;/P&gt;&lt;P&gt;          CLEAR it_accountgl.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF wa_record-newbs_010 EQ '31'.&lt;/P&gt;&lt;P&gt;          it_cust-itemno_acc = ser.&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              input  = wa_record-newko_011&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              output = wa_record-newko_011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          it_cust-customer = wa_record-newko_011.&lt;/P&gt;&lt;P&gt;          CONDENSE it_cust-customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          it_cust-comp_code  = bukrs.                        (user input  given as 9000)     &lt;/P&gt;&lt;P&gt;          it_cust-bus_area   = wa_record-gsber.&lt;/P&gt;&lt;P&gt;          it_cust-pmnttrms   = wa_record-zterm_016.&lt;/P&gt;&lt;P&gt;          it_cust-bline_date = wa_record-zfbdt_017.&lt;/P&gt;&lt;P&gt;          it_cust-pymt_meth  = wa_record-zlsch_019.&lt;/P&gt;&lt;P&gt;          it_cust-businessplace = bukrs.                      (user input  given as 9000)&lt;/P&gt;&lt;P&gt;          it_cust-item_text  = wa_record-sgtxt_021.&lt;/P&gt;&lt;P&gt;          CONDENSE it_cust-item_text.&lt;/P&gt;&lt;P&gt;          APPEND it_cust TO it_cust.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CLEAR it_cust.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        amount = wa_record-wrbtr_013.&lt;/P&gt;&lt;P&gt;        it_currencyamount-itemno_acc   = ser .&lt;/P&gt;&lt;P&gt;        it_currencyamount-curr_type    = '00'.&lt;/P&gt;&lt;P&gt;        it_currencyamount-currency     = 'INR'.&lt;/P&gt;&lt;P&gt;        it_currencyamount-amt_doccur   = amount.&lt;/P&gt;&lt;P&gt;        APPEND it_currencyamount TO it_currencyamount.&lt;/P&gt;&lt;P&gt;        CLEAR it_currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ser = ser + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR it_accountgl.&lt;/P&gt;&lt;P&gt;        CLEAR it_currencyamount.&lt;/P&gt;&lt;P&gt;        CLEAR it_cust.&lt;/P&gt;&lt;P&gt;        CLEAR amount.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          documentheader    = gd_documentheader&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          accountgl         = it_accountgl&lt;/P&gt;&lt;P&gt;          accountreceivable = it_cust&lt;/P&gt;&lt;P&gt;          currencyamount    = it_currencyamount&lt;/P&gt;&lt;P&gt;          return            = it_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structure of flat file :&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF record OCCURS 20,&lt;/P&gt;&lt;P&gt;          counter(5),&lt;/P&gt;&lt;P&gt;          xblnr_007(016),&lt;/P&gt;&lt;P&gt;          bktxt_008(025),&lt;/P&gt;&lt;P&gt;          newbs_010(002),&lt;/P&gt;&lt;P&gt;          newko_011(010),&lt;/P&gt;&lt;P&gt;          newum_012(001),&lt;/P&gt;&lt;P&gt;          wrbtr_013(016),&lt;/P&gt;&lt;P&gt;          gsber(004),    " Business Area&lt;/P&gt;&lt;P&gt;          kostl(010),&lt;/P&gt;&lt;P&gt;          prctr(010),&lt;/P&gt;&lt;P&gt;          zterm_016(004),&lt;/P&gt;&lt;P&gt;          zfbdt_017(010),&lt;/P&gt;&lt;P&gt;          zlspr_018(001), "Payment Block Key&lt;/P&gt;&lt;P&gt;          zlsch_019(001), "Payment Method&lt;/P&gt;&lt;P&gt;          hbkid(005),     "House Bank&lt;/P&gt;&lt;P&gt;          sgtxt_021(050),&lt;/P&gt;&lt;P&gt;        END OF record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flat File content :  ( Just one sample record of customer)&lt;/P&gt;&lt;P&gt;1	Sal-NOV2006AAAA 	Salary forNOV of XXXX    	31	111222	 	1000	9002	          	          	T086	30112008	 	J		Sal for NOV2006SAMPLETEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Error thrown :&lt;/P&gt;&lt;P&gt;*Customer 111222 is not defined in company code  AAAA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But while checking for vendor 111222  for plant AAAA using   tcode  XK03 , data exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nagarajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 13:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073184#M1178541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T13:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error occuring while using  BAPI BAPI_ACC_DOCUMENT_POST For F-02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073185#M1178542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore.&lt;/P&gt;&lt;P&gt;sorry, replied, but my answer did not make any sense.&lt;/P&gt;&lt;P&gt;so I removed the comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Postema on Feb 5, 2009 1:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 12:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073185#M1178542</guid>
      <dc:creator>rob_postema</dc:creator>
      <dc:date>2009-02-05T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error occuring while using  BAPI BAPI_ACC_DOCUMENT_POST For F-02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073186#M1178543</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;U have checked for plant not for company code..check for company code and see..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 12:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073186#M1178543</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-02-05T12:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error occuring while using  BAPI BAPI_ACC_DOCUMENT_POST For F-02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073187#M1178544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are checking for a vendor but you are filling it_cust and the message is about customer ("Customer 111222 is not defined in company code AA").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 12:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073187#M1178544</guid>
      <dc:creator>former_member194797</dc:creator>
      <dc:date>2009-02-05T12:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error occuring while using  BAPI BAPI_ACC_DOCUMENT_POST For F-02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073188#M1178545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found that if valid data for a field in FI can be numeric or alphanumeric, then the fields in the BAPI's parameters must take this into acccount. I have found this impacts how data is validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the BAPI's parameter table CRITERIA has field CRITERIA-CHARACTER which is CHAR18. The field being updated in COPA is 10 characters long, although valid values are only 5 characters. If the data to be passed is all numeric (eg. 12345), then I must put in 5 leading zeros and then the value (eg. 0000012345). If the data to be passed in alphanumeric (eg. C23X5), then the data is left justified (eg. C23X5_____).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 18:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-occuring-while-using-bapi-bapi-acc-document-post-for-f-02/m-p/5073188#M1178545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T18:18:47Z</dc:date>
    </item>
  </channel>
</rss>

