Standard Work Area - Customize Query Functioncode for MDT

Hi SAP Experts,
I have a Query in the Standard Work Area and I want to configure it as report in Managers desktop and it should also be shown in the Enterprise Portal. I read the MSS Business Package for this where the steps for configuration are described. For a query I have to build an URL like this:
"<Work Area><User Group><Query Name>
A query is identified using these three parameters. If you want to use the query PHONE_LIST from the user group /SAPQUERY/H2, which belongs to the global work area (X), you should enter X*/SAPQUERY/H2/PHONE_LIST in this field."
I think there should also be a character for the standard work area something like the "X" for the global work area. But I could not find out what it is. So please can you help me?
Best Regards,
Nadin

Hi Deepak .
It is possible .
change the structure of the internal table .Add one more column to internal table of the type (structure of ZCAT_CODE ). Lets say the new added column is "col1" . For all the entries of the internal table you can assign the col1  = ZCAT_CODE .
you can access the details  like this :
wa_code-col1-text  .

Similar Messages

  • Maximize work area in Photoshop CS4 for Mac

    I just re-installed eveything due to the Snow Leopard incedent.
    Before, I used to be able to open a psd file or any file for that matter with photoshop and the entire screen was used. Now it opens to the size of the file I am opening. Is there a way to set it to defualt when I open a new file that it is in full screen mode?
    Attached is a screen shot of how it looks when I open a file:
    Foregive the incorrect shot, the tools menu is gone due to using the screen capture feature in my Dashboard. But i would like to open the file and have it fill my monitor instead of just the size of the file. I can set it to open full screen but I have to do it manually. I would like this to be default.
    If anyone has an idea of what i'm trying to doi, please let me know!
    Thanks,
    Michael Sigouin

    One last thing . . .
    I am using two monitors. My secondary monitor has all my tools as far as layer panels, colors, swatches etc...
    The main monitor has just the "artwork" area and main tools for the application.
    Ok, I think I know what I want it to do. I would like the file to open to "Full Screen Mode with Menu Bar". Also, when I open another file, have them tabbed at the top.
    Thanks again!

  • Work area "itab" is not long enough

    Hi All,
    Here am facing a trouble with internal tables.
    I need an internal table for processing. I declared a table type refering to an structure. The program is throwing me an error "Work area "itab" is not long enough. "
    Can anyone telme what's wrong with the code?
    Thanks,
    Anjum.

    Hi Nasarat,
    if you look at carefully you definitions of tables
    TYPES: BEGIN OF tbl,
    rc_n TYPE c,
    rec_n(2) TYPE n,
    END OF tbl.
    DATA: itab_org type tbl1 occurs 0 with header line,
    itab_rc type tbl1.
    your DATA statement referes ITAB_ORG to a Type tbl1 which does not  exist in your TYPES statement.
    your DATA statement refers to ITAB_ORG is not a internal table but a WORK Area as you have declared it as ITAB_ORG type tbl1.
    If you want to declare and internal table ITAB_ORG - decalre it as
    Data:ITAB_Org type standard table of tbl.
    and define a explicit work area
    DATA: wa_org type tbl.
    Never use Occurs 0 and Header line as it coccupies lots of memories and your programs may dump in future . So please avoid occurs 0 and header line and instead decalre an explicit WORK AREA.
    Similary declaration for internal table ITAB_RC it should be
    DATA: ITAB_RC type standard table of tbl,
              WA_RC type tbl.
    then after these declarations when you do a SELECT statement it should be
    SELECT rc_n rec_n into ITAB_ORG from<DB table>.
    The fields as declared in types should be called in the same sequence as you have defined above OR use INTO CORRESPONDING-FIELDS OF ITAB_ORG.
    Hope this reolves your query and was useful.
    if yes please do reward suitably
    Thanks
    Venugopal

  • How to merge work areas of same internal table

    Hi Experts,
    I have a requirement to merge two work areas into 3rd work area where all 3 belonging to same internal table like example below.
            person | activity | location |
    wa1: 001     |    A       |              |
            person | activity | location |
    wa2: 001     |              | xyz       |
    after merging the value in wa3 should be as follows:
             person | activity | location |
    wa3: 001      |    A       |  xyz       |
    I am looking for a ABAP command or FM to perform this task.  Please help me on the same.
    Many Thanks,
    Vijay

    Hello,
    Try this:
    Field-symbols: <lfs_wa1> type line of lit1,
                     <lfs_wa2> type line of lit2.
      sort lit2 by field1 ascending.
      loop at lit1 assigning <lfs_wa1>.
        read table lit2 with key field1 = <lfs_wa1>-field1 assigning <lfs_wa2> binary search.
        clear wa3.
        wa3-field1 = <lfs_wa2>-field1.
        wa3-field2 = <lfs_wa2>-field2.
        wa3-field3 = <lfs_wa2>-field3.
        append wa3 to lit3.
      endloop.
    Use sorted internal tables, field symbols and binary search for better performance. In case when different fields in both work areas may be populated for each row, you need to implement some check and move logic inside loop instead of simple value assignment. I assume that the key value is always there for both tables you want to merge.
    best regards,
    Marcin
    Edited by: Marcin Makowski on Oct 20, 2010 7:16 PM
    Edited by: Marcin Makowski on Oct 20, 2010 7:17 PM

  • How to Copy Standard Business Areas in Oracle apps

    Does anyone knows how we can copy new Standard BUsiness Areas in Oracle Apps for fresh implementations.
    Thanks

    Hi,
    You can export the business area and then import it selecting the option to create a new version of duplicated items.
    However, I wouldn't recommend doing this. If you just want a new business area, then create a new business area and use manage folders to move the folders you want into the business area. In general there is no need to copy the folders for new implementations but if you want to add copies of folders into the new business area then drop and drop the folders into the new business area.
    Rod West

  • Precomposing a work area

    I was hoping someone could help me figure out if there is a way to precompose layers into a specific work area you designate. For instance, you set an "in" and an "out" to your composition, then you precompose. Your composition then starts from the current time you're on and ends where you set the end of the work area. It would be like setting a length to the composition settings before you compose everything. I just want everything to be clean instead of having all this extra length at the ends of each of my compositions.

    I think that Rick might have been referring to this script:
    Chris Zwar » Blog Archive » Pre-compose to layer duration (a script)
    But, there is a very important question: What version of After Effects are you using? In After Effects CC (12.1) last year, we added the option to trim the precomposition to be the duration of the selected layers that are being precomposed. So, this script is unnecessary.

  • No Withholding tax calculated when the work area is changed

    Hi All
    I have changed the work area in infotype 208 for an employee from OH to IL. Then i ran the payroll, but no withholding tax for IL was calculated. The employee residence area is IN.
    Any inputs on why its not calculated ?
    Regards
    Vamsi

    Hello Yogesh,
    Thanks for your reply!!!
    We have solved the issue.
    the issue is really due to after 7.3 Upgradation the RSPC_MONITOR had two more new feilds added
    1) UNAME & 2) CHECK_TIME
    and this fields doesn't exist in the 7.0 Version so due to this inconsistancy the Structure was failing.
    so we have included two new Fields in the structure in the program and in the Customer Exit and working fine now.
    With Regards,
    PJ.

  • Buttons in Work Area Toolbar

    How can I add/remove buttons to a work area toolbar?
    Thanks for your help!

    Hi Dave,
    If you want to add or remove buttons in a toolbar, you need to have a look at the Controller Implementation Class of the View or Overview Page to which you want to add a button. In this class you will find back the method: IF_BSP_WD_TOOLBAR_CALLBACKGET_BUTTONS where the list of buttons is filled and where you can add or remove buttons. And you will find back the method IF_BSP_WD_TOOLBAR_CALLBACKGET_NUMBER_OF_VISIBLE_BUTTONS where the number of visible buttons is defined.
    Kind regards,
    Carl

  • Working Area in CWBQM

    Dear Expert,
    I want to create New Working Area for CWBQM with Selection Criteria at Item Level. How can I do this ?
    Actually this is required to assign different Strategies for same material and plant to Stability Studies.
    Regards,
    Vivek Kumar

    assign different Strategies for same material and plan
    if you want to assign stategies then existsing working area can be used for the same.
    Then go to CWBQM>>> where in select working area as Q_OPR_000000000010>>>Then enter Material and plant combination >>> load the task list>>>Select the operation for which you need to maintain Maintenance packages>>select "Task list" in menu>>>Maintenance packages>>>>check Bulb will become yellow

  • Standard Work flow for Leave approval in HR module

    Hi ,
    My query is there any standard work flow available in HR module for Leave approval and Over time approval. We have negative time management and with out ESS and MSS.
    Pl suggest if any one has used this earlier with out ESS or EP
    Regards
    Punit

    I can think of the following but not without enhancement for the workflow part.
    - Since you are not using ESS, you (leave admin) may create the absence record directly in IT2001 (in LOCK mode).
    - In the user exit of 2001 you may trigger your Workflow process (i.e. call the function module to trigger WF here) depending on the LCCK status. You have to explore if standard WF can be used to your requirement.
    - Upon approval, you can UNLOCK the absence.
    - In the event that UNLOCK is unsuccessful, trigger WF to your Leave Admin for him to update via PA30.
    Standard SAP Workflow
    - Only 1 level approval
    - Using Chief Position
    IF your workflow requirement deviates, then you have to also customize workflow, does not matter whether you are using ESS or not.
    Finally test and retest to make sure all possible events are covered.
    OT is the same, except that you need to use 2007 vs 2002
    Edited by: sapuser909 on Nov 18, 2009 12:07 PM

  • Logic for Populating a Work Area

    Hi Gurus,
    I have a standard sap structure KNWEV. In the structure the values will get populated as give below.
    For an Unloading point for different days ie for Monday the times for unloading will be
    Monday  8 30 12 30 14 30 16 30.
    Tuesday 9 30 12 30 14 30 16 30
    The values will get populated for all the days for an unloading point. and its stored in structure as below.
    KNWEV Field names and Field Values
    Unloading_point   Monday1 Monday2 Monday3 Monday4 Tuesday1 Tuesday2 Tuesday3 Tuesday4 etc
    Dock A                8 30       12 30      14 30       16 30      9 30         12 30       14 30          16 30
    Suppose for a unloading date let it be 18 / March / 2009 , it is a Tuesday
    I want to populate work area in my program with Unloading point and Time for Tuesday  taking values from KNWEV
    Work Area
    Unloading point   Tuesday1 Tuesday2 Tuesday3 Tuesday4 .
    Dock A               9 30         12 30       14 30          16 30
    Please let me know how can i move fields from structure to my work area taking the field names as Monday1 Monday2 .. and so on
    Edited by: Avi on Mar 18, 2009 12:11 AM

    Hi,
    Use the code below...
    data weekday type DTRESR-WEEKDAY
    data string type string.
    call function date_to_day
    exporting
    date = sy-datum
    importing
    weekday = weekday.
    if weekday CS 'WED'.
       string = 'WEDNESDAY'.
    elseif weekday CS 'SAT'.
       string = 'SATURDAY'.
    endif.                                       " For all other days it takes it automatically....
    read table itab into wa_knwev with key unloading_point = weekday.
    " I don't know whether which variable contains the weekday in the internal table so i have used the variabel unloading point...
    " The above read statement will get the record in the work area for the date you mention in the FM...
    I hope this is what you required ...
    if this is not meeting the requirement please do specify a bit more on your requirement
    Regards,
    Siddarth

  • Basic query regarding work-area and select query

    hi
    dear sdn members,
    thanks too all for solving all my query's up till now
    i am stuck in a problem need help
    1)  why basically work-area has been used ? the sole purpose
    2)  different types of select query ? only coding examples
    note: no links pls
    regards,
    virus

    hi,
    Work Area
    Description for a data object that is particularly useful when working with internal tables or database tables as a source for changing operations or a target for reading operations.
    WORKAREA is a structure that can hold only one record at a time. It is a collection of fields. We use workarea as we cannot directly read from a table. In order to interact with a table we need workarea. When a Select Statement is executed on a table then the first record is read and put into the header of the table and from there put into the header or the workarea(of the same structure as that of the table)of the internal table and then transferred top the body of the internal table or directly displayed from the workarea.
    Each row in a table is a record and each column is a field.
    While adding or retrieving records to / from internal table we have to keep the record temporarily.
    The area where this record is kept is called as work area for the internal table. The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
    Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
    .g.
    data: begin of itab occurs 10,
    ab type c,
    cd type i,
    end of itab. " this table will have the header line.
    data: wa_itab like itab. " explicit work area for itab
    data: itab1 like itab occurs 10. " table is without header line.
    The header line is a field string with the same structure as a row of the body, but it can only hold a single row.
    It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table. It is the default work area for the internal table.
    With header line
    SELECT.
    Put the curson on that word and press F1 . You can see the whole documentation for select statements.
    select statements :
    SELECT result
    FROM source
    INTO|APPENDING target
    [[FOR ALL ENTRIES IN itab] WHERE sql_cond]
    Effect
    SELECT is an Open-SQL-statement for reading data from one or several database tables into data objects.
    The select statement reads a result set (whose structure is determined in result ) from the database tables specified in source, and assigns the data from the result set to the data objects specified in target. You can restrict the result set using the WHERE addition. The addition GROUP BY compresses several database rows into a single row of the result set. The addition HAVING restricts the compressed rows. The addition ORDER BY sorts the result set.
    The data objects specified in target must match the result set result. This means that the result set is either assigned to the data objects in one step, or by row, or by packets of rows. In the second and third case, the SELECT statement opens a loop, which which must be closed using ENDSELECT. For every loop pass, the SELECT-statement assigns a row or a packet of rows to the data objects specified in target. If the last row was assigned or if the result set is empty, then SELECT branches to ENDSELECT . A database cursor is opened implicitly to process a SELECT-loop, and is closed again when the loop is ended. You can end the loop using the statements from section leave loops.
    Up to the INTO resp. APPENDING addition, the entries in the SELECTstatement define which data should be read by the database in which form. This requirement is translated in the database interface for the database system´s programming interface and is then passed to the database system. The data are read in packets by the database and are transported to the application server by the database server. On the application server, the data are transferred to the ABAP program´s data objects in accordance with the data specified in the INTO and APPENDING additions.
    System Fields
    The SELECT statement sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Relevance
    0 The SELECT statement sets sy-subrc to 0 for every pass by value to an ABAP data object. The ENDSELECT statement sets sy-subrc to 0 if at least one row was transferred in the SELECT loop.
    4 The SELECT statement sets sy-subrc to 4 if the result set is empty, that is, if no data was found in the database.
    8 The SELECT statement sets sy-subrc to 8 if the FOR UPDATE addition is used in result, without the primary key being specified fully after WHERE.
    After every value that is transferred to an ABAP data object, the SELECT statement sets sy-dbcnt to the number of rows that were transferred. If the result set is empty, sy-dbcnt is set to 0.
    Notes
    Outside classes, you do not need to specify the target area with INTO or APPENDING if a single database table or a single view is specified statically after FROM, and a table work area dbtab was declared with the TABLES statement for the corresponding database table or view. In this case, the system supplements the SELECT-statement implicitly with the addition INTO dbtab.
    Although the WHERE-condition is optional, you should always specify it for performance reasons, and the result set should not be restricted on the application server.
    SELECT-loops can be nested. For performance reasons, you should check whether a join or a sub-query would be more effective.
    Within a SELECT-loop you cannot execute any statements that lead to a database commit and consequently cause the corresponding database cursor to close.
    SELECT - result
    Syntax
    ... lines columns ... .
    Effect
    The data in result defines whether the resulting set consists of multiple rows (table-like structure) or a single row ( flat structure). It specifies the columns to be read and defines their names in the resulting set. Note that column names from the database table can be changed. For single columns, aggregate expressions can be used to specify aggregates. Identical rows in the resulting set can be excluded, and individual rows can be protected from parallel changes by another program.
    The data in result consists of data for the rows lines and for the columns columns.
    SELECT - lines
    Syntax
    ... { SINGLE }
    | { { } } ... .
    Alternatives:
    1. ... SINGLE
    2. ... { }
    Effect
    The data in lines specifies that the resulting set has either multiple lines or a single line.
    Alternative 1
    ... SINGLE
    Effect
    If SINGLE is specified, the resulting set has a single line. If the remaining additions to the SELECT command select more than one line from the database, the first line that is found is entered into the resulting set. The data objects specified after INTO may not be internal tables, and the APPENDING addition may not be used.
    An exclusive lock can be set for this line using the FOR UPDATE addition when a single line is being read with SINGLE. The SELECT command is used in this case only if all primary key fields in logical expressions linked by AND are checked to make sure they are the same in the WHERE condition. Otherwise, the resulting set is empty and sy-subrc is set to 8. If the lock causes a deadlock, an exception occurs. If the FOR UPDATE addition is used, the SELECT command circumvents SAP buffering.
    Note
    When SINGLE is being specified, the lines to be read should be clearly specified in the WHERE condition, for the sake of efficiency. When the data is read from a database table, the system does this by specifying comparison values for the primary key.
    Alternative 2
    Effect
    If SINGLE is not specified and if columns does not contain only aggregate expressions, the resulting set has multiple lines. All database lines that are selected by the remaining additions of the SELECT command are included in the resulting list. If the ORDER BY addition is not used, the order of the lines in the resulting list is not defined and, if the same SELECT command is executed multiple times, the order may be different each time. A data object specified after INTO can be an internal table and the APPENDING addition can be used. If no internal table is specified after INTO or APPENDING, the SELECT command triggers a loop that has to be closed using ENDSELECT.
    If multiple lines are read without SINGLE, the DISTINCT addition can be used to exclude duplicate lines from the resulting list. If DISTINCT is used, the SELECT command circumvents SAP buffering. DISTINCT cannot be used in the following situations:
    If a column specified in columns has the type STRING, RAWSTRING, LCHAR or LRAW
    If the system tries to access pool or cluster tables and single columns are specified in columns.
    Note
    When specifying DISTINCT, note that you have to carry out sort operations in the database system for this.
    SELECT - columns
    Syntax
    | { {col1|aggregate( col1 )}
    {col2|aggregate( col2 )} ... }
    | (column_syntax) ... .
    Alternatives:
    1. ... *
    2. ... {col1|aggregate( col1 )}
    {col2|aggregate( col2 )} ...
    3. ... (column_syntax)
    Effect
    The input in columns determines which columns are used to build the resulting set.
    Alternative 1
    Effect
    If * is specified, the resulting set is built based on all columns in the database tables or views specified after FROM, in the order given there. The columns in the resulting set take on the name and data type from the database tables or views. Only one data object can be specified after INTO.
    Note
    If multiple database tables are specified after FROM, you cannot prevent multiple columns from getting the same name when you specify *.
    Alternative 2
    ... {col1|aggregate( col1 )}
    {col2|aggregate( col2 )} ...
    Effect
    A list of column labels col1 col2 ... is specified in order to build the resulting list from individual columns. An individual column can be specified directly or as an argument of an aggregate function aggregate. The order in which the column labels are specified is up to you and defines the order of the columns in the resulting list. Only if a column of the type LCHAR or LRAW is listed does the corresponding length field also have to be specified directly before it. An individual column can be specified multiple times.
    The addition AS can be used to define an alternative column name a1 a2 ... with a maximum of fourteen digits in the resulting set for every column label col1 col2 .... The system uses the alternative column name in the additions INTO|APPENDING CORRESPONDING FIELDS and ORDER BY. .
    Column labels
    The following column labels are possible:
    If only a single database table or a single view is specified after FROM, the column labels in the database table - that is, the names of the components comp1 comp2... - can be specified directly for col1 col2 ... in the structure of the ABAP Dictionary.
    If the name of the component occurs in multiple database tables of the FROM addition, but the desired database table or the view dbtab is only specified once after FROM, the names dbtab~comp1 dbtab~comp2 ... have to be specified for col1 col2 .... comp1 comp2 ... are the names of the components in the structure of the ABAP Dictionary.
    If the desired database table or view occurs multiple times after FROM, the names tabalias~comp1 tabalias~comp2 ... have to be specified for col1 col2 .... tabalias is the alternative table name of the database table or view defined after FROM, and comp1 comp2 ... are the names of the components in the structure of the ABAP Dictionary.
    The data type of a single column in the resulting list is the datatype of the corresponding component in the ABAP Dictionary. The corresponding data object after INTO or APPENDING has to be selected accordingly.
    Note
    If multiple database tables are specified after FROM, you can use alternative names when specifying single columns to avoid having multiple columns with the same name.
    Example
    Read specific columns of a single row.
    DATA wa TYPE spfli.
    SELECT SINGLE carrid connid cityfrom cityto
    INTO CORRESPONDING FIELDS OF wa
    FROM spfli
    WHERE carrid EQ 'LH' AND connid EQ '0400'.
    IF sy-subrc EQ 0.
    WRITE: / wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
    ENDIF.
    Alternative 3
    ... (column_syntax)
    Effect
    Instead of static data, a data object column_syntax in brackets can be specified, which, when the command is executed, either contains the syntax shown with the static data, or is initial. The data object column_syntax can be a character-type data object or an internal table with a character-type data type. The syntax in column_syntax, like in the ABAP editor, is not case-sensitive. When specifying an internal table, you can distribute the syntax over multiple rows.
    If column_syntax is initial when the command is executed, columns is implicitly set to * and all columns are read.
    If columns are specificied dynamically without the SINGLE addition, the resulting set is always regarded as having multiple rows.
    Notes
    Before Release 6.10, you could only specify an internal table with a flat character-type row type for column_syntax with a maximum of 72 characters. Also, before Release 6.10, if you used the DISTINCT addition for dynamic access to pool tables or cluster tables, this was ignored, but since release 6.10, this causes a known exception.
    If column_syntax is an internal table with header line, the table body and not the header line is evaluated.
    Example
    Read out how many flights go to and from a city. The SELECT command is implemented only once in a sub-program. The column data, including aggregate function and the data after GROUP BY, is dynamic. Instead of adding the column data to an internal l_columns table, you could just as easily concatenate it in a character-type l_columns field.
    PERFORM my_select USING `CITYFROM`.
    ULINE.
    PERFORM my_select USING `CITYTO`.
    FORM my_select USING l_group TYPE string.
    DATA: l_columns TYPE TABLE OF string,
    l_container TYPE string,
    l_count TYPE i.
    APPEND l_group TO l_columns.
    APPEND `count( * )` TO l_columns.
    SELECT (l_columns)
    FROM spfli
    INTO (l_container, l_count)
    GROUP BY (l_group).
    WRITE: / l_count, l_container.
    ENDSELECT.
    ENDFORM.
    SELECT - aggregate
    Syntax
    ... { MAX( col )
    | MIN( col )
    | AVG( col )
    | SUM( col )
    | COUNT( DISTINCT col )
    | COUNT( * )
    | count(*) } ... .
    Effect
    As many of the specified column labels as you like can be listed in the SELECT command as arguments of the above aggregate expression. In aggregate expressions, a single value is calculated from the values of multiple rows in a column as follows (note that the addition DISTINCT excludes double values from the calculation):
    MAX( col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
    MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
    AVG( col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    COUNT( DISTINCT col ) Determines the number of different values in the column col in the resulting set or in the current group.
    COUNT( * ) (or count(*)) Determines the number of rows in the resulting set or in the current group. No column label is specified in this case.
    If you are using aggregate expressions, all column labels that are not listed as an argument of an aggregate function are listed after the addition GROUP BY. The aggregate functions evaluate the content of the groups defined by GROUP BY in the database system and transfer the result to the combined rows of the resulting set.
    The data type of aggregate expressions with the function MAX, MIN or SUM is the data type of the corresponding column in the ABAP Dictionary. Aggregate expressions with the function AVG have the data type FLTP, and those with COUNT have the data type INT4. The corresponding data object after INTO or APPENDING has to be selected accordingly.
    Note the following points when using aggregate expressions:
    If the addition FOR ALL ENTRIES is used in front of WHERE, or if cluster or pool tables are listed after FROM, no other aggregate expressions apart from COUNT( * ) can be used.
    Columns of the type STRING or RAWSTRING cannot be used with aggregate functions.
    When aggregate expressions are used, the SELECT command makes it unnecessary to use SAP buffering.
    Null values are not included in the calculation for the aggregate functions. The result is a null value only if all the rows in the column in question contain the null value.
    If only aggregate expressions are used after SELECT, the results set has one row and the addition GROUP BY is not necessary. If a non-table type target area is specified after INTO, the command ENDSELECT cannot be used together with the addition SINGLE. If the aggregate expression count( * ) is not being used, an internal table can be specified after INTO, and the first row of this table is filled.
    If aggregate functions are used without GROUP BY being specified at the same time, the resulting set also contains a row if no data is found in the database. If count( * ) is used, the column in question contains the value 0. The columns in the other aggregate functions contain initial values. This row is assigned to the data object specified after INTO, and unless count( * ) is being used exclusively, sy-subrc is set to 0 and sy-dbcnt is set to 1. If count( *) is used exclusively, the addition INTO can be omitted and if no data can be found in the database, sy-subrc is set to 4 and sy-dbcnt is set to 0.
    if helpful reward points

  • Standard Query (Sq01) for Leave Details

    Hi Experts,
    I have created a query using SQ01 for Leave Details which includes all infotypes required viz. 2001, 2002 etc.
    When i use this query for any employee using any subtype/absence type, it works fine, but when i use it for a particular type i.e. On Duty, it do not brings any result although it has the data in the respected infotype. This absence type has been newly created by my functional consultant.
    Kindly let me know if there are any possible solutions for this. If yes, plz let me know the steps how to correct it.
    Prateek

    resolved.

  • Error Creating Work Area in JDeveloper for SCM

    In the Repository Object Navigator for 9i SCM, my userID has been granted the the following permissions to a shared work area called pdshare by the owner/build manager:
    Select
    Administrate
    Insert
    Update
    Delete
    Version
    Compile
    Update Spec.
    However, in JDeveloper 9.0.3.1 When I create a work area from this shared work area I keep getting this error:
    "BHART has insufficient privledges to Manage WorkArea".
    Does anyone have suggestions for how to resolve this so that I can access the shared work area?
    Thanks,
    -Brian

    It's actually simple if yyou use dynamic tables and field symbols.
    In the program that calls  methods / attributes in the class
    define some field symbols
    for example
    FIELD-SYMBOLS :
      <fs1>           TYPE  ANY,
      <fs2>           TYPE  STANDARD TABLE,
      <field_catalog> TYPE STANDARD TABLE,
      <dyn_table>    TYPE  STANDARD TABLE,
      <orig_table>   TYPE  STANDARD TABLE,
      <dyn_field>,
      <dyn_wa>.
    in the class define data
    DATA:
    dy_table         TYPE REF TO data,
        dy_line          TYPE REF TO data,
    etc.
    field symbols work both INSIDE and OUTSIDE classes and are extremely useful for passing / receiving data. You have to define the field symbols in your main program however.
    METHOD create_dynamic_table.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
             it_fieldcatalog = it_fldcat
          IMPORTING
             ep_table = dy_table.
    ENDMETHOD.
    CALL METHOD me->create_dynamic_table
        EXPORTING
          it_fldcat = it_fldcat
        IMPORTING
          dy_table        = dy_table.
         ASSIGN dy_table->* TO <dyn_table>.
    CREATE DATA dy_line LIKE LINE OF <dyn_table>.
    ASSIGN dy_line->* TO <dyn_wa>.
    ENDMETHOD.
    Then in your program (or class)  your data is in <dyn_table>.
    Use dynamic tables and dynamic field cats as these give HUGE flexibility and you can re-use code over and over again for different structures.
    The new RTTI  gives you any table structure whatsoever so you can make the whole thing completely general.
    That's one of the advantages of Classes and OO as opposed to older FMODS.
    Cheers
    jimbo

  • Link Safety measure with agent for a Work Area

    Hi,
    Is there any way to match a specific safet measure to a specific Agent for a given Work Area?
    For example, for a Work Area, I may have "dust" as an agent and i may need to link it with a specific safety measure oriented to people called "EPI Employee's training".
    Thanks in advance,
    Daniel Siñani

    Hi Daniel,
    For you to be able to define safety measure for any hazard inducing agent, logically you must have done the study of the risks posed by that agent. This study is called as risk assessment in SAP EH&S. So, you will have to create risk assessment for "dust". Here you may assign safety measure "EPI Employee's training" under category "Organizational" and type "Education and training". Moreover, you can define many more fields for tracking of the safety measure to its successful completion.
    Also, you can create SAP standard reports for Agents vs. Safety measures from following path:
    IHS>Reporting>Risk Assessment-->List Agents & Safety measures for a work area, and List Agents & Safety measures for a person.
    Regards,
    Pavan

Maybe you are looking for

  • ITunes/ Windows Vista Home Premium

    Can someome PLEASE help me? I am trying to install itunes on my new laptop running Vista Home Premium. I installed the iTunes64setup.exe, but when I restart and try to run, iTunes is shut down. The program that shuts it down is "Data Execution Preven

  • System Preferences-- Network-- Library alias?

    I just reformatted my iMac G4 because I was having problems that Disk Warrior couldn't fix. I consider myself an intermediate computer consultant, so do understand a lot of the "insides" of the Mac. However, when clicking on the Network icon in the s

  • MC46-Slow moving,MC50-Non moving items LOGIC?

    Hi, my client is not using these reports currently. He wants to understand the logic behind these reports. I'm trying hard but not able to understand that logic. Please explain me step by step what to do so that i can learn first n then explain to my

  • Why isn't the Firefox button right at the top anymore?

    When I was running the beta builds (up to B8), the Firefox button was right at the top right of the windows (as it is supposed to be). After updating to FF4B9 (and on), the button is displayed here: http://i174.photobucket.com/albums/w111/troop172/FF

  • HT5457 iTouch generation and iOs question

    I am trying to download some new apps. I am getting messages that they are incompatible with my iTouch. I am wondering if I have an old generation and operating system.  My settings say version 4.2.1.  Is that a second generation and can I upgrade my