How to find out the Accounting document status for sales order

Hi
We have created the sales document by referring the billing document of contract no.Aftre that we have raised invoice for sales document. Now system is generated both invoice , accounting document and the value is appearing against the invoice document. However the status against the accounting document is showing as not cleared. I want to know where we could see this status in Table,
Normally we can see the status in FPLT for contracts since its having the billing plan no. Suppose if the billing plan is not available like S.O , How to check the status in table?
I have refered so many tables but not helping. Since i want to get the uncleared value of accouting document.
Please help me.
Regards
Thenna

Hi Thenna
The accounting document status in the document flow is determined dynamically when you display the document flow,
it's not saved in a specific table.
Here is the relevant logic:
LV05CF01 -> form BUCHHALTUNGSBELEG
IF vbrk-vbeln <> vbfa_tab-vbeln.
   PERFORM vbrk_ermitteln USING vbfa_tab-vbeln.
   REFRESH xbkpf.
   CALL FUNCTION 'FI_DOCUMENT_READ'
    LOOP AT xbseg WHERE bukrs EQ xbkpf-bukrs
                  AND   belnr EQ xbkpf-belnr
                  AND   gjahr EQ xbkpf-gjahr
                  AND   ( koart EQ 'D' OR koart EQ 'K' ).
    ENDLOOP.
            IF NOT sy-subrc IS INITIAL.
  SET STATUS TO 'No items are cleared'
              l_xdoc_num-status = 'A'. <<<
            ELSE.
              LOOP AT xbseg WHERE augbl IS initial
                            AND   umskz NE 'A'
                            AND   vorgn NE 'AZUM'
                            AND   ( koart EQ 'D' OR koart EQ 'K' ).
              ENDLOOP.
              IF NOT sy-subrc IS INITIAL.
  Set status to 'All items are cleared'
                l_xdoc_num-status = 'C'. <<<
              ENDIF.
            ENDIF.
Regards,
Alex

Similar Messages

  • How to find out the invoice value from a sales order

    Hi All,
    Please can any one hlpe to solve the beloq query.
    Is there any report in SAP , which give you the following.
    Sales order , Total cost incurred , Total revenue recoganised , Total Invoiced , Total collected .
    Thanks ,
    Rajesh

    Dear Waman,
    Thanks a lot for your replay ..
    But i don't have much knowldge about KE 30 report , is there any study meterial available online to configure this \ or study this report .

  • How to find out the last time login for a locked login account?

    In ASE 15.4,there are many login account show as locked and unlocked. How to find out the last login time for those locked login account?

    Thank you.  The version of my ASE is 12.5.4.
    This is what I got from select * from syslogins: 
    suid status accdate totcpu totio spacelimit timelimit resultlimit dbname name password language pwdate audflags fullname srvname logincount procid
    1
    30 2 10/25/2012 11:41:10.430 AM 0 0 0 0 0 . . ... us_english 02/24/2.0.08 12:55:38.640 PM 0 [NULL] [NULL] [NULL] [NULL]
    this is what I got from exec sp_displaylogin 'mylogin':
    1 Suid: 46                               
    2 Loginame: mylogin   
    3 Fullname: FN LN
    4 Default Database: mydb
    5 Default Language: us_english   
    6 Auto Login Script:    
    7 Configured Authorization:   
    8 Locked: YES                              
    9 Date of Last Password Change: Apr 17 2010  2:36PM    
    10 Password expiration interval: 0            
    11 Password expired: NO                               
    12 Minimum password length: 6            
    13 Maximum failed logins: 0            
    14 Current failed login attempts:    
    15 Authenticate with: AUTH_DEFAULT                     
    which one is for last login time?

  • How to find out the account group information in customer master record?

    how to find out the account group information in customer master record?
    in which tab? thanks in advance

    Hi
    Go to XD02 and select the Extras from the main menu , you will find Account group info -> click on the No.ranges.
    reward if it helps
    SR

  • How to find out the Number range object for Incident number

    How to find out the Number range object for Incident number ?
    CCIHT_IAL-IALID
    regards,
    lavanya

    HI, an example.
    data: vl_num type i,
          vl_char(6) type c,
          vl_qty type INRI-QUANTITY,
          vl_rc type INRI-RETURNCODE.
    CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        NR_RANGE_NR                   = '01'
        OBJECT                        = 'ZRG0000001'
       QUANTITY                       = '1'
      SUBOBJECT                     = ' '
      TOYEAR                        = '0000'
      IGNORE_BUFFER                 = ' '
    IMPORTING
       NUMBER                        = vl_num
       QUANTITY                      = vl_qty
       RETURNCODE                    = vl_rc
    EXCEPTIONS
       INTERVAL_NOT_FOUND            = 1
       NUMBER_RANGE_NOT_INTERN       = 2
       OBJECT_NOT_FOUND              = 3
       QUANTITY_IS_0                 = 4
       QUANTITY_IS_NOT_1             = 5
       INTERVAL_OVERFLOW             = 6
       BUFFER_OVERFLOW               = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    vl_char = vl_num.
    write vl_char.
    Regard

  • How to find out the Idoc number triggered for any material transfer frm SAP

    Hi Folks,
    Can any body let me know How to find out the Idoc number triggered for any material transfer frm SAP?
    Do we have any navigation for that in MM03?
    Thanks,
    SPMD.

    Hi Shabbirmdpasha,
    If you know the user name then you can find the idoc numbers created by that user. But the problem here is it not only gives the material it gives all the idocs created by that user. Go to SE16 --> table name EDIDS --> here you can fill the approximate date and in UNAME give the userid and execute. This will give all the idocs created by that user. I know it is only a partial solution.
    Also would suggest to post the same in abap forums for more answers:
    ABAP Development
    Regards,
    ---Satish

  • Is it posible to find out the billing date of any sales order..?

    Hi all,
    Is it posible to find out the billing date of any sales order..?
    If it is posible tell  me how to do.
    Thanks

    Hi ,
    Can you explain more on this.
    I think you want to know billing date for the sales order. Here the billing is already done.
    If so , go to vbfa table and then give the sales order number in VBELV field. You will get many records. But VBTYP_N give as M ( Invoice ) and find out the document number and then pass it in billing table VBRK and get the date of creation.
    If it is like proposed date while creating the sales order ,
    then i am not sure about it.
    Regards,
    Venkatesh

  • How to find out the idoc type required for our requirement

    Hi,
         How to find out the list of available idoc type in SAP. It will be good if i get to know the table name where all the idoc type definitions are gets stored.
    Say i have some requirement and for that requirement how i can find the proper idoc type to be used. (assume functional consultant is not providing that information)
    Points will be given for the useful answers
    Thanks,
    Prasanna

    Hi prasanna,
                    we can get SAP idoc types in tcode we31.For every requirment there will be different message type.
    For example we want idoc type for account invoice receipt.
    First find out message type for that purpose which can be found in we81-ACC_INVOICE_RECEIPT.
    Get this message type and search in we82  where we can find message type and idoc type linkage.
    try this way.
    Reward if it is usful.
    Thanks,
    Srikanth.A

  • In DBI , how to find out the Source Query used for the Report

    Hi All,
    How to find out the Source Query used to display the data in the DBI Reports or Dashboards. We can get it in Apps Front end by Going to Help and Record Histroty. But DBI Runs in Internet Explorer so i dont know how to get the source query ( SELECT Query ) Used.
    In IE we have View --> Source . But that does not help since it gives the HTML Coding and not the SELECT Query used.
    If anyone has ever worked on it...Please help me in finding it.
    Thanks,
    Neeraj Shrivastava

    Hi neeraj,
    You can see the query used to display reports.Follow these steps to get the query.
    1)Login to oracle apps
    2)Select "Daily Business Intelligence Administrator" responsiblity.
    3)Now click on "Enable/Disable Debugging" (Now u enabled debugging)
    4)now open the report which you want to see the query of
    5)In view source it displays query along with the bind varilables.
    Feel free to ping me if you have any doubts
    thanks
    kittu

  • How to find out the standard info stucture for a customized IS in LIS

    Hi All
    I have to run the statistical set up for the customized info structure S763 for the application plant maintenance in LIS. But i dont know whether it was copied from a standard SAP info structure or it was enhanced from a standard info structure.
    I have even checked out all the standard IS for plant maintenance but it is not matching. The closest match is S063 but a few characteristics and a key figure is missing.
    Could anybody guide me how to find out the standard info structure?
    Any help would be of great help.
    Regards
    Saddy

    Hi Ganesh
    No..it didnt solve my problem. MC23 only displays the info structures.  I have a customized info structure S763 which was created long time back. Im not sure whether it was copied from a standard info structure or enhanced from a standard info structure.
    I have to give the source info structure name to run statistical set up. The closest one which matches with the S763 is S063 but it is missing few characteristics and key figure.
    does it means that the IS S063 was enhanced?? Am i right?? If it was enhanced how will i run the statistical setup for the same...
    I hope i have explained clearly.
    Do provide ur valuable input.
    Regards
    Saddy

  • How to find out the accounts for a particular IBUs?

    Hi,
    I want to find out accounts for particular accounts.
    Regards,
    Jaya

    Hi,
    If you know the sales order numbers then u need to go VBAK table and take VDATU(requested delivery date) for the 2 sales order and find out the difference between these 2 dates by using the function modules.
    -Prasanth

  • How to find out the SET PARAMETER ID for FB02 transaction

    hi masters,
    i m working on a alv report and in that i have to make a BELNR field as a interactive field. i m using the 'user command' for this.
    FORM user_command USING ucomm TYPE sy-ucomm
                        selfield TYPE slis_selfield.
      IF selfield-value IS NOT INITIAL.
        CASE selfield-fieldname.
          WHEN 'BELNR'.
            SET PARAMETER ID 'FBAS'  FIELD selfield-value.
            CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
          WHEN OTHERS.
            MESSAGE text-000 TYPE 'W'.
        ENDCASE.
      ENDIF.
    ENDFORM.                    "user_command
    i used this code using this. using this code my program goes to FB03 tc but it don't shows the data of BELNR what i was clicked. it always shows first BELNR no. in the table. plz anyone help me for this..
    the  SET PARAMETER ID 'FBAS'  i m using is right? if not plz suggest me how to find out correct one?

    Hi Vicky,
    To know the Parameter Id of any field in a transaction ,
    you just press F1 onthe particular field then in technical settings under Field data
    you can see the PARMATER ID.
    So if you check like this you can see 'BLN' as parameter id for Document number in FB03
    transaction
    Regards,
    Manoj Kumar P

  • TABLE TO FIND OUT THE PERSONAL NUMBER DETAILS FOR MAINT ORDER OPERATION

    Dear Friends,
    While creating the maintenence order,i am assigning the operation,
    Against the each operation ike to alllocate some people(personal number),through requirments assignment tab in the operation.
    I want to know in which table and filed, this personal number information is stored since i need to develop a report based on this.
    Thanks and Regards
    V.Dhanasekaran
    Edited by: Dhanasekaran Vadivalagan on Apr 19, 2010 12:55 PM

    Hi Dhanasekharan,
    You can send the Order Number to AFKO table and get the AUFPL (Operation No) for that Order.
    Then send this AUFPL to AFVC Table and get the personnel Number PERNR field.
    This you can make use for reports.
    Regards,
    MLN Prasad

  • How to find out the Forms developer version for R12

    Hi
    We are using R12 Oracle Applications : 12.0.4. We needs to do small Forms development. Please let me know what version of Forms developer we needs to download 6i or any other version.
    How we will find out what version of forms we needs to use?

    Open any screen in Oracle R12 Applications, then click on Help. There you will find the complete details including the version of Forms.

  • How to find out the corresponding planning area for a given infosource?

    Hi,
    We are in the process of implementing BW-APO in our project.
    We have got couple of standard BI infosources and now the task is to identify the corresponding planning area for a given infosource..
    Let' say for 0APO_DP_ORDERANALYTICS_1
    what is the planning area?
    Any help is appreciatable!!!
    Regards,
    Swapna.G

    Hi Swapna.
    You are at risk of putting the cart before the horse here. As Sujay asks, it is important to understand whether you are using the standard provided planning areas. Even then there are a number of different planning areas that may be deployed depending upon the required planning functionality. There then may be the case where standard planning areas are not being used (this is very often the case) which means that your InfoSources might only be good as a template.
    All this makes your question virtually impossible to answer.
    Maybe if you gave some background as to the status of your project we could help more.
    From your question it looks as if you are working on APO-BW outbound (i.e., reporting after the planning has taken place) which would suggest that the design and build of APO-BW inbound and the planning functionality has taken place. Is this the case?
    If so, then you need to touch base with your APO technical guys to understand the design of the planning areas and whether your standard 0APO_* InfoSources are suitable.
    If not, I suggest you are working back to front and you should be focussing on the APO-BW inbound required to support the planning requirements.
    Regards, Mark.

Maybe you are looking for

  • Start up problems, including from installation disc.

    Hello everyone in the Apple ether, I need your help! I have a powerpc based iMac G5 at home that I set up for my mum to use once I bought my macbook. I finally managed to win her over with talks of how much easier it would be for her to manage her ph

  • [SOLVED]PulseAudio EQ (qpaeq) doesn't work

    So I can't get the built-in systemwide PulseAudio equalizer "qpaeq" to work. I have installed all the required dependencies but if I try to load it it throws the error: Traceback (most recent call last): File "/usr/bin/qpaeq", line 560, in <module> m

  • Silverlight no longer connects to SignalR hub

    after some update we 2/12/2015 has security Error when SL tries to connect to signalR host. WPF app works fine, SL throws a security error. No explanation on how to fix. Where do I go from here? foxjazz

  • Using MIME type to open file in different window

    Hello, I am popping up a Save File Dialog Box for an Excel file being generated in my system using POI. I am using the MIME type to display this dialog. The problem is that if the user selects 'Open' instead of 'Save', it opens in the same window. Is

  • Flash 10.1 not working with dell 780 or 760

    I have 500 Machines at my site and they all work since the 10.1 upgrade except my dell 760 and dell 780 machines running windows XP. These machines run all flash animations at like 1/10th speed. They are EXTREMELY slow!  I thought maybe it was a vide