Document Split for Currency Exchange while posting Incoming payment

Hi Experts,
Scenario:
> Post incoming Customer payments using F-28
> posting entered today (14 Jan 2009), but posting date is 30 Dec 2008)
> Tested in Clients 001 and 005 (same setup in terms of GLs, Customers, Vendors, etc)
I was able to post the incoming payment in Client 005.  However, in Client 001, I got error message:
*Ex.rate diff.accts are incomplete for account 0000140000 (Trade Debtors/Customers) currency SGD
Message no. F5063
Diagnosis
The accounts for posting exchange rate differences could not be determined. For the specified G/L account and the specified currency key, the accounts are only specified incompletely. Either the accounts for the implemented exchange rate difference, the accounts for the valuation differences or the balance sheet adjustment account are missing.
System Response
The system cannot generate the exchange rate difference posting.
Procedure
By pressing ENTER, you achieve that the document is reset to a status without automatic posting. In another window, you can complete default settings for exchange rate differences and post the document afterwards.
Proceed*
When I clicked Proceed, the system took me to OBA1, with "Document Split for Currency Exchange" option highlighted in blue.
Does this mean that I need to create a new GL account to post Document Split for Currency Exchange?
Note: Setup for OBA1 both 001 and 005 are the same. But I only encountered the error in 001.
Hope someone can help me.
Thanks...

problem solved: add relevant Open Item GLs in OBA1 (Account Determination for OI Exchange Rate Differences)

Similar Messages

  • Error while posting Incoming Payment.

    Hi
    I Got this error while posting Incoming Payment. What do this Error Mean. How to solve it.
    Error:
    SBO_Application_ItemEventAP Object reference not set to an instance of an object
    Thank You

    Hi Gayathri,
    Try to disconnect the add-ons if any and then add the incoming payment.
    Regards,
    Vijay kumar

  • Error while posting Incoming payments from customers

    Hi Experts,
                      when i am trying to post Incoming payments from customers in F-28,The payment difference amount is Rs 5.
    while simulating the following error 
    "TAX CODE C2 FOR COUNTRY IN HAS BEEN DELETED OR INCORRECTLY CHANGED"
    MESSAGE NO.FS201

    Hi,
    OBZT just controls the display of the various tax codes in the drop down list if MIRO/ FB60 etc.
    You need to maintain the atx coe correctly in FBZP. Go to FBZP and in this tax code and check whether the tax rates etc. have been defined correctly for it.
    Regards,
    SDNer

  • Error while posting Incoming payment Cancellation entry in Current date

    Hi Experts
    Scenario
    Incoming payenet created on 31-05-2009
    Cancellation to be done on current date - 02-06-2009
    Current period selected as 010609 to 300609 in general settings
    When Incoming payment is cancelled - The system shows message ' The selected period is locked, Posting will be created in Current period', Continue - ?
    When YES is clicked - 'Date deviates from permissible range - (Journal Entry - posting date) Msg - (173-11)
    Document Numbering Journal entry is for Current period. (All the Journal entries are getting posted in current date, hence Document numbering is correct for Journal entry)
    PLEASE NOTE - The cancellation entry is needed to be passed on system date (02-06-2009) and NOT original document date of incoming payment (31-05-2009)

    Hi Sundaraja
    In 2007 B this issue does not arise, working FINE
    In 2005 B, there is option to set period as Current which I have done. and Active 'YES' & Locked 'NO'. Infact I have done this for all the periods of yr 2009-10.
    Still getting the error.
    Regards,
    Sid

  • Document splitting for retention on the basis of payment terms.

    Hi Colleagues,
    I have a vendor and customers where we have retention, current and advance account for it.  Now here we have only one reconciliation account facility against one vendor/customer but I want to see all these three entries seperately in vendor/customer account.
    As I know in ECC6 on the basis of payment terms we can split a entry while it is getting posted to vendor or customer account.  Can you please guide me how to proceed in doing its configuration.......
    Thanks in advance,
    Ketan
    Edited by: Ketan Pendse on Nov 26, 2008 7:32 PM

    Hi,
    In addition to the answer already given,if this is only for 30 days :-
    1.If you r using automatic credit control then automatic credit control setting you can assign 30 days of credit and in the blocking you can define it for delivery.
    Reward points if helpful.
    Regards,
    Amrish Purohit

  • BAPI for TOCE : FF68 - Posting Incoming Payments from Customers

    Hi,
    Can anybody provide me if there is any BAPI for the transaction FF68 : Posting Incoming Payments from Customers?
    Cheers,
    Yash K

    Hi,
    OBZT just controls the display of the various tax codes in the drop down list if MIRO/ FB60 etc.
    You need to maintain the atx coe correctly in FBZP. Go to FBZP and in this tax code and check whether the tax rates etc. have been defined correctly for it.
    Regards,
    SDNer

  • Posting Incoming Payment thru R-28

    Hi ,
    While posting incoming payment thru f-28 on simulation the second line item is Highlighted on entry of text & assignment we are able to post the document.
    I want to know where and what changes are done to get this feature.
    Thanks
    Surojit

    Hi
    This means that either text/assignment or both have been made mandatory for that line item, either in GL related field status group or Posting key realted field status group or through validations.
    Hence you may need to check all these to find out where it is customized.
    Regards

  • BDC / Bapi For  Post Incoming Payment (F-28)

    Hi
    Im creating BDC for F-28. But it got error coming out.
    >> It says DB05B-PSZAH(02) is not an input field.
    What I do is: First, I search for Line Item then Document Number. Then It return to basic list. Then I loop again for the second Line Item Number and Document Number.
    I can activate the first amount but cannot for the next amount and so on.
    Anybody could help me on this??
    Is there any BAPI for Post Incoming Payment (F-28)?
    Thank you.
    Regards.

    i dont think there is a BAPI for this Transaction...
    i have done a BDC on F-28 myself....pasting the code....hope it helps you....
    *******NOTE********
    the parameter in the subroutine is to see if there is a single document or multiple documents being posted.
    FORM fill_bdc_data_f-28_9005 USING p_i_mult_doc TYPE c.
    **BDC from screen 9005
      DATA : l_amt_bdc(13), l_amt_bdc_remain(13), l_amt_bdc_mult(13),
             l_amt_bdc_mult_remain(13), l_assignment(14), l_period(2),
             l_amount(13).
      CLEAR t_bdcdata.
      REFRESH t_bdcdata.
      PERFORM bdc_dynpro USING 'SAPMF05A' '0103'.
      PERFORM bdc_field USING 'BDC_OKCODE' '=AB'.   "OK CODE - doc overview
    **get user default date format and pass date in that format
      PERFORM convert_date_to_user_format USING bkpf-bldat.
      PERFORM bdc_field USING 'BKPF-BLDAT' w_date.  "cheque date
      CLEAR w_date.
      PERFORM bdc_field USING 'BKPF-BLART' i_blart.  "doc type
      PERFORM bdc_field USING 'BKPF-BUKRS' i_bukrs.  "comp code
    **get user default date format and pass date in that format
      PERFORM convert_date_to_user_format USING bkpf-budat.
      PERFORM bdc_field USING 'BKPF-BUDAT' w_date.  "posting date
      CLEAR w_date.
      l_period = sy-datum+4(2).
      PERFORM bdc_field USING 'BKPF-MONAT' l_period. "period
      PERFORM bdc_field USING 'BKPF-WAERS' 'INR'.    "currency
      PERFORM bdc_field USING 'BKPF-BKTXT' i_bankl.  "doc. hdr. text
      PERFORM bdc_field USING 'BKPF-XBLNR' i_xblnr.  "Ref. Document No.
      PERFORM bdc_field USING 'BSEG-ZUONR' i_zuonr.  "Assignment(Depot Code)
      PERFORM bdc_field USING 'RF05A-KONTO' i_bank_gl. "Bank GL acc
      PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.  "Business Area
      l_amount = bseg-wrbtr.
      PERFORM bdc_field USING 'BSEG-WRBTR' l_amount. "Amount
      PERFORM bdc_field USING 'BSEG-PRCTR' ''.  "Profit Center
    **open items data
      PERFORM bdc_field USING 'RF05A-AGKOA' 'D'.     "Acc type (D=customers)
      PERFORM bdc_field USING 'RF05A-XNOPS' 'X'.     "Std OIs check box
    **end of first screen
    **document overview screen
      PERFORM bdc_dynpro USING 'SAPMF05A' '0700'.    "Overview Screen
      PERFORM bdc_field USING 'BDC_CURSOR' 'RF05A-AZEI1(01)'.     "cursor
      PERFORM bdc_field USING 'BDC_OKCODE' '/00'.     "OK CODE
      PERFORM bdc_field USING 'RF05A-NEWBS' '19'.    "posting key
      PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
      PERFORM bdc_field USING 'RF05A-NEWUM' 'B'.     "Spl GL Indicator
    **for single document selected
      CLEAR l_amt_bdc.
      IF p_i_mult_doc = ''.
    ***new screen - next line item
        PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
        PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE
    **for single document, use the bouncing amount calculated earlier
        l_amt_bdc = w_amt_ant_bouncing.
        PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc. "amount
    **due date - same as posting date on screen
    **get user default date format and pass date in that format
        PERFORM convert_date_to_user_format USING bkpf-budat.
        PERFORM bdc_field USING 'BSEG-ZFBDT' w_date.  "due date
        CLEAR w_date.
    **assignment
        CLEAR l_assignment.
        CONCATENATE t_seldoc_ant_bouncing-belnr
                    t_seldoc_ant_bouncing-gjahr INTO l_assignment.
        PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
        PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.
    **if there is some remaining amount, then go for another line item
        IF w_rem_amt_ant_bouncing > 0.
          PERFORM bdc_field USING 'RF05A-NEWBS' '15'.    "posting key
          PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
    **new screen
          PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
          PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-ZTERM'. "CURSOR
          PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE-ENTER
          l_amt_bdc_remain = w_rem_amt_ant_bouncing.
          PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
          PERFORM bdc_field USING 'BSEG-ZTERM' '0001'.
    **AGAIN
          PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
          PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-WRBTR'. "CURSOR
          PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE-SAVE
          PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
          PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term -hardcoded
          PERFORM bdc_field USING 'BSEG-SKFBT' l_amt_bdc_remain.
        ENDIF.
    **multiple documents
      ELSE.
    **initialize remaining amount to amt entered on screen
        l_amt_bdc_mult_remain = bseg-wrbtr.
        LOOP AT t_seldoc_ant_bouncing.
          IF l_amt_bdc_mult_remain > 0.
            IF bseg-wrbtr > t_seldoc_ant_bouncing-rem_amt.
              l_amt_bdc_mult = t_seldoc_ant_bouncing-rem_amt.
            ELSE.
              l_amt_bdc_mult = bseg-wrbtr.
            ENDIF.
    **remaining amt = screen amt - amt calculated above.
            l_amt_bdc_mult_remain = l_amt_bdc_mult_remain - l_amt_bdc_mult.
            PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
            PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE
            PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult. "amount
            PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.  "Business Area
    **due date - same as posting date on screen
    **get user default date format and pass date in that format
            PERFORM convert_date_to_user_format USING bkpf-budat.
            PERFORM bdc_field USING 'BSEG-ZFBDT' w_date.  "due date
            CLEAR w_date.
    **assignment
            CLEAR l_assignment.
            CONCATENATE t_seldoc_ant_bouncing-belnr
                        t_seldoc_ant_bouncing-gjahr INTO l_assignment.
            PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
    **posting key 19 for all but last document
            PERFORM bdc_field USING 'RF05A-NEWBS' '19'.    "posting key
            PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
            PERFORM bdc_field USING 'RF05A-NEWUM' 'B'.     "Spl GL
          ENDIF.
        ENDLOOP.
      ENDIF.
    **post remaining amount
      IF p_i_mult_doc = 'X'.
    **new screen if there is some amount left
        IF l_amt_bdc_mult_remain > 0.
    **posting key 15 with remaining amount
          PERFORM bdc_field USING 'RF05A-NEWBS' '15'.    "posting key
          PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
          PERFORM bdc_field USING 'RF05A-NEWUM' ''.     "Spl GL
    **new screen
          PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
          PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.    "OK CODE
          PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult_remain.
          PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term - hardcoded
        ELSE.
    **if no amount is left, no need for a further line item
          PERFORM bdc_field USING 'RF05A-NEWBS' ''.    "posting key
          PERFORM bdc_field USING 'RF05A-NEWKO' ''. "customer
          PERFORM bdc_field USING 'RF05A-NEWUM' ''.     "Spl GL
        ENDIF.
      ENDIF.
    **clear variables
      CLEAR : l_amount, l_assignment, l_amt_bdc,
              l_amt_bdc_remain,l_amt_bdc_mult, l_amt_bdc_mult_remain.
    ENDFORM.                    " fill_bdc_data_F-28_9005

  • Business Transaction Events (BTE) for Post Incoming Payments F-28

    Hi Experts,
    I have a request from a user to add a ship-to-party column inside the Post Incoming Pamyent F-28 for all the 4 tabs (standard, partial payment, res.items, withholding tax). Anyone did this by using BTE? What should be the event name to add the partner field only for F-28 Posting (Incoming Payment)?
    Thanks a lot!

    How are you going to use Ship-to?
    There is no field within a Finance document that it relates to.
    The customer is normally the "Payer" from a SD document, and the "Branch" is the sold to - but there is no financial field that it could map to?

  • BAPI or FM to post incoming payment for transaction F-28?

    Hi all,
    I am looking for a BAPI or FM to post incoming payment through transaction F-28.
    Please guide if someone worked on it.........
    Thanks
    Suvarna

    hi,
    look all these similar threads and u decide what to do .............
    BAPI on Post Incoming Payment (F-28) Enquiry
    BDC / Bapi For  Post Incoming Payment (F-28)
    F-28 -post incoming payment
    bapi is used to 'post incoming payments (t-code F-28)'
    BAPI or FM for F-28 Transaction
    ~~Guduri

  • "Program for Currency Exchange rate updatein SAP"

    HI All,
    PLease provide me with the Program name for Currency exchange rate update.
    Thanks & Regards
    Harish

    HI
    You can use Program RSIMPCURR to automate.
    This program update the TCURR table everyday with correct exchange rate.
    Thanks
    Ranjith

  • Posting Incoming payment through EDI 820

    Hello,
    I am trying to set up EDI 820. I want to post incoming payments through EDI 820.
    IDOC Information
    IDOC type: PEXR2002
    Message type: REMADV
    Function Module: IDOC_INPUT_REMADV
    Process code: REMC
    I have been testing using test tool all my idocs are failed. The error which I am getting is - "customer/vendor could not be determined for intermediate document".
    Please suggest me how to fix this error. Is this related to FI config settings or ALE setting error.
    Thanks & Regards,
    Victor

    Even i faced the same error while posting the EDI820. Then i corrected the errror by maintaining the segement E1EDKA1
    Field name : PARVW , Value: AG
    Field name : Name1, Value : Vendor number at customer location
    And also the segment E1EDKA1
    Field name : PARVW , Value: BE
    Field name : Name1, Value : Vendor number at customer location
    this should help you
    IF E1EDPA1-PARTN IS INITIAL.
            IF E1EDPA1-NAME1 IS INITIAL.
    *-- keine Daten uebermittelt => Fehler
              PERFORM STATUSFELDER_FUELLEN
                      USING FEHLER_BEI_UEBERGABE
                            MSG_WARNING
                            MESSAGE_ID
                            MUSS_FELD_FEHLT
                            'NAME1'
                            'E1EDPA1'
                            SY-REPID
                            'E1EDPA1_MOVES'
                            'NAME1'
                            SEGNUM
                            DOCNUM.
            ELSE.
              SCHLUESSEL = E1EDPA1-NAME1.
            ENDIF.
          ELSE.
            SCHLUESSEL = E1EDPA1-PARTN.
          ENDIF.
          IF NOT SCHLUESSEL IS INITIAL.
            PERFORM PARTNER_TABELLE_LESEN
                    USING SCHLUESSEL PARTNERNUMMER
                          PARTNERART HILF_BUKRS.
    You can also populate  E1EDPA1-PARTN instead of NAME1 to find the account.

  • How to Post Incoming Payments

    Hi,
    I request you to explain the process involved to post incoming payments in F-28. Please let me know how I can track the Account number under Bank data of a customer and also what document type to be selected?
    If I select document type u2013 DZ system is asking an entry is required in field reference. My idea is to clear all the invoices of a customer.Please guide me what steps to be done to clear invoices of a customer.
    Please advice me.
    Thanks,
    Victor.

    Hi Victor,
    F-28 is using for customer incoming payment. In F-28,
      give doc. date,
      doc. type as DZ,
      Co. Code,
      Posting Date,
      Period, currency,
      Ref. No. in refe. field,
      no need to give doc. no.,
      give doc. header text,
      and give bank a/c. no.,
      amount,
      if bank charge applicable give bank charge amouunt otherwise no need to give,
      value date,
      header text and
      give customer no. and
      select process open item,
      then it will go another one screen and
      select select all button and select deactivate then all transacton figures will appear in block colour
      if the payment is full payment select standard tab, if it is partial select partial tab and if it is residual   payment select residual payment
      then select doc. no. for tracing invoice and click double click... it will shows blue colour
      in that below in Editing Status, the amount entered field and amount assigned field will be same and   the not assigned field should be in Zero. then only u can save. otherwise u can not save the doc.
    I think this will clear idea to u for Incoming payment process.....

  • BAPI on Post Incoming Payment (F-28) Enquiry

    Hi all,
    I try to look for BAPI on F-28 and I had search for many info. However, I found that 1 thread saying that we can have 'BAPI_ACC_GL_POSTING_POST' to do.
    Refer to this site:
    bapi is used to 'post incoming payments (t-code F-28)'
    However, I found that the BAPI is used for transaction FB50. Generally, I use the F-28 to post incoming payment for AR. So I am not so sure that the BAPI can work.
    Besides that, I found another thread claim that no BAPI for the F-28. Refer to this site:
    https://www.sdn.sap.com/irj/sdn/profile?userid=677412
    As my research, I cant find the appropriate BAPI. Please give me some idea on how the BAPI work, and any correct BAPI can be used? Frankly, I a bit confused now.
    Thanks and regards.
    Cheers,
    Isaac

    Kindly go through this. I thjink it will clear you.
    Pattern in which function modules are called
    The function module fi_document_process is called 4 times and finally document_post is called once which updates the tables.
    Step 1. Call FI_DOCUMENT_PROCESS
    Import Parameters
    I_GJAHR     LIKE     TRWCA- YEAR
    I_PROCESS     LIKE     TRWPR-PROCESS
    I_EVENT     LIKE     TRWPR-EVENT
    Tables
    T_BKPF          LIKE     BKPF
    T_BSEG          LIKE     BSEG
    T_BSEGZ     LIKE     BSEGZ
    T_ACCIT_EXT     LIKE     ACCIT_EXTENSION   
    Values to populate import parameters
          i_gjahr                 = '2007'     “Fiscal year from the screen
          i_process              = 'BELEG'    “Constant, can be hard coded
          i_event                  = 'CRBSEGZ'   “Constant, can be hard coded
                  xbkpf-bukrs '1000'.            “ Company code from the screen
                  xbkpf-belnr '$1'.              “ constant , can be hard coded
                  xbkpf-gjahr '2007'.             “ Fiscal Year , from the screen
                  xbkpf-blart 'DZ'.              “ Can be obtained from the invoice document
                  xbkpf-bldat '20070116'.      “ Document Date, from the screen
                  xbkpf-budat ’20070118'.      “ Posting Date , from the screen
                  xbkpf-monat '01'.                  “ constant , can be hard coded
                  xbkpf-wwert '20070118'.       “ posting Date
                  xbkpf-usnam 'SAPUSER'.       “ user name
                  xbkpf-tcode 'FBZ1'.               “ Constant, can be hard coded
                  xbkpf-waers 'EUR'.                 “ currency, from the screen
                  xbkpf-glvor 'RFBU'.                “ constant can be hard coded
                  xbkpf-awtyp 'BKPF'.                “ constant, can be hard coded
                  xbkpf-fikrs ’1000'.              “ customer account number, from the screen
                  xbkpf-hwaer 'EUR'.              “ Currency, from the screen
                  xbkpf-awsys 'ECCCLNT800'.    „can be hard coded
    xbseg Record 1
          xbseg-bukrs  '1000'.           “ Company code from the screen
          xbseg-belnr  '$1'  .           “ constant , can be hard coded
          xbseg-gjahr  '2007'.            „ Fiscal Year, from the screen
          xbseg-buzei  ’001'.             “ constant , can be hard coded
          xbseg-bschl  '40'.          “ constant , can be hard coded
          xbseg-koart  'S'.          “ constant , can be hard coded
          xbseg-shkzg  'S'  .           “ constant , can be hard coded
          xbseg-dmbtr  '10'.           „ Amount, from the screen
          xbseg-wrbtr  '10'.           „ Amount, from the screen
          xbseg-pswbt  ’10'.           „ Amount, from the screen
          xbseg-pswsl  'EUR'.           „ Currency, from the screen
          xbseg-valut  ’20070118'.        “ Posting date, from the screen
          xbseg-altkt  '0000110100'.
          xbseg-vorgn  'RFBU'.      “ constant , can be hard coded
          xbseg-fdlev  'B9'.           “ constant , can be hard coded
          xbseg-fdwbt  '10'.            „ Amount, from the screen
          xbseg-fdtag  '20070118'.        “ Posting date, from the screen
          xbseg-kokrs  ’1000'.             “ Customer account
          xbseg-xkres  'X'.           “ constant , can be hard coded
          xbseg-xopvw  'X'.            “ constant , can be hard coded
          xbseg-hkont  '0000110009'. “ Bank Account number
          xbseg-xbilk  'X'.           “ constant , can be hard coded
          xbseg-fipos  '9620'.            “ constant , can be hard coded
          xbseg-lokkt  '0000110009'.  “ Bank Account number
    xbseg Record 2.
            bseg-bukrs '1000'.      “ Company code from the screen
          bseg-belnr. '$1'      “ constant , can be hard coded
          bseg-gjahr. '2007'     “ Fiscal year from the screen
          bseg-augbl. '*'     “ constant , can be hard coded
          bseg-buzei'002'.      “ constant , can be hard coded
          bseg-bschl. '15'     “ constant , can be hard coded
          bseg-koart. 'D'     “ constant , can be hard coded
          bseg-shkzg. 'H'     “ constant , can be hard coded
          bseg-dmbtr. '10'      “Amount, from the screen
          bseg-wrbtr. '10'     “Amount, from the screen
          bseg-pswbt. '10'     “Amount, from the screen
          bseg-pswsl. 'EUR'     “ currency, from the screen
          bseg-altkt. '0000120100'
          bseg-vorgn. 'RFBU'     “ constant , can be hard coded
          bseg-kokrs. '1000'      “ Customer account number
          bseg-xkres. 'X'     “ constant , can be hard coded
          bseg-xopvw. 'X'     “ constant , can be hard coded
          bseg-hkont. '0000140000'
          bseg-xbilk. 'X'     “ constant , can be hard coded
          bseg-fipos. '9620'     “ constant , can be hard coded
          bseg-lokkt. '0000140000'
          bseg-nebtr. '10'      “ Amount, from the screen
          bseg-xauto. 'X'     “ constant , can be hard coded
          bseg-xzahl. 'X'     “ constant , can be hard coded
          bseg-saknr. '0000140000'
          bseg-zfbdt. '20070116'” Invoice document date
          bseg-hwmet. 'A'     “ constant , can be hard coded
          bseg-kkber. '1000'     “ Customer account number
          bseg-agzei. '1'     “ constant , can be hard coded
    Step 2. Call FI_DOCUMENT_PROCESS
    Import Parameters
    I_GJAHR     LIKE     TRWCA- YEAR
    I_PROCESS     LIKE     TRWPR-PROCESS
    I_EVENT     LIKE     TRWPR-EVENT
    Tables
    T_BKPF          LIKE     BKPF
    T_BSEG          LIKE     BSEG
    T_BSEGZ     LIKE     BSEGZ
    T_AUSZ3     LIKE     AUSZ_CLR
    T_AUSZ4     LIKE     AUSZ_CLR_ASGMT
    T_ACCIT_EXT     LIKE     ACCIT_EXTENSION   
    Values to  populate import parameters
          i_gjahr                 = '2007'     “Fiscal year from the screen
          i_process              = 'BELEG'    “Constant, can be hard coded
          i_event                  = 'CLOSE'   “Constant, can be hard coded
    Table xausz3.
              ausz3-agzei. '1'       “Constant, can be hard coded
           ausz3-waers. 'EUR'     „ Currency from the screen
           ausz3-bukrs. '1000'     „ Company Code
           ausz3-belnr. '1800000076' „ Document number from the screen
           ausz3-gjahr. '2007'        „ Fiscal Year
           ausz3-buzei. '001'          
           ausz3-shkzg. 'S'          “Constant, can be hard coded
           ausz3-dmbtr. '10'         “ Amount, from the screen
           ausz3-wrbtr. '10'          “ Amount, from the screen
           ausz3-koart. 'D'             “Constant, can be hard coded
    Step 3. Call FI_DOCUMENT_PROCESS
    Import Parameters
    I_GJAHR     LIKE     TRWCA- YEAR
    I_PROCESS     LIKE     TRWPR-PROCESS
    I_EVENT     LIKE     TRWPR-EVENT
    Tables
    T_BKPF          LIKE     BKPF
    T_BSEG          LIKE     BSEG
    T_BSEGZ     LIKE     BSEGZ
    T_AUSZ3     LIKE     AUSZ_CLR
    T_AUSZ4     LIKE     AUSZ_CLR_ASGMT
    T_ACCIT_EXT     LIKE     ACCIT_EXTENSION   
    Values to populate import parameters
          i_gjahr                 = '2007'          “Fiscal year from the screen
          i_process              = 'BELEG'         “Constant, can be hard coded
          i_event                  = 'PROJECT'        “Constant, can be hard coded
       I_AUGLV           = 'EINGZAHL' “Constant, can be hard coded
    Step 4. Call POST_DOCUMENT
    Import Parameters
    I_BKDF     LIKE     BKDF
    I_UF05A     LIKE     UF05A
    I_GENER     LIKE     T020-GENER
    I_AUGLV     LIKE     T041A-AUGLV
    Tables
    T_AUSZ1     LIKE     AUSZ1
    T_AUSZ2     LIKE     AUSZ2
    T_AUSZ3     LIKE     AUSZ_CLR
    T_AUSZ4     LIKE     AUSZ_CLR_ASGMT
    T_BKP1          LIKE     BKP1
    T_BKPF          LIKE     BKPF
    T_BSEC          LIKE     BSEC
    T_BSED          LIKE     BSED
    T_BSEG          LIKE     BSEG
    T_BSET          LIKE     BSET
    T_BSEU          LIKE     BSEU
    Values to populate import parameters
    Table xausz1
        xausz1-belnr. '1800000076'    „ Document number from the screen
        xausz1-bukrs. '1000'            „ Company code from the screen
        xausz1-gjahr. '2007'            „ Fiscal year from the screen     
        xausz1-buzei. '001'            “ Constant , can be hard coded
    Table xausz2
            ausz2-bukrs. '1000'            „ Company code from the screen
            ausz2-aktio. 'A'               “ Constant , can be hard coded
            ausz2-augbl. '1400000054'     „ Posted document number..from the function NUMBER_GET_NEXT(Dynamically generated unique number)
            ausz2-augdt. '20070118'          „ Posting Date from the screen
            ausz2-auggj. '2007'          „ Fiscal Year from the screen
    Table xbkpf
    First record of the internal table zbkpf has to be modified with the dynamically generated document number.
    Xbkpf-belnr.  ‘1400000054’
    Table xbkp1
    xbkp1-currj     '2007'   “ Fiscal year, from the screen
    Table xbseg
    Following fields in the table xbseg has to be modified before passing to this function module.
    Record 1
       TO wa_bseg1-belnr. '1400000054' “ Dynamically generated number
       TO wa_bseg1-zuonr. '20070116'   “ Document Date from the screen
    Record 2
       bseg1-belnr. '1400000054' „ Dynamically generated number
       bseg1-augdt. '20070118'   „ Posting date from the screen
       bseg1-augcp. '20070118'   „ Posting date from the screen
       bseg1-augbl. '1400000054'  „ Dynamically generated number
    bseg1-zuonr. '14000000542007' „ Concatenating dynamically generated number                                   and fiscal year
       bseg1-kunnr. '1000'        “ Customer number from the screen
    Table Xbseu
    Record 1
    bseu-waers     'EUR'     “ Currency from the screen
    Record 2
    bseu-waers.      'EUR'           “ Currency from the screen
    bseu-xzver.       'X'            “ Constant Hard coded
    Step 5. Call FI_DOCUMENT_PROCESS
    Import parameters
    I_GJAHR     LIKE     TRWCA-TOYEAR
    I_PROCESS     LIKE     TRWPR-PROCESS
    I_EVENT     LIKE     TRWPR-EVENT
    I_AWTYP     LIKE     ACCHD-AWTYP
    I_AWREF     LIKE     ACCHD-AWREF
    I_AWORG     LIKE     ACCHD-AWORG
    I_AWSYS     LIKE     ACCHD-AWSYS
    Tables
    T_BKPF     LIKE     BKPF
    Values to populate import parameters
      i_gjahr           = '2007'     “ Fiscal Year from the screen
      i_process         = 'BELEG'     “ Constant      
      i_event           = 'POST'     “ Constant
      i_awtyp           = 'BKPF'     “ Constant
      i_awref           = '1400000054'”Dynamically generated posting doc number
      i_aworg           = '10002007'     “ Concatenate comp code and Fiscal Year
      i_awsys           = 'ECCCLNT800'” Constant.

  • F-28 post incoming payment BAPI

    Hi All
    Please help to find the specific F-28 ( post incoming payment )BAPI to do the above activities.
    1. is this BAPI_ACC_DOCUMENT_POST is correct to do the F-28 Posting.
    Please confirm
    Thanks & Regards
    K.Gunasekar

    Hi All
    I am trying to post the customer incoming payment(f_28) by using BAPI_ACC_DOCUMENT_POST i am getting message as 'document posted successfully' but the document is not posted as i seen in FBL5N for that specific customer.
    Please find the below code if i need to change anything or any other parameter i missed out means
    please let us know.
    gs_documentheader-bus_act    = 'RFBU'.
    gs_documentheader-username   = sy-uname.
    gs_documentheader-header_txt = 'test'.
    gs_documentheader-comp_code  = 'BLE'.
    gs_documentheader-doc_date   = '20090331'.
    gs_documentheader-pstng_date = '20090331'.
    gs_documentheader-fisc_year  = '2008'.
    gs_documentheader-doc_type   = 'DY'.
    gs_documentheader-obj_type   = 'BKPF'.
    gs_documentheader-obj_key    = '$'.
    gs_documentheader-ac_doc_no  = '250037'.
    gs_documentheader-ref_doc_no = 'REF-222'.
    gs_documentheader-obj_sys    = 'SPDCLNT800'.
    gs_accountgl-itemno_acc = '0000000001'.
    gs_accountgl-gl_account = '0000200000'.
    gs_accountgl-item_text  = 'tEST'.
    gs_accountgl-comp_code  = 'BLE'.
    gs_accountgl-plant      = 'BLE'.
    APPEND gs_accountgl TO gt_accountgl.
    gs_currencyamount-itemno_acc = '0000000001'.
    gs_currencyamount-currency   = 'USD'.
    gs_currencyamount-amt_doccur = '285.15'.
    APPEND gs_currencyamount TO gt_currencyamount.
    gs_accountreceivable-itemno_acc  = '0000000002'.
    gs_accountreceivable-customer    = '0000100007'.
    gs_accountreceivable-gl_account  = '0000250000'.
    gs_accountreceivable-pmnttrms    = 'Z000'.
    gs_accountreceivable-bline_date  = '20090331'.
    gs_accountreceivable-item_text   = 'No Text'.
    gs_accountreceivable-comp_code   = 'LTA'.
    APPEND gs_accountreceivable TO gt_accountreceivable.
    gs_currencyamount-itemno_acc     = '0000000002'.
    gs_currencyamount-curr_type      = '00'.
    gs_currencyamount-currency       = 'USD'.
    gs_currencyamount-amt_doccur     = '-285.15'.
    APPEND gs_currencyamount TO gt_currencyamount.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader          = gs_documentheader
       customercpd             = gs_customercpd
      CONTRACTHEADER          =
    IMPORTING
       obj_type                = gv_obj_type
       obj_key                 = gv_obj_key
       obj_sys                 = gv_obj_sys
      TABLES
       accountgl               = gt_accountgl
       accountreceivable       = gt_accountreceivable
      ACCOUNTPAYABLE          =
      ACCOUNTTAX              =
        currencyamount          = gt_currencyamount
      CRITERIA                =
      VALUEFIELD              =
      EXTENSION1              =
        return                  = gt_return.
      PAYMENTCARD             =
      CONTRACTITEM            =
      EXTENSION2              =
      REALESTATE              =
    IF NOT gt_return IS INITIAL.
      WRITE:/ gt_return-message.
    ENDIF.

Maybe you are looking for

  • Acrobat 9 pro cd is being rejected

    I just installed my version of web premium pro for mac, but stalled when trying to install Acrobat 9 pro. The CD provided just stops spinning and gets ejected from my macbook pro a while after insertion. So I guess I've received a faulty CD. I have y

  • Complex decode or Case

    I have 2 fields and 3 variables to match as seen here: <SQL> select case when(UOM.UOM_code=2323 and fc.pkid=3574 or fc.pkid=1109) then qcr.QTY_DEFECT/8000 else qcr.QTY_DEFECT end as defects I could use this if it would work... <SQL> Decode(UOM.UOM_co

  • Add fields into a new tab page

    Hi!    I am in cProject 4.0 and there is a functionality to add new tab pages with fields in cProject components. The IMG activity is Collaboration Projects -> Global Enhancements to Project Elements -> Show Additional Tab Page in cProjects.    The h

  • Ipad loads 33 photos from my photo stream and stops

    I have spent hours trying to get iCloud photos in either Aperture or iPhoto to sync with my iPad mini. best I can do is 33 (sometimes) then it stops.  Can't wait for the new environment as this is not working.  Any suggestions?  I have tried a variet

  • Flash works differently in several browser

    ...see the players buttons and manage them and in FF I can't. There is another catch...If in FF I'm entering a page and come back to player I CAN SEE ANA MANAGE THE BUTTONS! Anyone, any ideea?