BAPI_ACC_DOCUMENT_POST posted data not reflected in BKPF or BSEG

Friends,
I am using BAPI_ACC_DOCUMENT_POST, for posting the  FI bad debts data through FB01. I am using BAPI_ACC_DOCUMENT_CHECK for checking the input data and subsequently BAPI_ACC_DOCUMENT_POST and BAPI_TRANSACTION_COMMIT for committing the data posted. 
After using BAPI_ACC_DOCUMENT_POST, the commit bapi is also successful.  The bapi return the document no. posted.  But if you see the data in the tables BKPF and BSEG the data is not found. 
It is really frustating, what could be the reason.  Anyone of you faced such problem before.  Any help on this issue.
regards
Bill Joseph

Hi,
              CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
                   EXPORTING
                        documentheader    = it_hdr
                   TABLES
                        accountgl         = it_gl
                        ACCOUNTRECEIVABLE = act_rec
                        currencyamount    = it_curr
                        return            = t_result.
              LOOP AT t_result WHERE ( type = 'E' OR
                                       type = 'A' ).
                EXIT.
              ENDLOOP.
              IF sy-subrc <> 0.
                REFRESH t_result.
                CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
                     EXPORTING
                          documentheader    = it_hdr
                     TABLES
                          accountgl         = it_gl
                          ACCOUNTRECEIVABLE = act_rec
                          currencyamount    = it_curr
                          return            = t_result.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
              ENDIF.
See the above code.
And check wether you are checking for right company code and year that which you are checking in tables.
Thanks.

Similar Messages

  • BAPI_ACC_DOCUMENT_POST posted documents not found

    Hi all.
    I'm using the FM: BAPI_ACC_DOCUMENT_POST to post documents simulating TCODE F-05. Is that possible?
    To execute the BAPI I'm populating data into structure DOCUMENTHEADER(BAPIACHE09) and tables ACCOUNTGL(BAPIACGL09), CURRENCYAMOUNT(BAPIACCR09), and after the execution I call the BAPI_TRANSACTION_COMMIT. The BAPI returns the message: "S RW 605 Document posted successfully: BKPFF 0100082524TOGV2010 R3TVDCL010" but when i try to see the document posted through FB03 or table BKPF (using obj_key+10 as Doc. No.) I cant see it.
    Does anyone know whats happening? Please i need help.
    Regards.
    Gregory.

    Gregory,
    BAPI_ACC_DOCUMENT_POST is equivalent to FB01. You can post the same document that you post using F-05 via FB01 also.
    Are you calling this BAPI via SE37? If yes, then your data will not commit. You need to write a program to call this BAPI and then call the commit BAPI.
    Another option is, in the SE37 screen, use menu option Function Module -> Test -> Test Sequences. Then enter both the bapi and the commit functions in the list and then test.
    Regards,
    Salai.

  • File Upload data not reflected in the Layout

    Hi,
    Using the following how to document, I have written the file upload functionality.
    The upload functionality works and the data is saved in the cube. We have a layout to display the uploaded data.
    Issue:- The data is not reflected in the layout soon after fileupload, even after saving the data in the cube.
    If i close existing webinterface and re-execute it. I see the uploaded data.
    Once the data is saved in the cube, we would like to see this data in our layouts.
    How do we achieve this ?
    Appreciate your help.
    Regards,
    Vinay.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/g-i/how%20to%20load%20a%20flat%20file%20into%20bw-bps%20using%20a%20web%20browser.pdf

    Hi,
    When you click on Submit button the file data goes in the buffer and when you click on Save the data gets posted into cube and then the function module release the buffer.
    Comment the FM call API_SEMBPS_REFRESH in Save button and refresh the layout, check if you can see the new data in the layout.
    Please grant the points if this answer helps you.
    Regards,
    Deepti

  • GR Posting Date-not modifiable

    Hi Friends,
    We have business requirement to have GR posting date should always default to the current date and not modifiable.  Business client does not wants anyone to receive goods in the past. Please tell me how to achieve this settings?.
    Thanks
    Abdul

    Hi
    Try Field selection for MIGO transaction
    Path:SPRO-MM-IM--->field selection for header -->Select display option for doc date.
    Vivek
    Edited by: Vivek N on Dec 29, 2008 3:52 PM

  • Posting date not open

    posting period 001 2007 is not open
    this is what i get trying to post an inbound mbgmcr idoc
    i use posting date 20070115
    when i look in trans omsy for my company code 3000
       i see 2007 2  2007 1  2006 
    how can i open this period up

    Hi
    I have no MM consultant.  I am it.
    So  
    I actually think it is the format i am using
    in transaction omsy  i see 3000  2007   3   2007  2
    so in we19 for processing inbound mbgmcr goods movement i am trying to use a posting date of 20070215
    i have tried lots of combinations but it says
    posting only possible in periods 2007/03 and 2007/02 in cc 3000
    so what format combination should i use in the posting date in we19
    thank you so much

  • Future Posting Date Not Allowed

    Dear Gurus,
    Is there any way to restrict the future posting date while issue materials using T/Code MB11 ?
    I don't want to know the restriction of document date .
    I could not find any sweetable answer from the forum.
    With Best Regards
    Som

    Use the BADI   : MB_DOCUMENT_BADI    , with the help of abaper ,you  can  put your validition in the code , so that Posting date should not be greater than System date.

  • GL_JE_HEADER table : Posted date not update properly

    Hi All,
    I have seen that for few of the journals created inside GL,  The posted date inside the GL_JE_HEADER table is update with a date instead of time stamp.
    i.e  the posted date column is updated as '7/08/2013'  instead of  '7/08/2013 4:40:39 AM'
    This has caused some problem in te system.
    was wondering if you could help me to get an answer for this.
    regards
    Amit

    i am thinking that you want to include the time when you query the column post_date from table. if you are using SQL*Plus the default display for the date does not include the time. to include the time when you do a select on any data column use the ALTER SESSION SET NLS_DATE_FORMAT command.
    e.g.
    SQL> select sysdate from dual;
    SYSDATE
    18-SEP-13
    SQL> alter session set nls_date_format = 'dd-mon-yyyy hh:mi:ss am';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    18-sep-2013 11:57:17 am
    SQL>

  • Clearing after posting date not required in FF67

    Hi
    I have given posting date as 31.01.2010 in FF67 (manual bank reconciliation statement).
    But in-spite of the posting date is given as 31.01.2010, all the entries posted with posting date of February in incoming account / outgoing account is also considered for clearing.
    So is it possible to restrict the same.

    Hi,
    You might have entered an amount of a document, which is posted with FEB posting date, while entering the bank statement items in the next screen of FF67.
    The clearing date can be earlier than the posting date while FF67.
    The actual posting date (FEB date) will become the value date for the reconciliation posting entry to the main bank account line item. (Line item generated by system by doing FF67)
    Please check.
    Thanks,
    Srinu

  • Data not reflecting in ECC

    We have cycle of material or vendor creation as given below.
    New vendor/material creation on portal > Approve on portal > Check in MDM data manager > PI > Check ECC > Table Entry.
    In many cases we have found Materials or vendors are reflecting in MDM after approval from portal but not going in ECC.
    In some cases we have observed that PI_MDM sender adapter is picking up same file twice. The data contain payload are same in both messages.
    While posting these messages in ECC 1st Idoc is successful in WE05 & 2nd is throwing error u201Cvendor is locked by user ABC (our own user ID)u201D
    MDM adapter in PI server is occasionally picking same XML twice from MDM ready folder & tries to post both Idocs in ECC at same time, hence at ECC system gives an error.
    Kindly suggest the solution.
    Regards,
    GAG

    Please have a look at  the Note  947081, Now on a broader level
    this can be achieved by the Note mentioned above.
    the  hierarchy of what locale a component will be shown in the portal,
    will be :
    1)component- if he have a locale define
    2) portal mandatory locale -
    3)user locale
    4)browser locale
    5)Portal default locale
    6) system locale
    if you check on the prtDefault.properties file you will see
    a line with : request.defaultcountry=us . on the hierarchy it is No 5.
    on your Portal it determine  to 'us', so you can make the change on this
    level to uk , that way the default locale will take effect only if
    the locale was not determine on a higher level.
    and for your question : that way
    afrench user will have a french locale. because the user locale locate
    on a higher level on the hierarchy.
    Hope the information will help you.

  • Credit memo related Data not reflected in  BCT Query

    Hi Experts ,
    If anyone can help me .
    Problem : I have loaded data in 0SD_C03 for sales analysis. Everything is alright and all data except Credit Memo related data are showing . During the selection in query the C/D posting + Doc Categ + Net Value forms the output value for Credit memo but it is not showing . The SD doc categ has credit memo records in VBFA table . Now i don't understand why data related to Credit memo is not retrieved in the query . I am using the standard queries and std BCT objects only .If anyone have come across please share your experience .
    Theba

    Check in your Cube fact table whether you have entries with document category O - for credit memo
    If not, ensure cube has the data and your query do not have any exclusion filter dor document category O. Check in PSA also, if not there your extractor is excluding the credit memo records

  • R/3 posted data not picked up in BW delta load

    All,
    We have a Delta process for loading ledger data from R/3 to BI.  It works fine unless a document is posted in R/3 and we run the delta process before an hour has passed.  If that happens then the document posted in R/3 will not be picked up.  It is picked up later in the day on a subsequent run.
    The information we have gotten is that this is delivered functionality.
    Is that correct?  Is there any documentation for this delay?  Can it be changed?
    Thank for your help
    Bill L.

    Hi.........
    Check you datasource.............
    1) Check the delta-specific field and the type for this field.There are three type : Time stamp,calender day, nemeric pointer.........
    2) Check the delta type...........whether it is New status for changed records or Additive Delta.....
    Check this link :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Hope this helps you............
    Regards,
    Debjani..............

  • Forwarded successfully the workitem for BO-BUS2000220(complaint) in the worklist of other user: Problem in "Sent date"  not reflecting correctly in SAP CRM 7.0 Web UI

    I am working with SAP CRM 7.0. We have a workflow in the system which is triggered at the creation of complaint(BO:BUS2000220) and then assign the complaint workitem
    in the woklist of specified agent. I have created a report and scheduled it daily to forward the complaint into the worklist of user B from worklist of user A after 7 days
    from creation date of complaint. But the problem is that the forwarded complaint is showing in the worklist of user B with sent date(the creation date of complaint, not the
    forwarded date).
    Relevant code:
    IF gw_complain-PROCESS_TYPE = 'ZCMS' AND age_complaint = 8.
              CALL FUNCTION 'SAP_WAPI_WORKITEMS_TO_OBJECT'
               EXPORTING
    objtype         = 'BUS2000120'
    objkey          = obj_guid_key
    top_level_items = ' '
    SELECTION_STATUS_VARIANT       = 0001
               IMPORTING
    return_code     = return_code
               TABLES
    worklist        = it_worklist[].
    READ TABLE it_worklist INTO wa_worklist WITH KEY wi_type = 'W'.
    CALL FUNCTION 'SAP_WAPI_FORWARD_WORKITEM'
                EXPORTING
    workitem_id    = wa_worklist-wi_id
                  USER_ID        = wa_worklist_esc-ESC_USER
    LANGUAGE       = SY-LANGU
    DO_COMMIT      = 'X'
    CURRENT_USER   = wa_worklist_esc-CURRENT_USER
                IMPORTING
    RETURN_CODE    = lv_return_code
                TABLES
    MESSAGE_LINES  = lv_mesg
    * MESSAGE_STRUCT =
    * USER_IDS       =
    ENDIF.
    Can someone help me how to change the sent date to actual forwarded date of complaint.

    Hi Kavita,
    There is a standard column in UWL with name 'Sent Date'. Other functionalities in UWL for example deadline monitoring (Due date column) are based on this sent date. This shows an employee what was the date workitem was created (sent date) and when it will get escalated (due date). Displaying forwarding date in Sent date will not give clear picture to employee as the deadline will be calculated based on sent date only not based on forwarding date. this was just an example.
    even though if your client is insisting, i dont think it can be done without any enhancement in UWL web dynpro com sort of thing. you can check with your portal consultant too.
    Regards,
    Ibrahim

  • Data not reflecting in the front end after hiring from PA48

    Hi,
    I am doing the data transfer process from the webdynpro application. The candidate to be hired is getting reflected in PA48,and once the hiring is done and I run HRALXSYNC, the status is still red. Can anybody suggest what else needs to be done, so that the employee details are reflected in the front end.
    Regards,
    Afra

    Hi,
    Check this
    Switch PBPHR: ON 
    Switch HRAC: X
    in  77S0 table.
    Regards,
    Sai

  • Data not reflecting in Table

    Hi,
    I've simply added the Table Component from the Pallete to my web page and Connected with a Table named "Role_master".
    while running the web application it shows me the following syntax on the Browser:
    <table id="form1:table1:_table" class="Tbl_sun4" width="100%" border="0" cellpadding="0" cellspacing="0"
    I have completely followed the steps as given in [Dru Devore's Blog |http://weblogs.java.net/blog/ddevore/archive/2008/02/jsf_tables_with_1.html]
    Really, i'm not able to judge that why i'm getting this type of syntax instead of displaying Table with Data.
    Please Help..
    Thanks
    Hitesh
    Edited by: Hitesh_kumar on Jul 31, 2008 8:25 AM
    Edited by: Hitesh_kumar on Jul 31, 2008 8:27 AM

    Hi,
    Thanks for the reply.
    I'm Connecting my JSF Web application with the Sql server 2005 using NB 6.0 and i'm using the latest sqljdbc4.jar driver for sql server 2005.
    while connecting the application with the sql server 2005 it is giving me following error :
    java.lang.UnsupportedOperationException: Java Runtime Environemtn(JRE) version 1.6 is not supported bgy this driver. Please use the JDBC 4 Driver (sqljdbc4.jar)instead.Sourecode :
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");                               
                    java.sql.Connection con=DriverManager.getConnection("jdbc:sqlserver://localhost:1433;user=sa;password=test1;databaseName=sample");
                    java.sql.Statement stmt=con.createStatement();               
                    java.sql.ResultSet rSet=stmt.executeQuery("select * from details where empcode='1001'");             
                    while(rSet.next())
                        lblName.setText(rSet.getString(1));
                    rSet.close();
                    con.close();
                    stmt.close();               Since i'm using the latest driver, i don't know why such type of error is coming up...
    If you any link, from i can download the NetBeans 6.0 Supported Sql Server 2005 Driver.. please suggest...
    Thanks
    - Hitesh

  • Little help with FORM POST data not in UTF-8 (JSP/servlet)

    Hello,
    I am trying to update a MySQL database record with UTF-8 characters with my JSP application.
    1) I have MySQL correctly configured to handle UTF8 and have tested insert/update/select with UTF8 characters
    2) I have an "editRecord.jsp" page. At the top of the page, I specify:
    <% request.setCharacterEncoding("UTF-8"); %>
    3) I have an input form which is specified in that page which follows:
    <form action="<c:url value="/updateRecord.jsp"/>"
    name="updatetForm" method="post"
    ACCEPT-CHARSET="UTF-8"
    enctype="multipart/form-data">
    4) I have a servlet filter that takes every HttpServletRequest and modifies that object in
    doFilter(...){
    request.setCharacterEncoding("UTF-8");
    chain.doFilter(...)
    5) In updateRecord.jsp, I fill a JavaBean with the form data. Here's an example of the form input:
    name = Company
    Comments=Here's some unicode text: "&#1610;&#1606;&#1610; &#1573;&#1606; &#1576;&#1604;&#1575;&#1583;&#1607; &#1605;
    6) When I put a breakpoint and inspect the contents of the UpdateBean after posting the form, running the request through the filter, I see
    I see:
    name = Company
    Comments=Here's some unicode text: &#132;������...."
    Where could I possibly be missing something to force UTF8 encoding of these values?

    If you have to use the following code to fix the encoding:
    String value = new String(item.getString().getBytes("ISO-8859-1"), "UTF-8"); ...
    then you are just putting a band aid on something that is broken somewhere else (since this code creates a byte array in 8859-1 and then creates a string from that byte array, but assuming that the array is encoded in UTF-8). That will only work if the string you start out with is mangled.
    In many cases such a fix will actually "work" (in the sense that you may end up with something that is correctly encoded in the end), but you run the risk of breaking if the source of the original corruption is removed.

Maybe you are looking for