Dynamically Generating Views Based on Data Entered in Planning
I was wondering if this is possible: When a user enters data into a web form by selecting an intersection in the Page view say Div1->Region2->Dept3, is there any way to dynamically then generate a subform which has only this intersection in the page view? This way if the user comes back, they do not have to go to the original webform and select the intersection again, they can just go to this "sub-form" with this one intersection into which they entered data.
It does not look like it is possible, but just wondering.
Version is 11.1.1.3.
I don't think I totally understand what you are trying to achieve but have you looked at user user variables where a user can select say an entity member as a user variable and the user variable is used in the form, if the user keeps the same value in the user variable the form will retrieve the same entity value the next time the form is run.
It may not achieve exactly what you want but it is worth looking into.
Also in 11.1.2 there is the additional functionality of users being able to generate adhoc webforms.
Cheers
John
http://john-goodwin.blogspot.com/
Similar Messages
-
Need to generate XML based on Data template
Hi,
I'm unable to submit (the second submit) my request using the demo links (XDO 5.6.3 or XDO 5.7) provided in http://bipublisher.us.oracle.com/?tab=samples&header=dataTemplate to generate the XML based on the data template.
Heard that these links are available for Oracle EBS internal use. I work with EBS-CRM. I need to generate XML based on a data template and use the XML in the template. Data template has two queries for a template.
Pls help.
Thanks,
ImphaImpha
Please use the internal mailing list for your questions the forum is meant for external customers. If you do not know the ML name - drop me a mail
Tim -
How to dynamically generate parameters based on dropdown?
Hello,
newbie ABAPer question..
I was wondering if it's possible to dynamically create a UI based on the values on a drop list/drop down box?
For example, screen would initialize too
dropdown list filled with 1 - 50
field1 field2
user selects 10 from the drop down list, then the screen would look like this:
drop down list dropdown list filled with 1 - 50
field1 field2
field3 field4
field5 field6
field7 field8
field9 field10
field11 field12
field13 field14
field15 field16
field17 field18
field19 field20
thanks for looking!Then you need to use fm
FREE_SELECTIONS_DIALOG
for dynamically generating the selection parameters screen.
Please make a search on this forum for sample code how to use this
a® -
Create column headers in report based on data entered in Form
Hi,
I have a form with following fields being entered into a table: -- a start date for a project and then projected hours required on a monthly basis for X months
Start Date mnth1_resource mnth2_resource mnth3_resource ...
2/12/2011 30 20 80 ...
6/3/2011 80 30 70
3/12/2011 50 70 60
4/10/2011 40 120 90
I would like to create a report (interactive or otherwise) that will provide headers for the actual months of the calendar showing the full range of months to cover the dates included in the data: e.g. if the above data was the only data entered then:
Feb Mar Apr May Jun Jul Aug Sept
30 20 80
50 70 60
40 120 90
80 30 70
Where mnth1 is the month of the start of the project--
Would appreciate any hints on how to accomplish this.
Thanks,
PatHi,
Thanks for the response. I see how a crosstab type report works great for data that is static and all in the table, however, in my case the issue is that the columns will vary depending on the start date of the project. So even though the user is only entering 12 months of projection, the total number of columns will depend on the start date of the latest project. For example, if a project does not start till June of 2011 and goes out 12 months, the actual column headers will need to go out to May 2012. Likewise the first column will be dependent on the earliest start date month-- like Feb 2011 in the sample data.
Pat -
How to generate a report from data entered by users in XML forms
hi,
i have a requirement to generate report from xml forms which are created using XML forms Builder and stored in Km folders. management want to see in a single report all the activities of all the users in the xml form in such a way that one row in the report presents data blongs to each user. i have no idea regarding this.
can any one help me in detail.
Thanking you in adavance
sajeerHi Sajeer,
You have given quite few information what data should be collected / showed in detail. Anyhow, it sounds as if you want to provide data which isn't provided within the standard portal so far (see http://help.sap.com/saphelp_nw2004s/helpdata/en/07/dad131443b314988eeece94506f861/frameset.htm for a list of existing reports).
For your needs you probably have to develop a repository service which reacts on content / property changes and then you would have to log these changes somewhere, for example in a DB. On the other side, you then could implement a report iView which accesses this data and displays it as whished.
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance! -
We have all of our data in a Microsoft SQL server database and would like to load fabric options, and then color choices, based on this data. As fabrics are added, and/or color choices are updated, we would like Edge Animate to update automatically, without having to open the project and add/change options. Ultimately we would like to build an interactive designer that would then send all of the user's selections to us in an order. Is this possible?
There is no like, but contains
contains(LAST_NAME,'A') -
Getting records based on date entered by the user
Gurus,
I have a valid to and valid from dates in ODS. The user is allowed to enter a date on the selection screen. If the user entered date lies in between Valid from and Valid to dates only these records need to be displayed in the report.
E.g.
ODS:
Valid From Valid to Functional Area
01/01/2009 01/01/2099 X
01/01/2010 01/01/2011 Y
01/01/2011 01/01/2012 Z
User Entered Date: 01/02/2010
Report Output:
X
Y
How do i do this? Appreciate your immedite assistance.
Thanks,
Ravi AnanthuniHi Ravi,
You can do this by using cust exit, but that would affect the query performance adversely.
I would suggest that you use condition in your report.
Include Valid to and valid from dates in your report layout. Make 2 replacement path type formula variables on these 2 dates.
And also the date you are entering in selection option, make it a formula variable ready for input.
Now make a CKF. In the calculation write: (user date > valid from)AND(user date <valid to)*1.
And apply a condition to show only those rows where this CKF is 1.
The replacement path variables will work only when you have those 2 dates in the report layout. If you don't wanna do that , you can make 2 date type KFs and use them directly in calculation.
I hope this helps.
Best Wishes,
Mayank -
Hi Experts,
i have one requirement.
just i will explain u with an example.
i have ekko header in selection screen .
i want to retrive ekko items for the selected ekko header and display the item data horizontally along with the header.
so the columns shud be generated dynamically.
now i want to fill itab with that values and generate extra colums for that .
so if anybody worked on such scenerio pls reply me with the solution as soon as possible.
Thanks & Regards,
KranthiYou can try for example something like this, to dynamically generate a table/structure:
DATA: struct_type TYPE REF TO cl_abap_structdescr,
table_type TYPE REF TO cl_abap_tabledescr.
DATA: table TYPE REF TO data.
DATA: compontents TYPE COMPONENT_TABLE.
FIELD-SYMBOLS: <comp> LIKE LINE OF components.
FIELD-SYMBOLS: <table> TYPE ANY TABLE, <structure> TYPE ANY, <field> TYPE ANY.
* Create table/structure
INSERT INITIAL LINE INTO TABLE components ASSIGNING <comp>.
<comp>-name = 'field'.
<comp>-type = cl_abap_typedescr=>describe_by_name( 'CHAR50' ).
struct_type = cl_abap_structdescr=>create( components ).
table_type = cl_abap_tabledescr=>create(struct_type).
CREATE DATA table TYPE HANDLE table_type.
ASSIGN table->* TO <table>
* Fill table
INSERT INITIAL LINE INTO TABLE <table> ASSIGNING <structure>.
ASSIGN COMPONENT 'field' OF STRUCTURE <structure> TO <field>.
<field> = 'value'.
* Access table
LOOP AT <table> ASSIGNING <structure>.
WRITE: 'Line:', sy-tabix.
LOOP AT components ASSIGNING <comp>.
ASSIGN COMPONENT <comp>-name OF STRUCTURE <structure> TO <field>.
WRITE: / <comp>-name, ':', <field>.
ENDLOOP.
WRITE /.
ENDLOOP.
What you need to know is the components of your structure, before creating the data type. But you could use this table to store your data for display in the ALV.
You can also get the components of an existing structure and add your fields to that:
struct_type ?= cl_abap_typedescr=>describe_by_name( 'EKKO' ).
components = struct_type->get_components( ).
Edited by: Carsten Grafflage on Jun 2, 2010 1:16 PM -
Dynamic lead columns based on chars with compounding
Hi folk,
I have char 0WORKCENTER. This char has componding with 0PLANT. Can I build dynamic lead columns based on 0WORKCENTER in the planning format?Hi Dmitry,
it should work as long as 0plant is restricted to a single value (in level or header).
Regards,
Marc
SAP NetWeaver RIG -
Determine ValType dynamically based on FiscPeriod entered, Disp by Qurters
Hi,
could someone please help me with the following.
I am in need to create a Bex query,
--> user enters Fiscal Period, and the executed report show the results with CalQuarters and Actual/Plan.
Eg: if user enter 005/2011, which falls under the Quarter 2. So executed report should display Actuals for Quarter1, Actauls and Plan for Quarter 2, .....Plan for Quarter 3 and Quarter 4.
My understanding is, I would need to restrict the keyfigure with Value Type 10 for actuals and 20 for plan. But I have no clue how I can determine these value types dynamically based on the entered fiscperiod
challenge here is, from the entered fiscperiod, I need to derive the respective Calquarter, and when dsiplaying the results, I need to restrict my value type such that, Actuals are shown for Quarters earlier to the chosen Quarter (derived from FiscPeriod), Actual/Plan are shown for Chosen Quarter(derived from FiscPeriod), and Plan for the Quarters after chosen quarter (Derived from Fisc Period).
Any help is greatly AppreciatedMost of your queries have been specifically answered by Gaurav and Durgesh, but your question of
My understanding is, I would need to restrict the keyfigure with
Value Type 10 for actuals and 20 for plan. But I have no clue how I
can determine these value types dynamically based on the entered fiscperiod
As you have already said Value Type = 10 for actuals and 20 for plan, so this is the answer to your question. For fetching the KF values for Actual restrict Value Type = 10, for Actual & Plan restrict Value Type = 10,20, for Plan restrict Value Type = 20.
This is from the fact that what ever value the user may enter for the Fiscal Year/Period your KF data for Actual & Plan would be given by only these constant values for Value Type Var.
As far as the calculation for Quater is concerned, that can be done by simple ABAP logic in Cutom Exit code by checking the range
1 to 3 4 to 6 7 to 9 10 to 12
Thus accordingly assigning proper Quarter values depending on the condition where the entered Fiscal Yeare/Period i.e "005" of 005/2011 falls in the above 4 conditional statements.
Regards
Raj Rai -
Want to update data in a view based on multiple tables
Hi
I am facing a problem i want to update data in tables using a view. As that view is based on multiple tables so i am unable to update data. i came to know we can update table from view only if view is based on single table. so if anyone knows any alternative please let me know.
Thanx
DevinderDevinder,
The table can be updated through a view based on multiple tables, if and only if the table is a "key preserved" table. Rather than explaining myself, i avoided the burden of typing by finding the material in Oracle Docs and pasting it for you :-)
If you want a join view to be updatable, all of the following conditions must be
true:
1. The DML statement must affect only one table underlying the join.
2. For an INSERT statement, the view must not be created WITH CHECK
OPTION, and all columns into which values are inserted must come from a
key-preserved table. A key-preserved table in one for which every primary
key or unique key value in the base table is also unique in the join view.
3. For an UPDATE statement, all columns updated must be extracted from a
key-preserved table. If the view was created WITH CHECK OPTION, join
columns and columns taken from tables that are referenced more than once
in the view must be shielded from UPDATE.
4. For a DELETE statement, the join can have one and only one key-preserved
table. That table can appear more than once in the join, unless the view was
created WITH CHECK OPTION.
HTH
Naveen -
Newbie: Trying to write PL/SQL that is dynamic based on data
Hi everyone,
I was wondering how I would go about writing a report that outer joins based on data from the main table? Here is what I wanna do in pseudo-sql:
SELECT
b.po_number,
a.ht_code,
b.figure_no,
b.order_number,
a.supplier_no,
b.cert_date,
b.plant
FROM header b, part_spec a
where ...
begin:
project = '' /* initialize project */
/* The table to get the project value for the report is named ORDER01 or ORDER02 or ... */
/* It is the word ORDER concatenated with the plant value above. */
select project from 'ORDER' || :PLANT;
END;
How would I do this with APEX 2.0?
I've successfully used APEX to generate SQL Query reports (REGION) but never PL/SQL.
Your help is appreciated,
FerrisWheel
Edited by: FerrisWheel on Dec 15, 2009 10:13 AM
Edited by: FerrisWheel on Dec 15, 2009 10:14 AM
Edited by: FerrisWheel on Dec 15, 2009 10:14 AMOK, Thanks for the quick feedback. Here is a quick generic SQL I wrote up to show my goal using your suggestion. Notice the ERP_ORDERHDR and plant values in each of the SQLs below.
SELECT b.cust_po_no,
a.ht_code,
b.item_no,
b.ERP_ORDER_NO,
a.supplier_code,
b.cert_date,
c.prj
FROM CERT_HDR b, PART_DETL a, ERP_ORDERHDR011 c
WHERE plant = 1
AND a.cert_no = b.cert_no
AND a.cert_no like '%%%' || UPPER(:p1_cert_no) || '%%%'
AND b.cust_po_no like '%%%' || UPPER(:p1_cust_po_no) || '%%%'
AND a.ht_code like '%%%' || UPPER(:p1_ht_code) || '%%%'
AND b.item_no like '%%%' || UPPER(:p1_item_no) || '%%%'
AND b.ERP_ORDER_NO like '%%%' || UPPER(:p1_sales_order) || '%%%'
AND (b.cert_date BETWEEN :P1_DATE_FROM AND :P1_DATE_TO)
AND c.orno (+) = b.ERP_ORDER_NO
AND c.prj like '%%%' || UPPER(:p1_project) || '%%%'
UNION ALL
SELECT b.cust_po_no,
a.ht_code,
b.item_no,
b.ERP_ORDER_NO,
a.supplier_code,
b.cert_date,
c.prj
FROM CERT_HDR b, PART_DETL a, ERP_ORDERHDR012 c
WHERE plant = 2
AND a.cert_no = b.cert_no
AND a.cert_no like '%%%' || UPPER(:p1_cert_no) || '%%%'
AND b.cust_po_no like '%%%' || UPPER(:p1_cust_po_no) || '%%%'
AND a.ht_code like '%%%' || UPPER(:p1_ht_code) || '%%%'
AND b.item_no like '%%%' || UPPER(:p1_item_no) || '%%%'
AND b.ERP_ORDER_NO like '%%%' || UPPER(:p1_sales_order) || '%%%'
AND (b.cert_date BETWEEN :P1_DATE_FROM AND :P1_DATE_TO)
AND c.orno (+) = b.ERP_ORDER_NO
AND c.prj like '%%%' || UPPER(:p1_project) || '%%%'
UNION ALL
SELECT b.cust_po_no,
a.ht_code,
b.item_no,
b.ERP_ORDER_NO,
a.supplier_code,
b.cert_date,
c.prj
FROM CERT_HDR b, PART_DETL a, ERP_ORDERHDR014 c
WHERE (plant = 4 or plant = 5 or plant = 8)
AND a.cert_no = b.cert_no
AND a.cert_no like '%%%' || UPPER(:p1_cert_no) || '%%%'
AND b.cust_po_no like '%%%' || UPPER(:p1_cust_po_no) || '%%%'
AND a.ht_code like '%%%' || UPPER(:p1_ht_code) || '%%%'
AND b.item_no like '%%%' || UPPER(:p1_item_no) || '%%%'
AND b.ERP_ORDER_NO like '%%%' || UPPER(:p1_sales_order) || '%%%'
AND (b.cert_date BETWEEN :P1_DATE_FROM AND :P1_DATE_TO)
AND c.orno (+) = b.ERP_ORDER_NO
AND c.prj like '%%%' || UPPER(:p1_project) || '%%%'
and this would go on for up to 4 more unions. Is there a way to use PL/SQL to make it more clean? Another issue I have with the above is that the c.orno field that I try to outer join is not numeric whereas the b.ERP_ORDER_NO is numeric. I can to_char(c.orno) but how do I do that and still have an outer join? If I can use PL/SQL, I hope to be able to better control the output and eliminate the unions.
I hope this is enough information.
Thanks,
FerrisWheel -
Creating View based on Current and previous data from same table
I am trying to create a view based on a table called “my_companies”. The table has following columns: “company_id”, “start_date”, “product_type_code”, “partner_id”
The main purpose of this view is to obtain previous company_id’s associated with a particular “partner_id“and “product_type_code”. So basically, I’m looking to create an extra column, say “prev_company_id” in the view along with all the other columns. The “previous” data can be obtained depending on the “start_date”. I’m not able to write a query successfully to do this.
Can anyone help? Thanks in advance.Hi,
Whenver you have a question, it helps to post:
(1) The version of Oracle (and any other relevant software) you're using
(2) A little sample data (just enough to show what the problem is) from all the relevant tables
(3) The results you want from that data
(4) Your best attempt so far
Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
Formatted tabular output is okay for (3). Type before and after the tabular text, to preserve spacing. The sample results should include any special cases that you foresee, such as one company having many previous companies, or vice-versa.
It sounds like might need a +self-join+, where you have two copies of the same table, as if the current companies were in one table and the previous companies were in another, even though they are all actually in the same table. -
Creating a dynamic Selection List based on a View Object
Hello,
I'm new to JDeveloper and I would like to create a JSP Page with dynamic Selection List based on a runtime query or based on a view object (BC4J). The selection made by an user should serve another dynamic query with the necessary parameters that I built using createViewObjectFromQueryStmt(). By now I tried this using the InputSelectLOV from the Component Palette in JDeveloper. But without success. By the way: the selection list is not very large (5 values), so it's not necessary to have a form finding the desired value.
Maybe someone had experience about creating this already. Please give me a tip or a little example.
Thanks.http://otn.oracle.com/products/jdev/howtos/jsp/renderers.html
-
How to enable/disable the input fields based on the data entered in the web dynpro application abap? If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.
Hi,
Try this code.
First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
Next go to Init method.
Set the readonly value as 'X'.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = 'X').
After that Go to the Action ENTER.
First read the input field ( first input field, which is value entered field) , next give a condition
if input value is not initial then set the readonly value is ' '.
DATA lo_nd_input TYPE REF TO if_wd_context_node.
DATA lo_el_input TYPE REF TO if_wd_context_element.
DATA ls_input TYPE wd_this->element_input.
DATA lv_vbeln TYPE wd_this->element_input-vbeln.
* navigate from <CONTEXT> to <INPUT> via lead selection
lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
* @TODO handle non existant child
* IF lo_nd_input IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_input = lo_nd_input->get_element( ).
* @TODO handle not set lead selection
IF lo_el_input IS INITIAL.
ENDIF.
* get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `VBELN`
IMPORTING
value = lv_vbeln ).
if lv_vbeln IS not INITIAL.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = ' ' ).
Maybe you are looking for
-
I have iTunes on the Mac at my work. I've been using the radio thing on it for about 9 years and suddenly it quit. The screen makes it look as if it's playing but I hear nothing. Tried new earphones but still hear nothing. Now what?
-
More than one time machine backup..
Is it possible to make time machine backup to more than one location? I have a nice big 2TB drive at my office that I use for time machine and it works perfectly but I would also like to run a second time machine backup to a portable 1TB drive that I
-
Hi I am struggling with a particular issue related to cross-tab and I tried a lot, but couldn't managed to get the solution. Please help with this issue , it would be of great help to me. Thanks Aniket [CrossTab problem|http://www.forumtopics.com/bus
-
Hi, I am able to generate (counter out)hi,lo and pwm(f=5,D=%3)using Case statement. But,when I put it inside a while loop that also reading voltage I get a glitch on hi and lo state. And when I switch it to pwm the frequency are not synchronized (dif
-
ML 10.8.5 photoshop elements 9, installer failed to initialize.
package for support 40-92900-072421102013 cd ~/Desktop/Adobe Photoshop Elements 9/Install.app/Contents/MacOS/ if i try to run the installer from the command line i get > ./Install ditto: can't get real path for source ditto: can't get real path for s