Creating a selection spreadsheet.

Hi!
As part of a university project, I'm trying to decide on some specifications of a composite panel.
For those who are unaware, a composite panel (in this case at least) is made from an inside skin, a core material, and an outside skin.
I've attached the file, as i'm not sure on how to make myself clear. https://www.dropbox.com/s/8sw3koixvbfkuo0/Material%20Selection%20Data%20TEST.num bers?dl=0
I'll try to explain it.
What I have created is a selection of pop up menus. These pop up menus relate to filtered cells within the 'main table' sheet. These are filtered based on an "if' formula, which relate to the pop up menus. If the pop up menu has the correct values, the 'if' cell shows "display". If the pop up menu does not display the correct value, the 'if' cell shows 'hide'. There is then a filter which only displays the rows with the "Display" cells.
The material specification cells link to more 'if' cells, and ultimately display in green.
I want to use these green cells to make up parts of the equations which will calculate the strength of the laminate.
However, I don't know how to use ONLY the displayed green cells to form the equation.
I want to be able to say 'use the displayed values in column X as this part of the equation', but i don't know how to do that.
I hope this makes sense.

Nick,
In your equations, you will have to do similar IF-tests to what you used to determine the Display/Hide status. If it would be easier for you, you can test for the string values "Display" or "Hide" in those unhidden and hidden cells.
Jerry

Similar Messages

  • I want to create a document/spreadsheet (whichever) that I can send to agencies to type in information for work projects. Any ideas? I have an Excel file but it does not convert over very well and I am having trouble making changes to it.

    Need to create a new spreadsheet or be able to edit the one I have.
    I use this spreadsheet as a work order form for social service agencies. They enter name address etc., and then there are various work projects that they can select as well.
    The one I have from the organization I work with is an excel file but it does not convert over very well. Instead of being 7 pages it is more like 11 or so because things run off the page.  I am trying to delete certain things and move them over but not working out very well so thought it might be easier to start over fresh.
    Is numbers the program to use? If so, any useful tips?

    If the form is going to be used on an iPad, Numbers is the only game in town.
    Numbers is available for Macs only (and iOS devices). Excel is available for PCs and Macs. If you are in a mixed environment of Windows PCs and Macs and you are using this document as an electronic form, Excel is probably the better choice. Otherwise you will need to export to Excel for the PC users then import from Excel to retrieve their data. The import/export process is not perfect. A file that has been exported then reimported will not be the same as the original file. I would assume social services agencies are almost entirely PC-based. 
    If the form is to be printed or turned into a PDF for distribution and use by the social services agencies, either Excel or Numbers would do the job but right now Excel might be the better choice. I would have recommended Numbers '09 but I cannot recommend Numbers 3 for anything thsat requires printing until they give us the layout and printing functionality we used to have (editing in Print View, ability to set margins, etc).
    If everything else in your department/operation/agency is Windows PC and Microsoft Office based, you would be better off sticking with the standard.
    I hope that helps.

  • Creating Excel xml spreadsheets from XSL

    Hi
    I am trying to create Excel xml spreadsheets from XSL.
    I am using Tim's blog as my reference.
    http://blogs.oracle.com/xmlpublisher/2010/03/multisheet_excel_output.html
    Following is my xml data:
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <!-- Generated by Oracle Reports version 10.1.2.0.2 -->
    <XXTEK_TEST>
    <LIST_G_PROCESSED_DATE>
    <G_PROCESSED_DATE>
    <PROCESSED_DATE>30-MAR-09</PROCESSED_DATE>
    <PARTY_NAME>partyname1</PARTY_NAME>
    <ORDER_NUMBER>17183</ORDER_NUMBER>
    </G_PROCESSED_DATE>
    <G_PROCESSED_DATE>
    <PROCESSED_DATE>03-APR-09</PROCESSED_DATE>
    <PARTY_NAME>partyname2</PARTY_NAME>
    <ORDER_NUMBER></ORDER_NUMBER>
    </G_PROCESSED_DATE>
    <G_PROCESSED_DATE>
    <PROCESSED_DATE>03-APR-09</PROCESSED_DATE>
    <PARTY_NAME>partyname3</PARTY_NAME>
    <ORDER_NUMBER></ORDER_NUMBER>
    </G_PROCESSED_DATE>
    <G_PROCESSED_DATE>
    <PROCESSED_DATE>03-APR-09</PROCESSED_DATE>
    <PARTY_NAME>party name5</PARTY_NAME>
    <ORDER_NUMBER></ORDER_NUMBER>
    </G_PROCESSED_DATE>
    <G_PROCESSED_DATE>
    <PROCESSED_DATE>30-MAR-09</PROCESSED_DATE>
    <PARTY_NAME>partyname7</PARTY_NAME>
    <ORDER_NUMBER>17183</ORDER_NUMBER>
    </G_PROCESSED_DATE>
    </LIST_G_PROCESSED_DATE>
    </XXTEK_TEST>
    Following is my xsl file:
    <xsl:stylesheet version="1.0" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="urn:my-scripts"
    xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
    <xsl:output method="xml" encoding="utf-8" indent="yes" omit-xml-declaration="no"/>
    <xsl:template match="/">
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <ss:Styles>
    <ss:Style ss:ID="Default" ss:Name="Normal">
    <ss:Font ss:Color="black" ss:Size="10" ss:Bold="1" ss:FontName="Arial"/>
    </ss:Style>
    <ss:Style ss:ID="x1">
    <ss:Font ss:Color="black" ss:Size="10" ss:FontName="Arial"/>
    </ss:Style>
    <ss:Style ss:ID="xdo2">
    <ss:Font ss:Color="black" ss:Size="10" ss:FontName="Arial"/>
    <ss:NumberFormat Format="$#,##0;[Red]$#,##0" Bold="0" />
    </ss:Style>
    </ss:Styles>
    <xsl:apply-templates select="XXTEK_TEST"/>
    </Workbook>
    </xsl:template>
    <xsl:template match="XXTEK_TEST">
    <Worksheet>
    <Table x:FullColumns="1" x:FullRows="1">
    <Row>
    <Cell>
    <Data ss:Type="String">Process date</Data>
    </Cell>
    <Cell>
    <Data ss:Type="String">Party name</Data>
    </Cell>
    <Cell>
    <Data ss:Type="String">Order number</Data>
    </Cell>
    </Row>
    <xsl:for-each select=".//G_PROCESSED_DATE">
    <Row>
    <Cell ss:StyleID="x1">
    <Data ss:Type="String">
    <xsl:value-of select="PROCESSED_DATE"/>
    </Data>
    </Cell>
    <Cell ss:StyleID="x1">
    <Data ss:Type="String">
    <xsl:value-of select="PARTY_NAME"/>
    </Data>
    </Cell>
    <Cell ss:StyleID="x1">
    <Data ss:Type="String">
    <xsl:value-of select="ORDER_NUMBER"/>
    </Data>
    </Cell>
    </Row>
    </xsl:for-each>
    </Table>
    </Worksheet>
    </xsl:template>
    </xsl:stylesheet>
    While creating the template, I have chosen the template type XSL-XML. I am trying to test this on E-business Suite (R12).
    I get the error "The uploaded file TEST_temp.xsl is invalid. The file should be in XSL format."
    Where am I going wrong?
    I am trying to create Excel XML spreadsheets, because the excel files created using RTF templates are very huge in size. And it is taking an unacceptable amount of time to open the file. Is there any other solution to overcome this performance issue?
    Regards
    Nishka

    Nishka,
    Looks like your XSL stylesheet is missing the XML header at the top.
    So normally it would look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet....>
    </xsl:stylesheet>
    as an Example a stylesheet which just outputs a field:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions">
    <xsl:template match="/">
    <xsl:text>My field:</xsl:text>
    <xsl:value-of select="MYFIELD"/>
    </xsl:template>
    </xsl:stylesheet>
    Patrick

  • How to create the selection screen dynamically

    Hi,
    I have a requirement to create the selection screen Dynamically. All the fields that should appear on the selection screen will be available in a custom table. So, based on the entries available in the Z tables, the selection screen should be built. Eg. If there are 10 records available in the Z table, the selection screen should consist of 10 fields. If there are 100 entries, the Selection screen should contain 100 fields. and the logic to build this selection screen should be carried out dynamically in the program.
    Could anyone of you please share the valuable inputs on this. If anyone has the sample code to do this, please share.
    Thanks in advance.
    Regards,
    Paddu.

    Hi,
    Kindly go through this sample program below:
    DEMO_LIST_FORMAT_INPUT *and
    check this function module:
    FREE_SELECTIONS_DIALOG *.
    Hope it helps
    Regards
    Mansi

  • Creating a Selection View : HR ABAP

    Hi All,
    How to create a selection view in HR Abap.
    I found some information related to it.
    Call the Object Navigator, (SE80), and from the Workbench menu, select
    Edit object. Under More.., click Selection view and choose Create.
    I tried it but unfortunately i got stuck.
    Can anyone navigate me how can i create a selection view.
    Thanks
    A

    I got it sorted now, what you need to do is type /nse80 and before you enter the into the actual program for editing you will see workbench on the top left then the rest of the path is available, as described in the reading material!
    Enjoy
    Regards
    Tatenda

  • JBO-26041 error when creating a selection set

    11.5.10.2 with AZ.H Delta 2
    Trying to create a selection set for "Discrete Mfg. and Distribution Setups" using a filter on Inventory org and I get this error
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement " INSERT INTO AZ_SELECTION_SET_ENTITIES_B(REF_ENTITY_OCCURANCE_CODE,UPDATABLE_FLAG,ALLOW_SET_TARGETVAL_FLAG,ALLOW_FILTER_FLAG,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN,CHANGE_UPDATABLE_FLAG,ENTITY_CODE,FILTERING_PARAMETERS,ENTITY_OCCURANCE_CODE,USER_ID,SELECTION_SET_CODE,SEQ_NUM,SELECTION_FLAG,FILTER_SET_FLAG) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18)".; ................
    <snip>
    ## Detail 0 ## java.sql.SQLException: Data size bigger than max size for this type: 4220 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134 ............
    <snip>
    If I do not select a filter, the selection set gets created successfully. Seems to me that the issue is related to data. Is there a limitation on the length of a certian field in the selection set ?
    Any help is appreciated - we are also creating an SR
    Thanks
    Srini

    Roopesh,
    Thanks for your support. Understood your point - I logged into the target instance and then tried to create a selection set using the Source instance and got the same error (and it can be reproduced at will on both source and target instances). The set will save successfully if I do not enter any criteria.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement " INSERT INTO AZ_SELECTION_SET_ENTITIES_B(REF_ENTITY_OCCURANCE_CODE,UPDATABLE_FLAG,ALLOW_SET_TARGETVAL_FLAG,ALLOW_FILTER_FLAG,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN,CHANGE_UPDATABLE_FLAG,ENTITY_CODE,FILTERING_PARAMETERS,ENTITY_OCCURANCE_CODE,USER_ID,SELECTION_SET_CODE,SEQ_NUM,SELECTION_FLAG,FILTER_SET_FLAG) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18)".; at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891) at
    <snip>
    ## Detail 0 ## java.sql.SQLException: Data size bigger than max size for this type: 4282 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.ttc7.TTCItem.setArrayData(TTCItem.java:155
    <snip>
    Thanks
    Srini

  • Error in creating dynamic select list

    Hi all,
    I am creating a select list at runtime by using the following code.
    While submitting, I got error.
    ERROR:
    ORA-06550: line 13, column 1: PLS-00428: an INTO clause is expected in this SELECT statement
    My Code behind is:
    SELECT HTMLDB_ITEM.SELECT_LIST_FROM_QUERY_XL(1,ename,'select distinct ename r, ename t from emp') FROM emp;
    Then I modified the above code as :
    SELECT HTMLDB_ITEM.SELECT_LIST_FROM_QUERY_XL(1,ename,'select distinct ename r, ename t from emp') [b]into test FROM emp;
    (NOTE:where datatype of test is CLOB)
    I am getting following error:
    ORA-01422: exact fetch returns more than requested number of rows
    Can anybody tell me, what should be the datatype of test to get rid of this error OR is there some other way to overcome this problem?
    Thanks,
    Dinesh

    OK I got it working... Mostly... I don't know if it was a combination of changes that made the difference, but I'll put down what I did. First, I switched my select object in the form bean into just a string type from a string array (it was allowing the selection of one entry anyways). Second, rather than just blanking out the options map, I also blanked out the select object [eg form.setSelect("")].
              Now when I select an entry and click delete, the resulting select list is short one visible element. However, you can still select the blank spot where that last entry used to be. However, this is not a huge issue for me now; I will investigate this at a later time.

  • How to Create a Selection Variable for restricting the querry output

    Hi Gurus,
    I have created a query in query designer on a Multiprovider and the output of the query is a Formula in a structure which calculates a % value, the client is looking for entering a range of number during the query selection screen and the output should be restricted to the given selection values.
    Can any one tell me how i should create a selection variable that would take the input from the user during the query selection screen and then restrict the output to that value which user specified.
    Is there a need to write any customer exit or is there any alternative way to make the query work as the requirement is.
    I hope this explains my problem but if any questions please let me know so that i can give u specific information.
    Thanks,
    Nisha.

    Hi Nisha,
    Firstly, in order to restrict the query output by a key figure value, you will need to create a condition on that key figure. This is done in the query deisgner. Now when you are creating the condition you can also use user entry variables (formula variables with user entry) to let the users enter the value that they want to see.
    See here for more details:
    http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/content.htm
    Hope this helps...

  • How to create a selection or mask from a Selective Color layer

    Hi. I was wondering if it is possible to get a selection/mask out of a Selective Color Layer.
    For instance lets say I have a complicated photo and I put a Selective Color layer on.  I then pick Red and start adjusting. I can see the effect and how it changes the red and how it falls off in the photo. Is it at all possible to create a selection or a mask based off of that effect? 
    Thank you

    You can try this.  Once you get your selective color adjustment layer the way you like it, change it's blending mode to difference.  Add a B&W adjustment layer above that then a curves or levels adjustment layer above that.  Use the curves or levels adjustment layer to give the image more contrast by adjusting the top white values.  This will produce  an image that you can then make a selection from from the channel pallet.

  • Create a select option in a screen

    Is it possible to create a select option in a screen?
    I can easily create the 2 input boxes, but not with the little button on the right like when we create a select option in a report.
    Is the any other simple way to create a select option without creating a report? (the reason is because I want to have everything in the same module pool)

    Hi,
    Please refer to SAP's documentation here: http://help.sap.com/saphelp_nw70/helpdata/en/e4/2adbec449911d1949c0000e8353423/frameset.htm.
    Especially Part 'Subscreens and Tabstrips for Selection Screens', there go to 'Selection Screens as Subscreens'.
    HTH, Gerd Rother

  • How to create a select query to compare a collection via jpa?

    I'm new to jpa (java persistence) and its query language.
    If I've an entity named "Person" with a collection of Addresses (a one-to-manay relationahip), how do I create a Select query to get a person by using a collection of Addresses as its input parameter?
    Would "SELECT p FROM Person p JOIN p.addresses = :addresses" work?

    Hi,
    You can try the below logic:
    STATISTICS.date_reg} >= '27-may-2011' and { STATISTICS.date_reg} < ' 27-June-2011'
    I guess you are trying to apply this condition.
    Here in selection formula you need not to give select and from.
    Cheers,
    Kiran

  • How to create the select option in the screen

    HI,
    I am developing one module pool program and I have below requirement,
    currently plant is acting like PARAMETER and the now it should be changed to select option.
    how to create the select option in the screen
    Thanks and regarding,
    Malla
    Moderator message - Please search before asking - post locked
    Edited by: Rob Burbank on Dec 16, 2009 1:41 PM

    Try RANGES.
    The RANGES has same structure as that of select-options.

  • How to  create a selection screen with two tab strips

    Hi Experts,
    I need to craete a selection screen '100' with two tab strips, in the 1st tab strip i need create some select options as subscreen and in other tabstrip i need to call the subscren '4000' of the program 'SAPLCTMS' . i need to call this screen as selection screen from the zprogram. please help me out.
    Thanks in advance...
    Sarath...J

    Hi,
    I have developed some code.
    It just displays a table control and after entering the values init, upon hitting the return button, the values will be put into table itab. Have a look and make necessary changes as you see fit.
    *& Report  ZMADHU_TBCNTL
    REPORT  zmadhu_tbcntl.
    DATA: BEGIN OF itab OCCURS 0,
         sel TYPE s_flag,
         matnr TYPE matnr,
         ersda TYPE ersda,
         ernam TYPE ernam,
      END OF itab.
    CONTROLS: tab_cntl TYPE TABLEVIEW USING SCREEN 100.
    *START-OF-SELECTION.
    CALL SCREEN 100.
    *END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'TABCNTL'.   "pf status
    SET TITLEBAR 'xxx'.
      CASE sy-ucomm.
        WHEN 'BACK' OR
             'CANCEL' OR
             'EXIT'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  ITAB_MODIFY  INPUT
          text
    MODULE itab_modify INPUT.
      CASE sy-ucomm .
        WHEN ' '.        " When pressed enter
    if itab-sel = 'X'.
          MODIFY itab INDEX tab_cntl-current_line.
          APPEND itab.    " append lines to internal table
          CLEAR itab.
    *endif.
      ENDCASE.
    ENDMODULE.                 " ITAB_MODIFY  INPUT
    *Screen 100 flow logic.
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      LOOP AT itab WITH CONTROL tab_cntl CURSOR
      tab_cntl-current_line..
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE select_data.
      LOOP .
        CHAIN.
          FIELD itab-matnr.
          FIELD itab-ersda.
          FIELD itab-ernam.
          MODULE itab_modify ON CHAIN-REQUEST.
        ENDCHAIN.
      ENDLOOP.
    MODULE USER_COMMAND_0100.
    Hope it will helps to u.
    Thanks,
    Shankar

  • How to create dynamic selection-screen

    Hi all,
    I want to create dynamic selection-screen.in that dynamic selectio-screen i want to display date fields based on table name given in the selection-screen.
    Regards,
    Billa

    Hi Billa,
    Look into the function group SSEL, this has some SAP standard functions to work with dynamic selection screens.
    Below is sample FM, I wrote making use of standard FM from the above. This FM will take table name as input and will display a screen with all the fields within that table for selection. This can also be customized to restrict the fields for display.
    Hope this helps,
    Sumant.
    FUNCTION y_ss_test_dynamic_selection.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(TABNAME) LIKE  DD02L-TABNAME
    *"  EXPORTING
    *"     REFERENCE(DS_CLAUSES) TYPE  RSDS_WHERE
    *"  EXCEPTIONS
    *"      TABLE_NOT_VALID
    *"      OTHER_ERROR
      DATA texpr TYPE rsds_texpr.
      DATA twhere TYPE rsds_twhere.
      DATA trange TYPE rsds_trange.
      DATA BEGIN OF qcat.                    "Selections View for
              INCLUDE STRUCTURE rsdsqcat.    "Free Selectoptions
      DATA END OF qcat.
      DATA BEGIN OF tabs OCCURS 10.
              INCLUDE STRUCTURE rsdstabs.
      DATA END   OF tabs.
      DATA BEGIN OF fields OCCURS 10.
              INCLUDE STRUCTURE rsdsfields.
      DATA END   OF fields.
      DATA BEGIN OF efields OCCURS 10.
              INCLUDE STRUCTURE rsdsfields.
      DATA END   OF efields.
      DATA selid LIKE rsdynsel-selid.
      DATA actnum LIKE sy-tfill.
      DATA title LIKE sy-title VALUE 'Selection Screen'.
      DATA: maxnum LIKE sy-subrc VALUE '69'.
      CLEAR    tabs.
      tabs-prim_tab = tabname.
      COLLECT  tabs.
      DATA: position LIKE dd03l-position.
      DATA: keyflag  LIKE dd03l-keyflag.
      CLEAR fields.
      fields-tablename = tabname.
      fields-sign      = 'I'.
      DATA: step LIKE sy-subrc.
      SELECT fieldname keyflag position
        INTO (fields-fieldname, keyflag, position)
        FROM dd03l
        WHERE tabname = tabname
          AND fieldname NOT LIKE '.INCLU%'
          AND datatype NE 'CLNT'
        ORDER BY position.
        ADD 1 TO step.
        CHECK step LE maxnum.
        IF keyflag <> 'X'.
          efields = fields.
          APPEND efields.
        ENDIF.
        APPEND fields.
      ENDSELECT.
      IF sy-subrc <> 0.
        RAISE table_not_valid.
      ENDIF.
      CALL FUNCTION 'FREE_SELECTIONS_INIT'
           EXPORTING
                expressions              = texpr
                kind                     = 'F'
           IMPORTING
                selection_id             = selid
                expressions              = texpr
                where_clauses            = twhere
                field_ranges             = trange
                number_of_active_fields  = actnum
           TABLES
                tables_tab               = tabs
                fields_tab               = fields
                fields_not_selected      = efields
           EXCEPTIONS
                fields_incomplete        = 01
                fields_no_join           = 02
                field_not_found          = 03
                no_tables                = 04
                table_not_found          = 05
                expression_not_supported = 06
                incorrect_expression     = 07
                illegal_kind             = 08
                area_not_found           = 09
                inconsistent_area        = 10
                kind_f_no_fields_left    = 11
                kind_f_no_fields         = 12
                too_many_fields          = 13.
      IF sy-subrc = 0.
        CALL FUNCTION 'FREE_SELECTIONS_DIALOG'
             EXPORTING
                  selection_id            = selid
                  title                   = title
             IMPORTING
                  where_clauses           = twhere
                  expressions             = texpr
                  field_ranges            = trange
                  number_of_active_fields = actnum
             TABLES
                  fields_tab              = fields
             EXCEPTIONS
                  internal_error          = 01
                  no_action               = 02
                  no_fields_selected      = 03
                  no_tables_selected      = 04
                  selid_not_found         = 05.
        IF sy-subrc = 0.
          CLEAR ds_clauses.
          MOVE tabname TO ds_clauses-tablename.
          READ TABLE twhere WITH KEY ds_clauses-tablename INTO ds_clauses.
          IF sy-subrc <> 0.
            RAISE other_error.
          ENDIF.
        ELSE.
          RAISE other_error.
        ENDIF.
      ELSE.
        RAISE other_error.
      ENDIF.
    ENDFUNCTION.

  • To create Dynamic Selection screen using Key Fields

    Hi All,
    We have a requirement where we want to create Dynamic selection screen using Key fileds of Z-table or any standard table.
    Please provide some solution if you have worked in this area.
    Thanks in Advance,
    Anand Raj Kuruba

    Hi,
    You can use the following statement.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE <node>.
    declares a node <node> of a logical database for dynamic selections in the selection include.
    To use the dynamic selections in the SELECT statements of the subroutine PUT_<node>, you must use the data object DYN_SEL. The data object DYN_SEL is automatically generated in the logical database program as follows:
    TYPE-POOLS RSDS.
    DATA DYN_SEL TYPE RSDS_TYPE.
    You do not have to program these lines yourself. The data object DYN_SEL is available in the database program but not in a connected executable program.
    The type RSDS_TYPE of the data object is defined in the type group RSDS as follows:
    TYPE-POOL RSDS.
    WHERE-clauses ------------------------------
    TYPES: RSDS_WHERE_TAB LIKE RSDSWHERE OCCURS 5.
    TYPES: BEGIN OF RSDS_WHERE,
    TABLENAME LIKE RSDSTABS-PRIM_TAB,
    WHERE_TAB TYPE RSDS_WHERE_TAB,
    END OF RSDS_WHERE.
    TYPES: RSDS_TWHERE TYPE RSDS_WHERE OCCURS 5.
    Expressions Polish notation ---------------
    TYPES: RSDS_EXPR_TAB LIKE RSDSEXPR OCCURS 10.
    TYPES: BEGIN OF RSDS_EXPR,
    TABLENAME LIKE RSDSTABS-PRIM_TAB,
    EXPR_TAB TYPE RSDS_EXPR_TAB,
    END OF RSDS_EXPR.
    TYPES: RSDS_TEXPR TYPE RSDS_EXPR OCCURS 10.
    Selections as RANGES-tables -----------------
    TYPES: RSDS_SELOPT_T LIKE RSDSSELOPT OCCURS 10.
    TYPES: BEGIN OF RSDS_FRANGE,
    FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
    SELOPT_T TYPE RSDS_SELOPT_T,
    END OF RSDS_FRANGE.
    TYPES: RSDS_FRANGE_T TYPE RSDS_FRANGE OCCURS 10.
    TYPES: BEGIN OF RSDS_RANGE,
    TABLENAME LIKE RSDSTABS-PRIM_TAB,
    FRANGE_T TYPE RSDS_FRANGE_T,
    END OF RSDS_RANGE.
    TYPES: RSDS_TRANGE TYPE RSDS_RANGE OCCURS 10.
    Definition of RSDS_TYPE
    TYPES: BEGIN OF RSDS_TYPE,
    CLAUSES TYPE RSDS_TWHERE,
    TEXPR TYPE RSDS_TEXPR,
    TRANGE TYPE RSDS_TRANGE,
    END OF RSDS_TYPE.
    For more information, please check this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm
    Regards,
    Ferry Lianto

Maybe you are looking for

  • Error while defining set of books

    Hello to all, I have created Currency, Calender, Structure and added valuset and values. the values in the account segment which is asssigned with natual account flexfield qualifier entered as balance sheet items: asset, liability. Now while creating

  • Dynamic Link Error: Could not connect to after effects

    I just recently installed Creative Cloud 2014 on my machine (Macbook Pro running OS X 10.10.1) and when I go to encode an After Effect CC 2014 file in Media Encoder this message appears. I've uninstalled and reinstalled both applications and this mes

  • I can't unlock the icon on the desktop to trash it.  How do I do this?

      I went to File>Get Info...but the Locked box to "unclick" is grayed out...

  • DVD Player quality

    I noticed that there's fair amount of jaggies on the default DVD Player. Is there a better DVD Player than the one that comes with OSX? There doesn't seem to be too many options/features one can set on the DVD Player.

  • Severe form POST error in Weblogic 6.1 with inputCharset and UTF-8

    If you specify the following parameters in your web.xml (this is           required for support of non-ASCII charsets including UTF8)           <context-param><param-name>weblogic.httpd.inputCharset./*</param-name>           <param-value>UTF8</param-