<?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: Help Requires........... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063400#M725783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You asked this question earlier. The answer is the same. You need to use an account that can be posted to. This is handled in config. So your business analyst is the person to ask, not the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your anaalyst is not handy, try looking in BSAS. You should be able to find an account there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2007 22:29:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-20T22:29:30Z</dc:date>
    <item>
      <title>Help Requires...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063398#M725781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on an interface where I am using BAPI_ACC_DOCUMENT_POST  for posting an accounting document and I have not being provided with the vendor number but I have been provided with the G/L accounts for both the posting key 40 and 50 but when I am running this program, I am getting this error, "Account 206221 in company code 1000 cannot be directly posted to" and this G/L a/c is associated with posting key 50, can you please have a look at the following code and please let me know my mistake. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: begin of it_input_file occurs 0,&lt;/P&gt;&lt;P&gt;        pos_date(10),&lt;/P&gt;&lt;P&gt;        bukrs(4),&lt;/P&gt;&lt;P&gt;        pos_per(2),&lt;/P&gt;&lt;P&gt;        currency(3),&lt;/P&gt;&lt;P&gt;        h_text(25),&lt;/P&gt;&lt;P&gt;        doc_type(2),&lt;/P&gt;&lt;P&gt;        pos_key(2),&lt;/P&gt;&lt;P&gt;        glaccount(10),&lt;/P&gt;&lt;P&gt;        amount(16),&lt;/P&gt;&lt;P&gt;        bus_area(4),&lt;/P&gt;&lt;P&gt;        kostl(10),&lt;/P&gt;&lt;P&gt;        item_text(50),&lt;/P&gt;&lt;P&gt;        order(20),&lt;/P&gt;&lt;P&gt;        allocation(10),&lt;/P&gt;&lt;P&gt;        prctr(10),&lt;/P&gt;&lt;P&gt;        doc_date(10),&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;          end of it_input_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it_input_file-pos_key eq 50.&lt;/P&gt;&lt;P&gt;    move:&lt;/P&gt;&lt;P&gt;      v_count                 to glaccount-ITEMNO_ACC,&lt;/P&gt;&lt;P&gt;      it_input_file-glaccount to glaccount-gl_account,&lt;/P&gt;&lt;P&gt;      it_input_file-kostl     to glaccount-COSTCENTER,&lt;/P&gt;&lt;P&gt;      it_input_file-prctr     to glaccount-PROFIT_CTR,&lt;/P&gt;&lt;P&gt;      it_input_file-bus_area  to glaccount-bus_area,&lt;/P&gt;&lt;P&gt;      it_input_file-item_text to glaccount-ITEM_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append glaccount.&lt;/P&gt;&lt;P&gt;    move:&lt;/P&gt;&lt;P&gt;  v_count                 to currencyamount-ITEMNO_ACC,&lt;/P&gt;&lt;P&gt;  it_input_file-currency  to currencyamount-CURRENCY.&lt;/P&gt;&lt;P&gt;    currencyamount-AMT_DOCCUR = it_input_file-amount * -1.&lt;/P&gt;&lt;P&gt;    append currencyamount.&lt;/P&gt;&lt;P&gt;    clear: glaccount, currencyamount.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    move:&lt;/P&gt;&lt;P&gt;       v_count                 to glaccount-ITEMNO_ACC,&lt;/P&gt;&lt;P&gt;       it_input_file-glaccount to glaccount-gl_account,&lt;/P&gt;&lt;P&gt;       it_input_file-kostl     to glaccount-COSTCENTER,&lt;/P&gt;&lt;P&gt;       it_input_file-prctr     to glaccount-PROFIT_CTR,&lt;/P&gt;&lt;P&gt;       it_input_file-bus_area  to glaccount-bus_area,&lt;/P&gt;&lt;P&gt;       it_input_file-item_text to glaccount-ITEM_TEXT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      it_input_file-assignment to glaccount-ALLOC_NMBR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    append glaccount.&lt;/P&gt;&lt;P&gt;    move:&lt;/P&gt;&lt;P&gt;      v_count                 to currencyamount-ITEMNO_ACC,&lt;/P&gt;&lt;P&gt;      it_input_file-currency  to currencyamount-CURRENCY,&lt;/P&gt;&lt;P&gt;      it_input_file-amount    to currencyamount-AMT_DOCCUR .&lt;/P&gt;&lt;P&gt;    append currencyamount.&lt;/P&gt;&lt;P&gt;    clear: glaccount, currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM call_bapi .&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 = documentheader&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      OBJ_TYPE       = obj_type&lt;/P&gt;&lt;P&gt;      OBJ_KEY        = obj_key&lt;/P&gt;&lt;P&gt;      OBJ_SYS        = obj_sys&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      ACCOUNTGL      = glaccount&lt;/P&gt;&lt;P&gt;      ACCOUNTPAYABLE = ap&lt;/P&gt;&lt;P&gt;      CURRENCYAMOUNT = currencyamount&lt;/P&gt;&lt;P&gt;      RETURN         = return.&lt;/P&gt;&lt;P&gt;  read table return with key type = 'S'.&lt;/P&gt;&lt;P&gt;  if syst-subrc eq 0.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WAIT          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       RETURN        = return2.&lt;/P&gt;&lt;P&gt;    perform create_success_log.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    perform create_failure_log.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rajeev  Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 21:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063398#M725781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T21:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help Requires...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063399#M725782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to post to the account in which you can't post directly. This GL should be some kind of the recon account. SO, you can't post directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try to post directly with this account, still will give you the same message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use some other account. Consult your functional consutlant for some more postable account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 22:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063399#M725782</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-20T22:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help Requires...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063400#M725783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You asked this question earlier. The answer is the same. You need to use an account that can be posted to. This is handled in config. So your business analyst is the person to ask, not the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your anaalyst is not handy, try looking in BSAS. You should be able to find an account there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 22:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063400#M725783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T22:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help Requires...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063401#M725784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since these values are coming from the file, you should send the file back to the person who gave it to you and tell him or her the problem and ask them to fix it. It's not your responsibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 22:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063401#M725784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T22:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help Requires...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063402#M725785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the Reply , Is Rest everything looks good with the code, I mean in my previous assignment I was provinding the GL account when the posting key was 40 and when the posting key was 50 I was providing the vendor number, but in this scenario I haven't provided the vendor number but provided the G/L account for both the possting keys, so was just wondering if I was doing it right or not &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 00:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063402#M725785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T00:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help Requires...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063403#M725786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is good to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have some misunderstanding for your pervious assignment because we can't post vendor account with the 50 posting key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;40 and 50 keys are only allowed for the GL account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 02:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063403#M725786</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-21T02:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help Requires...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063404#M725787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there are still problems with the code. After the BAPI call, you check sy-subrc to see if you should commit. The return code will be zero because the bapi raises no exceptions. You have to analyze the return table in order to determine whether to do a commit. (Look for a success message with a document number.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-requires/m-p/3063404#M725787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:30:11Z</dc:date>
    </item>
  </channel>
</rss>

