Reg: Parameter Value in CRMPAROLTP table in ECC 6.0
Hi,
While trying to build a middle ware for CRM 5.0 and ECC 6.0 we came across CRMPAROLTP table in ECC 6.0. In this we need to maintain Parameter Name and Parmaeter value. If the Parameter name is CRM_RELEASE wht will be the parameter value for CRM Version 5.0?
Regards
Hi Veerendra,
Parameter value is 500.
Regards
Nadh.
Similar Messages
-
How to update this table with values from another table ?
Hi
I have a table "regies". I want to replace the values of the column "regies.agent" by the value of the column "regies_personnes.id"
As you see the tables have a common values column. ie regies.agent = regies_personnes.nom
Table "regies" :
Insert into "regies" (AGENT) values ('Humberdot Alain');
Insert into "regies" (AGENT) values ('Danard Patrick');
Table "regies_personnes" :
Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
Before we have this
sql>select agent from regies ;
Humberdot Alain
Danard Patrick
After the update, the result should be
sql>select agent from regies ;
1
2
Thank you for your kind answer.You will face error if you have duplicates
ORA-01427 Single row subquery returns Multiple rows.Try this way
create table regies(agent varchar2(30));
create table regies_personnes( nom varchar2(30),id number);
Insert into regies (AGENT) values ('Humberdot Alain');
Insert into regies (AGENT) values ('Danard Patrick');
Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
Insert into regies (AGENT) values ('Humberdot Alain');
Insert into regies (AGENT) values ('Danard Patrick');
Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
commit;
update regies r set agent = (select id from regies_personnes p where r.agent = p.nom
and rownum=1)
where exists (select id from regies_personnes p where r.agent = p.nom
commit -
Table Parameter Values Are Input To RFC?
Hi,
My Requirement is Table Parameter Values are Input RFC.
We have Table Parameter With Project ID Column and Multiple Rows.
User Need To Enter Project id's in Table And Submit.The Result can be displayed.
In My Scenario User Need to enter the values in table.
I Developed Webdynpro Application and Deployed.
When i am trying to enter values into a table,table is not taking values.
Because in My Requirment is the user enter morethan one project id in table.
Thanks
SubbaRao ChintaHi,
Can you please explain more clearly that what is the meaning of "Table not taking values"?
Did you take the ColumnCellEditor(inputfield) for table column as input field.
For example, You need to create a value node as below
ProjectIdsNode (Value node with cardinality 0..n & selection 0...n)
---> ProjectId (Attribute)
And bind this ProjectIds node to table UI element. And bind ProjectId attribute to ColumnCellEditors(inputfield) value property.
Now in submit action loop though this node and get all the values entered in ProjectId attribute.
And set all these values into input of your RFC while executing to store in backend.
Regards,
Charan -
How to assign Values to nested table and pass as parameter to procedure?
How to assign Values to nested table and pass as parameter to procedure?
Below is the Object and its type
create or replace type test_object1 as object
val1 varchar2(50),
val2 varchar2(50),
val3 varchar2(50)
create or replace type test_type1 is table of test_object1;
create or replace type test_object2 as object
val1 varchar2(50),
val2 varchar2(50),
val3 varchar2(50)
create or replace type test_type2 is table of test_object2;
GRANT ALL ON test_object1 TO PUBLIC;
GRANT ALL ON test_type1 TO PUBLIC;
GRANT ALL ON test_object2 TO PUBLIC;
GRANT ALL ON test_type2 TO PUBLIC;
here is the table made of object type:
create table test_object_tpe
sl_num NUMBER,
description VARCHAR2(100),
main_val1 test_type1,
main_val2 test_type2
NESTED TABLE main_val1 STORE AS tot1
NESTED TABLE main_val2 STORE AS tot2;
here is the procedure which inserts values into nested table:
PROCEDURE INSERT_TEST_DATA(sl_num IN NUMBER,
description IN VARCHAR2,
p_main_val1 IN test_type1,
p_main_val2 IN test_type2
IS
BEGIN
FOR rec in p_main_val1.first..p_main_val1.last
LOOP
INSERT INTO xxdl.test_object_tpe
sl_num,
description,
main_val1,
main_val2
VALUES
sl_num
,description
,test_type1 (test_object1(
p_main_val1(rec).val1,
p_main_val1(rec).val2,
p_main_val1(rec).val3
,test_type2 (test_object2( p_main_val2(rec).val1,
p_main_val2(rec).val2,
p_main_val2(rec).val3
END LOOP;
commit;
END INSERT_TEST_DATA;
here is the anonymoys block which assigns values to the object type and pass values into the procedure:
set serveroutput on;
declare
p_sl_num NUMBER := 1001;
p_description VARCHAR2(50) := 'Testing Val1';
inval1 test_type1 := test_type1();
inval2 test_type2 := test_type2();
begin
inval1(1).val1 := 'testx1';
inval1(1).val2 := 'testx2';
inval1(1).val3 := 'testx3';
inval2(1).val1 := 'testy1';
inval2(1).val2 := 'testy2';
inval2(1).val3 := 'testy3';
CSI_PKG.INSERT_TEST_DATA(sl_num => p_sl_num,
description => p_description,
p_main_val1 => inval1,
p_main_val2 => inval2
end;
Can anybody correct me.
Thanks,
LavanThanks for posting the DDL and sample code but whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
>
How to assign Values to nested table and pass as parameter to procedure?
>
Well you are doing almost everything wrong that could be done wrong.
Here is code that works to insert data into your table (the procedure isn't even needed).
declare
p_sl_num NUMBER := 1001;
p_description VARCHAR2(50) := 'Testing Val1';
inval1 test_type1 := test_type1();
inval2 test_type2 := test_type2();
begin
inval1.extend();
inval1(1) := test_object1('testx1', 'testx2', 'testx3');
inval2.extend();
inval2(1) := test_object2('testy1', 'testy2', 'testy3');
INSERT INTO test_object_tpe
sl_num,
description,
main_val1,
main_val2
VALUES
(p_sl_num, p_description, inval1, inval2);
commit;
end;
/See Example 5-15 Referencing a Nested Table Element in Chap 5 Using PL/SQL Collections and Records in the PL/SQL doc
http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/collections.htm#CJABEBEA
1. You don't even need the procedure since all it does is a simple INSERT into the table which you can do directly (see my code above)
inval1(1).val1 := 'testx1';There is no element one (1) of 'inval1' since you haven't created any elements yet. You need to EXTEND the collection to add an element
inval1.extend();And then there is an empty element but 'inval1' is a container for objects of type 'test_object1' not for scalars like 'val1', 'val2', and 'val3'.
So you can't do
inval1(1).val1 := 'testx1';You have to create an instance of 'test_object1'
inval1(1) := test_object1('testx1', 'testx2', 'testx3');And so on for the other collection
You don't need the procedure (as my sample code shows) but once you populate the variables properly it will work. -
Parameter value in RZ11 and table TPFET differs
Hello!
In order to check the value of several parameters in a SAP system we have in place a procedure that analyze that value against the table TPFET. In general it works pretty well (as far as you also consider the values defined in the kernel of SAP whenever there is not information in TPFET) but we have found one or two cases where the data look wrong.
In particular, for 2 SAP systems we found that the value for an specific parameter was fill with some value in TPFET (login/multi_login_users but i guess the parameter is not relevant) but thru RZ11 the value looks empty (more precisely, the standard value, the profile value and the current value were empty). The only thing "strange" in TPFET for this value was that the column PSTATE shows "M" value.
So the questions are:
1) Do know why TPFET value differs from RZ11 one?
2) What does "M" means in TPFET-PSTATE?
Thanks in advanced,
FélixHi Felix,
1) Do know why TPFET value differs from RZ11 one?
There is a two tables TPFYPROPTY and TPFET.
1. TPFYPROPTY - In this table all standard values ( profile parameter values) will come by default ( RZ11).
2. TPFET - This table is related to you RZ10 profile parameter values
2) What does "M" means in TPFET-PSTATE?
M means Modified standard values in RZ10 profile parameters
find below link
Difference between maintaining parameter values... | SCN
Thanks
Siva -
Unable to capture the parameter values from a PL/SQL procedure
hi.
i'm trying to capture the parameter values of a PL/SQL procedure by calling inside a anonymous block but i'm getting a "reference to uninitialized collection error" ORA-06531.
Please help me regarding.
i'm using following block for calling the procedure.
declare
err_cd varchar2(1000);
err_txt VARCHAR2(5000);
no_of_recs number;
out_sign_tab search_sign_tab_type:=search_sign_tab_type(search_sign_type(NULL,NULL,NULL,NULL,NULL));
cntr_var number:=0;
begin
rt843pq('DWS','3000552485',out_sign_tab,no_of_recs,err_cd,err_txt);
dbms_output.put_line('The error is ' ||err_cd);
dbms_output.put_line('The error is ' ||err_txt);
dbms_output.put_line('The cntr is ' ||cntr_var);
for incr in 1 .. OUT_SIGN_TAB.count
loop
cntr_var := cntr_var + 1 ;
Dbms_output.put_line(OUT_SIGN_TAB(incr).ref_no||','||OUT_SIGN_TAB(incr).ciref_no||','||OUT_SIGN_TAB(incr).ac_no||','||OUT_SIGN_TAB(incr).txn_type||','||OUT_SIGN_TAB(incr).objid);
end loop;
end;
Error is thrown on "for incr in 1 .. OUT_SIGN_TAB.count" this line
Following is some related information.
the 3rd parameter of the procedure is a out parameter. it is a type of a PL/SQL table (SEARCH_SIGN_TAB_TYPE) which is available in database as follows.
TYPE "SEARCH_SIGN_TAB_TYPE" IS TABLE OF SEARCH_SIGN_TYPE
TYPE "SEARCH_SIGN_TYPE" AS OBJECT
(ref_no VARCHAR2(22),
ciref_no VARCHAR2(352),
ac_no VARCHAR2(22),
txn_type VARCHAR2(301),
objid VARCHAR2(1024))............We don't have your rt843pq procedure, but when commenting that line out, everything works:
SQL> create TYPE "SEARCH_SIGN_TYPE" AS OBJECT
2 (ref_no VARCHAR2(22),
3 ciref_no VARCHAR2(352),
4 ac_no VARCHAR2(22),
5 txn_type VARCHAR2(301),
6 objid VARCHAR2(1024))
7 /
Type is aangemaakt.
SQL> create type "SEARCH_SIGN_TAB_TYPE" IS TABLE OF SEARCH_SIGN_TYPE
2 /
Type is aangemaakt.
SQL> declare
2 err_cd varchar2(1000);
3 err_txt VARCHAR2(5000);
4 no_of_recs number;
5 out_sign_tab search_sign_tab_type:=search_sign_tab_type(search_sign_type(NULL,NULL,NULL,NULL,NULL));
6 cntr_var number:=0;
7 begin
8 -- rt843pq('DWS','3000552485',out_sign_tab,no_of_recs,err_cd,err_txt);
9 dbms_output.put_line('The error is ' ||err_cd);
10 dbms_output.put_line('The error is ' ||err_txt);
11 dbms_output.put_line('The cntr is ' ||cntr_var);
12 for incr in 1 .. OUT_SIGN_TAB.count
13 loop
14 cntr_var := cntr_var + 1 ;
15 Dbms_output.put_line(OUT_SIGN_TAB(incr).ref_no||','||OUT_SIGN_TAB(incr).ciref_no||','||OUT_SIGN_TAB(incr).ac_no||','||OUT_SIGN
TAB(incr).txntype||','||OUT_SIGN_TAB(incr).objid);
16 end loop;
17 end;
18 /
The error is
The error is
The cntr is 0
PL/SQL-procedure is geslaagd.Regards,
Rob. -
How to get parameter value from report in event of value-request?
Hi everyone,
The customer want to use particular F4 help on report, but some input value before press enter key are not used in event of "at selection-screen on value-request for xxx", How to get parameter value in this event?
many thanks!
JackYou probably want to look at function module DYNP_VALUES_READ to allow you to read the values of the other screen fields during the F4 event... below is a simple demo of this - when you press F4 the value from the p_field is read and returned in the p_desc field.
Jonathan
report zlocal_jc_sdn_f4_value_read.
parameters:
p_field(10) type c obligatory, "field with F4
p_desc(40) type c lower case.
at selection-screen output.
perform lock_p_desc_field.
at selection-screen on value-request for p_field.
perform f4_field.
*& Form f4_field
form f4_field.
*" Quick demo custom pick list...
data:
l_desc like p_desc,
l_dyname like d020s-prog,
l_dynumb like d020s-dnum,
ls_dynpfields like dynpread,
lt_dynpfields like dynpread occurs 10.
l_dynumb = sy-dynnr.
l_dyname = sy-repid.
*" Read screen value of P_FIELD
ls_dynpfields-fieldname = 'P_FIELD'.
append ls_dynpfields to lt_dynpfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = l_dyname
dynumb = l_dynumb
tables
dynpfields = lt_dynpfields
exceptions
others = 1.
check sy-subrc is initial.
*" See what user typed in P_FIELD:
read table lt_dynpfields into ls_dynpfields
with key fieldname = 'P_FIELD'.
*" normally you would then build your own search list
*" based on value of P_FIELD and call F4IF_INT_TABLE_VALUE_REQUEST
*" but this is just a demo of writing back to the screen...
*" so just put the value from p_field into P_DESC plus some text...
concatenate 'This is a description for' ls_dynpfields-fieldvalue
into l_desc separated by space.
*" Pop a variable value back into screen
clear: ls_dynpfields.
ls_dynpfields-fieldname = 'P_DESC'.
ls_dynpfields-fieldvalue = l_desc.
append ls_dynpfields to lt_dynpfields.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = l_dyname
dynumb = l_dynumb
tables
dynpfields = lt_dynpfields
exceptions
others = 0.
endform. "f4_field
*& Form lock_p_desc_field
form lock_p_desc_field.
*" Make P_DESC into a display field
loop at screen.
if screen-name = 'P_DESC'.
screen-input = '0'.
modify screen.
exit.
endif.
endloop.
endform. "lock_p_desc_field -
Reading POST-Request-Parameter-Values from WebDynPro now possible?
Hello,
in the past I always was disappointed that in WebDynPro there was no way to read POST-request-parameter-values directly after the call of a WebDynPro-Application.
The only (documented) way to read / transfer request-data into an WebDynPro-application was via "URL query string parameters" in the request URL.
The last week I forgot this restriction. I called my WebDynPro-application using a POST-Request-Parameter (cookie_guid) instead of an URL-parameter.
After noticing my mistake, I was really surprised that the WebDynPro could read / shows the the POST-Request-Value.
I didn't make any changes in the coding of my WebDynPro-Application (zvis_show_sso_cookie).
After this cognition I built the following simple HTML-formular to analyse the behavior of the WebyDynPro by calling it with an URL-Parameter (cookie_guid=Url-GUID) together with the POST-Parameter (cookie_guid = Post-Value-GUID).
After calling the WebyDynPro it reads / shows the "POST-Value" of the request !!!
(Remark: If I made a simple refresh or type directly the URL "http://hg10762.vis-extranet.de:1080/sap/bc/webdynpro/sap/zvis_show_sso_cookie?sap-language=DE&cookie_guid=Url-GUID" in the browser, the same webdynpro reads / shows the URL-Parameter-Value).
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<form method="post" action="http://hg10762.vis-extranet.de:1080/sap/bc/webdynpro/sap/zvis_show_sso_cookie?sap-language=DE&cookie_guid=Url-GUID">
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#E0E0E0">
<tr>
<td align="right">Cookie_GUID:</td>
<td><input name="cookie_guid" type="text" size="30" maxlength="30" value="Post-Value-GUID"></td>
</tr>
<tr>
<td>
<input type="submit" value=" Absenden ">
<input type="reset" value=" Abbrechen">
</td>
</tr>
</table>
</form>
</body>
</html>
My questions:
I there any documentation that describes the behavior of WebDynPro after calling it by using POST-Parameter values?
I believe in the past it wasn't possible to read POST-request-parameter-values in WD. Has SAP changed the functionality?
Is the behavior I described in my example above mandatory?
Regards
SteffenAs far as i know in general HTTP request GET method is standard but in SAP POST is standard. All the client request is passed as POST to the server in order to avoid the URL parameter length restriction in GET method.
-
How to get custom field value in vbkd table using "SD_SALESDOCUMENT_CREATE" bapi
Hi Experts,
Need your help . In one program Iam using SD_SALESDOCUMENT_CREATE bapi .
i/p for my report is am excel.
excel is having below formatt.
To create salesdoc we are using SD_SALESDOC_CREATE bapi.
but After execution of the program we are unable to find the ZZFV_SBCNT (which is custom field) in VBKD w.r.t salesdocument.
Need your help what we need to do to reflect the value in vbkd table.
Here temp will contains the data from excel
1)
FORM f_move_header_data .
wg_header-doc_type = wg_temp-auart . "Order type
wg_header-sales_org = wg_temp-vkorg . "Sales Organization
wg_header-distr_chan = wg_temp-vtweg . "Distribution Channel
wg_header-division = wg_temp-spart. "Division
wg_header-sales_off = wg_temp-vkbur . "Sales Office
wg_header-sales_grp = wg_temp-vkgrp . "Sales Group
wg_header-purch_no_c = wg_temp-bstnk . "Customer purchase order number
wg_header-pymt_meth = wg_temp-zlsch . "Payment Method
wg_header-zzychan_role = wg_temp-zzychan_role_i. "Channel Role
wg_header-zzysub_role = wg_temp-zzysub_role . "Submitter Role
wg_header-zzy_inv_for_opt = wg_temp-zzinv_format . "Invoice Format Optio
wg_header-ord_reason = wg_temp-augru . "Order Reason Code
wg_header-bill_block = wg_temp-faksp. "Billing Block
wg_headerx-doc_type = c_set . "Order type
wg_headerx-sales_org = c_set . "Sales Organization
wg_headerx-distr_chan = c_set . "Distribution Channel
wg_headerx-division = c_set. "Division
wg_headerx-sales_off = c_set . "Sales Office
wg_headerx-sales_grp = c_set . "Sales Group
wg_headerx-purch_no_c = c_set . "Customer purchase order number
wg_headerx-pymt_meth = c_set . "Payment Method
wg_headerx-zzychan_role = c_set. "Channel Role
wg_headerx-zzysub_role = c_set . "Submitter Role
wg_headerx-zzy_inv_for_opt = c_set . "Invoice Format Option
wg_headerx-ord_reason = c_set . "Order Reason Code
wg_headerx-bill_block = c_set. "Billing Block
ENDFORM. " F_MOVE_HEADER_DATA
2)
FORM f_move_item_data .
wg_item-itm_number = g_itmnumber. "Item number
wg_item-material = wg_process-matnr . "Material
wg_item-target_qty = wg_process-target_qty. "Targeted Qty
wg_item-item_categ = wg_process-pstyv. "Sales document item category
wg_item-zzylegal_i = wg_process-zzlegal. "Legal Contract
**********Added this line for vbkd-ZZFV_SBCNT****************************
wg_item-zzfv_sbcnt = wg_process-zzfv_sbcnt.
APPEND wg_item TO i_item.
wg_itemx-material = c_set . "Material
wg_itemx-target_qty = c_set. "Targeted Qty
wg_itemx-item_categ = c_set. "Sales document item category
wg_itemx-zzylegal_i = c_set. "Legal Contract
wg_itemx-zzsteady_date = c_set . "Amortization Start Date
wg_itemx-zzsteady_end_dat = c_set. "Amortization Stop Date
**********Added this line for vbkd-ZZFV_SBCNT****************************
wg_itemx-ZZFV_SBCNt = c_set. "
APPEND wg_itemx TO i_itemx.
CLEAR : wg_itemx.
endform.
3)
FORM f_move_head_ext
wg_extension-structure = c_ext_vbak.
wg_ext_vbak-zzinv_format = wg_temp-zzinv_format.
wg_ext_vbak-zzychan_role = wg_temp-zzychan_role_i.
wg_ext_vbak-zzysub_role = wg_temp-zzysub_role.
wg_extension+30 = wg_ext_vbak.
APPEND wg_extension to i_extension.
CLEAR wg_extension.
wg_extensionx-structure = c_ext_vbakx.
wg_ext_vbakx-zzinv_format = c_set.
wg_ext_vbakx-zzlegal = c_set.
wg_ext_vbakx-zzychan_role = c_set.
wg_ext_vbakx-zzysub_role = c_set.
wg_extensionx+30 = wg_ext_vbakx.
APPEND wg_extensionx TO i_extensionx.
CLEAR wg_extensionx.
ENDFORM. " F_MOVE_HEAD_EXT
*& Form F_MOVE_ITEM_EXT
* Item Extension
4)
FORM f_move_item_ext .
* Structure for BAPI parameter Extension
wg_extension-structure = c_ext_vbap.
wg_ext_vbap-posnr = g_itmnumber.
wg_ext_vbap-zzsteady_date = wg_process-zzsteady_date . "Amortization Start Date
wg_ext_vbap-zzsteady_end_dat = wg_process-zzsteady_end_dat. "Amortization Stop Date
wg_ext_vbap-zzlegal = wg_process-zzlegal. "Legal Contract
wg_extension+30 = wg_ext_vbap.
APPEND wg_extension to i_extension.
* Structure for BAPI parameter Extension - Update Indicator Fields
wg_extensionx-structure = c_ext_vbapx.
wg_ext_vbapx-posnr = g_itmnumber.
wg_ext_vbapx-zzsteady_date = c_set .
wg_ext_vbapx-zzsteady_end_dat = c_set.
* wg_ext_vbapx-zzlegal = c_set.
*wg_process-zzfv_sbcnt = c_set.
wg_extensionx+30 = wg_ext_vbapx.
APPEND wg_extensionx TO i_extensionx.
CLEAR wg_extensionx.
and bapi calling is like below.
CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
EXPORTING
sales_header_in = wg_header
sales_header_inx = wg_headerx
logic_switch = wg_logic_switch
business_object = fp_bus_obj
status_buffer_refresh = 'X'
IMPORTING
salesdocument_ex = g_sorder
TABLES
return = i_return
sales_items_in = i_item
sales_items_inx = i_itemx
sales_partners = i_partner
sales_conditions_in = i_cond
sales_conditions_inx = i_condx
sales_text = i_text
extensionin = i_extension
extensionex = i_extensionx.
still we are not getting ZZFV_SBCNT value in VBKD table w.r.t created salesdoc(g_sorder)
Please help me from this issue.
Thank You..Hi,
Please let me know how to add custom fields in the characteristic list, My clients wants department and profit center grouping.
Please tell me how to solve it..
Thanks & Regards,
Reena.. -
Report based on parameter values
Morning all,
I have to create a report which includes Account Number, Account Name, Sales prices. There has to be two optional parameters, Account number (Static) and Product Description (Dynamic).
I have setup the report with Account Number (Grouped), Account Name. The report works fine, when a user selects a particular account number, the report produces fine.
Things I would like to do and know about:
1: when it comes to sales price, it should reflect to what user has selected under Product Description parameter.
for example if the user has selected Supra, Supra KNT, Rimless, Metal etc from the description parameter, the report should only show those selected prices according to the account number (showing descriptive field value).
2: Additionally, if user chooses all of the options from the drop down menu (multiple selection dexcription parameter) then the report should show all the prices according to the description (showing the description field value).
The problem in this case which I think would be is because the description values are quite alot, I mean more than 25 values and if a user selects multiple values, lets say all, how would Crystal adjust that into a report?
Example of a report
Parameters
=============
Account Number:
Description: Supra, Supra KNT, Metal, Plastic, Rimless, Rimless KNT (multiple selection)
Report Layout
============
Account Number --- Account Name --- Supra - Supra KNT - Metal - Plastic - Rimless - Rimless KNT
(Where Supra to Rimless KNT options are chosen by Descriptive parameter value - if not chosen then report will only show account number and account name).
If however only Supra is selected then the report would look like this
Report Layout
============
Account Number --- Account Name --- Supra
Any ideas how to achieve this kind of report? I have setup the report in a landscape so that we can fit as many description values as possible but I only managed to show 9, rest goes over the page.
The report in the end has to be exported to excel so I don't mind if it goes over a page.
Regards
JehanzebJehanzeb,
You do want to use cross tabs...
Have your database query produce a table with the following columns:
Account Info (Number & Name)
Product Description
Sales
e.g.,
Select AcctNo + " - " + AcctName as AcctInfo,
ProdDesc,
sum(Sales) as Sales
from SalesTable
group by AcctNo, AcctName, ProdDesc
Then use record selection to limit the data to the selected products.
Yes, the layout of a cross tab is a bit strange, in that the design of the cross tab only shows one column for the data, but the table will expand with the underlying data. If 4 products are selected, there will be 4 columns of sales numbers. When setting up the cross tab, make the AcctInfo field the row header, and the ProdDesc field the column header, and the Sales field the table cell value.
HTH,
Carl -
Value for a parameter based on another parameter value
Hi all,
i am using report 6i and 10g db.
I have to create a report based on some parameter values. For example
Two parameter named as P_emp_code and P_emp_name
In the first parameter p_emp_code has list of values like empcode emp_full_name ie like 0002108 Vanitha Lanet Mendez
when user select P_emp_code i want to display the fullname in p_emp_name .
I tried as follows in list of values
select emp_fullname from emp_master where emp_code=:p_emp_code
then getting error bind variable cannot be used
Please suggest a way .
Thanks
RincyHello,
The thing you are asking for set and editing the reports parameter form's value. Then i don't think you can do this by using the report parameter form.
But there are two alternatives for this task.
1. Create one form using form builder and pass the parameter and run the report from there. So, you can use the code as you showed in your first post.
2. Why don't you make this Title setting automatically? I Mean using the gender column (with decode/case condition) of same table.
-Ammad -
Duplicate Parameter Values in Report (SSAS as a Source)
I am creating a report using an SSAS Cube as the source. Within the report I'm displaying the following values:
Month
Year
District
City
Street
Total Requests
As part of this report, I'd like to provide a drop down parameter for users to select the "District" value. However, when I create the @District parameter, in the preview pane it shows duplicate values (i.e. valid values for District are 1-9, with
multiple cities assigned to each district. My drop down displays the value "1" several times, one per each city, and so on and so forth).
What I'd like to do is only display the distinct values of District in my parameter drop down. I've read through previous forum posts where it suggests creating a separate query to select the distinct values from the table, however the syntax for those posts
appears to be specific to database connections but not SSAS. (i.e. syntax given was Select DISTINCT column FROM table). This syntax doesn't appear to work with SSAS Cubes.
Could someone please offer some assistance on how I can extract the distinct values for District? Thank you in advance.Hi Gaur,
Could you assist me with the syntax of the Distinct expression please? In the example given on technet, there is a set defined, however in my case I'm using the dimension attribute as my source. For instance, if my dimension is called "LOCATION" and my attribute
is "District", would it just be "Select DISTINCT [LOCATION].[DISTRICT] from [CUBE]?
Thanks again for your help! -
In a new ssrs 2008 r2 report, I need to display 2 of the parameter values in the heading of the report. One of the parameter values in the name and customer number. The second heading value is the city and state where the particular customer is located at.
The customer table has the following values:
a. cust_id int primary-id,
b. customer_name varchar(50),
c. cust_address1 varchar (50),
d. cust_address2 varchar (50),
e. cust_city_state varchar(40),
f. cust_zip_providence varchar(30),
g. cust_country varchar(30).
Thus I need to place the paramter values of customer_name and cust_city_state that are obtained from a dropdown list in the heading.
when I try =first(customer_name) in the heading, the value is only good for the first customer name. After that, the wrong parameter value is displayed.
Thus can you tell me and/or show me code of what I can do to place the parameter values
of customer_name and cust_city_state in the heading of the report?Follow below steps,
1. Create 3 Data set.
DS1 = select * from customertable
DS2 = select distinct customer_name from customertable
DS3 = select distinct cust_id from customertable
2. Add two parameter, customer name and customer number
--------parameter 1
- supply Name property for 1st parameter
- datatype for the parameter is string
- Available value property, Select dataset DS2, Select Field Value as "Customer_Name"
--------parameter 2
- supply Name property for 2st parameter
- datatype for the parameter is string
- Available value property, Select dataset DS3, Select Field Value as "Cust_id"
3. Add a blank tablix/table.
-- Select TableRow2 and right click to add new group i.e insert group.
-- Group properties window will be openned,
-- Select Group On Expression 1st.
-- Select the parameter(Parameter1/customer name) by double clicking in the expression window
-- Select Group On another Expression 2nd.
-- Select the parameter(Parameter2/Cust Id) by double clicking in the expression window
-- Now in the general tab you need to checked "Repeat Group Header"
-- press ok to close the group properties window.
4. Now from DS1 drag the field City and State in TableRow3 columns.
5. Drag the Customer Name and Customer Id/Number in TableRow1.
6. In case if First(Fields!CustomerName) appears then remove First function as simply "Fields!CustomerName". Similarly for Customer Number.
7. Finally we need to set the filter condition of the table property. Open the table property by right clicking. On the "Filter" tab choose the expression as "Fields" items and double click "CustomerName" to add in the expression. Similarly add second
field "CustomerNumber" in the expression. Check the operator "=" and choose the value as "Parameter" items respectively.
Regards, RSingh -
How to assign the parameter value in form2 while passing it from form1
Hi
I have two forms,form1 is calling form2 passing a parameter client_id. If for that client_id form2 has any record it is displaying fine but if there is no record for the passing client_id , form2 could not get assigned to that client_id automatically. I want to get that parameter value in form2 so that I can add a new record (detail table). Please help!!
SumitaIn your servlet you can read directly the file using request.getInputStream().
In this way you get the InputStream of the file selected by the user.
I hope this help you. -
Invalid parameter value Error while Extending PoReqDistributionsVO
Hi,
My Requirement is to restrict user from enetring certain values in a field in iProcurement Page based on some condition. The attribute on which I have to place the validation is CodeCombinationId and the VO name is PoReqDistributionsVO. So, I extended the VO and generated the VORowImpl class for the extended VO. Please note that I have extended the VO just to override the setter method for the CodeCombinationId in the VORowImpl. I did not change any other thing on the VO. Once I deploy the code, I am getting the following error for the first time:
## Detail 0 ##
oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value PoReqDistributionsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
And then if I try to open the page again, it gives me multiple distribution lines. (Say for example I have only one distribution line for the requistion line and my distribution table PO_REQ_DISTRIBUTIONS_ALL has total 20 records, then all the 20 records are getting displayed in the front end.)
So, clearly after I extended the VO, the viewlink is not able to identify the viewlink.
I went through the following thread:
oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value
As suggested in the therad, I thought of copying all the view link related methods from the original VO files. But, I could not get any Viewlink related information in any of the three seeded files PoReqDistributionsVO.xml, PoReqDistributionsVOImpl.class and PoReqDistributionsVORowImpl.class. But I can find one View Link oracle.apps.icx.por.req.server.ReqLineToDistributionsVL in teh server which is linking PoRequisitionLinesVO to PoReqDistributionsVO.
Could anyone suggest me what I need to do to resolve the issue.
Edited by: 892480 on Oct 20, 2011 8:13 AMHi Gurus,
Any suggestion on the above issue?
Maybe you are looking for
-
How can I send a whole ITunes library from one computer to another? AIM
Okay, I am trying to send a whole library of roughly 800 songs using Aol Instant Messenger. I have tried many different ways, sending the ITL file, the itunes 4 music library. When I tried these and replaced the library with it, it worked, but didn't
-
Best practice for batch id access
I'm not sure if this is the right place to post this so here it goes. I have a client who wants to have a super user create background jobs. These jobs will be assigned to a specific generic id (ex. BATCH_FI). The client only wants to give FI-CO acce
-
Hello I bought Nokia 6120 Classic 2 days ago. I like it very much. It's fast, small with good display! BUT I'm very disappointed! It seems this phone has hardware problem - a lot of colored vertical lines appears on the display if it's in idle mode f
-
How to set focus in text box at server side
Hi, I have small problem , i have a text box in form , which is get validated at server side in servlet , if it found some thing wrong then it throws exception , i want that when an exception is thrown it should set focus for that perticular text box
-
Just installed--not working. saya I still have OS X 10.5.8
Help, friends, please. Should I just try installing it again?