How to read table of accounts to read in step 2 the single accounts

Hi,
I want to write a litle MIS-Report with diverse FI-management-ratios.
At the first screen (selection-screen) the user has to specify the
table of accounts.
So I have to know, how I can read an "table of accounts" in ABAP.
That means the hierachy of accounts. Is there a table which
can I read?
Thanks a lot!

Chart of accounts need not have any standard hierarchy. They are just grouped according to the usage. SAP treats them as sets. Any G/L account group is a set and can be found in those tables starting with SET as mentioned above.
Chart of account is basically, an organizational unit within SAP, where any GL account is created, to be available for creation in any company code assigned to the chart of accounts.
SKA1 is the master table of chart of accounts. Once you create a G/L account within a company code, then it becomes available in table SKB1.
For running reports, many companies create account group which are available in SET tables.

Similar Messages

  • How to read selected item of the dropdown listbox in dialog prgmming

    hello to all,
    i need one help.In dialog programming how to read the selected value of the dropdown listbox created in se51. the values are appering in listbox by using FM 'VRM_SET_VALUES' .and function code is also assigned to lisbox .but how to read that one particular value selected by user form the dropdown list.
    thanks.

    hello mate
    Try this following  logic and code  u will getting the answer
    Here this example  :  
                      Let Name of the LIST BOX BE  :  LT
    Code :
    Data Declaration :
      I_NATIO TYPE VRM_VALUES,
      W_NATIO LIKE LINE OF I_NATIO
    data: begin of itab occurs 0,
    LT(10)  type c,    
    end of itab.
    **This query to data retrival
    select  x1 x2 into table itab form tbl .
    loop at itab.
    w_natio-key = itab-LT.
    w_natio-text = itab-LT.
    append w_natio into i_natio.
    clear w_natio.
    endloop.
    **This code  for setting values in the list box
    CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = 'LT'
          VALUES = I_NATIO.
    **This code getting the valu form the list box
      CALL FUNCTION 'VRM_GET_VALUES'
        EXPORTING
          ID     = 'LT'
        IMPORTING
          VALUES = I_NATIO.
    **simply to print the values selected
    write : i_natio-lt.
    I hope this will help u out.
    Anand

  • How to read  input data of the process which running fine

    Hi Guys,
    How to read the recently completed BPEL PROCESSes input data ( input xml) .
    Please help me.
    Regards
    janardhan

    Some browsers behave differently, FireFox 2 generally works better than FireFox 3 and IE.
    If you select the process that has run from the BPEL console in the instances tab you can select Audit or Flow. Audit generally works best at seeing the XML being past to each activity but the flow is nice to follow graphically. The major issue with the flow is that some payloads are displayed as a URL link. In IE this sometimes doesn't work. If this is the case go to the same point in the Audit and the XML will be there. This is also a good place to copy and paste xml for documentation purposes.
    cheers
    James

  • How to read from file just the 2nd line onwards?

    hi guys can anyone help me?
    how to read from the file if the file was like this
    2 2
    2 1
    1 3
    and i want to get the 2 1 ,just the 2nd line and the 3rd line?
    i tried using the string tokenizer but it kept saying
    no such element
    i tried this code:
    StringTokenizer cols = new StringTokenizer(s," ");
         temp =  (String) (cols.nextElement());
         num_rows = Integer.parseInt(temp);
         temp = (String) (cols.nextElement());
         num_cols = Integer.parseInt(temp);
         matrix = new int [num_rows][num_cols];
         // to add all the values in the data file into an array                         
         while ( s!= null ) {
         StringTokenizer st1 = new StringTokenizer (s);
               while (st1.hasMoreTokens()){
                     for (i=0; i<num_rows; i++){
                          for (j=0; j<num_cols; j++)
                             matrix[i][j] = Integer.parseInt
                                ( st1.nextToken());
                } // whilecan anyone please help me?
    thanks

    This will read the file witout the first line:
    import java.io.*;
    import java.util.*;
    public class Read2
    public static void main (String[] args)
         try
              FileReader     file = new FileReader("f.txt");
              BufferedReader buff = new BufferedReader(file);
              String         line  = buff.readLine();
              while (line != null)
                   line = buff.readLine();
                   System.out.println(line);
              buff.close();
         catch(IOException e)
              System.out.println("IO Error");
    }       Noah

  • How to read data/fields of the pdf form

    Hi,
    i want to orchestrate a process where input is interactive forma and output is xml data.
    i mean i want to read data/fields of the pdf form.
    Which activity do i use on workbench.
    Regards
    Sunil

    Dieter,
    I am talking about 3rd senario, where we create one process on workbench, and pass filled pdf as input and then output of process is xml file.
    What is the process name here (Like renderPDF process) which extract data from pdf.
    regards
    Sunil

  • How to read, write file inside the JAR file?

    Hi all,
    I want to read the file inside the jar file, use following method:
    File file = new File("filename");
    It works if not in JAR file, but it doesn't work if it's in a JAR file.
    I found someone had the same problem, but no reply.
    http://forum.java.sun.com/thread.jsp?forum=22&thread=180618
    Can you help me ? I have tried this for all night !
    Thanks in advance
    Leo

    If you want to read a file from the JAR file that the
    application is packaged in (rather than a separate
    external JAR file) you do it like this ...
    InputStream is =
    ClassLoader.getSystemResourceAsStream("filename");Better to use
    this.getClass().getClassLoader().getResourceAsStream();
    From a class near to where the data is. This deals with multiple classloaders properly.

  • How to read and write from the serial port using java

    can anyone tel me how to capture data from a serial port and display on the screen and also store it in a database.

    Java Comm API, JDBC

  • How to  read header texts in the on save user exit of VA01

    Hi Experts,
    I have a requirement to read the header texts in the on save user exit.
    I have to check whether departmental code in header text is not initial or not.
    Can any one please pour in some points of how it can be done......
    Thanks in Advance.
    Prem

    Hi
    U can use fm READ_TEXT:
    DATA: THEAD LIKE THEAD,
          TLINES LIKE STANDARD TABLE OF TLINE WITH HEADER LINE.
    THEAD-TDID     = <text id>.
    THEAD-TDSPRAD  = <language>.
    THEAD-TDOBJECT = 'VBBK'.
    THEAD-TDNAME   = VBAK-VBELN.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = THEAD-TDID
        LANGUAGE                      = THEAD-TDSPRAD
        NAME                          = THEAD-TDNAME
        OBJECT                        = THEAD-TDOBJECT
      TABLES
        LINES                         = TLINES
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 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.
    U can use it in all situations ( inserting and updating) because that fm returns the buffered text.
    Max

  • How to read printed text from the browser.

    I have an API that take 2 parameters as query string and after validating it prints back 4 parameters on the browser itself like :
    para1=abc
    para2=xyz
    para3=123
    para4=pqr
    now i want to use the value of these parameters further in my program, can anyone tell me how can i take the parameter values in variables.

    I can think of two choices offhand.
    1. In addition to displaying the values, have your servlet or JSP write out a form with <input type="hidden" name="para1" value="abc"> fields in it, and a submit button. Your values will come back to you in the next post or get request. (If this is sensitive information, however, DO NOT do this unless you can re-validate the data, since it would be possible for someone to fabricate their own static page to submit bogus data.)
    2. Put the data in the session object, using the setAttribute(...) method, and retrieve it on the next page using getAttribute(...).
    You cannot really "read" the page that is visible on the user's browser.
    Hope this helps.
    Cheers!
    Jerry Oberle

  • How to read multiple files in the same folder?

    Suppose I have 100 txt files in the same folder, and I want to read them one by one. (order is not important). File name is also part of the information I want.
    How to do that?
    Thanks

    You need to use the directory to create a File (use the path name, w/o a file name). Then you need to ask for a list() (array of String containing name). To do that you'll need to implement the FilenameFilter interface, writing an accept() method that returns true if the file's name ends with ".txt".
    If that's not perfectly clear, try the java.io API docs and return more specific questions.

  • How to read User ID from the request Form and pre populating in the AD User process form before provisioning

    I am trying to read the user Id from the submitted AD User request form( Catalogue AD User form. I need User Id,firstname and lastname inorder to prepopulate the common name as in this format - lastname,firstname (userid)  for the user to be provisioned in Active Directory.
    So after filling the AD User request form with User Id and Organization and submitting the request, I am trying to
    prepopulate the common name in the process form before the provisioning.
    The prepopulate adopter for the common name is configured to read the firstname, lastname and userid. firstname and
    lastname variables are mapped to User definition and user Id is mapped to Process Data. In this setup I am not getting the
    User Id value from process data, it is empty.
    Is this a bug with OIM 11g R2 or I need to do it differently in order to read the user Id that user has entered in the
    request form for populating the common name?
    Thanks

    Ghulam Yassen wrote:
    How to get USER_ID and IP_AddressWhy exactly do you need this data and what do you plan to do with it?
    The data is not reliable and trustworthy. IP addresses can easily be spoofed (a few seconds if you know what to do and how to do it). Also, IP addresses are not static. Users also do not use the same network device to access the database - different devices will have different IP addresses.
    The o/s user on the client is supplied by the client driver. This can also be spoofed.
    The user can also use a virtualised device - which means that recording the IP and o/s user seen from the server side, is pretty much useless and meaningless.
    So if this data is intended to be used for auditing for example - it would be pretty suspect data to use for that purpose.

  • How design transaction table for  accounting system

    Hi master;
    Sir,
    I making accounting system for garment factory chart of account table I design but
    I confused in transaction table how I design make only one table
    Such as
    Trans
    Ac_code
    Date
    V_no
    Description
    DR_amount
    CR_amoun
    Chequ_no
    Or make transaction master detail style
    Tran_master
    V_no
    Date
    Description
    Ac_code
    Chequ_no
    Tran_detail
    S_no
    V_no
    Ac_code
    Description
    DR_amount
    CR_amoun
    But how I get ledger from both style please give me idea how I set transaction table
    Or give I any sample application or sample code
    Thanking You
    Aamir

    Hi master;
    Sir,
    I making accounting system for garment factory chart
    of account table I design but
    I confused in transaction table how I design make
    only one table
    Such as
    Trans
    Ac_code
    Date
    V_no
    Description
    DR_amount
    CR_amoun
    Chequ_no
    Or make transaction master detail style
    Tran_master
    V_no
    Date
    Description
    Ac_code
    Chequ_no
    Tran_detail
    S_no
    V_no
    Ac_code
    Description
    DR_amount
    CR_amoun
    ut how I get ledger from both style please give me
    idea how I set transaction table
    Or give I any sample application or sample code
    Thanking You
    Aamir
    only one table voucher may have more then one invoice then i would go with master detail .
    If you maintain one table how will you maintain more then one invoice's voucher.
    Khurram

  • How to read data after using the PRINT function in visual basic

    I know the benchlink can capture the spectrum analyzer screen for me, but I want to integrate it into my application. I use NI spy to detect the communications from the benchlink and put it into my application. After sending the "PRINT 0" command, my "ilrd SpectrumAnalyzer, temp, 500" command doesn't work, giving me EARG error. Does anyone knows if it is because I can not define the temp to be string or some other problem?
    b.t.w, the communications I get from NI Spy actually read some unknown characters from the instrument, what kind of data it is? Any idea how to use it?
    thanks.

    Hello elm,
    This is completely dependent on your instrument; if you are getting the data then you are halfway there. Look in your instrument's programmer's reference manual to see if they mention how the picture is encoded in bytes. There are so many different ways to encode a picture in binary that speculating and guessing would probably never yield the true result. If there is no mention in the manual, contact the instrument manufacturer.
    Sorry I could not be of more help.
    Scott B.
    Applications Engineer
    National Instruments

  • How to read cursor position in the following code?

    I am using reuse_alv_list_display
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    DATA:gs_selfield TYPE slis_selfield,
    ok_code LIKE sy-pfkey.
    CASE r_ucomm.
    WHEN '&IC1'.
    gs_selfield = rs_selfield.
    IF gs_selfield-fieldname = 'EBELN'.
    MOVE 'EVRTN' TO rs_selfield-fieldname.
    SET PARAMETER ID 'VRT' FIELD rs_selfield-value.
    SET PARAMETER ID 'BES' FIELD rs_selfield-value.
    CALL TRANSACTION 'ME38' AND SKIP FIRST SCREEN.
    ELSE.
    IF gs_selfield-fieldname = 'MATNR'.
    SET PARAMETER ID 'MAT' FIELD rs_selfield-value.
    CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    ENDIF.
    ENDIF.
    ENDCASE.
    ok_code = sy-ucomm.
    READ TABLE it_rep_tab INTO wa_rep_tab INDEX l_selfield-value.
    SET PARAMETER ID 'MAT' FIELD wa_rep_tab-matnr.
    SET PARAMETER ID 'WRK' FIELD wa_rep_tab-werks.
    CASE ok_code.
    WHEN 'MD04'.
    CALL TRANSACTION 'MD04'." AND SKIP FIRST SCREEN.
    WHEN 'MMBE'.
    CALL TRANSACTION 'MMBE'." AND SKIP FIRST SCREEN.
    WHEN 'MD51'.
    CALL TRANSACTION 'MD51' ."AND SKIP FIRST SCREEN.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDFORM.
    Please help me............
    but here not getting values ib l_selfield-value when  I place in the toolbar.
    Please help me.

    you have to read your itab in a workarea yourself using the correct index using the returned rs_selfield-tabindex.
    so you have allways the correct values.

  • How to read some files inside the jar

    Hi,
    I have an applet that runs with JWS. The user can input some information and then I need to show this information in a web page. As the application can be run offline, I cannnot use JSP�s to generate the web page. The information is saved in a xml file, so I use a xsl parser to generate the html code. The problem is that I have to include some javascript files (.js). I put these files inside the jar, but, how can I read these files, or how can I reference these files from inside the html page ?
    Thanks !

    You can use getClass().getResource(classpath)
    to get a stream version of the data from your
    jar file. If you need to put it in a file, you
    can write that stream to a file in a temp directory.
    classpath is the classpath of your js file

Maybe you are looking for

  • Display incorrctly!

    Hi, in my code. I want to plot a 2D object, a JSlider and two comb box. But the 2D object can't displayed correctly, can you look at my code? Please don't provide the link of sun swing tutorial, I have studied many times, but no achievement. import j

  • Resume from Sleep / Hibernate issues

    Hi all, First time poster. I have a Helix and am running into a heap of resume from sleep (and hibernate) issues. The sleep issues tend to happen overnight - I do not have this issue if I sleep the machine and then wake it up 5-10 minutes later (e.g.

  • To find only master data process chains and its infopacakges!!!!

    Hi, I have a task to remove the setting in the scheduler of directly assigning to data targets instead of  PSA and then to data targets of the whole system!!! i should not touch though the transactional info packages settings!! these infopackages mus

  • Rendering errors testing in browsers

    I received an error in browser shots from this link http://www.seabostudio.com/DecisiveTechnologies/index.html How do you test in multiple browsers? I typically use http://browsershots.org/ but it takes over a half hour and then returns errors and do

  • Playing movies on my insignia TV

    I some movies on my ipad that I'm trying to play on my 42in insignia tv. If I plug just the AV adapter in--the kind with the red, yellow and white plugs--into the av plugs into the tv, it will play for a couple minutes then tell me it doesn't support