FM SPE_CALCULATE_PRICE - Java Call does not return Net Value of Sales Order
Dear Experts,
we want to make a call of FM SPE_CALCULATE_PRICE from the SAP NetWeaver Developer Studio to achieve that we receive the Net Value of a Sales Order. When we try to test the Scenario in SAP CRM (Creation of a Sales Order) Itself all is working fine. But if we try to make the call from Developer Studio it does not work for some reason. We have applied SAP Note 1936255.
I am attaching:
- the Pricing Trace we receive as a result from SAP.
The Java Code we use is the following:
Code JAVA
import com.sap.mw.jco.*;
import com.sap.mw.jco.JCO.ParameterList;
import com.sap.mw.jco.JCO.Structure;
import com.sap.mw.jco.JCO.Table;
public class callIPCDemo {
public static void main(String[] args) {
System.out.println("--- START ---");
// connect to SAP system
JCO.Client client = null;
try {
client = JCO.createClient(
"400", // SAP client
"XXXX", // User ID
"XXXXXXXX", // Password
"EN", // Language
"XXX.XXX.XX.XXX", // IP des hosts
//"QPMR-CR20", // Hostname
"00"); // System number
client.connect();
System.out.println("Connection OK\n");
catch (Exception ex) {
System.out.println(ex);
return;
// print RFC attributes
System.out.println(client.getAttributes());
// create JCo repository
JCO.Repository repository = new JCO.Repository("testIPCcall", client);
// Function Module SPE_CALCULATE_PRICE
IFunctionTemplate ft = repository.getFunctionTemplate("SPE_CALCULATE_PRICE");
JCO.Function function = null;
try {
function = ft.getFunction();
} catch (Exception ex) {
System.out.println(ex);
return;
// IS_HEADER_INPUT
ParameterList importParameterList = function.getImportParameterList();
Structure HeaderInput = importParameterList.getStructure("IS_HEADER_INPUT");
HeaderInput.setValue("005056A7005E1ED3A7AD22549B279B91", "DOCUMENT_ID");
HeaderInput.setValue("CRM", "APPLICATION");
HeaderInput.setValue("ZCRM02", "PRC_PROCEDURE_NAME");
HeaderInput.setValue("EUR", "DOCUMENT_CURRENCY_UNIT");
HeaderInput.setValue("EUR", "LOCAL_CURRENCY_UNIT");
HeaderInput.setValue("X", "PERFORM_TRACE");
// IS_HEADER_INPUT-ATTRIBUTES (substructure/table)
Table HeaderInputAttributes = HeaderInput.getTable("ATTRIBUTES");
HeaderInputAttributes.appendRows(3);
Table valuesTable = null;
HeaderInputAttributes.setRow(0);
HeaderInputAttributes.setValue("DIS_CHANNEL", "FIELDNAME");
valuesTable = HeaderInputAttributes.getTable("VALUES");
valuesTable.appendRows(1);
valuesTable.setValue("01", 0);
HeaderInputAttributes.setRow(1);
HeaderInputAttributes.setValue("SALES_ORG", "FIELDNAME");
valuesTable = HeaderInputAttributes.getTable("VALUES");
valuesTable.appendRows(1);
valuesTable.setValue("O 50000151", 0);
HeaderInputAttributes.setRow(2);
HeaderInputAttributes.setValue("SOLD_TO_PARTY", "FIELDNAME");
valuesTable = HeaderInputAttributes.getTable("VALUES");
valuesTable.appendRows(1);
valuesTable.setValue("005056A7005E1ED3A7ACEFCAD95FBB91", 0);
importParameterList.setValue(HeaderInput, "IS_HEADER_INPUT");
// IT_ITEM_MAIN_INPUT
String itemGuid = "005056A7005E1ED3A7AD3F004CD85B91";
ParameterList tableParameterList = function.getTableParameterList();
Table tableItems = tableParameterList.getTable("IT_ITEM_MAIN_INPUT");
tableItems.appendRows(1);
tableItems.setValue(itemGuid, "ITEM_ID");
tableItems.setValue("005056A7005E1EE39289A0FB457C9D8A", "PRODUCT_ID");
tableItems.setValue("M", "EXCH_RATE_TYPE");
tableItems.setValue("10", "QUANTITY");
tableItems.setValue("PC", "QUANTITY_UNIT");
// IT_ITEM_ATTRIB_INPUT
Table tableItemAttributes = tableParameterList.getTable("IT_ITEM_ATTRIB_INPUT");
tableItemAttributes.appendRows(2);
tableItemAttributes.setValue(itemGuid, "ITEM_ID");
tableItemAttributes.setValue("PRODUCT", "FIELDNAME");
tableItemAttributes.setValue("005056A7005E1EE39289A0FB457C9D8A", "FIELDVALUE");
tableItemAttributes.nextRow();
tableItemAttributes.setValue(itemGuid, "ITEM_ID");
tableItemAttributes.setValue("PRC_INDICATOR", "FIELDNAME");
tableItemAttributes.setValue("X", "FIELDVALUE");
// IT_ITEM_TIMESTMP_INPUT
Table tableTimestamps = tableParameterList.getTable("IT_ITEM_TIMESTMP_INPUT");
tableTimestamps.appendRows(3);
tableTimestamps.setValue(itemGuid, "ITEM_ID");
tableTimestamps.setValue("PRICE_DATE", "FIELDNAME");
tableTimestamps.setValue("20140225000000", "TIMESTAMP");
tableTimestamps.nextRow();
tableTimestamps.setValue(itemGuid, "ITEM_ID");
tableTimestamps.setValue("PRT_DELIVERYDATE", "FIELDNAME");
tableTimestamps.setValue("20140225000000", "TIMESTAMP");
tableTimestamps.nextRow();
tableTimestamps.setValue(itemGuid, "ITEM_ID");
tableTimestamps.setValue("PRT_ORDERDATE", "FIELDNAME");
tableTimestamps.setValue("20140225000000", "TIMESTAMP");
// execute function module
try {
client.execute(function);
} catch (Exception ex) {
System.out.println(ex);
return;
// check result
JCO.Structure structureHeaderResult = function.getExportParameterList().getStructure("ES_HEADER_RESULT");
System.out.println("Net Value: " +
structureHeaderResult.getValue("NET_VALUE"));
JCO.Table tableHeaderResult = function.getExportParameterList().getTable("ET_TRACE");
System.out.println(tableHeaderResult.getNumRows());
for(int x = tableHeaderResult.getNumRows(); x <= tableHeaderResult.getNumRows(); x = x + 1) {
tableHeaderResult.setRow(x);
System.out.println("Trace: " + x + tableHeaderResult.getValue("ACCESS_TRACE_XML"));
// disconnect from SAP system
client.disconnect();
System.out.println("--- END ---");
Thanks.
I'll have to discuss VTAA pricing types with the Business Analyst, since there are many records and I'm not sure what I'm looking at.
In regards to your second point, it's not in calculation. It'll stay at that number until you save, check the conditions tab in the header or reprice the document.
What's interesting is that it doesn't do this for all materials.
For example:
Material 1 - priced $25
Material 2 - priced $25
Net price would be $50, which is correct.
But say we use Material 3 - priced $25 as well. For this one, the total net price could show up as $30.
Can pricing types be specific to materials or material groups? What is the pricing type exactly and why 'A'?
Similar Messages
-
P_session.get_value call does not return the value
I have a form on a table.
After the doInsert call in the pl/sql event handler section of the insert button, I have the sql statement
"insert into temp
values(56,p_session.get_value_as_varchar2('DEFAULT','A_FIRST_NAME'));"
However, the value the call p_session.get_value_as_varchar2('DEFAULT','A_FIRST_NAME') returns is always null.
Any comments?
Thanks in advance.
nullWhen I user get_value_as_varchar2
function then i get following error
Anybody knows about solving a problem
code works fine for number data.
if i try to access varchar2 column then i get error.
An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)
An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)
(WWV-00000)
The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.8723279877 (WWC-51000)
(WWC-00000)
anybody knows please give reply its urgent..
thanks in advance
Yogesh
null -
Function does not return a value
CREATE OR REPLACE PACKAGE BODY Promo_Version_Logo_Pkg IS
FUNCTION Promo_Version_Logo_Rule(Rc IN test.Ot_Rule_Context)
RETURN Ot_Rule_Activation_Result
IS
PRAGMA AUTONOMOUS_TRANSACTION;
v_Result NUMBER;
CURSOR Cur_Promo_Logos IS
SELECT Pvlo.Promo_Id,
Evt.On_Date,
Evt.Channel_Id,
Evt.Start_Time,
Evt.Duration,
Pvlo.Logo_Id
FROM Event Evt,
Event_Technical_Data Etd,
Promo_Version_Logo_Opt Pvlo,
Promo_Timing Pt
WHERE Evt.Event_Technical_Data_Id = Etd.Event_Technical_Data_Id
AND Etd.Promo_Timing_Id = Pt.Promo_Timing_Id
AND Pt.Promo_Timing_Id = Pvlo.Promo_Timing_Id
AND Evt.Channel_Id = Rc.Channelid
AND Evt.On_Date >= Rc.Fromdate
AND Evt.On_Date <= Rc.Todate
AND Evt.Day_Type_Id = Rc.Daytype;
BEGIN
FOR Each_Record IN Cur_Promo_Logos LOOP
v_Result := Testing_Pkg.Insert_Event(v_Channel_Id => Each_Record.Channel_Id,
v_Tx_Time => Each_Record.Start_Time,
v_Tx_Date => Each_Record.On_Date,
v_Content_Id => Each_Record.Logo_Id,
v_Duration => Each_Record.Duration,
v_Event_Type => Uktv_Tools_Pkg.c_Logo_Kind_Code,
v_Container_Id => Each_Record.Promo_Id);
IF v_Result = -1
THEN
EXIT;
END IF;
END LOOP;
END Promo_Version_Logo_Rule;
END Promo_Version_Logo_Pkg;why do I get this "Hint: Function 'Promo_Version_Logo_Rule' does not return a value" after I compile it? The Testing_Pkg.Insert_Event should insert some values somewhere...I just want to try to test it before I move on onto the next bit of it, but I do not understand what I am doing wrong...
ThanksYou need something like:
END LOOP;
RETURN v_Result; -- if this is what you are trying to get the function to do
EXCEPTION
WHEN OTHERS THEN
<exception handling/logging - whatever you want>
RAISE; --this with then raise an error back to the calling process
END Promo_Version_Logo_Rule;This way the function either returns a value, or an exception which can be handled in the calling procedure -
Why is the giving me this error (method does not return a value) PLEASE !!
I have this code and it is giving me this error and I don't know how to fix it
can anyone out there tell me why
I have included the next line of code as I have had problems in the curly brackets in the past.
The error is
"Client.java": Error #: 466 : method does not return a value at line 941, column 3
Please help
THX TO ALL
private Date DOBFormat()
try
if
(MonthjComboBox.getSelectedItem().equals("") ||
DayjComboBox.getSelectedItem().equals("") ||
YearjComboBox.getSelectedItem().equals("")){
else
String dateString = StringFromDateFields();
SimpleDateFormat df = new SimpleDateFormat("dd/mm/yyyy");
Date d = df.parse(StringFromDateFields());
System.out.println("date="+d);
return d;
catch (ParseException pe)
String d= System.getProperty("line.separator");
JOptionPane.showMessageDialog( this,
"Date format needs to be DD/MM/YYYY,"+ d +
"You have enterd: "+ StringFromDateFields() + d +
"Please change the Date", "Date Format Error",
JOptionPane.WARNING_MESSAGE);
return null;
//File | Exit action performed
public void jMenuFileExit_actionPerformed(ActionEvent e) {
System.exit(0);
}Fixed it needed to have a return null;
this is the code
if
(MonthjComboBox.getSelectedItem().equals("") ||
DayjComboBox.getSelectedItem().equals("") ||
YearjComboBox.getSelectedItem().equals("")){
return null; -
LOV does not return the value (2)
PPR in general does not work correctly if invalid HTML is generated. One example of an invalid HTML is having an opening <TD> tag immediately following another opening <TD> tag.
After checking everything else, if LOV still does not return the value, test whether it's not a problem with the invalid HTML by placing the messageLovInput outside of the complicated layout nestings you may have. If it works outside of the layout nestings, look for the possible problems in the layout nestings.Hi RamKumar,
Thanks for your reply.. I have already done that but no luck :(
Regards,
Hemanth J -
The IC WebClient profile does not have a component 'ERP Sales Order'
Hi CRM Experts,
While creating the ERP Sales Order in web-IC
we have bumped into following error:
"The IC WebClient profile does not have a component 'ERP Sales Order'".
And also we are not able to see sales area data and Plant data in the drop down lists.
we have done the following settings:
1) ERP Sales Order Profile:we have defined ERP Sales Order profile,maintained RFC destinatin and assigned document type to ERP Profile.
2) Business Transaction Launcher: We have defined the Business Transaction Profile and assigned dependent business transaction.
3) We have assigned the Business Transaction Profile to the Navigation Bar Profile.
Please suggest me regarding above error also let us know did we miss any configuration?
Waiting for your valuable inputs.
Regards,
Sree.Hi Sree,
There is a setting needed for the IC webclient
ERP_SALES_ORDER
you need to define ERP sales order profile and assign it to your ic webclient profile.
And the ERP sales order scenario can only be used with a ERP 6.0 backend system, at least.
Hongyan -
Net Value in Sales order item and header URGENT
Hi experts
In some sales orders the net value is not shown but it is available in PR00 condition.
Where should i check pricing proceedure or copy control,
In the same sales order type i.e ZRP other sales orders are having net value,
this sales order is created with reference to sales order type RE.
Pls guide where to check and what correction needs to be done.
Thank u in advance.
regards
SMHi,
Pricing procedure in tcode V/08, check the field 'SubTo'.
Copy control in tcodes VTFA (between SO and invoices).Check the field 'pricing type' for conditions.
I hope this help you,
Regards,
Eduardo -
Hi All,
Any one know how the system set net value in sales order item? (VBAP-NETWR)
I mean, what kind of condition type will be considered in net value calculation.
Thank youHi,
In Sales Order net value (NETWR) is always value before tax, it means the condition type determined before tax condition will be considered in sales order Net Value.
In other words if conditon type have a category defined as D-Tax and Cond. class as D- Taxes, the value of this condition type will not be considered in Net value.
regards
Vivek.
Edited by: Vievk Vardhan on Jan 7, 2010 2:00 PM -
Java - version does not return the version??
Hi,
The following is from a cmd window
C:\Program Files\JavaSoft\JRE\1.2\bin>java -version
C:\Program Files\JavaSoft\JRE\1.2\bin>
It seems to be missing the expected:
java version "1.2.2"
Classic VM (build JDK-1.2.2_006, native threads, symcjit)
Another side effect is that any application using java to launch creates a java process (briefly observed through task manager) and then dies almost instantly.
The machine is a Win2000 Server running JRE 1.2.2_006, I've tried uninstalling, re-installing, rebooting (between unistalling and reinstalling), setting the path and classpath variables to nothing and running from the folder.
Anyone seens this before? know what the resolution is?
Thanks
DaveThanks for the response, I've already tried that with no success.
It appears that it might be related to the fact that it's installed on a VMWare machine.
The java -version command works fine on the VMWare machine when the VM is running on the host machine that it was built on, however when the VMWare machine was moved to a new host it seems that when you run the java interpreter it launches and then just dies??
I still don't have an answer for why the Java -version does not work.
As I said before I have uninstalled and reinstalled JRE 1.2.2 a couple of times with no success, however a workaround appears to be to install the JRE 1.3.1.
After installing JRE 1.3.1 the java -version command works, fortunately the java applications I am using 'seem' to be compatible (with a few modifications to path variables etc) with the 1.3.1 version�.
Thanks
Dave -
RFC call do not return any value
Hi All,
I have an RFC written in one R/3 system(call center R/3) and i am calling this RFC in the ERP system.
If i try to run the RFC locally in the call center system ,it runs correctly and returns me proper values.
But when i try to call it from other R/3 system(ERP) the RFC does not return value.(both cases i am passing same parameters).
Also , RFC parameters are defined with pass by value option.
I am not able to trace why this behaviour,can anyone pin point what could be the possible cause of error.
Thanks in advance,
SwatiNo ,there i snot RFC connection problem ,i have checked it from SM59.
Neither do i get any dump or error of no authorization.In fact the sy-subrc after the RFC call is 0.
St22 do not have any trace for the same.
my RCC call is something like this,
IF dest <> ' '.
CALL FUNCTION 'Z_GET_CIC061' DESTINATION dest
EXPORTING
p_comp = itab_cic-company
p_asc_code = itab_cic-customer
p_wbill_no = itab_cic-bill_no
IMPORTING
e_tr_no = tr_no
e_model_code = model_code
e_data_origin = data_origin
EXCEPTIONS
communication_failure = 1
system_failure = 2.
ELSE.
MESSAGE i000 WITH 'RFC Destination is empty!'.
EXIT.
ENDIF.
Can anyone please suggest whats wrong in the above code.
Also what is transaction RFC call?is it related to what i am using in the above code of mine.
Thanks in advance,
Swati -
Function Does Not Return any value .
Hi ,
I am wrtting the below funtion without using any cursor to return any message if the value enters by parameters
does not match with the value reterived by the function select statement or it does not reterive any value that
for the parameters entered .
E.g:
CREATE OR REPLACE FUNCTION TEST_DNAME
(p_empno IN NUMBER,p_deptno IN NUMBER)
RETURN VARCHAR2
IS
v_dname varchar2(50);
v_empno varchar2(50);
V_err varchar2(100);
v_cnt NUMBER := 0;
BEGIN
SELECT d.dname,e.empno
INTO v_dname ,v_empno
FROM scott.emp e , scott.dept d
WHERE e.empno=p_empno
AND d.deptno=p_deptno;
--RETURN v_dname;
IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
THEN IF v_dname is NULL THEN
v_err :='Not Valid';
RETURN v_err;END IF;
ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
THEN IF v_dname is NOT NULL THEN
RETURN v_dname; END IF;
ELSE
RETURN v_dname;
END IF;
END;
Sql Statement
SELECT TEST_DNAME(1234,30) FROM dual
AND IF I enter a valid combination of parameter then I get the below error :
e.g:
SQL> SELECT TEST_DNAME(7369,20) FROM dual
2 .
SQL> /
SELECT TEST_DNAME(7369,20) FROM dual
ERROR at line 1:
ORA-06503: PL/SQL: Function returned without value
ORA-06512: at "SCOTT.TEST_DNAME", line 24
Where I am missing .
Thanks,Format you code properly and look at it:
CREATE OR REPLACE
FUNCTION TEST_DNAME(
p_empno IN NUMBER,
p_deptno IN NUMBER
RETURN VARCHAR2
IS
v_dname varchar2(50);
v_empno varchar2(50);
V_err varchar2(100);
v_cnt NUMBER := 0;
BEGIN
SELECT d.dname,
e.empno
INTO v_dname,
v_empno
FROM scott.emp e,
scott.dept d
WHERE e.deptno=d.deptno
AND e.empno=p_empno
AND d.deptno=p_deptno;
--RETURN v_dname;
IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
THEN
IF v_dname is NULL
THEN
v_err :='Not Valid';
RETURN v_err;
END IF;
ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
THEN
IF v_dname is NOT NULL
THEN
RETURN v_dname;
END IF;
ELSE
RETURN v_dname;
END IF;
END;
/Both p_empno and p_deptno in
SELECT TEST_DNAME(7369,20) FROM dualare not null. So SELECT will fetch some v_dname and v_empno. Since p_empno and p_deptno iare not null your code will go inside outer IF stmt and will execute its THEN branch. That branch consist of nothing but inner IF statement. And since v_dname is NOT NULL it will bypass that inner IF and exit the outer IF. And there is no RETURN stmt after that outer IF. As a result you get what you get - ORA-06503. Also, both if and elsif in your code check same set of conditions which makes no sense.
SY. -
UPDATE ... RETURNING does not return new value
Hi all,
I've created the following objects in Oracle DB 10.2.0.3.0:
CREATE TABLE TAB1
ID NUMBER PRIMARY KEY,
EDITED_AT DATE,
VALUE VARCHAR2(64)
CREATE SEQUENCE S_TAB1
INCREMENT BY 1
START WITH 1;
CREATE TRIGGER T_TAB1_BIE
BEFORE INSERT OR UPDATE ON TAB1
FOR EACH ROW
BEGIN
IF INSERTING THEN
SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
END IF;
:NEW.EDITED_AT := SYSDATE;
END;
/Then I tried to do the following in SQL Plus:
SQL> insert into tab1(value) values('ddd');
1 row created.
SQL> commit;
Commit complete.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:01:24 ddd
SQL>
SQL> declare dt date; val varchar2(64);
2 begin update tab1 set value = 'ddd' where id = 1 returning edited_at, value into dt, val;
3 dbms_output.put_line('txt = ' || dt || ', ' || val);
4 end;
5 /
txt = 27.03.2008 17:01:24, ddd
PL/SQL procedure successfully completed.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:02:12 ddd
SQL>As it can be seen Returning clause of an Update statement does not return a new date, i.e. 27.03.2008 17:02:12, that was updated by the trigger, it returns an old one - 27.03.2008 17:01:24. Please advise me why Database returns an old value? I do believe that UPDATE ... RETURNING ... statement should return new, generated by the trigger, value.
Thanks in advance.
Regards,
Yerzhan.you need to explicitly include the column in your UPDATE statement SET clause that you expect to return the result you want it to be. here's what i think what happened even though you have a trigger the first statement that was processed was your update statement. at the time of the update it has to return the current values to the returning clause that is the values on the table. now comes next the trigger which gives edited_at column a new value. when the trigger got fired the process don't return anymore to the UPDATE RETURNING statement. it's like each sequence of codes does not executes in parallel.
SQL> CREATE TABLE TAB_1
2 (
3 ID NUMBER PRIMARY KEY,
4 EDITED_AT DATE,
5 VALUE VARCHAR2(64)
6 );
Table created.
SQL> CREATE SEQUENCE S_TAB1
2 INCREMENT BY 1
3 START WITH 1;
Sequence created.
SQL> CREATE TRIGGER T_TAB1_BIE
2 BEFORE INSERT OR UPDATE ON TAB_1
3 FOR EACH ROW
4 BEGIN
5 IF INSERTING THEN
6 SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
7 END IF;
8 :NEW.EDITED_AT := SYSDATE;
9 END;
10 /
Trigger created.
SQL> insert into tab_1(value) values('ddd');
1 row created.
SQL> commit;
SQL> select * from tab_1;
ID EDITED_AT VALUE
1 28-mar-2008 10:31:18 ddd
SQL> declare dt date; val varchar2(64);
2 begin update tab_1 set value = 'ddd', edited_at = sysdate
3 where id = 1 returning edited_at, value into dt, val;
4 dbms_output.put_line('txt = ' || dt || ', ' || val);
5 end;
6 /
txt = 28-mar-2008 10:32:39, ddd
PL/SQL procedure successfully completed.
SQL> select * from tab_1;
ID EDITED_AT VALUE
1 28-mar-2008 10:32:39 ddd
SQL> -
MessageChoice does not return correct value
Hi
I am problem with MessgeChoiceBean's improver beharior
For the first time it retunrs blank and subsequently In one page if I select Yes, it returns No.
In another page it does not return any thing for the first two selections. And I reciev flip values.
I ran VO outside, VO is returning correct values.
MessageChoice attributes and associated PPR:
Data Type: Varchar2
Initial Value: N
Pick List view Definition: oracle.apps.xxx.docs.common.lov.server.YesNoVO
Pick List View Instance: YesNoVO3
Pick List Display Attribute: Meaning
Pick List Value AttributeL LookupCode
ActionType: firePartialAction
Event: handleNewLocationFlagChange
Parameter Name: newLocationFlag
Parameter Value: ${oa.CustomerInfoVO1.NewShipToLocationFlag}
ProcessParameterForm Code:
if ("handleNewLocationFlagChange".equals(event))
String newLocationFlag = pageContext.getParameter("newLocationFlag");
Serializable[] parameters = { ""+newLocationFlag};
Class[] paramTypes = { String.class};
am.invokeMethod("handleNewLocationFlagChange", parameters, paramTypes);
VO definition:
select LOOKUP_CODE,MEANING
FROM ONLINE_DOCS_LOOKUPS
WHERE ONLINE_DOCUMENT_CODE = 'ALL'
AND LOOKUP_TYPE = 'YESNO'
ORDER BY ATTRIBUTE1
View output:
LOOKUP_CODE MEANING
N No
Y Yes
I have quite a bit number of columns to change render property.
Any help will be appreciated.
Thanks
PrasadYour question is not clear, are you saying the values in the messageChoiceBean is not displayed properly. As far as I can see from the definition the poplist picks the values from a lookup(Yes, No) values and has a PPR action associated with it. Did you check what this method handleNewLocationFlagChange is doing in the AM ?
-
When LOV does not return the value
Check that you are not calling setText(String) on the web bean to set the default value. It causes your bean to no longer draw the value from the underlying VO. One of the symptoms is that selecting a value from the LOV modal window will not return that value to the base page. (The value from the LOV will actually be set on the VO, but the UI won't reflect it.)
Setting the default value in the model layer is prefered. You can do this by overriding the create(AttributeList nameValuePair) method of OAEntityImpl or OAViewRowImpl.
If, for some reason, you need to set the default value from the client side, you need to call setText with the pageContext, e.g., setText(pageContext, "myDefault");Hello
Upon giving your question further thought I think that you would be better off if you added an 'id' column to table T1 and referenced this 'id' column in table T2 . Something like
Table_T1(id number, c1 varchar2(100)
and
Table_T2(.other_columns.. ,t1_id)
Your LOV will now be select c1 display,id return from table_t1The column t1_id will be defined to use this LOV.
You will need no other modifications to the form on table_t2
Varad -
LOV does not return the value (1)
Avoid calling setText on the web bean to set the default value. It causes your bean to no longer draw the value from the underlying VO. One of the symptoms is that selecting a value from the LOV modal window will not return that value to the base page. (The value from the LOV will actually be set on the VO, but the UI won't reflect it.)
Setting the default value in the model layer is prefered. You can do this by overriding the create(AttributeList nameValuePair) method of OAEntityImpl or OAViewRowImpl.
If, for some reason, you need to set the default value from the client side, you need to call setText with the pageContext, e.g., setText(pageContext, "myDefault");Hi RamKumar,
Thanks for your reply.. I have already done that but no luck :(
Regards,
Hemanth J
Maybe you are looking for
-
Apache mod_rewrite and mod_wl together
Hi everybody, I'm having a problem with apache (1.3.27 on linux) mod_rewrite and mod_wl. The httpd.conf looks like this: RewriteEngine on RewriteCond %{QUERY_STRING} Id=100 RewriteRule ^/dynamic/tops$ /static/100.html [P] <Location /dynamic> SetHandl
-
IPhone 6 & Airplay not playing videos from camera roll to Apple TV
When I try to play a video from the camera roll on my iPhone 6 to my Apple TV via airplay, i just get a black screen. Everything else works using Airplay (photos, youtube vids, netflix, etc.). Any thoughts? Thanks.
-
I just created a new document and want to set the "tab order", but it is grayed out. It was there yesterday, but not now. What did I do wrong?
-
How we can run multiple IOP servers as separate services in iop 4.0.5
We have two different IOP servers running on a same windows machine. We want to install nt service for both. When we install the service as Oracle Integrated Operational Planning for first server, and try to do it for second, it results in an error t
-
Everything I click on freezes!
I have a Pavilion p6210y PC. On Sunday, my screen froze and left me no option but to turn off at case. It never booted properly again. I couldn't get into setup - would not boot from cd - occasionaly it began a CHKDSK, but never finished and froze.