Using formulae in abap, table tc25 etc.

Hello,
In production order I need to calculate total setup & labor time for operation with a designated workcentre.
I see there are formulas for that: when you view Work Centre and open tab 'Costing'.
I noticed that formulae are stored in table tc25, but what does e.g. sap_01 * sap_03 mean?
And how can i make use of that in ABAP? I need that info to put it on a SAPScript form.
Thanks for any suggestions.

You can use the following function modules to valuate the formulae  
    CALL FUNCTION 'CHECK_FORMULA'
and execute the formulae
     CALL FUNCTION 'EVAL_FORMULA'
You can use function module CYTA_TC25_READ to read values from the table.
Hope this helps.
Franc

Similar Messages

  • Making documentation for ABAP (tables, webdynpro, etc)

    Hello
      I have to make documentation of my code (tables, webdynpro application etc). Do You know some good tutorial and guide how to do documentation? I do not know for e.g. how to add fields into the documentation of the table (GOTO->documentation->change), could You  give me some best-practice hints?
    Regards and thanks in advance
    Wojtek

    hi
    check the below links for the same
    http://web.mit.edu/ist/org/admincomputing/dev/abapstds/current/devstand7.html
    ABAP Tools and utilities
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
    http://www.abovesoft.com/
    If you find useful mark the points
    ~~Guduri

  • Why use infotypes instead of tables in ABAP HR?

    Dear forumers,
    I'm a newbie in SAP ABAP and I'm currently learning HR ABAP.
    One newbie question here: Why are infotypes used in HR ABAP, instead of the normal tables that we regularly use in SAP?
    Please help me out with my question here and my apologies if the question is way too simple. :P
    THANKS!

    Hi,
    Welcome to SDN.
    Info type is information type where the data stored of a particular person/employee is stored in information. suppose if you want to store the personnel data and address, family details, education and previous employee of you only these are all the information stores in the info types you can see this info types in pa30 transaction you will customize this information in img-pm-pa-customizing procedures-info types-create info types.
    Two special reasons - Security and History.
    Security - Some of the HR data can be seen and changed by the employee - address, tax information, etc - and some cannot - pay, evaluations, etc. Thus, employee information has to be separated out into various groupings that can have individual security settings applied for who can see what data and who can change that data.
    History - HR data is time specific. You have a certain pay rate, but as of the first of next month you get a pay raise. Or you move to a new address as of July 1st. The data about your pay must be retained so Payroll knows what to pay you today and then must know what to pay you next month. And that history must be maintained for reporting - What was Your's pay rate since hire date? So each info type, or group of information, has a specific start date and end date during which it is valid.
    Hope this would help you.
    Good luck
    Narin

  • Access ABAP Table using Java (NWDS/JCO)

    All,
    I am trying to setup a jco connection from java program through NWDS to ECC abap table.
    However I am getting the following error in NWDS:
    Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\Program Files\Java\jdk1.6.0_45\bin\sapjcorfc.dll: Access is denied]. java.library.path [C:\Program Files\Java\jdk1.6.0_45\bin;.]
    and a parity error on my system:
    "Parity blocked an attempt by javaw.exe to run sapjcorfc.dll because the file is not approved.  If you require access to this file, please contact your system administrator.  Scroll down for diagnostic data."
    Here is the Java code...per the SAP website:
    package com.sap.pi.updateAbapSxmbAdminParams;
    import com.sap.mw.jco.*;
    public class ReadPiAbapTables {
      private static JCO.Client theConnection;
      private static IRepository theRepository;
      public static void main(String[] args) {
       createConnection();
       retrieveRepository(); 
       try {
        JCO.Function function = getFunction("RFC_READ_TABLE");
        JCO.ParameterList listParams = function.getImportParameterList();
        listParams.setValue("BSAUTHORS", "QUERY_TABLE");
        theConnection.execute(function);
        JCO.Table tableList = function.getTableParameterList().getTable("SXMSCONFVLV");
        if (tableList.getNumRows() > 0) {
         do {
          for (JCO.FieldIterator fI = tableList.fields();
          fI.hasMoreElements();)
           JCO.Field tabField = fI.nextField();
           System.out.println(tabField.getName()
             + ":t" +
             tabField.getString());
          System.out.println("n");
         while (tableList.nextRow() == true);
       catch (Exception ex) {
        ex.printStackTrace();
      private static void createConnection() {
       try {
        theConnection = JCO.createClient("aaa", "aaa", "aaa", "aa", "aa", "aa");
        theConnection.connect();
       catch (Exception ex) {
        System.out.println("Failed to connect to SAP system");
      private static void retrieveRepository() {
       try {
        theRepository = new JCO.Repository("saprep", theConnection);
       catch (Exception ex)
        System.out.println("failed to retrieve repository");
      public static JCO.Function getFunction(String name) {
       try {
        return theRepository.getFunctionTemplate(name.toUpperCase()).getFunction();
       catch (Exception ex) {
        ex.printStackTrace();
       return null;

    Hi Vicky,
    You need authorization to the S_TABU_DIS object, talk with the ABAP basis team about this to find the more restrictive role.
    It's not a good idea to use the RFC_READ_TABLE, for the wide permissions needed. You could think to develop a Z RFC for this.  You can check pros/cons in this document: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a83ec690-0201-0010-14ac-bd1d75e24a7d?overridelayout=t…
    Regards.

  • How to create a table to use in webdynpro ABAP

    Hi Guys,
    Can anybody let me know how to create a table to use in webdynpro ABAP. I am new to ABAP. It would appreciable if i get useful answer.  Thanks In Advance
    Regards
    Ravi

    Hi! You can use transaction code SE11.  Please refer to http://help.sap.com/saphelp_nw70/helpdata/en/6c/f2934259a5c66ae10000000a155106/frameset.htm
    Please note that table name should start with 'Y' or 'Z' - by SAP naming conventions object names starting with 'Y' and 'Z' are reserved for customer application development.
    Please reward points if helpful

  • Standard program to display which tables are used by Webdynpro ABAP program

    Hi Gurus,
    I am working on a couple of enhancements in SAP Promotion Management for Retail (SAP PMR) which works on the principle of Floor Plan Management.
    I was wondering if anyone would know of a standard program to display the tables used by Webdynpro ABAP?
    (or)
    Where can I get info of SAP Tables associated to SAP PMR?

    Hi,
    I am not aware of any standard reports that displays the tables.
    If I have to view the tables, I would go to se80, give the package and view all the tables in the package.
    Regards,
    Daz.

  • Access ABAP tables using NWDS Java Code

    All,
    I am planning to write a program to autmatically update is_url entries in sxmb_admin using a Java program.
    Is there a way we can access the ABAP tables using standalone Java Code? would it something like dblookup that we use in the mappings?
    Your Thoughts....
    Thanks.

    Hi Vicky - Interesting..Seems like you are trying to automate every single thing
    However you can make use of Jco to connect to ABAP tables..
    Check the below thread..
    Help on accessing tables of SAP from the Java Application
    I assume the table name is "SXMSCONFVLV" which you might have to update but not sure..

  • Use a ABAP-Table in JavaScriptcode

    Hi experts,
    I try to use a abap table in JavaScript code. The table is filled in the controller and defined in Pages Attributes.
    I need a little loop where I can work with every single entry in the table.
    Something like this:
    While not "endofTable" do{
      Document.write(AdressTable<i>-Post_code);
      Document.write(AdressTable[i++]-city);
      u2026
    Can anybody give me an example?
    Thanks a lot

    You can mix ABAP statement with JS easily to do the job like below:
    <% Loop at itab into wa. %>
      Document.write( <%= wa-Post_code %>);
      Document.write(<%= wa-city %>);
    <% endloop. %>
    Raja

  • How to find the space used by a single table, a index on that table etc

    Can someone tell where to locate for the Extents used by a single table , index and other objects

    A large question implies a large answer, read the reference guide
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
    and search dba_extents...
    Nicolas.

  • Use of client dependent tables

    Hi Gurus,
    I have read many threads on difference between client dependent and independent data/objects etc.
    But, someone tell me please, wheat exactly the 'Use or Advantage' of client dependent tables/data.
    Thanks in advance.
    V

    HI,
       The use of client dependent tables is that if  data in one table of a particular client is updated then that data wont be seen in any other clent it provides a security to the data we retrict users with their authorizations in differen clients
    When you log on to an SAP System, you log on to a particular client of this system. Any activities you carry out in the system are always carried out in one client. When you plan your SAP system landscape, you must consider which clients you need for which activities.
    By assigning activities to be performed in a client, you give each client a particular role. This section describes the most important client roles.
    Since you need to adapt the SAP software for your own business needs, each SAP system landscape requires a client where Customizing settings, and possibly ABAP Workbench developments, can be made. This client is known as the Customizing and development client, or Customizing client for short. The abbreviation CUST is used for this client.
    Before you can use the Customizing settings and Workbench developments productively, you need to test them extensively for errors. Any faulty settings can seriously disrupt productive operations, and at worst, lead to the loss of productive data. The integrated nature of the various SAP applications means that there are many dependencies between the different Customizing settings. Even an experienced Customizing developer may not discover these dependencies immediately. The correctness of the settings can only be guaranteed with extensive testing. The client where these tests are made is the Quality Assurance Client, QTST for short.
    A separate client is required for productive use of the SAP System. So that this client can be used without disruption, it is essential that no Customizing settings or Workbench developments are made here, and also that no tests are carried out. This client is known as the Production Client, PROD for short.
    These three clients, CUST, QTST and PROD, are the central clients that exist in every system landscape. Standard system landscapes have precisely one client for each of these client roles.
    We recommend that you make all your Customizing settings in a single Customizing client, and then use the CTS to transport them to the other clients.
    We also recommend that you do not make any Customizing settings or Workbench developments in the quality assurance or production clients. You can make sure of this by making appropriate client settings.
    In addition to the central clients, you can also set up other clients for other tasks. However, you must remember that each extra client takes up additional system resources (main memory and database space). They also need to be administrated. For example, you need to set up and administrate access authorization for the users, and also distribute any changes to other clients with the CTS. You must weigh up the advantages and disadvantages of setting up other clients.
    Examples of other client roles are:
    Development test client (TEST): Developers can use this client to test their Customizing settings and Workbench developments, before they release their change requests. In this client the developers can create test application data for realistic tests. If they discover errors, they can remove them in the Customizing client. A development test client is always set up in the same SAP System as the Customizing client. This means that any changes that are made to cross-client data in the Customizing client are also immediately visible in the development test client. Changes to client-specific data are copied from the Customizing client to the development test client using a special  client copy function. The client copy function uses the unreleased change requests from the Customizing client to do this. The development test client is set so that you cannot make changes to Customizing data and Repository objects.
    Prototype or sandbox client (SAND): You can use this client to test any client-specific Customizing settings if you are not sure whether you want to use them in this form. Any settings that you want to keep are then entered in the Customizing client. To prevent conflicts between the prototype client settings and real settings in the Customizing client, you cannot make changes to cross-client Customizing data and Repository objects in the prototype client. The CTS does not record changes made to client-specific Customizing data, and does not transport them from the prototype client. You can make sure of this by making appropriate client settings.
    Training client (TRNG): To prepare end users for new functions that are to be transported into the production client, you can set up a training client. The users can use the new functions in this client with specially created application data. This client is set so that you cannot make changes to Customizing data and Repository objects.'''
    plzz reward if this information is usefull to u plaa dont forget to reward

  • HR ABAP:  table/infotype relationships

    Hi.
    I'm experienced in doing ABAP programming for all the rest of the modules, but with ABAP HR, I am new and doing one for the first time.  I need your help regarding how to find tables/infotypes and relationships to each other.
    Specific work example/scenario: 
    From selection criteria of requisition information, I am supposed to have an output report with application and candidacy information.
    1.) How can I relate Infotype 5125 with info type 5132 and 5102? 
    I am more comfortable with select statements hence I prefer explanation using the transparent tables HRP5125, HRP5132, etc.
    2.) How can I make use of the table HRP1001 to establish relationships between different tables/infotypes of HR?
    Also, kindly send any links and documents that can give an at-a-glance summary of what I can use when doing ABAP for HR for the first time. 
    Thanks for your help and expertise and may God bless us all!
    Celeste

    More exactly look at tables
    - [HRP1000 |https://www.sdn.sap.com/irj/sdn/advancedsearch?query=hrp1000+&cat=sdn_all]: org. units, positions, etc.
    - [HRP1001|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrp1001&adv=false&sortby=cm_rnd_rankvalue] : links between org. units, positions, etc.
    Look at this thread Tables for ORG model  and FM [RH_STRUC_GET|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rh_struc_get&cat=sdn_all]
    Regards

  • Adobe form to save data using Web Dynpro ABAP

    Hi. I am pretty new to SAP world and trying to learn and work on a task given to me relate to
    creating Adobe offline form using Web Dynpro ABAP same time.
    I have several questions and hopefully, many gurus like you will provide answers.
    I noticed there are many examples creating and using Adobe interactive forms (though not many newer version),
    but I didn't see (at least I didn't find any) any detail example on saving data to an internal table (such as fixed assets, vendor master, etc)
    using interactive form. Is there any detail explanation/example on this?
    I have ask this question in another forum (before I found this forum) but didnu2019t get the answer yet.
    2. When I tried to see graphic layout and modify the layout from Web Dynpro, I can't see the graphic layout.
    All I see is text list of fields/buttons that I created, but can't see section for graphic layout where I can modify layout.
    I am sure I didn't install/configure something correctly.
    Anyone has any idea what I didn't do?
    I have another question, but I will wait till later after I figure out above ones first.
    Thanks for all your help in advance.
    John

    Hi John,
    In the WD4A view, there is a button "Show/Hide Layout Preview".
    Click on that button to be able to see the Layout.
    Note that this button is next to the Pretty Print button.
    regards,
    Reema.

  • ABAP Table for Integration Directory Objects

    Hi
    Is there any ABAP table, which stores the runtime objects, communication channel, It's status, Service etc.
    Where you can find out status of each channel and the channel type used within the ABAP stack in Data Dictionary table.
    Replies apprecriated.
    Swetank

    Hi Paresh,
    To view the status of adapters you can use RWB.
    You dont need to write an ABAP report for this purpose.
    RWB->Component Monitoring->Click on Displaye with status "all".
    Then..click o Integration Server->Adapter Engine
    click on 'Adapter monitoring' in the the 'Status' tab page of the window at the bottom of the screen.
    This will launch a widow with status details of all the monitors.
    Hope this info helps you.
    praveen

  • Creation of table,views etc

    Hi All,
    I want step by step procedure to create table views etc etc.Can u please get back to me in detail procedure.
    Thanks and Regards,
    Jaya.

    <b>Procedure to create a table.</b>
    <b>The path</b>
    Tools ABAP Workbench Development Dictionary or Transaction SE11 takes you to
    the overview screen of the ABAP Dictionary.
    2-1-1 To create table ZEMPLOYxx:
    1) Mark Database table and enter table name ZEMPLOYxx in the corresponding
    input field.
    2) Choose Create.
    3) Enter a short text in the maintenance screen for the table.
    4) Choose delivery class A and mark Table maintenance allowed.
    5) Now click on tab page Fields to go to the maintenance screen for the field
    definitions. Enter the field names there (they need not lie in the customer
    namespace).
    6) Use the given data elements for fields Client, Carrier, First name, Last name
    and Currency by entering the names of the data elements in column Field
    type. Save your entries.
    7) Create your own data elements for fields Personnel number, Department code,
    Area and Salary. Enter a name (Z<object>xx) for the data element in column
    Field type. Double-click on the name of the data element. The data element
    definition appears.
    8) Enter a short text (component of the F1 help). Now click on tab page Field
    label and store the texts for the field labels there.
    9) You also have to assign the data element a technical description (domain).
    Click on tab page Definition and enter a name (Z<object>xx) for your domain
    there. If the domain is predefined, activate the data element and return to the
    maintenance screen for the table fields (F3 or ).. Otherwise double-click on
    the domain name. The domain definition appears.
    10) Define the short description, data type (for example NUMC) and number of
    characters (for example 10) there. Activate the domain.
    11) Navigate back one screen (F3 or ) to the data element definition and
    activate your data element.
    12) Navigate back one more screen to the field definition. Start again there with 7)
    until all the table fields are defined. Save your table.
    13) Define the reference table and reference field for the salary field. Double-click
    on the field name and enter the following in the next dialog box:
    Reference table:
    ZEMPLOYxx
    Reference field: Currency
    14) Define the key fields for table ZEMPLOYxx. Fields Client, Carrier and
    Personnel number uniquely identify an entry. They must therefore be marked
    as key fields. You can do this by marking the Key column following the field
    name. The key fields must be at the beginning of the field list in this order.
    15) Activate the table. The maintenance screen for the technical settings appears
    automatically:
    Since the contents of table ZEMPLOYxx do not change frequently, you must
    choose data class APPL0 (master data). The expected number of records in
    table ZEMPLOYxx is 60,000, so you must choose size category 2. The table should not be either buffered or logged.
    Save the technical settings. Go back to the maintenance screen of the table (F3 or ). The table is activated.
    <b>Hope this is helpful, Do reward.</b>

  • Abap table /alv grid

    Hi Experts,
    I m looking for some abap sample programs to build a program with tabs.
    In any tab you have a table (ALV GRID ) with buttons to move up/down the selected row.

    1.Table maintanence generateor is used to maintain the table .
    If u want to allow others to create new entries u have to maintain the table.Which will have all the changes to the table.so that the users can get the newly activated table to go for further process..
    2.
    To edit the grid value u have to set the fieldcate.
    WA_FIELDCAT-EDIT = ''X'.
    3.
    Table control s used for the changes then and there and user friendly
    ALV is for Sort layoput changes and can download to wordformat etc...

Maybe you are looking for

  • Can I open a second iTunes account for my child, but use my email for both accounts?

    I have one iTunes account, my ID is my email address.  I want to open a second account for my daughter, but I want to see her iTunes Store receipts (sent to MY email address).  When I try to set up a new account, it says that I need to enter my email

  • The manufacturer of my SD card is?

    I've got a Nokia phone that came with a memory card, but there's no brand name on it. The only thing written on it is "2GB micro SD card" and there are alphanumeric figures at the back. I'm having issues with the card & would like to contact the manu

  • Throws exception unhandled

    Hi all ... I'm facing with a really simple program that says Create a class called "MyClass" and construct three methods named "abs" (i) to find the absolute value of an integer (ii) to find the absoute value of a float (iii)to find the absolute valu

  • How to import existing WLS Portal App into Workshop?

    I have searched and searched, and tried every different combination of imports, with no success. I have an existing EAR file, with a Portal Application, created for WebLogic. I am able to deploy it to my server, and it works fine. I would like to imp

  • IPad 1 : No SIM installed (after iOS5)

    It's all in the title. After I updated to iOS 5, my iPad 1st Gen started to loose the SIM after the code-lock had engaged, but a reboot fixed it. Since a couple of days (and after an iPad restore, which is indicated in Apple Support as the fix for th