<?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: Posting Key - FB02 data upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928410#M1149765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged the BAPI. and went thro the subroutine FILL_ACC_TYPE.&lt;/P&gt;&lt;P&gt;in this subroutine, it is assigning the BSCHL. &lt;/P&gt;&lt;P&gt;I am not able to find out where in the BAPI it decides the SIGN of the AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guide me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to pass on the POSTING KEY to the BAPI EXTENSION and get the SIGN of the amount automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 DATA: ld_bschh  LIKE accit-bschl,
        ld_bschs  LIKE accit-bschl,
        ld_umskz  LIKE accit-umskz.

  IF NOT gs_accit-ktosl IS INITIAL AND
     gs_accit-kstat IS INITIAL.
    CALL FUNCTION 'FI_GET_POSTING_KEY'
      EXPORTING
        i_ktosl       = gs_accit-ktosl
      IMPORTING
        e_bschs       = ld_bschs
        e_bschh       = ld_bschh
        e_umskz       = ld_umskz
      EXCEPTIONS
        error_message = 1.
    IF sy-subrc IS INITIAL.
      IF gs_accit-shkzg = 'S'.
        gs_accit-bschl = ld_bschs.
      ELSE.
        gs_accit-bschl = ld_bschh.
      ENDIF.
**     SHB-Vorgänge HR-Travel mit Ktosl 'HRV'
*      IF NOT ld_umskz IS INITIAL.
*        gs_accit-umskz =  ld_umskz.
**        keine Ableitung Zahlungsbedingung für SHB-Vorgänge
*        CLEAR gs_accit-zterm.
*      ENDIF.
    ELSE.
      PERFORM error_from_system
              USING gs_bapi_accit-parameter
                    gs_bapi_accit-tabix
                    'ACCT_KEY'.
    ENDIF.
  ENDIF.

  IF gs_accit-bschl IS INITIAL.
    CASE gs_accit-koart.
      WHEN 'D' OR 'V'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '01'.
        ELSE.
          gs_accit-bschl = '11'.
        ENDIF.
      WHEN 'K'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '21'.
        ELSE.
          gs_accit-bschl = '31'.
        ENDIF.
      WHEN 'S'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '40'.
        ELSE.
          gs_accit-bschl = '50'.
        ENDIF.
      WHEN 'A'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '70'.
        ELSE.
          gs_accit-bschl = '75'.
        ENDIF.
      WHEN 'M'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '40'.
        ELSE.
          gs_accit-bschl = '50'.
        ENDIF.
    ENDCASE.
  ENDIF.

  IF NOT gs_accit-umskz IS INITIAL.
    IF gs_accit-bschl+1 = '1'.
      gs_accit-bschl+1 = '9'.
    ENDIF.
  ENDIF.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2008 14:33:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-16T14:33:19Z</dc:date>
    <item>
      <title>Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928403#M1149758</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;I am uploading data from a flat file using BAPI to upload customer gl accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Posting Key ( BSCHL ) mentioned in the flat file is 01 ( for invoice ) , but when it is posted , in FB02 i am seeing it as 11 ( credit memo ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i checked all the data passed on to the BAPI. it is "01" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reason for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me in this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 09:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928403#M1149758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T09:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928404#M1149759</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;you can check these bapi's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_ACC_DOCUMENT_POST &lt;/P&gt;&lt;P&gt;BAPI_ACC_GL_POSTING_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check for this fm FI_ITEMS_MASS_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aakash Banga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 09:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928404#M1149759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T09:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928405#M1149760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check with your functional people, based on the document type , company code and Account or Matchcode for the Next Line Item the posting key will be changed in FB02.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 09:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928405#M1149760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T09:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928406#M1149761</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;refer&lt;/P&gt;&lt;P&gt; help.sap.com/printdocu/core/Print46c/EN/data/pdf/CAGTFADM/CAGTFADM-FI.pdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 09:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928406#M1149761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T09:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928407#M1149762</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;I am using the BAPI_ACC_DOCUMENT_POST to post the customer gl accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know why just the POSTING KEY is changing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 09:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928407#M1149762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T09:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928408#M1149763</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;I solved this problem. it was happening because of the negative sign i gave for Customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i have another doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By passing MWSKZ ( Posting key ) to the EXTENSION1 or EXTENSION2 , can we get the -1 negative or positive signs for the amounts in the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code for populating the EXTENSION1 and 2.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : IT_TES        TYPE STANDARD TABLE OF  ACCIT WITH HEADER LINE.

 IT_TES-POSNR = V_ITEM.
  IT_TES-MWSKZ = IT_ITEM-MWSKZ.
  MOVE IT_TES-POSNR TO IT_EXTENSION2-VALUEPART1(10).            "#EC ENHOK
  MOVE IT_TES-MWSKZ TO IT_EXTENSION2-VALUEPART1+10(2).            "#EC ENHOK
  APPEND IT_EXTENSION2.

       IT_EXTENSION1-FIELD1(10) = V_ITEM.
        IT_EXTENSION1-FIELD1+10(2) = IT_ITEM-MWSKZ.
      APPEND IT_EXTENSION1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesnt work .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless i give the negative sign or positive sign for the AMOUNT fields for calculation, it throws error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone used this EXTENSION1 and EXTENSION2 to pass the Posting key , to get the negative / postive signs automatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 13:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928408#M1149763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T13:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928409#M1149764</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;MWSKZ is not a posting key, but it's a condition (for the tax).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI decides automatically the posting key to be assigned to an item in order to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- the sign of the amount,&lt;/P&gt;&lt;P&gt;- the kind of the item (vendor, customer or g/l account)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can check how the BAPI decided which posting key has to be used in include LACC9F20, form fill_acct_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 13:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928409#M1149764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T13:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928410#M1149765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged the BAPI. and went thro the subroutine FILL_ACC_TYPE.&lt;/P&gt;&lt;P&gt;in this subroutine, it is assigning the BSCHL. &lt;/P&gt;&lt;P&gt;I am not able to find out where in the BAPI it decides the SIGN of the AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guide me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to pass on the POSTING KEY to the BAPI EXTENSION and get the SIGN of the amount automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 DATA: ld_bschh  LIKE accit-bschl,
        ld_bschs  LIKE accit-bschl,
        ld_umskz  LIKE accit-umskz.

  IF NOT gs_accit-ktosl IS INITIAL AND
     gs_accit-kstat IS INITIAL.
    CALL FUNCTION 'FI_GET_POSTING_KEY'
      EXPORTING
        i_ktosl       = gs_accit-ktosl
      IMPORTING
        e_bschs       = ld_bschs
        e_bschh       = ld_bschh
        e_umskz       = ld_umskz
      EXCEPTIONS
        error_message = 1.
    IF sy-subrc IS INITIAL.
      IF gs_accit-shkzg = 'S'.
        gs_accit-bschl = ld_bschs.
      ELSE.
        gs_accit-bschl = ld_bschh.
      ENDIF.
**     SHB-Vorgänge HR-Travel mit Ktosl 'HRV'
*      IF NOT ld_umskz IS INITIAL.
*        gs_accit-umskz =  ld_umskz.
**        keine Ableitung Zahlungsbedingung für SHB-Vorgänge
*        CLEAR gs_accit-zterm.
*      ENDIF.
    ELSE.
      PERFORM error_from_system
              USING gs_bapi_accit-parameter
                    gs_bapi_accit-tabix
                    'ACCT_KEY'.
    ENDIF.
  ENDIF.

  IF gs_accit-bschl IS INITIAL.
    CASE gs_accit-koart.
      WHEN 'D' OR 'V'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '01'.
        ELSE.
          gs_accit-bschl = '11'.
        ENDIF.
      WHEN 'K'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '21'.
        ELSE.
          gs_accit-bschl = '31'.
        ENDIF.
      WHEN 'S'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '40'.
        ELSE.
          gs_accit-bschl = '50'.
        ENDIF.
      WHEN 'A'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '70'.
        ELSE.
          gs_accit-bschl = '75'.
        ENDIF.
      WHEN 'M'.
        IF gs_accit-shkzg = 'S'.
          gs_accit-bschl = '40'.
        ELSE.
          gs_accit-bschl = '50'.
        ENDIF.
    ENDCASE.
  ENDIF.

  IF NOT gs_accit-umskz IS INITIAL.
    IF gs_accit-bschl+1 = '1'.
      gs_accit-bschl+1 = '9'.
    ENDIF.
  ENDIF.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 14:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928410#M1149765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T14:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928411#M1149766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vikki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you need sign for the amounts? Have you tried posting the FI docs manually using FB01 trxn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you give Posting Keys (40, 50 for ex.) you just have to input the amount fields. No need to give any signs !!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your Debit/Credit you input the Posting Keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.: 40--&amp;gt; Debit Entry &amp;amp; 50 --&amp;gt; Credit Entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally to post a FI doc the Debit &amp;amp; CRedit entries must balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of any queries do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 14:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928411#M1149766</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2008-12-16T14:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928412#M1149767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when using BAPI, if i dont give ( * -1) for Vendor accounts , it gives me an error &lt;/P&gt;&lt;P&gt;" BALANCE IN TRANSACTION CURRECNY ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats the reason i am giving * -1 for vendor accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as per the requirement , i need to achieve this by just passing the POSTING KEY.&lt;/P&gt;&lt;P&gt;I should not be hardcoding this   ( * -1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said when i post it manually , the negative and postive sign is coming in properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am cluless how to get it through BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using BTE will help????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this link &lt;A href="http://delaynomore.spaces.live.com/blog/cns!D2BFFB84EDFE4189!528.entry" target="test_blank"&gt;http://delaynomore.spaces.live.com/blog/cns!D2BFFB84EDFE4189!528.entry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 14:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928412#M1149767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T14:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928413#M1149768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First Fetch the Debit/ Credit indicator for the posting key using the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*...Fetch Debit/Credit indicator and Posting Key from TBSL.&lt;/P&gt;&lt;P&gt;        DATA: l_tbsl TYPE tbsl.&lt;/P&gt;&lt;P&gt;        TRANSLATE wa_exceldata-value TO UPPER CASE.&lt;/P&gt;&lt;P&gt;        wa_filedata-bschl = wa_exceldata-value.&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_filedata-bschl&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            output = wa_filedata-bschl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE * FROM tbsl INTO l_tbsl WHERE bschl EQ wa_filedata-bschl.&lt;/P&gt;&lt;P&gt;        wa_filedata-shkzg = l_tbsl-shkzg.&lt;/P&gt;&lt;P&gt;        wa_filedata-koart = l_tbsl-koart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..........If ur Posting key is 'H', then multiply ur amount with -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_bapiaccr09-amt_doccur = wa_filedata-wrbtr * -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 14:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928413#M1149768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T14:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928414#M1149769</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;The BAPI doesn't decide the sign, u decide the sign when u transfer the item amount to CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI sets the Debit/Credit indicatot (field SHKZG) shkzg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the amount is negative SHKZG = H else = S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to pass a certain posting key u should customized the table T030B, this table is called by fm FI_GET_POSTING_KEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 16:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928414#M1149769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T16:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key - FB02 data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928415#M1149770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for your reply.&lt;/P&gt;&lt;P&gt; and i saw one of your replies related to   EXTENSION in BAPI.&lt;/P&gt;&lt;P&gt;it was also helpfu.&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;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 16:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-fb02-data-upload/m-p/4928415#M1149770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T16:13:02Z</dc:date>
    </item>
  </channel>
</rss>

