Advanced Cross tab table and selecting values

Hi,
Have a question on advanced tables again.
I have a cross tab table...
ACCT Val1 Val2 Val3
1234 1 2 3
Query fires ok and returns values, however, I am trying to retrieve the value in the CO (or AM - it doesn't seem to work eitherplace) to do some manipulation. So far there is only one row in the table, but I cannot seem to retrieve the value. For example I update val1 to 210 and save. I want to get the value and round it down to 200. I am using the following code
OAAdvancedTableBean tableBean = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("BudgetRN");
OAMessageStyledTextBean augBean = (OAMessageStyledTextBean)tableBean.getgetAttributeValue("Val1");
String strl = (String)augBean.VALUE;
but i end up with a cast exception on the second line where i grab val1.
Any ideas once again appreciated!

u will get the class cast exception... because... u said that u r updating the Val1 field... if it is updatable...... then it should be messageTextInputBean... not messageStyleTextBean....
Secondly dont use augBean.VALUE.... use augBean.getvalue().... something should be there....

Similar Messages

  • Error formatting Cross-Tab table

    Hello!
    My CR2008 reports include many cross-tab tables and till now, everything went smoothly.
    ...till I got the message "Error formatting Cross-Tab table" while viewing the print preview.
    Technically the error comes up while clicking one of the groups itemized on the left.
    The database hasn't changed. Besides it happened with two different reports associated with two different data bases.
    Any idea ?
    Any help would be appreciated as I've been lost for a while.
    Thib'

    Before I received your answer (thanks a million by the way), I have been installing/un-installing subreports in the main report 'til the 'Error formatting Cross-Tab table' stops.
    The Error stopped occurring when I added a small Group Footer in the subreport : apparently the Error had begun when I had put it to a zero-height.
    Having said that, an hour later and many changes here and there, I have just put a zero-height again and no Error anymore...
    > Check in the main report design tab to see if the width of the subreport fits within the page of the main report.
    > If it doesn't try shrinking the subreport to fit.
    Within 'an hour later and many changes here and there', I did the opposite : I widened a subreport which did not fit in the main report. And the Error isn't raised anymore.
    > What happens if you drill into the subreport?
    You mean if I double-click the subreport to edit it ?
    If that is your question, no Error has ever been raised in the subreport : always in the Preview tab of the Main Report.
    Sorry for describing such an irrational behavior.
    I will categorize my question as answered but if you have any idea, I'd be delighted : I feel like this can happen again and I'd be less under stress to know what detail/ 'parameter' makes CR raise this Error. But your hint about the subreport fitting or not within the main report might be a clue.
    Thank you again
    Thib'

  • Is it possible to duplicate a row in a table and the values entered by u

    PDF LiveCycle Designer  : Is it possible to duplicate a row in a table and the values entered by the user?

    [Move to LiveCycle Designer]

  • Is it possible to copy a Cross-Tab object and Formulars to a new report.

    Afteroon all,
    I have created a Balance Sheet report using quite a few formulars and items. They are listed in a cross-tab object. Everything is working fine except something has happened to the report at some stage and it is causing problems when I deploy my web app (the rpt file will not delete when I undeploy my web app, it gets locked, untill I shutdown tomcat)
    So I want to try create a new rpt file and copy the cross-tab object and all its formulars across.
    So is there a way to copy formulars from one report to another and also is it possible to copy a cross-tab object across.
    Thanks
    Darren
    (PS Unless someone can tell me why my rpt file is being locked by tomcat)

    I am running windows and the rpt file "locks" and I have just noticed the \WEB-INF\lib\derby.jar file also locks. I dont use the derby.jar file at all. (as far as I am aware - I got an oracle connection).
    Maybe I am redeploying incorrectly or not clearing the report correctly.
    What I do is, I copy the WAR file to the webapps folder, Tomcat unpacks the app and I can run my reports no problem, fresh data is displayed if different parameters are used. I then close my browser window and make changes to my report design. I delete the WAR file in the webapps folder and export my project to a war file again - to the webapps, Tomcat then tries to clear the old project folder so that it can deploy the new WAR. it clears out everything except the rpt file and the derby.jar files. And then of course cannot redeploy the WAR file. So I have to stop tomcat and delete the project myself and start Tomcat again.
    Clearly this is not good as I dont want to have to stop and start my Tomcat server everytime I make changes.
    So how should I correctly undeploy a current version of my webapp and then deploy the new changes. Or am I not doing something when I am finished viewing the report.
    Sorry for going off Thread topic.
    I have tried using copies of the report but the same still happens.
    Thanks
    Darren
    Im busy reading the "CR not releasing the memory " thread, hopefully the answer is in there somewhere
    Edited by: Darren Jackson on Oct 7, 2008 5:21 PM

  • SQL query for join table and multiple values

    Trying to join two tables , Emphours and EmpStatus to get
    result which gives each emplyees hour 
    worked each day
    in past  say 1 year in what status. I need result similar to table 3 , Hours Can also be grouped per week
    all I need Is Each employees hours in each week and his status and position at that time if possible
    any help will be highly appreciated. Thank you 
    note: payday is every other Friday- week runs from Saturday through Friday
    EmpStatus Table tracks when employees status changed
    EmpHours
    employee
    workday
    payday
    hours
    position
    101
    1/1/2014
    1/3/2014
    8
    assistant
    101
    1/3/2014
    1/3/2014
    8
    assistant
    101
    1/4/2014
    1/17/2014
    8
    assistant
    101
    1/5/2014
    1/17/2014
    8
    assistant
    101
    1/7/2014
    1/17/2014
    8
    assistant
    101
    1/8/2014
    1/17/2014
    8
    assistant
    101
    1/9/2014
    1/17/2014
    8
    assistant
    101
    1/11/2014
    1/17/2014
    8
    assistant
    101
    1/13/2014
    1/17/2014
    8
    assistant
    101
    1/14/2014
    1/17/2014
    8
    assistant
    101
    1/18/2014
    2/14/2014
    8
    assistant
    102
    1/1/2014
    1/3/2014
    7
    manager
    102
    1/25/2014
    1/31/2014
    7
    manager
    102
    1/26/2014
    1/31/2014
    7
    manager
    102
    1/28/2014
    1/31/2014
    7
    manager
    102
    1/31/2014
    1/31/2014
    7
    manager
    103
    1/1/2014
    1/3/2014
    5
    intern
    103
    1/31/2014
    1/31/2014
    6
    intern
    104
    1/14/2014
    1/17/2014
    5
    supervisor
    104
    1/30/2014
    1/31/2014
    6
    supervisor
    EmpStatus
    employee
    start_date
    status
    101
    1/1/2014
    parttime
    101
    1/18/2014
    fulltime
    102
    1/1/2014
    seasonal
    102
    1/18/2014
    fulltime
    103
    1/1/2014
    partime
    103
    1/18/2014
    fulltime
    104
    1/4/2014
    parttime
    104
    1/18/2014
    fulltime
    Table 3
    employee
    status
    hours
    position
    workday
    weekend
    payday
    101
    parttime
    8
    assistant
    1/1/2014
    1/3/2014
    1/3/2014
    101
    parttime
    8
    assistant
    1/3/2014
    1/3/2014
    1/3/2014
    101
    parttime
    8
    assistant
    1/4/2014
    1/10/2014
    1/17/2014
    101
    parttime
    8
    assistant
    1/5/2014
    1/10/2014
    1/17/2014
    101
    parttime
    8
    assistant
    1/7/2014
    1/10/2014
    1/17/2014
    101
    parttime
    8
    assistant
    1/8/2014
    1/10/2014
    1/17/2014
    101
    parttime
    8
    assistant
    1/9/2014
    1/10/2014
    1/17/2014
    101
    parttime
    8
    assistant
    1/11/2014
    1/17/2014
    1/17/2014
    101
    parttime
    8
    assistant
    1/13/2014
    1/17/2014
    1/17/2014
    101
    parttime
    8
    assistant
    1/14/2014
    1/17/2014
    1/17/2014
    101
    fulltime
    8
    assistant
    1/18/2014
    1/24/2014
    2/14/2014
    102
    seasonal
    7
    manager
    1/1/2014
    1/3/2014
    1/3/2014
    102
    fulltime
    7
    manager
    1/25/2014
    1/25/2014
    2/14/2014
    102
    fulltime
    7
    manager
    1/26/2014
    1/26/2014
    2/14/2014
    102
    fulltime
    7
    manager
    1/28/2014
    1/28/2014
    2/14/2014
    102
    fulltime
    7
    manager
    1/31/2014
    1/31/2014
    2/14/2014
    103
    parttime
    5
    intern
    1/1/2014
    1/3/2014
    1/3/2014
    103
    fulltime
    6
    intern
    1/31/2014
    1/31/2014
    2/14/2014
    104
    parttime
    5
    supervisor
    1/14/2014
    1/17/2014
    1/17/2014
    104
    fulltime
    6
    supervisor
    1/30/2014
    1/31/2014
    1/31/2014

    Hello David,
    Try this query
    set dateformat mdy;
    declare @EmpHours table
    (Employee int,workday date,payday date,hours int,position varchar(50));
    insert into @EmpHours values
    (101,'1/1/2014','1/3/2014',8,'assistant'),
    (101,'1/3/2014','1/3/2014',8,'assistant'),
    (101,'1/4/2014','1/17/2014',8,'assistant'),
    (101,'1/5/2014','1/17/2014',8,'assistant'),
    (101,'1/7/2014','1/17/2014',8,'assistant'),
    (101,'1/8/2014','1/17/2014',8,'assistant'),
    (101,'1/9/2014','1/17/2014',8,'assistant'),
    (101,'1/11/2014','1/17/2014',8,'assistant'),
    (101,'1/13/2014','1/17/2014',8,'assistant'),
    (101,'1/14/2014','1/17/2014',8,'assistant'),
    (101,'1/18/2014','2/14/2014',8,'assistant'),
    (102,'1/1/2014','1/3/2014',7,'manager'),
    (102,'1/25/2014','1/31/2014',7,'manager'),
    (102,'1/26/2014','1/31/2014',7,'manager'),
    (102,'1/28/2014','1/31/2014',7,'manager'),
    (102,'1/31/2014','1/31/2014',7,'manager'),
    (103,'1/1/2014','1/3/2014',5,'intern'),
    (103,'1/31/2014','1/31/2014',6,'intern'),
    (104,'1/14/2014','1/17/2014',5,'supervisor'),
    (104,'1/30/2014','1/31/2014',6,'supervisor');
    --select * from @EmpHours
    declare @EmpStatus table
    (employee int,start_date date,status varchar(20));
    insert into @EmpStatus values
    (101,'1/1/2014','parttime'),
    (101,'1/18/2014','fulltime'),
    (102,'1/1/2014','seasonal'),
    (102,'1/18/2014','fulltime'),
    (103,'1/1/2014','partime'),
    (103,'1/18/2014','fulltime'),
    (104,'1/4/2014','parttime'),
    (104,'1/18/2014','fulltime');
    WITH C AS
    SELECT es.employee,es.start_date, es.status, ROW_NUMBER() OVER(partition by employee ORDER BY start_date) AS rownum
    FROM @EmpStatus ES
    CTE_RANGES as(
    SELECT cur.employee,Cur.start_date start_range, cur.status,case when nxt.start_date is null then '2099-12-31' else dateadd(d,-1,Nxt.start_date) end AS end_range
    FROM C AS Cur
    left JOIN C AS Nxt
    ON Nxt.rownum = Cur.rownum + 1 and cur.employee=nxt.employee)
    select eh.*,es.status from @EmpHours EH join CTE_RANGES Es on EH.Employee =es.employee and EH.workday between es.start_range and es.end_range
    --where es.employee=101
    You will need a calender table too which can be joined to the output of the above query to get the weekend dates.
    You can find the T-SQL code to generate the calender here
    http://stackoverflow.com/questions/19191577/t-sql-function-to-generate-calendar-table
    and posting the questions with necessary DDL , DML (like I have posted) would help us a lot. 
    Satheesh
    My Blog

  • Cross Tab Sort and Exclusion

    I have a cross tab that maps closing dates over the prior 13 months and looks like this: 
                    Total
            Total          3,004
         Sep-08     137
         Aug-08     220
         Jul-08     251
         Jun-08     201
         May-08     168
         Apr-08     263
         Mar-08     212
         Feb-08     163
         Jan-08     142
         Dec-07     100
         Nov-07     176
         Oct-07     149
         Sep-07     109
         Jan-00     713
    I have mapped everything that is not within the prior 13 month range to Jan 1, 2000.  I have used record selection to grab records based on multiple criteria.  It looks at cases opened in the prior 13 months and cases closed in the prior 13 months.  This looks at opened and closed dates.  The 713 is just everything in the past 13 months that doesn't have a closed date.  When I don't map it to Jan-00 it displays a blank row.  I tried to do a specific order sort but when I ran my report today it did not include Sep-08, not that its difficult to add the month once a month, but is it possible to exclude Jan-00 when its printing the cross-tab and then sort the remaining ones in descending order [most recent month prior to oldest]?  I am new to Crystal Reports.  I thought it may be in the Formula as Group Sort Order and something like this
    if {@Closed Month}= date(2000,01,01) then [not sure of what function to exclude] else {@Closed Month} crDescendingOrder
    thank you all for the support so far

    Try using group selection formula like
    {@Closed Month}<>date(2000,01,01)
    to exclude JAN data.
    Regards,
    Raghavendra

  • Thesaurus w/ terms in table and selecting hierarchically

    Hello all,
    I am developing a web application where users must be able to search within a thesaurus and select from a list of thesaurus terms. I tried to set up a prototype similar to the one found in:
    Oracle Text - Knowlegde base - Use of ABOUT
    1. I use a hierarchical query to select the terms I want. Using LIKE I can also obtain the terms which match the search criteria only partially. But there is a problem: The hierarchical query which uses the CONNECT BY and START WITH clause returns the same terms more than just once. Should I resolve this using DISTINCT or is there a more elegant way?
    2. Another question: Is this structure in the above thread suitable for using multiple relationships (NT, BT, SYN, etc.)?
    Thanks in advance,
    Martin

    Hi,
    We have encountered these sorts of issues too.
    200000 records isn't a lot; collecting stats should be possible.
    Which version of Oracle are you on?
    I'm going to investigate using dynamic sampling; the default sampling level in 10gR2 is 2, but I'm looking at using one of the higher levels (= sample more blocks, as I understand it).
    Cheers,
    Colin

  • Cross Tab Size and Formatting

    Good Day To All,
    I have 3 Cross tab that fit perfectly on one page, but when it was created the user used an incorrect field as its columns.
    When I change the column field to the correct field the Cross-Tab increases in size shifting the last cross tab to another page.
    How can I keep the original size. I've tried To lock position and size but that does not work. I also tried using format painter but that only works on fonts size. I am unable to re-size the cross tab in design mode. Any suggestions would be appreciated.
    Regards,
    David

    hi David,
    unfortunately there are no properties in a cross-tab to keep it the same overall width if the number of column instances changes. the Size and Position dialogues for Width and Horizontal Position (X) also do not apply to cross-tabs.
    the only thing that you can do is to decrease the width of the column cell and if the output no longer fits in the width of the cell then you'll also need to decrease the font size.
    there is another workaround by limiting the number of records returned to a group. please see my blog post here in particular the section "Formatting a Cross-tab to Have N Rows & M Columns".  this is not an easy task either as the data coming in must be a precise match for the number of rows X the number columns that are required. this is explained further in the blog.
    -jamie

  • 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

  • Insert direct column from database table and function value into a table

    Hi All,
    Please resolve this query for me....
    Suppose my select query is like this
    Select empno from EMP; (simple select)
    Select fun_dept(empno) from dual;(function)
    i want both the output of the select query to be written into a table like this....
    Suppose out of the First Select query is ..... 45009
    Output for the Second Query is...................ECE
    i want to insert this output into a table...like
    something like this
    XX:
    Empno Dept
    45009 ECE
    how to do this..??
    Thanks in Advance,
    Regards,
    Gita

    My exact query is like this.
    create or replace function fun_sal(v_rno number,v_year number,v_period number)
    return number as
    cursor s is
    select salary from emp where eno=v_rno and eyear=v_year and eperiod=v_period;
    begin
    open s;
    loop
    exit when s%notfound;
    fetch s into v_sal;
    if v_sal<1000 then
    sal:=v_sal*1555;
    else
    sal:=0;
    return sal;
    end if;
    end loop;
    close s;
    end;
    create or replace procedure pro_act(v_rno number,v_year number,v_period number) as
    v_eno number(10);
    v_ename varchar2(10);
    cursor c is
    select eno,ename from emp where eno=v_rno and eyear=v_year and eperiod=v_period;
    begin
    open c;
    loop
    exit when c%notfound;
    fetch c into v_eno,v_ename;
    insert into master(empno,empname,rev_salary)values(v_eno,v_ename,"*****function fun_sal value has to come here*******");
    commit;
    end loop;
    close c;
    end;
    how to do....

  • Refresh adf table and selection row

    Hi,
    I create web application. I have created entity Users from MySQL database and managed Bean. In this managed Bean (sessionScope) is method for connection to database and method for adding new row (data) in database. It works.
    I have 2 problems.
    The first.
    I have form for adding User and commandButton Add.
    How I can refresh (update) adf table after executing SQL command (in commandButton Add) ? Now I must reconnect session.
    The second problem:
    I want to show a panel with data from one row from adf table.
    How I can selection this row in popup ?
    My table:
    <af:table var="user" rowBandingInterval="0" id="t2"
                                                  inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
                                                  value="#{userController.users}"
                                                  rows="15"
                                                  emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                  fetchSize="#{bindings.UsersprototypView11.rangeSize}"
                                                  editingMode="clickToEdit" rowSelection="single"
                                                  selectedRowKeys="#{userController.selectedUser}"
                                                  selectionListener="#{userController.selectedUser}"> ---- Here I have problem.
                                            <af:column sortProperty="#{user.user_id}"
                                                       sortable="false"
                                                       headerText="ID"                            
                                                       id="c11" width="33">
                                                <af:commandLink id="ot34" text="#{user.user_id}">
                                                    <af:showPopupBehavior popupId="p4" triggerType="action"/>
                                                </af:commandLink>
                                            </af:column>
                                            <af:column sortProperty="#{user.firstname}"
                                                       sortable="false"
                                                       headerText="Firstname"
                                                       id="c20" width="111">
                                                <af:outputText value="#{user.firstname}" id="ot27"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.lastname}"
                                                       sortable="false"
                                                       headerText="Lastname"
                                                       id="c12">
                                                <af:outputText value="#{user.lastname}" id="ot31"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.address}"
                                                       sortable="false"
                                                       headerText="Address"
                                                       id="c9" width="95">
                                                <af:outputText value="#{user.address}" id="ot32"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.city}"
                                                       sortable="false"
                                                       headerText="#City"
                                                       id="c10" width="76">
                                                <af:outputText value="#{user.city}" id="ot33"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.username}"
                                                       sortable="false"
                                                       headerText="Username"
                                                       id="c7" width="102">
                                                <af:outputText value="#{user.username}" id="ot29"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.email}"
                                                       sortable="false"
                                                       headerText="E-mail"
                                                       id="c21" width="106">
                                                <af:outputText value="#{user.email}" id="ot28"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.regdate}"
                                                       sortable="false"
                                                       headerText="Registration"
                                                       id="c8" width="108">
                                                <af:outputText value="#{user.regdate}" id="ot30">
                                                    <af:convertDateTime pattern="#{user.regdate}"/>
                                                </af:outputText>
                                            </af:column>
                                        </af:table>userController is name managed Bean.
    users is list of users.
    My panel window (popup):
    <af:popup childCreation="deferred" autoCancel="disabled" id="p4">
                                        <af:panelWindow id="pw9" title="Delete user">
                                            <af:panelFormLayout id="pfl6">
                                                <af:panelLabelAndMessage label="ID:"
                                                                         id="plam16">
                                                    <af:outputText value="#{userController.selectedUser.user_id}" id="ot50"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Firstname:"
                                                                         id="plam17">
                                                    <af:outputText value="#{userController.selectedUser.firstname}" id="ot51"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Lastname:"
                                                                         id="plam18">
                                                    <af:outputText value="#{userController.selectedUser.lastname}" id="ot52"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Address:"
                                                                         id="plam19">
                                                    <af:outputText value="#{userController.selectedUser.address}" id="ot53"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="City:" id="plam20">
                                                    <af:outputText value="#{userController.selectedUser.city}" id="ot54"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Username:"
                                                                         id="plam21">
                                                    <af:outputText value="#{userController.selectedUser.username}" id="ot55"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="E-mail:" id="plam22">
                                                    <af:outputText value="#{userController.selectedUser.email}" id="ot56"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Registration:"
                                                                         id="plam23">
                                                    <af:outputText value="#{userController.selectedUser.regdate}" id="ot57">
                                                        <af:convertDateTime pattern="#{userController.selectedUser.regdate}"/>
                                                    </af:outputText>
                                                </af:panelLabelAndMessage>
                                            </af:panelFormLayout>
                                            <af:commandButton text="Delete" id="cb18"
                                                              inlineStyle="width:80pt; margin:10px 0px 0px 0px;"/>
                                        </af:panelWindow>
                                    </af:popup>When I cut out row: selectionListener="#{userController.selectedUser}
    Popup (for deleting user) looks like this:
    http://imageshack.us/photo/my-images/404/popupc.jpg/
    I need to get the outputs from <af:outputText> in this popup.
    Thanks for help.
    Edited by: user9202624 on 26.2.2013 7:52

    thanks for answer.
    I added partialTriggers in af:table
    <af:table var="user" rowBandingInterval="0" id="t2"
                                                  inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
                                                  value="#{userController.users}"
                                                  rows="15"
                                                  emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                  fetchSize="#{bindings.UsersprototypView11.rangeSize}"
                                                  editingMode="clickToEdit" rowSelection="single"
                                                  selectedRowKeys="#{userController.selectedUser}"
                                                  partialTriggers="::t1" >What next ? What should I do next ? Sry, I'm newbie in adf and jDev.
    Edited by: user9202624 on 26.2.2013 8:55

  • VA01 creation of new feild in Additional data tab B and populating values

    Hi All ,
           I had created  a new field zzordqty in VA01 item level -> additional Data  Tab B  SE51 -> SAPMV45A-> 8459.
          The values while creating a sales order are coming from Inbound FM Idoc_input_orders .  for this particular field the value is stored in segment E1EDP35 when QUALZ is 011 the value of CUSADD is to be shown of the screen of VA01.
          For this I had tried to create a enhancement point in FM Idoc_input_orders , and tried to capture the value of CUSADD into XVAP-ZZORDQTY .
           But as soon as i come out of the enhancment point the value of XVBAP-ZZORDQTY BECOMES 0 .
           And at the screen level of SAPMV45A i had created a PBO and transfered the values from XVBAP TO VBAP .
            But since the values are getting cleared , the value of zzordqty is zero and also niether it s getting updated at table level .
            I request to let me know , how should i proceed further , either to use exists or badi's
    Thanks & Regards,
    Kavitha

    hi,
    you can do it in include MV45AOZZ. the method should be for module in PBO of subscreen 8459.
    and ifyou are not able to pass it to any standard structures( like xvap, or vbap or some thing like that) you can export it from PBO or PAI module) and catch it in the save exits (user exits)
    Edited by: Soumyaprakash Mishra on Oct 2, 2009 11:08 AM

  • Number of records are different in database table and select statement

    Hi All,
    i need to fetch data from table BSID for the customer 0010000145
    if i am writing the code like -
        SELECT bukrs kunnr umskz shkzg dmbtr zfbdt zbd1t kkber
               FROM bsid
               INTO TABLE it_bsid
               FOR ALL ENTRIES IN it_kna1
               WHERE kunnr = it_kna1-kunnr
               and bukrs = pa_bukrs.
    no. of records are 130 in the internal table it_bsid
    and actual records are 200
    but when i am hardcoding the customer no.
    i am getting the exact records
       SELECT bukrs kunnr umskz shkzg dmbtr zfbdt zbd1t kkber
              FROM bsid
              INTO TABLE it_bsid
              FOR ALL ENTRIES IN it_kna1
              WHERE bukrs = pa_bukrs
                AND kunnr = '0010000145'.
    records in internal table = records in the database = 200.
    how it is possible.
    why the first code is not giving the correct no. of records.
    please reply asap.
    thanks in advance,
    madhu

    Madhu,
    You need to use the conversion routine...before u pass KUNNUR.
    CONVERSION_EXIT_ALPHA_RANGE_I
    CONVERSION_EXIT_ALPHA_RANGE_O
    Hope this helps..
    Chandra.

  • How to compare two internal table and store value in third table

    Dear All,
                  There is two tabel say I_T1 & T2, in I_T1 there are 4 rows , in T2 there are multiple rows against the same field. Say there is a filed X common in both table .
    Value of I_T1-X are
    10
    20
    50
    90
    and value ot T2-X are
    10
    15
    20
    30
    40
    50
    .100
    Now i want to fetch data form T2 against the common field of I_T1-X and store into other internal table.
    Plz suggest me the proper way of doing this.
    Rewards points assured for proper answer.
    Regards,
    Gulrez Alam

    hi this is like your requirement.
    in this i am storing the values into the final table
    REPORT  ZZZZ000000.
    tables:mara,marc,mard,makt.
    data:begin of it_mara occurs 0,
         matnr like mara-matnr,
         mtart like mara-mtart,
         meins like mara-meins,
         end of it_mara.
    data:begin of it_marc occurs 0,
         matnr like marc-matnr,
         pstat like marc-pstat,
         werks like marc-werks,
         end of it_marc.
    data:begin of it_mard occurs 0,
         werks like mard-werks,
         lgort like mard-lgort,
         labst like mard-labst,
         end of it_mard.
    data:begin of it_final occurs 0,
         matnr like mara-matnr,
         mtart like mara-mtart,
         meins like mara-meins,
         pstat like marc-pstat,
         werks like marc-werks,
         lgort like mard-lgort,
         labst like mard-labst,
         maktx like makt-maktx,
         end of it_final.
    select-options:s_matnr for mara-matnr.
    select  matnr
            mtart
            meins
            from mara
            into table it_mara
            where matnr in s_matnr.
            if not it_mara[] is initial.
            select matnr
                   pstat
                   werks
                   from marc
                   into table it_marc
                   for all entries in it_mara
                   where matnr = it_mara-matnr.
                   if not it_marc[] is initial.
                   select werks
                          lgort
                          labst
                          from mard
                          into table it_mard
                          for all entries in it_marc
                          where werks = it_marc-werks.
                   endif.
          endif.
    loop at it_mara.
    it_final-matnr = it_mara-matnr.
    it_final-mtart = it_mara-mtart.
    it_final-meins = it_mara-meins.
    read table it_marc with key matnr = it_mara-matnr.
    it_final-werks = it_marc-werks.
    it_final-pstat = it_marc-pstat.
    read table it_mard with key werks = it_marc-werks.
    it_final-lgort = it_mard-lgort.
    it_final-labst = it_mard-labst.
    if sy-subrc = 0.
    select maktx from makt into it_final-maktx where matnr = it_final-matnr.
    endselect.
    endif.
    append it_final.
    endloop.
    loop at it_final.
    write:/ it_final-matnr under 'material',
            it_final-mtart under 'material type',
            it_final-meins under 'unit of measure',
            it_final-werks under 'plant' ,
            it_final-pstat under 'status',
            it_final-lgort under 'storage loc',
            it_final-labst under 'stock',
            it_final-maktx.
    endloop.
    reward points if useful,
    venkat.

  • JQuery tabs: cookie and "selected" wont work together

    I am using jQuery tabs with six tabs to show a bunch of reports, with a few reports on each tab. I am using the jQuery cookie plugin to remember the tab - this works ok. Page submit is slow because all reports are refreshed unconditionally each time a submit is called. I want to add a condition so that only the report on the currently selected tab is refreshed. Ideally, I want to maintain the tab# in a hidden item and create a condition for each report (or region) to only display when it's tab is selected.
    Jari's blog article shows how to assign the tab number to a page item
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:195800346705831
    But using "selected" seems to break the cookie: after changing the tab (and correctly updating the page item), the next submit changes the tab to the prior one selected. I cannot get both to work at once. I never want to reset the selected tab from the one in the cookie ; I only want to save the selected tab#. Users can only change tabs by clicking on a tab. I am not much of a javascript developer so it is likely to be something trivial.
    This is my page header javascript - you can see where I've added a chunk of Jari's code.
    <script type="text/javascript">
    //<![CDATA[  
       $(function(){ 
       $tabs = $("#PANE_1_T");
       $tabs.tabs({
           selected:'&P17000_SELECTED_TAB.',
           select:function(e,u){
            var a=new htmldb_Get(null,&APP_ID.,"APPLICATION_PROCESS=DUMMY",&APP_PAGE_ID.)
            a.add("P17000_SELECTED_TAB",u.index);
            var r=a.get();
        $tabs.tabs({ cookie: { expires: 1}});     
        $tabs.parents('td').eq(0).removeAttr('width');
        $tabs.show();
    //]]>
    </script>(Apex 3.2.1)
    What am I doing wrong?
    Any help appreciated!
    Mark Teehan, Singapore

    Hi,
    If you submit/reload page you can not set condition that only one report is "refreshed".
    When you submit and page reloads again all regions are loaded what you have on page.
    Of course you can set condition that all regions are not shown, but as I understand you are not looking for that.
    In Apex 3.2, you could call $a_report function to partial page refresh only one report.
    Or use various other JavaScript and Ajax method to refresh only one report.
    And as I understand, you have same info in cookie and item if you could use those in same time. Why not just use that item? Then you do not need load cookie plugin.
    You could change code
       $tabs.tabs({
           selected:"&P17000_SELECTED_TAB.",
           select:function(e,u){
            var a=new htmldb_Get(null, &APP_ID., "APPLICATION_PROCESS=DUMMY", &APP_PAGE_ID.)
            a.add("P17000_SELECTED_TAB", u.index);
            var r=a.get();
           $s("P17000_SELECTED_TAB", u.index);
         });To set item value also in HTML document so you can access it easily using JavaScript.
    Below part is change and set item value in HTML document
    $s("P17000_SELECTED_TAB", u.index);Regards,
    Jari

Maybe you are looking for

  • I cannot video chat on my mac, but my roomate can on her windows pc!?!

    My roomate and I are using the same wireless router, I own a mac and she owns a pc (windows) and she can video chat with her friends that have PCs (windows). but I cannot video chat with my imac with another friend who also has a mac. When I tried to

  • Adapter Specific Identifiers

    Hello, We are using a File to XML scenario with BPM (Integration Process); wherein the file is read from a certain directory in our PI box and is written to another directory there. We are working on NW2004s XI(PI). We have created the business syste

  • "Payment Processing is Temporarily Unavailable" for a month?

    I keep trying to create an iTunes account... I fill in all the required information, and there doesn't seem to be a problem with any of it, but when i click "create account", I get this message at the top in red. "Payment processing is temporarily un

  • Naming Conventions Document on PCUI

    Hello Friends, Can anyone of you, please forward me a document on <b>Naming Conventions in PCUI</b>?? Your help on this front would be highly appreciated. Please respond to [email protected] (my alternate id)as well Regards, Praveen

  • SMS Service Provider for Unity Connection

    Hello, I am wondering if anyone has ever setup the SMS Message Notification feature within Unity Connectiona and if so, can you recommend the Service Provider that you used? I am having a hard time trying to find a provider for this feature. Thanks i