Table Interface / Web: value from free characteristic

Hi,
i am using 2 queries. In the first query i got the free characteristic "calendar year month". Now i created a link with table interface to jump to the second query. With this link i would like to filter query 2 with calendar year month from query 1. How can i get the value from the calendar year month? With drill down there is no problem to get the value in method CHARACTERISTIC_CELL. But with free characteristics this is not so easy.
Any ideas?
Regards,
M. Erbil

Hi Erbil,
        Please find below the usage of GET_STATE_INFOS,
DATA  l_sx_axis_data TYPE rsrds_t_axis_data.
           CALL METHOD me->GET_STATE_INFOS
           IMPORTING
           E_T_SLICER = l_sx_axis_data.
You can get the 0CALMONTH from the above resultset.
Cheers,
Kartheek

Similar Messages

  • Deleting rows from table based on value from other table

    Hello Members,
    I am struck to solve the issue said below using query. Would appreciate any suggestions...
    I have two tables having same structures. I want to delete the rows from TableA ( master table ) with the values from TableB ( subset of TableA). The idea is to remove the duplicate values from tableA. The data to be removed are present in TableB. Catch here is TableB holds one row less than TableA, for example
    Table A
    Name Value
    Test 1
    Test 1
    Test 1
    Hello 2
    Good 3
    TableB
    Name Value
    Test 1
    Test 1
    The goal here is to remove the two entries from TableB ('Test') from TableA, finally leaving TableA as
    Table A
    Name Value
    Test 1
    Hello 2
    Good 3
    I tried below queries
    1. delete from TestA a where rowid = any (select rowid from TESTA b where b.Name = a.Name and a.Name in ( select Name from TestB ));
    Any suggestions..
    We need TableB. The problem I mentioned above is part of process. TableB contains the duplicate values which should be deleted from TableA. So that we know what all values we have deleted from TableA. On deleted TableA if I later insert the value from TableB I should be getting the original TableA...
    Thanks in advance

    drop table table_a;
    drop table table_b;
    create table  table_b as
    select 'Test' name, 1 value from dual union all
    select 'Test' ,1 from dual;
    create table table_a as
    select 'Test' name, 1 value from dual union all
    select 'Test' ,1 from dual union all
    select 'Test' ,1 from dual union all
    select 'Hello' ,2 from dual union all
    select 'Good', 3 from dual;
    /* Formatted on 11/23/2011 1:53:12 PM (QP5 v5.149.1003.31008) */
    DELETE FROM table_a
          WHERE ROWID IN (SELECT rid
                            FROM (SELECT ROWID rid,
                                         ROW_NUMBER ()
                                         OVER (PARTITION BY name, VALUE
                                               ORDER BY NULL)
                                            rn
                                    FROM table_a a
                                   WHERE EXISTS
                                            (SELECT 1
                                               FROM table_b b
                                              WHERE a.name = b.name
                                                    AND a.VALUE = b.VALUE))
                           WHERE rn > 1);
    select * from table_a
    NAME     VALUE
    Test     1
    Hello     2
    Good     3Edited by: pollywog on Nov 23, 2011 1:55 PM

  • Cell definitions depending on value of free characteristic

    Hello,
    I have the following requirement for one BEx query:
    Depending on the value of a free characteristic (material), values in certain cells shall be shown or not. Values in these cells are usually calculated by cell definitions. When the user selects certain materials (e.g. A1, C3) during query navigation the values in those cells have to be 0, i.e. the values that are calculatd by cell definitions should not be shown.
    When other materials are chosen by the user, those cells should show the calculated values.
    I tried to create a replacement path formula variable in order to create a 0/1-switch (find out the value of the selected material and compare it with predefined materials (A1, C3)).
    However, the value of a formula variable has to be a number. So that's no solution for my requirement.
    Do you have any ideas how to solve this requirement? Note that there is no entry variable for material.
    Thanks in advance!
    Thomas

    Hi,
    Make 3 restricted key figurs on market value restricting them with rating AAA, AA and A.
    Lets say RKF1 for rating AAA
    RKF2 for rating AA and
    RKF3 for rating A.
    Now you can use these 3 key figurs in your formula key figure which can simple be
    RKF10,4 + RKF20,3 + RKF3*0,2.
    In this way you are already sure that only one of the RKF's will have a value and depending on the rating it will be multiplied with the value you have in your logic.
    Hope this helps.
    Regards,
    Jadeep

  • Ain't getting it: insert into table by determing value from another table

    I have a table (PERCENTILE_CHART) with percentiles and test scores for different tests:
    Structure:
    Percentile, Reading_Test, Writing_Test
    Data:
    30,400,520
    31,450,560
    97,630,750
    98,630,780
    99,640,800
    The data is currently in ascending order by Percentile.
    If a person took the Reading test and scored 630 he or she would be in the 98th (not 97th) percentile of the class taking that test.
    I wrote a statement to return the percentile:
    select Percentile
    from ( select ROWNUM, PERCENTILE
    from PERCENTILE_CHART
    where READING_TEST <= '650'
    order by READING_TEST desc)
    where ROWNUM < 2 order by PERCENTILE desc;
    This select works and is able to determine the highest percentile for a score.
    Ok, now I want to process all the records in a STUDENT table which have
    test scores and insert them in a new table along with the percents, normalizing the data in the process.
    Have this:
    STUDENT:
    Student_Name,Student_ID,
    John Smith,121,Reading,98,Writing,90
    Maggie Smithe,122,Reading,95,Writing,96
    And needs to be moved to into SCORES with the percentiles, so I get this:
    SCORES:
    Student_Name,Student_ID,Test_Name,Percentile
    121,Reading,98
    121,Writing,90
    122,Reading,95
    122,Writing,96
    This is were I get confused. How do I insert the data into the SCORES table with the percentile? I think calling a function in package is the way to do it:
    function oua_Test_Percentile_f (
    p_Test_Name in char,
    p_Test_Value in char)
    return char as
    -- Declare variables
    c_Return_PTile char(2);
    begin
    select PERCENTILE into c_Return_PTile
    from (select ROWNUM, PERCENTILE
    from PERCENTILE_CHART
    where p_Test_Name <= '&p_Value'
    order by p_Test_Nmae desc)
    where ROWNUM < 2 order by PERCENTILE desc;
    return c_Return_PTile;
    end;
    But this function doesn't return the percentile even though it is based on my working select mentioned earlier. It returns a blank for all tests.
    And even if it is working how do I then populate the SCORES table?

    You may want to use analytical functions so that you can determine the percentile across all of the different scores:
    SQL> with
    2 PERCENTILE_CHART as
    3 (
    4 select 30 PERCENTILE, 400 READING_TEST, 520 WRITING_TEST from dual union all
    5 select 31 PERCENTILE, 450 READING_TEST, 560 WRITING_TEST from dual union all
    6 select 97 PERCENTILE, 630 READING_TEST, 750 WRITING_TEST from dual union all
    7 select 98 PERCENTILE, 630 READING_TEST, 780 WRITING_TEST from dual union all
    8 select 99 PERCENTILE, 640 READING_TEST, 800 WRITING_TEST from dual
    9 )
    10 select
    11 max(percentile) over (partition by reading_test) HIGHEST_READING,
    12 max(percentile) over (partition by writing_test) HIGHEST_WRITING,
    13 percentile_chart.*
    14 from
    15 percentile_chart
    16 /
    HIGHEST_READING HIGHEST_WRITING PERCENTILE READING_TEST WRITING_TEST
    30 30 30 400 520
    31 31 31 450 560
    98 97 97 630 750
    98 98 98 630 780
    99 99 99 640 800
    SQL>
    I wasn't exactly sure how you wantd to coorelate this to the student records though; the student table had only two column name headings but there were four rows listed as examples and had fewer rows than in the percentile_chart table...
    If you join the student table to the able query it might be what you are looking for.
    You can create another table based on the output of your query by doing:
    create table scores
    as select * from
    (insert your query here)
    /

  • Update table based on values from other table

    Hi,
    I am trying to update one table based on the values of another table. Since you can't use From in update statements, how do you execute this?
    For example i have to tables, Table A and Table B. I want to update a column or columns in Table A based on another value in Table B:
    So if the column in Table B was 1 then column in Table A would be Yes, if Table B was 2, then Table A would be Yes, if Table B was 3 then Table A would be N/A and so on...
    Any help would be appreciated.
    thanks,
    scott

    SQL> select * from t1;
    ID ST
    1
    2
    3
    SQL> select * from t2;
    NO
    1
    2
    3
    4
    SQL> update t1 set status=(select decode(no,1,'Y',2,'N','NA') from t2 where t1.id=t2.no);
    3 rows updated.
    SQL> select * from t1;
    ID ST
    1 Y
    2 N
    3 NA
    Daljit Singh

  • Cell color in pivot table depending on value from VO

    Hello.
    We have a pivot table with two columns as data values.
    We want those cells to change color. The condition for changing color is in an attribute that is not used in pivot table. It's only in VO (query).
    Can this be done? We can change color when there is only one data value column and condition is data value column.
    Any idea?
    I hope you understand the problem.
    Thanks.
    Edited by: DejanH on Jun 2, 2010 10:19 AM

    Hola,
    Actually, the solution I found is to get the rowkey using the DataCellContext
    List keyList = (List)dataCellContext.getValue(DataMap.DATA_ROWKEY);
    if (keyList != null) {
         rowKey = (Key)keyList.get(0);
    }and just get the row from the Iterator using this rowKey.
    DCIteratorBinding iter = ADFUtils.findIterator(ITERATOR);
    RowSetIterator rsi = iter.getRowSetIterator();
    Row row = rsi.getRow(rowKey);Then we can select any attribut from the row and have fun
    if it can be helpfull for someone
    Regards
    Benjamin

  • Table to store values from af:table

    hi ,
    i have a requirement where in a customer enters data row by row. it is desired that the data should get stored in the database not row by row but only after the client has finished filling all the rows. once the client has pressed the commit or save button, all the rows must get disabled.He or she should not be further able to modify the order details. Could you please suggest a way?
    and one more question
    can we create a temporary table(or either buffer) which holds the values of another table.so that once the table is committed, the values will go to this temporary table and then go to database.

    Hi,
    if you use ADF Business Components then this is handled for you automatically. The only remaining thing to do is
    once the client has pressed the commit or save button, all the rows must get disabled
    In this case set a EL expression on the readOnly property of the input text field and e.g. check if the primary key field is populated (in this case you return true). The EL can check e.g. #{row.pkAttr.inputValue != null}
    Frank

  • "own checkboxes" in Web with Table Interface?????????u00DF

    Hi to all experts,
    i have the following scenario:
    I am using a query in web. Well in the lines there is a characteristic (for example sales org) and in the columns a keyfigure with an exception and a top10 condition. I think exception and condition are not important for my problem but the table is. Now i want to see in front off all lines a checkbox.  That means i have - for example - now 10 sales organizations in my query and in front of all sales orgs there should be a checkbox. I think that should be realized with table interface. Now the user should be able to mark two ore more checkboxes to jump with the Report Report Interface by using a link to another Web report? Is that possible? Sounds hard i think or isnt it?
    Regards,
    M. Erbil

    Hi Memo,
    try the following. Create a template with a web item table. Than by using se24 create your own class for table interface. Change method DATA_CELL.
    method DATA_CELL.
    *CALL METHOD SUPER->DATA_CELL
    EXPORTING
       I_X                   =
       I_Y                   =
       I_VALUE               =
       I_DISPLAY_VALUE       =
       I_NUMERICAL_SCALE     =
       I_NUMERICAL_PRECISION =
       I_CURRENCY            =
       I_UNIT                =
       I_ALERTLEVEL          =
       I_IS_SUM              =
    CHANGING
       C_CELL_ID             =
       C_CELL_CONTENT        =
       C_CELL_STYLE          =
       C_CELL_TD_EXTEND      =
      data: l_cell_content type string.
      if i_x = 2 and i_is_sum <> 'X'.
        concatenate l_cell_content '<INPUT type=checkbox value=ON name='
        '' filter '' '>' into
        l_cell_content.
        c_cell_content = l_cell_content.
      endif.
    endmethod.
    You can hold the value from characteristic in method CHARACTERISTIC_CELL:
    method CHARACTERISTIC_CELL.
    *CALL METHOD SUPER->CHARACTERISTIC_CELL
    EXPORTING
       I_X              =
       I_Y              =
       I_IOBJNM         =
       I_AXIS           =
       I_CHAVL_EXT      =
       I_CHAVL          =
       I_NODE_IOBJNM    =
       I_TEXT           =
       I_HRY_ACTIVE     =
       I_DRILLSTATE     =
       I_DISPLAY_LEVEL  =
       I_USE_TEXT       =
       I_IS_SUM         =
       I_IS_REPETITION  =
       I_FIRST_CELL     = RS_C_FALSE
       I_LAST_CELL      = RS_C_FALSE
       I_CELLSPAN       =
       I_CELLSPAN_ORT   =
    CHANGING
       C_CELL_ID        =
       C_CELL_CONTENT   =
       C_CELL_STYLE     =
       C_CELL_TD_EXTEND =
    data: l_filter type string.
    Store characteristic value of current row
    if i_x = 1 and i_is_sum <> 'X'.
    l_filter = i_chavl.
    endif.
    endmethod.
    Please note that "i_chavl" holds the key value from characteristic.
    Now back to method DATA_CELL and insert something like this:
    filter = l_filter. "l_filter is set in method characteristic cell
    so it look like this:
    method DATA_CELL.
    *CALL METHOD SUPER->DATA_CELL
    EXPORTING
       I_X                   =
       I_Y                   =
       I_VALUE               =
       I_DISPLAY_VALUE       =
       I_NUMERICAL_SCALE     =
       I_NUMERICAL_PRECISION =
       I_CURRENCY            =
       I_UNIT                =
       I_ALERTLEVEL          =
       I_IS_SUM              =
    CHANGING
       C_CELL_ID             =
       C_CELL_CONTENT        =
       C_CELL_STYLE          =
       C_CELL_TD_EXTEND      =
      data: l_cell_content type string,
            filter type string.
      if i_x = 2 and i_is_sum <> 'X'.
    filter = l_filter.
        concatenate l_cell_content '<INPUT type=checkbox value=ON name='
        '' filter '' '>' into
        l_cell_content.
        c_cell_content = l_cell_content.
      endif.
    endmethod.
    Hope it works
    Regards,
    Adem

  • Get the filter value in the Modify Table interface

    Dear Colleages,
    I use a Table Interface in order to get aditional values in a web template from a table, but I need the filter value used in the query.
    I can get it with "get parameter" sentence:
    GET PARAMETER ID '/BI0/OCALMONTH' FIELD MES1
    But I cannot when I have a filter instead of a variable, it doesn't work using a variable without "manual entry" option.
    ¿How can I get this filter value?
    Regards,
    Jose

    Hi Jose,
    Use method get_state_infos (http://help.sap.com/saphelp_nw04/helpdata/en/32/ab3a3c24b4a00ae10000000a11402f/frameset.htm)
    The dynamic filters are in e_t_slicer.
    If this a a static filter or a variable, you can find them in e_t_txt_symbols.
    Heike

  • Header characteristic cell (table interface)?

    Hi folks,
    I'm using a table interface (herited from cl_rsr_www_modifiy) to customize the data cell value.
    I want to add a link which will contain as url parameters the corresponding row and header  characteristic_cell i_chavl of the data_cell.
    To get the current row characteristic_cell i_chavl, I redefined the method characteristic_cell as follow :
    IF I_X = 1.
      L_FILTER = I_CHAVL .
    ENDIF.
    Thus the method data_cell can retrieve the corresponding row i_chavl.
    The problem is to get the header i_chavl... If I use the same way as above, I will only get the latest header i_chavl value of my table (since that a table is created from left to right, up to down)...
    How can I get that header back for the method data_cell?
    I was thinking of defining cell_content_id to the header characteristic cells and get it back by a javascript function call...
    Before going futher, I would like to listen to your suggestion.
    Thx
    Bvs

    You can define an additional table (on a structure) as attribute to your class.
    In the characteristic_cell definition, you can populate this structure (alogwith i_y value)
    In data_Cell you can read this table based on i_y value.
    In start method, you can refresh this table.
    I am sure there is an easier way (you can access all information in n_r_request) in data_cell method, but you will need to explore n_r_request to see where the relevant information is. In this case you won't need to do the above.

  • Get values from selected row in a Table?

    Hello.
    I'm on VC 7.1 (the trial version downloaded from SDN).
    I'm trying to figure out a way to retrieve some values from the currently selected row in a Table element through the output connector.
    I have a web-service which returns results to the Table, and I want the user to be able to select one of the rows and then trigger another web-service call with some of the values from that row -- is this possible?
    Also, I can't find any documentation that lists what can and can't be done with each UI element, is there something like this some where? (the Modeler's guide doesn't help, and the Reference guide seems to focus on menu items and what the VC screen looks like)
    Thanks,
    Alon

    Hi Alon
    This is a very simple task.
    You just need drag the service which you want to execute, after select row, in model.
    Drag output connector from table to input connector of service. Then map the parameter.
    Regards
    Marcos

  • How to retrieve multiple values from a DB Adapter to a Web Service

    Hello,
    I'm creating a login WS that receives the username and password and returns the user status, full name and a set of permissions (the number of permissions varies among users).
    In order to do that i've created a DBAdapter that is calling a PL/SQL procedure. This DBAdapter is connected to the login Web Service through a mediator.
    I have two problems:
    1 - I don't know the type of variable that the PL\SQL procedure should return. Like I said I need to retrieve an undefined number of values from a table (user permissions). How can I do this inside a PL\SQL procedure? What kind of structure should i return?
    2 - How can i assign a multiple value variable (the permission variable) in the mediator? Is the mediator going to identify that this is variable is multiple valued and add automatically a for-each statement?
    The Oracle DB version im using is the 11.1.0.7.0 and the Oracle SOA Suite 11.1.1.3.0.
    Thanks in advance,
    Paulo

    Hey guys,
    thanks for your help.
    I've created a userdefined type and sucessfully retrievied from the PL\SQL procedure multiple values. I have also mapped this values with the web service.
    Even though everything's working fine i would like to understand if it is also possible to use the XMLType to return these values. I ask this cause I don't no if by returning a XMLType i can explicitly map the XML elements inside the mediator component.
    If possible what are the main advantages/disavantages between using XMLType and Userdefined Types?
    Paulo.

  • To obtain values from fields in a web page.

    Hi everyone,
    I am in the process of developing a web based application. I am able to
    successfully convert my windows to web page documents.
    I have sincerely followed the prescribed steps to be adopted in building
    methods for validations and processes, so as to utilise them for my web
    pages too.
    But the problem that I am facing is to obtain values back from the web
    page fields (user entered values) for performing validations.
    Unfortunately the explanations provided in the Forte Web SDK Manual
    for obtaining the values from the web page fields and load it on to the
    source window through LoadParameters() method (a method in the window
    converter class of HTMLWindow project) seems to be inadequate.
    If some one can site the steps that Iam probably missing or some
    examples, it will be of great help.
    Thanks in advance.
    Pamella.
    Get Your Private, Free Email at http://www.hotmail.com

    Hi Dan,
    Thanks for your assistance.
    But as regards to my application, I have an existing forte application
    which Iam trying to web enable.
    To summarize my problem let me just consider the openning window (logon
    screen) which I have converted to web page using WindowConverter Class
    in the HTMLWindow project (obviously, it is my supplier project). The
    functionality of this window class has to just accept the user name and
    validate it. If the user name is valid then proceed further else
    display an error message. I have a separate validation method for the
    user name, which I can utilise to validate the user name typed by the
    user on the web page, if Iam browsing or on the window, if Iam directly
    running the application.
    The widgets on the window are <UserId> and <ProceedButton> with
    window attribute names as UserId and ProceedButton respectively.
    Now my handle request method goes like this :
    -- This method is the entry point from the Internet to my
    -- application. It is automatically called when a request
    -- from the Web arrives.
    response : HTTPResponse = new;
    -- Find the page name.
    pageName : TextData = new;
    pageName.SetValue(request.PageName);
    -- Generate response pages.
    if pageName.IsEqual('processquery',IgnoreCase=TRUE) then
    -- Please note that I have not write any HTML to build my web page.
    -- Instead Iam using the WindowConverter Class to convert my existing
    -- windows on the fly to web pages during run time.
    w : LogonWindow = new;
    -- my logon window class
    Converter : WindowConverter = new(sourceWindow=w);
    Converter.AssignButton(sourceField = w.<ProceedButton>,type =
    'submit');
    loginURL : TextData = self.CGIURL.Clone(deep=TRUE);
    loginURL.Concat('?serviceName=').concat('appweb');
    loginURL.Concat('&pageName=PwdPage');
    w.<ProceedButton>.HTMLLink = loginURL.value;
    -- Proceed button is on my window to which
    -- I have associated the above HTMLLink
    -- This link does not submit the User Name typed by the
    -- User browsing my web page, but this User Name has to
    -- come as part of the request from the browser to perform the
    -- validation, as Iam not sure about obtaining the User name
    -- from the web page.
    -- My problem is how to get this user name????????
    html : HTHtml = new;
    head : HTHead = new;
    body : HTBody = new;
    -- Give the page a title.
    head.Add(HTTitle(Text='Application For The Web'));
    html.Add(head);
    form : HTForm = New();
    body.Add(Converter.WindowToForm(Action=self.CGIURL,HTMethod='POST'));
    html.Add(body);
    response.AssignResponse(html.ConvertToString());
    elseif pageName.IsEqual('PwdPage',IgnoreCase=TRUE) then
    w : LogonWindow = new;
    Conv : WindowConverter = new(sourceWindow=w);
    button : PushButton = new();
    button = Conv.LoadParameters(request,w.<UserId>);
    -- This will fail because the 'Request' has no user Id.
    -- Here, the explanation provided in the Forte Web SDK manual for
    -- LoadParameters method (method from WindowConverter Class) seems to
    -- be inadequate.
    If w.UserId <> Nil And w.UserId.Value <> '' And w.UserId.LengthToEnd()
    0 ThenIf SQLsSO.IsValidUserId(w.UserId) Then
    -- Method to validate the user Name.
    w1 : PasswordWindow = new;
    Converter : WindowConverter = new(sourceWindow=w1);
    Converter.AssignButton(sourceField = w1.<ProceedButton>,type =
    'submit');
    pwdURL : TextData = self.CGIURL.Clone(deep=TRUE);
    pwdURL.Concat('?serviceName=').concat('appweb');
    pwdURL.Concat('&pageName=MessagesPage');
    -- and here I will have to get the password typed in by the User.
    -- once again my same problem?????
    w1.<ProceedButton>.HTMLLink = pwdURL.value;
    html : HTHtml = new;
    head : HTHead = new;
    body : HTBody = new;
    -- Give the page a title.
    head.Add(HTTitle(Text='Application For The Web'));
    html.Add(head);
    form : HTForm = New();
    body.Add(Converter.WindowToForm(Action=self.CGIURL,HTMethod='POST'));
    html.Add(body);
    response.AssignResponse(html.ConvertToString());
    Else
    -- Generate an exception for unknown page.
    .............. and etc.
    In your example, you had sighted about the 'Junktxt'. How does it comes
    as part of the request from the browser and what is the reference
    associated with the submit button?
    If you need further clarifications, please write to me. Iam also still
    working on it.
    Thanks in advance,
    Pamella.
    You Wrote :
    Hi, Pamella --
    It might be easier to help if you could be a little more specific about
    what went wrong (ie, the problematic code snippet and the resulting error
    message), or what exactly you were trying to do. In any event, it is very
    easy in WebEnterprise to pass values up to Forte from web pages. You can
    embed them in HTML "hidden" tags or they can accompany standard form
    elements.
    For instance, say you have the following HTML code ...
    <form method="POST" action="$$FORTE.ExecURL">
    <input type="hidden" name="ServiceName" value="TestService">
    <input type="hidden" name="TemplateName" value="nextpage.htm">
    <input type="hidden" name="hiddenParam" value="dog">
    <div align="center"><center>
    <p>
    Type some junk here: <input type="text" name="junkTxt" size="20">
    </p>
    </center></div>
    <div align="center"><center>
    <p>
    <input type="submit" value="Submit" name="submitBtn">
    <input type="reset" value="Reset" name="resetBtn">
    </p>
    </center></div>
    </form>
    In addition to what the user types into the text box (junkTxt), say you want
    to pass "dog" up to Forte as a hidden parameter (hiddenParam) (hey, done't
    ask me why!). You can retrieve these values up in Forte in the HandleTag
    method of your scanner service by invoking "FindNameValue" on
    request:HTTPRequest, ie
    firstItem:TextData = request.FindNameValue('junkTxt');
    secondItem:TextData = request.FindNameValue('hiddenParam');
    firstItem now contains the value of "junkTxt" and secondItem contains
    "dog." You can now do whatever you like with these guys, including putting
    them in a ResultSet to be displayed on "nextpage.htm"
    Hope this helps,
    Dan______________________________________________________
    Get Your Private, Free Email at http://www.hotmail.com

  • Web Services  from ABAP function modules return values- leading zeros

    I am using several web services from SAP CRM (5.0) that were created from Function modules ( I am assuming that that they are in ABAP).
    I can call the web services fine and they work as expected, but I am seeing a lot of leading zeros in the return values of fields in tables from the Web service.
    The ABAP er’s are telling me that they cannot see the leading zero’s.
    So my question is where these are appended to the values in the whole process. When I execute the Function Module in SAP CRM from transaction SE37 I can see the leading zeros. So I think that this is something that has to be handled by the ABAP er’s and not in the client consuming the web service.
    Are the functions in SAP CRM that can remove leading zeros for fields in a table (that is an export parameter?)
    Jawahar

    Hello Jawahar
    If you run your (RFC-enabled) function modules using the SAP-GUI (i.e. in dialog) then the GUI automatically replaces leading zero when the function module returns any data. However, calling the same function module remotely you will always see these leading zeros.
    These so-called conversion exits are defined as attribute of domains in the ABAP dictionary. If the function module used for the WebService is a standard fm then you have little chances to get rid of the leading zero. Perhaps the WebService has some attribute to suppress conversion exits or activate them when retrieving the data.
    Regards, 
       Uwe

  • How to make validation in Bean and select value from another table

    I want to know how to select data from table in backing bean according to primary key i have
    the problem is that
    i have a table Employee_Salary contains Employee ids and their salary
    Empoloyee_Salary table
         Employee_ID      Number
         Employee_salary Number
    And Another table Called Employees
    Employees table
         Employee_ID     Number
         IsManager Varchar2 its value is [*Yes or NO*]
    and other columns that i don't care about this table
    i have on a jsff page an <af:table> this table is editable this is the Empoloyee_Salary table
    *i want to check before save or after insert if this employee is Manager [from Employees tabke(yes or no)] the salary*
    cannot be less that 100
    i want to know how to make this how to select the value from employees table according to the id i have in the employee_salary table how to make this and make this validation
    i have to select IsManager from Employees Table to see if this manager or no
    i want to know how to make this in a bean
    i use jdeveloper 11g
    and my project is ADF Fusion project
    and the page that have the Emplpyee_Salary table is JSFF
    thanks in advance

    You might want to write this code in a validator on the entity object if it should apply from every screen.
    If you want to access view objects from a backing bean the basics are here: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcservices.htm#sthref918

Maybe you are looking for

  • Flow_dml.plb in the installation script is blowing with an error

    PL/SQL: ORA-01804: failure to initialize timezone information... I can't see the code because it's wrapped....

  • Loss of photo stream when changing iCloud E-Mail

    I switched e-mail providers. My Apple ID was changed months ago with no problem. Today I wanted to enter the correct e-mail address for iCloud. I followed the instructions of several posts on here and made the change on my iPod touch. (Also have and

  • How to make a 3X3 Slider puzzle game?

    Hey guys, im new here and decided to make an account on here. Im coming to you guys for help. In my grade 12 infotech class, we were assigned a project dealing with 2d arrays but im having a bit of trouble doing this :S. It needs to do the required:

  • Can not create follow up transaction FS Quotation from Lead in Interaction

    Dear All, We have requirement wherein IC agent should be able create FS Quotation (Transaction type FSO1) from Lead transaction type in WEB UI. I have made all the necessary cutomization for copy control. FS Quotation is also maintained for all chane

  • Can't Update Photo Stream

    I have installed the iCloud Control Panel app for Win7 and I have an iPad2 with iOS5.01. I am trying to sync pictures and on my PC's control panel app in the taskbar I have the message "Can't Update Photo Stream"  Any ideas? I have logged out and in