Posting data to g/l account

hi all,
   i am trying to post data to gl account through trasaction FB01.
   so what are the general views required to be selected?
   can any one send the functional spec and coding in bdc .
   Thanks in advance.
  rgds
umakanth
[email protected]

Hi umakanth,
100 % agree to Arun.
the following code my give you an idea as how to use the BAPI. Please be aware that this is sample code that must be understood and adapted to the specific needs of your environment.
[code]
*&      Form  post_diff
      post difference to notes account against technical
FORM post_diff  CHANGING ps_alv_display   TYPE LINE OF ty_t_alv_display.
  STATICS:
    lv_logsys                             TYPE t000-logsys.
  DATA:
   lv_prctr                             TYPE prctr,
    lv_currency_iso                       TYPE isocd,
    ls_documentheader                     TYPE bapiache08,
    lv_obj_type                           TYPE bapiache02-obj_type,
    lv_obj_key                            TYPE bapiache02-obj_key,
    lv_obj_sys                            TYPE bapiache02-obj_sys,
    lt_accountgl                          TYPE TABLE OF bapiacgl08,
    ls_accountgl                          TYPE          bapiacgl08,
    lt_currencyamount                     TYPE TABLE OF bapiaccr08,
    ls_currencyamount                     TYPE          bapiaccr08,
    lt_extension1                         TYPE TABLE OF bapiextc,
    ls_extension1                         TYPE          bapiextc,
    lt_return                             TYPE TABLE OF bapiret2.
  CHECK:
    p_echt IS NOT INITIAL,
    ps_alv_display-diff_h                 <> 0.
  IF lv_logsys IS INITIAL.
    SELECT SINGLE logsys INTO lv_logsys FROM t000 WHERE mandt = sy-mandt.
get dummy profit center as well
   PERFORM get_dummy_prctr USING ps_alv_display-rbukrs CHANGING lv_prctr.
  ENDIF." lv_logsys is initial.
  PERFORM get_curr_4_ccode
    USING ps_alv_display-rbukrs CHANGING lv_currency_iso.
  ls_documentheader-obj_type              = 'BKPFF'.
  ls_documentheader-obj_sys               = lv_logsys.
  ls_documentheader-obj_key               = '$'.
  ls_documentheader-username              = sy-uname.
  ls_documentheader-header_txt            = 'reconciliation'(a04).
  ls_documentheader-comp_code             = ps_alv_display-rbukrs.
  ls_documentheader-doc_date              = sy-datum.
  ls_documentheader-fisc_year             = sy-datum(4).
  ls_documentheader-pstng_date            = p_budat.
  ls_documentheader-fis_period            = p_bper .
  ls_documentheader-doc_type              = p_blart.
  ls_accountgl-itemno_acc                 = 1.
  ls_accountgl-gl_account                 = ps_alv_display-racctnote.
  ls_accountgl-comp_code                  = ps_alv_display-rbukrs.
  ls_accountgl-item_text                  = 'reconciliation'(a04).
  ls_accountgl-profit_ctr                 = ps_alv_display-prctr.
  APPEND ls_accountgl TO lt_accountgl.
  ls_accountgl-itemno_acc                 = 2.
  ls_accountgl-gl_account                 = p_gkont.
  ls_accountgl-comp_code                  = ps_alv_display-rbukrs.
  ls_accountgl-item_text                  = 'reconciliation'(a04).
  ls_accountgl-profit_ctr                 = ps_alv_display-prctr.
  APPEND ls_accountgl TO lt_accountgl.
Company Code Currency
  ls_currencyamount-curr_type             = '10'. "Company code currency
  ls_currencyamount-itemno_acc            = 1.
  ls_currencyamount-currency              = ps_alv_display-hwaer.
  ls_currencyamount-amt_doccur            = ps_alv_display-diff_h.
  APPEND ls_currencyamount TO lt_currencyamount.
  ls_currencyamount-itemno_acc            = 2.
  ls_currencyamount-amt_doccur            = - ps_alv_display-diff_h.
  APPEND ls_currencyamount TO lt_currencyamount.
Transaction Currency
  ls_currencyamount-curr_type             = '00'. "Transaction currency
  ls_currencyamount-itemno_acc            = 1.
  ls_currencyamount-currency              = ps_alv_display-rtcur.
  ls_currencyamount-amt_doccur            = ps_alv_display-diff_t.
  APPEND ls_currencyamount TO lt_currencyamount.
  ls_currencyamount-itemno_acc            = 2.
  ls_currencyamount-amt_doccur            = - ps_alv_display-diff_t.
  APPEND ls_currencyamount TO lt_currencyamount.
Addtl fields via Extension
partner company                         in field RASSC for both positions
  ls_extension1-field1                    =  'RASSC'.
  ls_extension1-field2                    =  1.
  ls_extension1-field3                    =  ps_alv_display-rassc.
  APPEND ls_extension1 TO lt_extension1.
  ls_extension1-field2                    =  2.
  ls_extension1-field3                    =  ps_alv_display-rassc.
  APPEND ls_extension1 TO lt_extension1.
Transactiontype
  ls_extension1-field1                    =  'RMVCT'.
  ls_extension1-field2                    =  1.
  ls_extension1-field3                    =  ps_alv_display-rmvct.
  APPEND ls_extension1 TO lt_extension1.
  ls_extension1-field2                    =  2.
  ls_extension1-field3                    =  ps_alv_display-rmvct.
  APPEND ls_extension1 TO lt_extension1.
ZZMULTI
  ls_extension1-field1                    =  'ZZMULTI'.
  ls_extension1-field2                    =  1.
  ls_extension1-field3                    =  ps_alv_display-zzmulti.
  APPEND ls_extension1 TO lt_extension1.
  ls_extension1-field2                    =  2.
  ls_extension1-field3                    =  ps_alv_display-zzmulti.
  APPEND ls_extension1 TO lt_extension1.
  CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
    EXPORTING
      documentheader = ls_documentheader
    IMPORTING
      obj_type       = lv_obj_type
      obj_key        = lv_obj_key
      obj_sys        = lv_obj_sys
    TABLES
      accountgl      = lt_accountgl
      currencyamount = lt_currencyamount
      return         = lt_return
      extension1     = lt_extension1.
  APPEND LINES OF lt_return TO ps_alv_display-t_prot.
  ps_alv_display-protocol                 = icon_protocol.
  LOOP AT lt_return TRANSPORTING NO FIELDS WHERE type CA 'EAX'.
  ENDLOOP." at lt_return where            TYPE ca 'EAX'.
  IF sy-subrc                             = 0.
error encountered
    ps_alv_display-lights                 = icon_failure.
  ELSE.
posted - turn lights green
    ps_alv_display-lights                 = icon_green_light.
posted - get document number
    ps_alv_display-docnum                 = lv_obj_key(10).
  ENDIF." sy-subrc                        = 0.
ENDFORM.                    " post_diff
[/code]
Hope it helps,
Clemens

Similar Messages

  • Abap Query on most Latest Posting Date in G/L Account

    Dear All
    This is the new request that has come from the client. What they want to see is the G/L account and the most recent Posting Date. For eg Lets say that 220000 has 3 line items
    1000 in march 06
    2000 in april 06
    3000 in may 06
    End user wants to see Balance as 6000 and the most recent Posting date as may 06. If i Pull Accounting Doc # and Posting Date it will give me all the details and date which i dont really want. How do i do it ?
    Please help me
    Thanks
    Sameer

    Hi,
    what we can do is that get all the line items for a G/L account in an internal table. Sort it descending by date. Pick the first row's date and then simply sum up the quantities.
    Hope this helps.
    Regards,
    Himanshu.

  • ABAP Query on Recent Posting Date in G/L Account

    Dear All
    This is the new request that has come from the client. What they want to see is the G/L account and the most recent Posting Date. For eg Lets say that 220000 has 3 line items
    1000 in march 06
    2000 in april 06
    3000 in may 06
    End user wants to see Balance as 6000 and the most recent Posting date as may 06. If i Pull Accounting Doc # and Posting Date it will give me all the details and date which i dont really want. How do i do it ?
    Please help me
    Thanks
    Sameer

    Hi,
    try table GLT0 (for Rel. 4.6C)
    A.

  • Posting date and billing date changes on release to accounting

    Hello,
    I wants to change invoive billing date (VBRK-FKDAT) automatically with current system date (SY-UDATE) when release to accounting invoice.
    Because always, our posting date (BKPF-BUDAT) on accounting document) must equal to current system date (SY-UDATE).
    Our billing type  is not blocked for transfer to accounting. We are using manually release to acounting invoice.
    I can't find user exit for VF02-Release to accounting document process. (for change VBRK-FKDAT and BKPF-BUDAT)
    Can you help me please?
    Thank you
    Gulay Celik

    Dear Gulay Celik
    Go to VTFL, select your item category for the combination of your delivery type and billing type and maintain routine 11  and save.
    Now try to create a billing for which PGI has done already on the previous date and post the outcome.
    thanks
    G. Lakshmipathi

  • What G/L Accounts are Updated Accordingly when the Posting Date is Changed?

    We are on SAP 2007 PL15, and our new fiscal year started 1 July 2008. Beginning on 1 July, whenever we change the posting date on a marketing document to a date in June, the following message appears:
    Newly Entered Posting Date Relates to Another Posting Period. Do you want to update G/L accounts accordingly? [Yes]  [No]
    Does anyone know what G/L accounts would be "updated accordingly" based on Posting Date? We did not get any such message last year when we were on SAP 2005.
    Thank you,
    Mike

    Dear Mike,
    Make be the exchange rate difference acount or related.
    Wish it is useful for you .
    Regards
    Apple

  • Posting date to accounting for billing document

    Dear Experts
    In SD cycle, we have created billing document in first quarter. As per our customization settings the billing document was created with Posting block.
    Now today i.e. in second quarter we want to release this billing document to accounting without opening the posting period for FI/CO. i.e. we want to release the billing document to accounting in current period. How to manage this??
    Also I have another query, Billing document created in first Quarter is having one exchange rate (e.g. EXQ1). Let say current exchange rate is EXQ2.
    Now when we release the same billing document today i.e. in second quarter, which exchange rate will be applicable to that billing document EXQ1 or EXQ2 ??
    Thanx in advance
    Kailash

    Dear Prashant
    It is Posting Date only.  You dont find this field in invoice but you can see in accounting document.  The table is BKPF - Field Name BUDAT.  Once you apply the user exit ZXVVFU01 and click on the green flag in VF02, system will propose to input a date.  Whatever date you enter here, it will be updated in the above field.  Of course, you cannot input a date here for which FI period is closed.
    Take the help of ABABer and give this logic.  He will fulfill your requirement.
    thanks
    G. Lakshmipathi

  • What is GL account, difference bet. Doc.date and posting date, etc.

    Hello Experts,
    Currently I am supporting reports/programs for FI module. Can anybody please help
    me or give me walkthrough on what are the terms like posting key, document date,
    posting date, type, account, etc. I am currently modifying a report which posts in
    transaction F-02. Any tips and guides will be highly appreciated. Thanks guys and take care!

    Hi,
    <b>GL Account:</b> This field contains the number of the G/L account to which the transaction figures are updated.we use One gl account for Salaries in an Orgn, and for expenses one GL like that.
    <b>Document Date</b>: The document date is the date on which the original document was issued.
    <b>Posting date:</b>Date which is used when entering the document in Financial Accounting or Controlling
    The fiscal year and the period for which an update of the accounts specified in the document or cost elements is made, are derived from the posting date.
    When entering documents, the system checks whether the posting date entered is allowed by means of the posting period permitted.
    The posting date can differ from both the entry date (day of entry into the system) and the document date (day of creation of the original document).
    <b>Posting Key:</b>The posting key describes the type of transaction which is entered in a line item.
    For every posting key, you specify properties which control the entry of the line item or are noted in the line item itself.
    The most important properties which are derived from the posting key are:
    The account type
    The allocation to the debits or credits side
    The possible or necessary specifications which are to be entered in the line item.
    <b>DocType:</b>The document type classifies the accounting documents. It is stored in the document header.
    Attributes that control the entry of the document, or which are themselves noted in the document, are defined for each document type. In particular, the number range assigned to the associated documents is defined on the basis of the document type.
    reward if useful
    regards,
    Anji

  • Bank Accounts posted data transfer

    Hi all Experts,
    Thel scenario here is we are having bank accounts under the head of "Secured Loan" and "Liquid Funds".
    under secured loans the Bank GL for loans purpose, in the normal liquid funds having the house banks.
    User was wrongly taken the secured loan bank GL for transactions. Since this year the transactions already posted with customers and vendors and other paybles/receivables.
    I need to change all these data from secured loan bank account to liquid fund bank account.
    Please let me know is there any specific transaction help to transfer the posted data from one bank gl to another bank gl?
    Thanks and Regards,
    Soma

    Hi
    [This thread might help you|Transferring Business transactions from one G L  A/c to another GL;
    [Or This|change GL account;
    Rgds
    Zub

  • About Billing - accounting document posting date

    Hi Experts,
    I do billing on 2010.10.30(SAT),but when i posted the document.
    Accounting document default posting date is 2010.11.01.
    How can i config the posting date as current date.

    Hi,
    Please check your factory calendar. Sunday may be decalred as non working day in your factory claendar. Kindly check what is the factory calendar assigned in your Company code, Plant and Sales Organisaions and change it. This will resolve your issue.
    Regards
    Vijay

  • POSTING DATE in Accounting Document

    Hi All,
    I am facing the problem with POSTING DATE in Accounting Document.
    Sales Order               25/10/2008
    Delivery & PGI           29/10/2008
    Billing Doc                05/11/2008
    Accounting Doc Date 05/11/2008.
    The system picks the PGI Date 29/10/2008 as POSTING Date of Accounting document. It should be 05/11/08.
    Please let me know the reason.
    Thanks & Regards,
    Hemant Patil

    Hi
    if you are looking accounting document of PGI it must be on 29th because material movement have done on 29th through PGI (it is accounting document for material movement not for invoicing)
    if helpful then give points

  • How to change Posting Date in Accounting Document

    Dear All,
    Query: While Releasing Invoice Document (BL) for Account Posting, How can we change the Posting Date for Accounting Document (AB)?
    Explanation: User has created one Invoice on 26.02.2009. that time, Because of Missing Foreign Trade Data, No Accounting Document had been generated. Now, if today i.e. 10.03.2009, I maintain Foreign Trade Data and Release Invoice for Account Posting, The Accounting Document will be posted as on Today's Date, i.e. 10.03.2009.
    User's requirement is the Invoice Document (BL) Date and Accounting Document (AB) Date must be same, i.e. 26.02.2009.
    It shouldn't be like Invoice is getting generated on 26.02.2009 and Accounting Document is getting posted on 10.03.2009.
    Thanks in Advance.
    Amit

    Dear Michael,
    It was a User confusion with Creation Date of Invoice, Billing Date of Invoice and Posting date of Accounting Document.
    User had created Invoice on some 01.03.2009 but Kept Billing Date as 26.02.2009. So, while released Accounting Doc. on 10.03.2009 (Releasing date and not Posting Date), It gets Posted on 26.02.2009, only, and not on 10.03.2009.
    The whole confusion was:
    When User refers Document Flow (for Invoice in VF02), System shows Invoice Date as 01.03.2009, against Accounting Posting Date 26.02.2009.
    Whereas,
    When I showed FBL5N to user, BL Document and AB Document both get posted on 26.02.2009 only.
    Its Clear now.
    Best Regards,
    Amit

  • How to Post Data to a User's Account

    Has anyone figured out a good way to post data to a user's account? For example, if a site visitor completes something on the site (ie: a quiz) is there a way to show a badge/score on a page inside of their account (ie: you've completed the following tasks/unlocked the following achievements)? It would be nice for the user to see a history of completions/badges.
    Thanks,
    Brian

    Hi,
    No this is not possible.
    If your workitem is sent to 5 users, you should start there. Where is it sent and where are the agents determined.
    What you can do, in case of 4-eyes approval is that you use one agent as the excluded agent in the agents declaration of a workflow step.
    Kind regards, Rob Dielemans

  • AR Reserve Invoice - Posting date

    Hi,
    I have a customer who really would like to address the issue with the posting date on AR Reserve Invoices, because they think this field should be open for editing until the invoice has been paid.
    Is there a good reason for why the posting date field is closed after adding the document?
    And is there a possibility that this field can be opened for editing in a future version?
    Best regards,
    Lena-Marie D. Tørresvold

    Hi Lena.......
    The reason might be based on Posting Date the Payment is linked because Payment will be done as per the payment terms and payment terms ultimately linked with Document Date.
    And its preferable too as accounting is puerly done on the basis of date which is one of the most important factor from Financial Reports point of view.
    So if you think to edit the dates of docs when it si added then it is unncessary as it wont make any sense for finance reports........
    Hope you got the logic....
    Regards,
    Rahul

  • Different FM posting dates in PO or PR item with multiple accoun. assignmen

    Hi,
    I'd like to know if there´s a way to assign different FM posting dates, for each line of a distributed item in a PO or PR.
    Example:
    Purchase Requisition 4500000010
          Item 1 (has 2 different account assignments or is distibuted by percentage)
                   50% goes to fund center XXXX, etc.
                   50% goes to fund center YYYY, etc.
    Right now we have the update profile for the PR set to delivery date, but it will assign the same FM posting date to the two different account assignments of item 1, because delivery date is on Item level. What I need is to know if there's a way to indicate the system to take different posting dates for each account assignment within the Item 1.
    I hope that I was clear enough to make understand.
    Thanks in advance.
    Kind regards,
      Víctor

    Hi Victor,
    I do not think, it's possible in standard...
    Regards,
    Eli

  • Change master data setting - Vendor reconciliation account

    Is it possible to change the configuration of a G/L account currently setup as a vendor reconciliation account (that has a balance) to a regular a balance sheet sheet account?
    If yes, what actions do I need to do?
    Are there any risks in doing this?
    Can I perform a similiar change for a G/L account currently setup as a regular balance sheet account that I instead want to use as a vendor reconciliation account?
    Thank you in advance!
    Best regards Susan

    Hello,
    Answers to your questions:
    Question:
    It is possible to change a reconciliation account into a balance sheet account but the current items in the reconciliation account should be manually moved to another account
    Answer:
    If there is a single line item posted(whether the balance is zero or not), it WILL NOT allow you change the reconciliation account in the GL master record.
    Question:
    -New postings will however be posted to the new reconciliation account set up in the vendor master
    Answer:
    If you want to update a new reconciliation in vendor master, then create a fresh GL Account as reconciliation type for Vendor and update the vendor master with new GL Reconciliation Account. When you have done the new postings, new entries will flow to new Reconciliation Account, but the old entries will remain be there in the old reconciliation GL Account. To move the old reconciliation entries to new reconciliation entries executed F.5D (Balance Sheet Adjustment). Please read the documentation available on transaction code F.5D
    Question:
    -What inconsistency in data are you referring to below? - No Inconsistency
    -What reports would these differences appear in? - No differences
    -Is there any risk of making a balance sheet account into a vendor reconciliation account (when baalnces exist)? - Vendor Reconciliation Account is a Balance Sheet Account only. This is a liability account in your Trail Balance.
    Hope this clarifies your doubts.
    Regards,
    Ravi

Maybe you are looking for

  • Invoices with only RI TAX

    I have a table like this this table will show the customers , and its invoices and its taxes. A single customer can have single invoice or many invoices and a single invoice can have single tax or many taxes i need invoices which are having on RI tax

  • BPEL with human using task forms (customization in task display).

    All, I have deployed a BPEL with human task with task forms (customization in task display). For above customization Jdev automatically generates set of jsp files like Header1.jsp,Footer1.jsp,payload-body.jsp and <task name .jsp> and build an ear whi

  • Requirement mapping.

    Hi SAP Professionals, I'm not getting any clue how to map the following requirement? Please go through the scenario. Scenario: After Inquiry preparation following acitivities should done: 1. look up of the finished product availability; whether it is

  • ISQL Plus on release 9.2.0.4.0

    Hello Alison et al, we have the version 9.2.0.4.0 installed on our machines, (64 bit version) but we do not have installed iSQLPLus. (or so it seems). We need to download it, is it possible to have a separate installation to install the web based iSQ

  • Configure project data to store in a different location

    I am wondering if there is a way to configure iMovie '08 to store project data on /Users/Shared. If so, could someone outline the steps to do so? Thank you