Usage of cftextarea and get value
I used the cftextarea to get the FCK editor, like :
<cftextarea name="txt_h_1" message="Insérer le texte d'Accueil !" height="400" width="700" disabled="No" required="Yes" toolbaronfocus="No" bindonload="No" html="No" enabled="Yes" visible="Yes" richtext="Yes" toolbar="Basic" skin="silver">#get_param.txt_home_1#</cftextarea>
So the name of the element is : TXT_H_1
Ans when I want to save the content via an update query, it says that :
Element TXT_H_1 is undefined in FORM
All other FORM elements are well returned.
then how to get the value of the cftextarea ?
(I used a CFFORM with <input> inside instead of <cfinput>)
thanks for answer.
Pierre.
After the form submit,
I expect to get all form.xxx elements
i have all except the one from the cftextarea
which should be : #form.txt_h_1#
The cftextarea name is : txt_h_1
This is the way I get all other fields values entered in the form.
Thanks for your participation.
Pierre.
Similar Messages
-
From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?
Hi,
Use NVL or COALESCE:
NVL (col_a, col_b)
Returns col_a if col_a is not NULL; otherwise, it returns col_b.
Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Send value to BAPI and and get value from BAPI on VB 6.0
Hi All,
I want to connect SAP and send some values and get some results from BAPI with Visual Basic 6.0
I connected SAP successfull But I didn't send value to BAPI.
I want to connect SAP with BAPI_MATERIAL_GET_ALL BAPI and I want to send u2018000000000000980010u2019 parameter. So I want get the result from BAPI.
Could anyone help me about send and get value BAPI with VB 6.0?
Thanks in advanced
captivator
Edited by: captivator on Dec 10, 2010 4:24 PMHi Dinesh,
My full code is below.
I'm getting error when "Set obj = ctlLogon.GetSAPObject("BAPI_MATERIAL_GET_ALL")" code line is working.
Error : Script error in module line 30:(10091) ActiveX Automation:no such property or method
Have you got any idea?
Thanks in advanced.
Esat
Set ctlLogon = CreateObject("SAP.LogonControl.1")
Set sapConnection = ctlLogon.NewConnection
sapConnection.User = "user"
sapConnection.Client = "120"
sapConnection.Password = "1q2w3e4r"
sapConnection.ApplicationServer = "xxxxxx"
sapConnection.Language = "EN"
sapConnection.SystemNumber = "00"
booReturn = sapConnection.Logon(0, True)
If booReturn <> True Then
gSAPConnect = False
Else
gSAPConnect = True
End If
If booReturn Then
'MsgBox "Logged On successfullyu2026"
Debug.Print"Logged On successfullyu2026"
End If
Dim obj As Object
Dim return As Object
Set obj = ctlLogon.GetSAPObject("BAPI_MATERIAL_GET_ALL")
Set return = ctlLogon.DimAs(obj, "000000000000980010", "RETURN") -
Set and get values with vector
I have a class that that querys a db and sets a value of the result to a vector array. Is it possible to set and retrieve that vector array using the set and get methods?
ex:
my class:
sql = "Select ...";
Vector fName = new Vector();
rs = sqlStatement.executeQuery(sql);
if (rs != null) {
while (rs.next()) {
fName.add(rs.getString("fName") + "");
rs.close();
setFName(fName);
how would I set up the set and get methods???
thanksI am unsure of what you are asking:
A Vector has set and get methods for it, you use indexes of the array to say what element you want to work with.
If you are asking how do you know what elements of the Vector contain which data columns, you have to remember how you put them in.
If you are asking if you can use set to load the Vector: then NO, you have to have elemenets already there to change, use the add method.
If you are asking how to access the elements of the Vector you use an Enumeration:
for(java.util.Enumeration e = v.elements(); e.hasMoreElements();){
s = (java.lang.String) e.nextElement();
vl.add(s.substring(0, 12));
If you are asking something else: please elaborate what you want--my brain may not be very functional this morning. -
Are you having success and getting value from "Month 13" in GL?
We are looking at using month 13 in the JDE GL. Am interested in use cases of other customers where they have either:
- tried out month 13 and got good value from it (if so what was the value)
- have tried month 13 out and decided not to use it (why?)
- have stayed away from the functionality (why)
ThanksThank you everyone for your 'tips' and 'advice'.
I've managed to get the maximum and minimum value, using the same method, but into my very own while loop.
I used the connection Y value and made the same connection as shown below.
THANK YOU ALL! -
Setting and getting values to the viewcontroller from component controller
Hi,
I'm having a model node in the controller and the value node int he view which are binded to the UI elements.
How to set the values in the model nodes to the value nodes in the view through setter method and get the values from the view using getter???
Could you help me in, how to call a viewController's value node in componenet controller, and set and get the values to it.
Thanks & Regards,
SureshThanks Murtuza..
i have one more question regarding checkbox by group.
I have binded the texxt property of the checkbox by group to a context contribute and its type property is selected from a simple type.
In the view layout on NWDS its showing the label names which i hav given in the simple type. but when i deploy it and run it in browser its just showing only one check box. its not showing the label names.
how to get the label names, using simple types. i,m able to get it using code.
how to get it by simpletype???
thanks, suresh -
How to build Hierarchy and get values from DAX Evaluation Query?
i have create Calander Hierachy for Year,Quarter,Month... in this invisible tabuler model medata properties.
any one give steps for create Hierachy and Get Data From DAX evaluation context ?.
VenkadesanPerumalVenkadesan, is this still an issue?
Thanks!
Ed Price, Azure & Power BI Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
Post and Get value in jsp page
I have two pages
1. Occasion.jsp
2. Occasionsdetail.jsp
i select values from database in occasion for example
a
b
c
they become links when i click on one of these links it call Occasiondetail form. Where i want to display details of that particular record
On occasion page i am passing value which is displaying in last of address bar of occasionsdetail page
How can i use that value in occasiondetail form
both files code is pasted
Occasions.jsp
<head>
<title>
Riphah International University
</title>
</head>
<body bgcolor="#ffffff">
<form method="POST" action="occasionDetails.jsp">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#6633FF"> <strong><font color="#000000">Occasions</font></strong> </td>
</tr>
<% org.riu.db.utility.DBHandler dbHandler = new org.riu.db.utility.DBHandler();
if ( dbHandler.getConnection() ) {
org.riu.db.datastructureaccess.OccasionAccess occasionAccess = new org.riu.db.datastructureaccess.OccasionAccess(dbHandler);
java.util.ArrayList occasions = occasionAccess.getOccasions();
if ( occasions == null || occasions.isEmpty() ) { %>
<tr>
<td align="center">
</td>
</tr>
<% } else {
for ( int i = 0; i < occasions.size(); i++ ) {
org.riu.db.datastructure.Occasion occasion = (org.riu.db.datastructure.Occasion) occasions.get(i); %>
<tr>
<td align="center">
<a href="occasionDetails.jsp?OccasionID <%=occasion.getOccasionID() %> "><%= occasion.getName() %></a> <%= " on " + occasion.getDate() %><%= + occasion.getSemesterID()%>
</td>
</tr>
<tr>
<td align="center">
<hr />
</td>
</tr>
<% }
} %>
</table>
<p align="center">Back</p>
</form>
</body>
</html>
OccasionDetail.jsp
<head>
<title>
Riphah International University
</title>
</head>
<body bgcolor="#ffffff">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#6633FF"> <strong><font color="#000000">Occasion Details</font></strong> </td>
</tr>
<% org.riu.db.utility.DBHandler dbHandler = new org.riu.db.utility.DBHandler();
if ( dbHandler.getConnection() ) {
org.riu.db.datastructureaccess.OccasionAccess occasionAccess = new org.riu.db.datastructureaccess.OccasionAccess(dbHandler);
java.util.ArrayList occasions = occasionAccess.getOccasionswhere(I want to use that value here);
// new Integer(request.getParameter("OccasionID")).intValue();
if ( occasions == null || occasions.isEmpty() ) { %>
<tr>
<td align="center">
</td>
</tr>
<% } else {
for ( int i = 0; i < occasions.size(); i++ ) {
org.riu.db.datastructure.Occasion occasion = (org.riu.db.datastructure.Occasion) occasions.get(i);%>
<tr>
<td align="center">
Venue: <%= occasion.getVenue()%>
</td>
</tr>
<tr>
<td align="center">
Time: <%= occasion.getTime() %>
</td>
</tr>
<tr>
<td align="center">
<hr />
</td>
</tr>
<% }
} %>
</table>
<p align="center">Back</p>
</body>
</html>Are your records javascript variables? If so, you can use a json formatter to serialize the records to a string and send it from PageA to PageB using mechanism that supports strings (i.e. query parameter, cookie, etc).
You can learn more about json at http://www.json.org/ and about a json serializer/parser at http://www.json.org/js.html . -
Af:iterator and getting values from a particular row
Hi,
I am using af:iterator to loop through a resultSet in a VO.
<af:iterator binding="#{backingBeanScope.backing_subscribe.i1}"
value="#{bindings.SubscriptionPublicView1.collectionModel}"
var = "row"
id="i1">
For each iteration, I display a row of data from my VO in a panel box.
Each panel box has a command Link.
Usually, from my backing bean, I do something like this to get an attribute off of a view Iterator.
Row currentRow = getIterator("SubscriptionPublicView1Iterator").getCurrentRow();
int sid = (Integer)currentRow.getAttribute("Sid");
However, in this case, I am always getting the 'sid' from the first record in the collectionModel, and not the 'sid' that corresponds to the commandLink that is selected by the user.
What is the best way to do this when using an af:iterator?
Thanks,
JoelHi,
Timo - as usual - is correct. Using an iterator does not guarantee that selecting a row is set as current in the ADF binding. For this you need to use an action listener on the command component you click on. To get the rowKey of the selected row, you can use a setPropertyListener on the command link that writes the row key of the selected item into memory
<af:setPropertyListener from="#{row.key} to="#{viewScope.key}" type="action"/>
This value then can be looked up in the managed bean to set the row as current in the ADF binding
Frank -
Help: forcing use of proxy in j2me and getting value of gateway IP address
hi everyone,
#1
Has anyone tried forcing the use of a proxy for a midlet? If so how did you do this? I was able to connect to a url through the emulator (ktoolbar) by changing the proxy settings under the edit-->preferences on ktoolbar but I want to make sure that my midlet enforces the use of a proxy to connect to a http url (so that I'll know it still uses the proxy even if it is already using a real java-enabled phone).
somebody suggested to me to take a look at http://java.sun.com/j2me/docs/html/docs/Running.html
I've tried the instructions from the url but it seems like its just the configuration you run when you test it in your emulator. Similar to changing the preferences on ktoolbar to use a proxy.
This is what I did:
I tried changing the config to a working proxy, compiled my midlet, download it into my java-enabled phone and tested if it can connect to a backend server. The result: I was able to get a reply from the backend, however, when I changed the configuration to a non-working proxy, I still get a reply from the backend server. This leads me to believe that the midlet uses the current internet connection profile on the phone.
If this is the case, then that means I am dependent on the phone settings and I could not change/force the midlet to use the current connection with a proxy server I defined. I've searched the internet and have seen sample codes to use proxy servers when connecting to the intenet but they are not for j2me applications (so far). Is this a limitation of j2me? maybe there is really no way to connect using a proxy defined in an application since there is no api for it? Correct me if I'm wrong though. Is there a workaround for this?
#2
Another problem that I am trying to solve is to get the value of the gateway IP address defined on the phone when it connects to the internet. Is this possible? If so, how?
Any ideas will be very much appreciated. thanks to all.
-jesshi,
does anyone have an answer to this? hope you can help. thanks again. -
Problem in set and get values in h:selectBooleanCheckbox with h:datatabel
hello friends,
Please help me any one...i need urgent.........................
My jsf page:
<h:panelGroup>
<h:panelGrid columns="6">
<h:dataTable border="2" value="#{planGroup.screenFlowValues}" var="result" bgcolor="#F1F1F1" cellpadding="2" cellspacing="1">
<h:column id="col1">
<f:facet name="header">
<h:outputLabel id="lblchange" value="Select" />
</f:facet>
<h:selectBooleanCheckbox id="chkid" value="#{planGroup.chkValue}">
</h:selectBooleanCheckbox>
</h:column>
<h:column id="column1">
<f:facet name="header">
<h:outputText value="Plan Group ID"></h:outputText>
</f:facet>
<h:outputText value="#{result.planGroupId}"></h:outputText>
<h:inputHidden id="planGroupList" value="#{result.planGroupId}" />
</h:column>
<h:column id="column2">
<f:facet name="header">
<h:outputText value="Plan ID"></h:outputText>
</f:facet>
<h:outputText value="#{result.planId}" converter="plantext"></h:outputText>
</h:column>
<h:column id="column3">
<f:facet name="header">
<h:outputText value="Group Description"></h:outputText>
</f:facet>
<h:outputText value="#{result.groupDesc}"></h:outputText>
</h:column>
<h:column id="column4">
<f:facet name="header">
<h:outputText value="Row Status"></h:outputText>
</f:facet>
<h:outputText value="#{result.rowStatus}"></h:outputText>
</h:column>
<h:column id="column5">
<f:facet name="header">
<h:outputText value="Modifiy"></h:outputText>
</f:facet>
<h:commandLink id="link1" value="Edit" action="#{planGroup.ModifiyMemberrecord}" immediate="true"/>
</h:column>
</h:dataTable>
</h:panelGrid>
</h:panelGroup>
Here in this jsf page.......
1.value="#{planGroup.screenFlowValues}"--is Datamodel
2.For me page is displaying.How to set value to the check box and multiple selection of checkbox..when i click delete button ,
i have to delete selected rows from datamodel.how to do that what are all the changes i have to.Because boolean checkbox return only true false value.
3.by using h:datatabel i can do that ya..
My bean:
public class PlanGroupBean {
private String planGroupID;
private String planID;
private String groupDesc;
private String rowStatus;
private static Log log = LogFactory.getLog(PlanGroup.class);
private static DataModel screenFlowValues;
private String hideWindows;
private String hiddenValue;
private boolean chkValue;
public List getProdlis() {
return prodlis;
public void setProdlis(List prodlis) {
this.prodlis = prodlis;
public List getData() {
return data;
public void setData(List data) {
this.data = data;
public boolean isChkValue() {
//System.out.println("CHECKED--CHK-value:"+chkValue);
return chkValue;
public void setChkValue(boolean chkValue) {
this.chkValue = chkValue;
public void setPlanGroupID(String planGroupID) {
this.planGroupID = planGroupID;
public String getPlanGroupID() {
return this.planGroupID;
public void setPlanID(String planID) {
this.planID = planID;
public String getPlanID() {
return this.planID;
public void setGroupDesc(String groupDesc) {
this.groupDesc = groupDesc;
public String getGroupDesc() {
return this.groupDesc;
public void setRowStatus(String rowStatus) {
this.rowStatus = rowStatus;
public String getRowStatus() {
return this.rowStatus;
public String getHiddenValue() {
screenFlowValues = new ListDataModel(ServiceDao.execute().fetchPlanGroupDisp());
return hiddenValue;
public void setHiddenValue(String hiddenValue) {
this.hiddenValue = hiddenValue;
public void setHideWindows(String hideWindows) {
this.hideWindows = hideWindows;
public String getHideWindows() {
return this.hideWindows;
public DataModel getScreenFlowValues() {
return screenFlowValues;
public void setScreenFlowValues(DataModel screenFlowValues) {
PlanGroupBean.screenFlowValues = screenFlowValues;
public String deleteMemberrecord()
please help me how to set value to the check box and while clicking delete button i have to know what are all the checkbox selected..........
regards,
sivaAttach the boolean property to the row object. If it is true, then the row object was selected. You can also attach it to a Map<RowObjectId, Boolean> and then delete rows by RowObjectId which are true. You may find this article useful, it contains code examples: [http://balusc.blogspot.com/2006/06/using-datatables.html#SelectMultipleRows].
-
HtmlSelectOneRadio - preset and get value
Hi after successfull creation of a radio box
HtmlSelectOneRadio primaryRoleRadio = (HtmlSelectOneRadio)facesContext.getApplication().createComponent (HtmlSelectOneRadio.COMPONENT_TYPE);
UISelectItem items1 = (UISelectItem) facesContext.getApplication().createComponent(UISelectItem.COMPONENT_TYPE);
items1.setItemLabel("value1");
items1.setItemValue("primaryRole1");
UISelectItem items2= (UISelectItem) facesContext.getApplication().createComponent(UISelectItem.COMPONENT_TYPE);
items2.setItemLabel("value1");
items2.setItemValue("primaryRole2");
primaryRoleRadio.getChildren().add(items1);
primaryRoleRadio.getChildren().add(items2);
how can I set a preselection from java code?
how can I retrieve back the selected value from java code?
thanks
aldoCreate a ValueBinding using ctx.ext.app.createValueBinding("#{myBean.value}"); and put it in the radio.setValue(). Then in the getValue() eventually define the default value, eg. if (value == null) { value = "default"; }
-
Spec for this report not able to get values in the output
okSection 1: Document information
Title PP Total Component Requirement by Sales Forecast Report Create Date 5/2/2006
Author Ivie Ng Revision 1.0 Last changed on
Program type ( X ) Report ( ) Form ( ) Batch input ( ) Dialog program
Priority ( ) High ( X ) Medium ( ) Low
Frequency ( ) As require (X ) Daily ( ) Weekly ( ) Monthly ( ) Yearly
( ) Conversion
Doc-Ref.
Section 2: Contact Person
Task/Responsibility Name Signature Date
JM Project Manager Sean Gilgunn
ISS Project Manager YB Cisse
JM-Business Team Lead Sathe
Functional Consultant Ivie
ABAP Consultant Soh
User Acceptance Test / Approved by
Transport
Section 3: Functional Description
Background (whatever; Ex.Why does this program have to develop?)
This is to allow materials dept to view and analyze total component requirement base on sales forecast ie. budget forecast, inactive version within specific planning horizon.
Requirements
In SOP, material dept will maintain planning data (sales & production plan) in various version.
1. Active version: A00
This version is transferred to demand mgmt as active version. MRP will use this planning data to create order proposals (planned orders, purchase requisitions).
2. Inactive version: 001 999
There are 3 types of inactive version in SOP:
a) Sales forecast 000 799
b) Budge forecast 800 820
c) Forecast report 821 999
This report should allow to read any version of the sales forecast and return the total component requirements in the planning horizon that specify.
Section 3.1: Selection screen
Field name Technical name Type of selection field
(*Please specify Transparent Table and field name) (X) Single value ( ) Range ( ) Required field
( ) Single value (X) Range ( ) Required field
(X) Single value ( ) Range ( ) Required field
Section 3.2: Program Logic
Business Requirement
This report will allow option to choose to read the source from SOP or COPA.
Input Selection
Main Menu:
o Total Component Requirement from SOP forecast
o Total Component Requirement from COPA forecast
If SOP is selected, Source = SOP
If COPA is selected, Source = COPA
Option 1: SOP
1. Input Layout
Material: _____________ (note: allow multiple materials entry, no entry indicate all materials)
RM Material Group: __________ (note: allow multiple entry, no entry indicate all Mat Grp)
Plant: MY11 (note: default value)
Standard Price as of : _____________ (YYYYMM)
Version: ________ (note: allow F4 option with Version and Description)
Output Type: ____ (Month/Year)
(If the output type chosen is Month, the below is display)
Period From: _________ (YYYYMM)
Period To: _________ (YYYYMM)
(If the output type chosen is Year, the below is display)
Period From: __________ (YYYY)
Period To: __________ (YYYY)
2. Output Layout
Plant: MY11
Source:
Version:
System Date/Time:
Output Layout in Month:
Material Desc Component Desc UOM M04.2006 M05.2006 M06.2006 M07.2006 M08.2006 M09.2006 BOM
TO2368 NGK0003 PC TO2368
SIN96-015 MG TO2368
SIN96-066F MG TO2368
SIN96-066N MG TO2368
SIN96-127 GCL WCS2004
SIN96-055 G WCS2004
SIN96-110 G WCS2004
SIN96-007 G WCS2004
SIN96-002 GCL WCS1003
SIN96-001 GCL WCS1003
SIN96-006 GCL WCS1003
TO2358/511 PC TO2368
TO2358/512 PC TO2368
WCS2004 GCL TO2368
WCS1003 GCL WCS2004
Output Layout in Year:
Material Desc Component Desc UOM 2006 2007 2008 BOM
TO2368 NGK0003 PC TO2368
SIN96-015 MG TO2368
SIN96-066F MG TO2368
SIN96-066N MG TO2368
SIN96-127 GCL WCS2004
SIN96-055 G WCS2004
SIN96-110 G WCS2004
SIN96-007 G WCS2004
SIN96-002 GCL WCS1003
SIN96-001 GCL WCS1003
SIN96-006 GCL WCS1003
TO2358/511 PC TO2368
TO2358/512 PC TO2368
WCS2004 GCL TO2368
WCS1003 GCL WCS2004
3. Header Section:
Header Field: Plant
Print input field Plant.
Header Field: Source
If SOP is selected, Source = SOP
If COPA is selected, Source = COPA
Print Source.
Header Field: Version
Print input field Version, Print RMCP2-VETXT (version description).
Header Field: System Date/Time
Print current system date and time.
4. Table: S076 (SOP - Sales & Operations Planning)
Read S076 rows with input selection of Material, Plant, Year, Month, Version sorted by Material.
This table provides sales forecast figure.
Table: MAKT Material Decription
Table: MARA - General Material Data
Table: CDHDR - Change document header
Table: CDPOS - Change document items
5. Details Section: -
Read S076.PMNUX(Material). Note: There will be multiple rows in S076.PMNUX (Material)
Field: Material
Print S076.PMNUX(Material).
Field: Description
Read MAKT.MATNR(Material), Print MAKT.MAKTX.
6. Read L1 (Level 1) BOM Transaction: CS03
Where Material = S076.PMNUX (Material), Plant = MY11 (input field), BOM Usage = 1, Status = 01
7. This is to print BOM component.
If Input Material Group =
Read Component (Material), Component Qty from BOM sorted by MARA.MTART (material type) = ZROH, ZHLB , ZRUH
If Input Material Group <>
Read Component (Material), Component Qty from BOM sorted by MARA.MTART (material type) = ZROH, ZHLB , ZRUH
Where MARA-MATKL (Material Group) = Input Material Group.
If MARA.MTART (material type) = ZRUH,
Read L1 (Level 1) BOM Transaction: CS03
Where Material = S076.PMNUX, Plant = MY11 (input field), BOM Usage = 1, Status = 02.
GET RC29K-BMENG (Base Qty) ***
Field: Material Group
Print MARA-MATKL
Field: Component
Print BOM Component.
Field: Description
Print MAKT.MAKTX.
Field: UOM
Print MARA.MEINS.
Field: Currency
Field: Standard Price
If Input Standard Price Date =
Print Currency =
Print Standard Price = 0
Else
Read CDHDR-OBJECTID (Material), CDHDR-CHANGENR (ChgNo)
Where CDHDR-OBJECTID (Material) = BOM Component
And CDHDR-TCODE (Transaction) = MR21
And YYYYMM[CDHDR-UDATE (Date)] = Input Standard Price Date
If NOT Found, look up YYYYMM[CDHDR-UDATE (Date)] 1
I.e. Input Standard Price Date is 200702, If CDHDR-UDATE (Date) Not Found, look up 200701.
If Not Found, look up 200612 until the record is found **
If row return > 1, select the latest CDHDR-UDATE (Date)
i.e. If rows return 20070201 and 20070215, Select 20070215 **
Read CDPOS-CUKY_NEW (Currency), CDPOS-VALUE_NEW (New Value)
Where CDPOS-OBJECTID (Material) = CDHDR-OBJECTID (Material)
And CDPOS-CHANGENR (ChgNo) = CDHDR-CHANGENR (ChgNo)
Print CDPOS-CUKY_NEW (Currency)
Print CDPOS-VALUE_NEW (New Value)
8. If the output type is Year, print Requirement Qty in Yearly bucket.
Requirement Qty = sum[S076-ABSAT (Sales) for current Year] ie 2006
Requirement Qty = sum[S076-ABSAT (Sales) for current Year + 1] ie 2007
Requirement Qty = sum[S076-ABSAT (Sales) for current Year + 2] ie 2008
If the output type is Month, print Requirement Qty in Monthly bucket.
Field: Month (ie. M04.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M04.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M05.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M05.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M06.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M06.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M07.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M07.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M08.2006)
Requirement Qty = S076-ABSAT (Sales) * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M08.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Note: Repeat the requirement qty display in Monthly bucket base on period specified.
Field: BOM
Print L1 BOM which is S076.PMNUX (Material) from Step 6.
If Is end of component,
Repeat Step 5 for next Material in SOP (S076.PMNUX).
If MARA.MTART (material type) = ZROH,
Perform Step 7 to read next L1 BOM Component.
Perform Step 8 to print Requirement Qty.
If [MARA.MTART (material type) = ZHLB] and [MARA.MATKL(material group) = WP0100, WP0110, or WP0120],
Go Step 9 to read L2 BOM.
If [MARA.MTART (material type) = ZHLB] and [MARA.MATKL (material group) <> WP0100, WP0110, WP0120],
Perform Step 7 to read next BOM Component.
Perform Step 8 to print Requirement Qty.
9. Read L2 (level 2) BOM for the ZHLB at Transaction: CS03
Where Plant = MY11(input field), BOM Usage= 1, Status = 01.
GET RC29K-BMENG (Base Qty) ***
10. Read Component (Material), Component Qty from BOM sorted by MARA.MTART (material type) = ZROH, ZHLB.
Field: Material Group
Print MARA-MATKL
Field: Component
Print BOM Component.
Field: Description
Print MAKT.MAKTX.
Field: UOM
Print MARA.MEINS.
Field: Month (ie. M04.2006)
Requirement Qty = Requirement Qty from L1 BOM * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M04.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M05.2006)
Requirement Qty = Requirement Qty from L1 BOM * Component Qty / / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M05.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Note: Repeat until end of Period.
Field: BOM
Print L2 BOM from Step 9.
If is end of component, perform Step 7 to read next L1 BOM component, and Step 8 to print Requirement Qty.
If MARA.MTART (material type) = ZROH,
Perform Step 10 to read next L2 BOM Component.
If MARA.MTART (material type) = ZHLB and MARA.MATKL(material group) = WP0100, WP0110, or WP0120,
Go Step 11 to read L3 BOM.
If [MARA.MTART (material type) = ZHLB] and [MARA.MATKL (material group) <> WP0100, WP0110, WP0120],
Perform Step 10 to read next L2 BOM Component.
11. Read L3 (level 3) BOM for the ZHLB at Transaction: CS03 where Plant=MY11(input field), BOM Usage=1, Status =01.
12. Read Component (Material), Component Qty from BOM sorted by MARA.MTART (material type) = ZROH, ZHLB.
Field: Material Group
Print MARA-MATKL
Field: Component
Print BOM Component.
Field: Description
Print MAKT.MAKTX.
Field: UOM
Print MARA.MEINS.
Field: Currency
Field: Standard Price
Read CDHDR-OBJECTID (Material), CDHDR-CHANGENR (ChgNo)
Where CDHDR-OBJECTID (Material) = BOM Component
And CDHDR-TCODE (Transaction) = MR21
And YYYYMM[CDHDR-UDATE (Date)] = Input Standard Price Date
If NOT Found, look up YYYYMM[CDHDR-UDATE (Date)] 1
I.e. Input Standard Price Date is 200702, If CDHDR-UDATE (Date) Not Found, look up 200701.
If Not Found, look up 200612 until the record is found **
If row return > 1, select the latest CDHDR-UDATE (Date)
i.e. If rows return 20070201 and 20070215, Select 20070215 **
Read CDPOS-CUKY_NEW (Currency), CDPOS-VALUE_NEW (New Value)
Where CDPOS-OBJECTID (Material) = CDHDR-OBJECTID (Material)
And CDPOS-CHANGENR (ChgNo) = CDHDR-CHANGENR (ChgNo)
Print CDPOS-CUKY_NEW (Currency)
Print CDPOS-VALUE_NEW (New Value)
Field: Month (ie. M04.2006)
Requirement Qty = Requirement Qty from L2 BOM * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M04.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Field: Month (ie. M05.2006)
Requirement Qty = Requirement Qty from L2 BOM * Component Qty / RC29K-BMENG (Base Q)
Print Requirement Qty.
Field: Total Price (ie. M05.2006)
Total Price = Requirement Qty * Standard Price
Print Total Price
Note: Repeat until end of Period.
Field: BOM
Print L3 BOM from Step 11.
If is end of component,
Perform Step 10 to read next L2 BOM Component.
If MARA.MTART (material type) = ZROH,
Perform Step 12 to read next L3 BOM Component.
If MARA.MTART (material type) = ZHLB and MARA.MATKL(material group) = WP0100, WP0110, or WP0120,
Repeat for next level of BOM reading. ** for future BOM expansion **
If [MARA.MTART (material type) = ZHLB] and [MARA.MATKL (material group) <> WP0100, WP0110, WP0120],
Perform Step 12 to read next L3 BOM Component.
13. The report is ALV format and should allow to export to Excel. See example below:
Option 2: COPA
1. Input Layout
Company Code: ________
Plant: MY11
Material: _____________ (note: allow multiple materials entry, no entry indicate all materials)
Material Group: __________ (note: allow multiple materials entry, no entry indicate all materials)
Standard Price as of : _____________ (YYYYMM)
Version: ________ (note: allow F4 option with Version and Description)
Read V_TKEVS_CL-VERSI (Version), V_TKEVS_CL-VTEXT (Version Description)
Output Type: ____ (Month/Year)
(If the output type chosen is Month, the below is display)
Period From: _________ (YYYYMM)
Period To: _________ (YYYYMM)
(If the output type chosen is Year, the below is display)
Period From: __________ (YYYY)
Period To: __________ (YYYY)
2. Header Section:
Header Field: Plant
Print input field Plant.
Header Field: Source
If SOP is selected, Source = SOP
If COPA is selected, Source = COPA
Print Source.
Header Field: Version
Print V_TKEVS_CL-VERSI (Version), V_TKEVS_CL-VTEXT (Version Description)
Header Field: System Date/Time
Print current system date and time.
3. Report details: -
Table: CE2ASIA - JM Operating Concern
If input selection is Monthly Report:-
Read CE2ASIA-ARTNR (Product No), Sum[CE2ASIA-ABSMG001 (Sales Qty)]
Where CE2ASIA-BUKRS (Company Code) = Input Company Code
And CE2ASIA-WERKS (Plant) = Input Plant
And CE2ASIA-PALEDGER (Currency Type) = 10
And [CE2ASIA-PERBL (FI Period) > = Input Period From And CE2ASIA-PERBL (FI Period) < = Input Period To]
Group by CE2ASIA-ARTNR (Product No)
If input selection is Yearly Report:-
Read CE2ASIA-ARTNR (Product No), CE2ASIA-ABSMG001 (Sales Qty)
Where CE2ASIA-BUKRS (Company Code) = Input Company Code
And CE2ASIA-WERKS (Plant) = Input Plant
And CE2ASIA-PALEDGER (Currency Type) = 10
And [YYYY[CE2ASIA-PERBL (FI Period)] > = Input Period From And CE2ASIA-PERBL (FI Period) < = Input Period To]
Note: The details similar to Option 1: SOP, refer section (5) to (13)
Section 3.3: Report Layout
Field name Technical name Comment
(Please specify Transparent Table and field name) (Ex. In case field does not read directly from transparent table but derive from formular or sum or else. Please show the detail how to do that.)
Section 3.3: Unit Test Criteria
Section 4: Technical Description
Section 4.1: Object information
Development class
Transport number
Section 4.2: Input/output file layout (In case upload/download file)
*Please determine structure of file like as below:
No. Field description Type (Char,Numeric, ) Length Note
Section 4.3: Report/Form information
Paper size Inch 11 8 X 11 Type of printer ( ) Laser printer (X) Dot matrix
Output report / Pre-printed Attach
Technical IssueHi gurus,actually this program selecion screen is linked to ..as
First screen is .Sop
.copa
Again for sop is having a selection screen and in this it is divide based on month and year seperately in two more screens.
same for copa also....
so pls tell me a correct solution where to correct and get values.
Priority is very highhhhhhhhhhhhhh,so pls help me in sorting out this. -
Assigning a hex value to a variable and getting binary value of a variable.
I try to develop java programs and I need to do a conversion unicode to EBCDIC and vice versa.
How can I assign hex values to variables to build UTF-EBCDIC and EBCDIC-UTF table and get hex or binary value of data to compare it to value of in the table?
I did a conversion like this with PL/1 before. I do not know how can I do it with Java. Because I am new to Java.
Thank you in advance.I will run java code in mainframe and java uses
unicode for data in default and mainframe environment
is EBCDIC. So I have to translate the data from
unicode to ebcdic.I said I think String supports EBCDIC encoding...
String ebcdic = new String(ebcdicBytes, "Cp500");
http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html -
Bind Variable in SELECT statement and get the value in PL/SQL block
Hi All,
I would like pass bind variable in SELECT statement and get the value of the column in Dynamic SQL
Please seee below
I want to get the below value
Expected result:
select distinct empno ,pr.dept from emp pr, dept ps where ps.dept like '%IT' and pr.empno =100
100, HR
select distinct ename ,pr.dept from emp pr, dept ps where ps.dept like '%IT' and pr.empno =100
TEST, HR
select distinct loc ,pr.dept from emp pr, dept ps where ps.dept like '%IT' and pr.empno =100
NYC, HR
Using the below block I am getting column names only not the value of the column. I need to pass that value(TEST,NYC..) into l_col_val variable
Please suggest
----- TABLE LIST
CREATE TABLE EMP(
EMPNO NUMBER,
ENAME VARCHAR2(255),
DEPT VARCHAR2(255),
LOC VARCHAR2(255)
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (100,'TEST','HR','NYC');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (200,'TEST1','IT','NYC');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (300,'TEST2','MR','NYC');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (400,'TEST3','HR','DTR');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (500,'TEST4','HR','DAL');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (600,'TEST5','IT','ATL');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (700,'TEST6','IT','BOS');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (800,'TEST7','HR','NYC');
COMMIT;
CREATE TABLE COLUMNAMES(
COLUMNAME VARCHAR2(255)
INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('EMPNO');
INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('ENAME');
INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('DEPT');
INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('LOC');
COMMIT;
CREATE TABLE DEPT(
DEPT VARCHAR2(255),
DNAME VARCHAR2(255)
INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
INSERT INTO DEPT(DEPT,DNAME) VALUES ('HR','HUMAN RESOURCE');
INSERT INTO DEPT(DEPT,DNAME) VALUES ('MR','MARKETING');
INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
COMMIT;
PL/SQL BLOCK
DECLARE
TYPE EMPCurTyp IS REF CURSOR;
v_EMP_cursor EMPCurTyp;
l_col_val EMP.ENAME%type;
l_ENAME_val EMP.ENAME%type;
l_col_ddl varchar2(4000);
l_col_name varchar2(60);
l_tab_name varchar2(60);
l_empno number ;
b_l_col_name VARCHAR2(255);
b_l_empno NUMBER;
begin
for rec00 in (
select EMPNO aa from EMP
loop
l_empno := rec00.aa;
for rec in (select COLUMNAME as column_name from columnames
loop
l_col_name := rec.column_name;
begin
l_col_val :=null;
l_col_ddl := 'select distinct :b_l_col_name ,pr.dept ' ||' from emp pr, dept ps where ps.dept like ''%IT'' '||' and pr.empno =:b_l_empno';
dbms_output.put_line('DDL ...'||l_col_ddl);
OPEN v_EMP_cursor FOR l_col_ddl USING l_col_name, l_empno;
LOOP
l_col_val :=null;
FETCH v_EMP_cursor INTO l_col_val,l_ename_val;
EXIT WHEN v_EMP_cursor%NOTFOUND;
dbms_output.put_line('l_col_name='||l_col_name ||' empno ='||l_empno);
END LOOP;
CLOSE v_EMP_cursor;
END;
END LOOP;
END LOOP;
END;user1758353 wrote:
Thanks Billy, Would you be able to suggest any other faster method to load the data into table. Thanks,
As Mark responded - it all depends on the actual data to load, structure and source/origin. On my busiest database, I am loading on average 30,000 rows every second from data in external files.
However, the data structures are just that - structured. Logical.
Having a data structure with 100's of fields (columns in a SQL table), raise all kinds of questions about how sane that structure is, and what impact it will have on a physical data model implementation.
There is a gross misunderstanding by many when it comes to performance and scalability. The prime factor that determines performance is not how well you code, what tools/language you use, the h/w your c ode runs on, or anything like that. The prime factor that determines perform is the design of the data model - as it determines the complexity/ease to use the data model, and the amount of I/O (the slowest of all db operations) needed to effectively use the data model.
Maybe you are looking for
-
Module pool programming -- very urgent
Hi, how u will come from dialogue to report and how u go to report to dialogue. Regards SAI
-
I'm a person who likes to have mixtapes in my iTunes library. Also I like to have my library in "Album by Artist/Year". When it is out of order it, defeats the purpose. So therefore I think there should be a more specific year tab to distinguish the
-
Mat stock at posting date.
How can i check combine stock for all the material for a particular mat.type for a particular date( three months back from today) regards, vivek
-
When I click on iDVD icon, it says "You cannot use this version of the application iDVD.app with this version of Mac OS X.". I have OS X 10.5.7. I downloadedd iDVD 5 update but it did not solve the problem. Can someone help me out? I would really app
-
hello how can i get the jre version & location from applet? is there any way for this? thanks bashar