Changing values of a restricted KF at runtime
Hi Gurus,
I know that we can restrict the value of a charc. IO at "filters", in "Default Values".
Later at the run time in the BEx explorer, we can right click over the cells and select the option "Select Filter Value" to change our selections at report output.
Now, i want to create a Restricted KF and then restrict it with the characteristic values.
At the report output i need to change the value with which it is restricted.
Example: A RKF is resticted with material color infoobject with value "BLUE". After the report ouput i wish to change the value from "BLUE" to "RED".
I tried but could not do it, if i right click over the RKF and chosse "Select Filter Value" it shows only the list of KF's available at the report output level.
Please correct me if i am wrong
Hi,
RKF serves different purposes. Filter does the filter before the query output is executed.
Since you to change at the output level,
I am taking the same example as you have mentioned.
You create a variable for infobject material colour. And input the colour in the seletion screen.
First time, you enter RED it returns the output for RED colour.
Then, click on the "Change variable value" option, then it will take you back to selection screen where you can change the colour to BLUE. Then EXECUTE.
It will return the values of BLUE.
I hope it helps.
Thanks.
Similar Messages
-
Change values in File physical schema during runtime?
Is there any way to change the Directory in physical schema
during runtime?
This is needed so that we can dynamically get the files from
different locations.
Any help is highly appreciated.Hi,
Yes there is:
Create your physical schema to a parent directory and, at Physical Resourse (File Datastore) use a variable before the name of the file.
Compose the variable with the "child" directory. I like to create the path on execution time.
Does it help you? -
How to change value of instance variable and local variable at run time?
As we can change value at run time using debug mode of Eclipse. I want to do this by using a standalone prgram from where I can change the value of a variable at runtime.
Suppose I have a class, say employee like -
class employee {
public String name;
employee(String name){
this.name = name;
public int showSalary(){
int salary = 10000;
return salary;
public String showName()
return name;
i want to change the value of instance variable "name" and local variable "salary" from a stand alone program?
My standalone program will not use employee class; i mean not creating any instance or extending it. This is being used by any other calss in project.
Can someone tell me how to change these value?
Please help
Regards,
Sujeet SharmaThis is the tutorial You should interest in. According to 'name' field of the class, it's value can be change with reflection. I'm not sure if local variable ('salary') can be changed - rather not.
-
How to change the name of (Guided procedure) GP Runtime View?
Hello all!
At Design time in GP (Guided Procedure), I have added a runtime view at the tab "Runtime Views" named Additional Resources to a GP process. At runtime, when the process is started, at the left bar appears the button "Additional Resources". Is there a way to change this name? Any idea can be helpfull :).
Kindly Regards,
LuizaHi,
an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
First create block and add items
The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
Set into items the column name property to col1 , col2 ...
At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
in this way you can change the source of column value.
Caution because if you change value type from varchar2 to date you must cast date into varchar2.
May be that this way is valid only for view data not for insert-update, i don't remember.
bye
Message was edited by:
Killernero -
How to set value of "Entity" in entityMap at runtime for attachmentTable
Hi,
I am using attachmentTable item on my OA page. As per the standard functionality, attachmentTable should have entityMap defined for it and its property "Entity" should be given some value to define primary key relationships.
Now, Is there any way by which I can assign value of this "Entity" property at runtime thru my code? or can I change the value of it at runtime? All I want to achieve is generate a unique Entity key depending on the person accessing that attachment page.
Please provide some inputs.
Thanks,
-Ajay ManglaniHi Ram,
Thanks for your inputs. Yes, my aim is to create this entityid programmatically. Actually, I am declaring the entityid in entityMap first and then assigning some other value to it by "setEntityId" property of attachmentbean in my controller code. but the attachments are still stored with initial entityid only.
I am thinking of creating the entityid something like this :
String myEntityid = "WF"+EmpId+PersonId;
Can you please point me how I can achieve this? and is the property "setEntityId" correct for this purpose or is there any other property to be set?
would highly appreciate your help.
Thanks,
-Ajay Manglani -
hi all,
When i will get situation for RZ11 option(change values) for the changing values of work-process parameters ?
rz11>in that search option we get one workporcess of documentation over there beside of that when we get change value option?
Regards,
VardhanVardhan,
You need to modify the work process in RZ10 or OS level.
The only way to add work process during system runtime without restart is Dynamic Work Process using the parameter RZ11 - rdisp/dynamic_wp_check=TRUE and you need kernel version 7.20 or 7.30
Refer to below link on how to implement
http://help.sap.com/saphelp_nwpi71/helpdata/en/46/c24a5fb8db0e5be10000000a1553f7/content.htm
http://www.youtube.com/watch?v=5Xs3pJ-f844
Regards,
Arjun -
Changing value of a field in mapping as per condition
Hi Experts,
I have one requirement in IDoc mapping to EDI structure.
I want to change the value of a field depending on the condition. But the problem is the field is mapped at higher level than the condition.
For example:
Say i have a source structure in IDoc with name Source1 and target structure Target1. Source1 is mapped to Target1. Both of these structures have multiple occurances. So in general out structure will look something like below:
Source1-> Target1
Source2->Target2
Source3->Target3
Now i want to change value of one field from Target1 structure depending on Value of one field from Source3. At the runtime when Target1 structure is getting filled Source3 value is not visible so I am not able to set a proper condition.
When at lower level we get value of Source3 can we change value of already filled structure Target1?
Thanks,
AtulHi Aamir,
Thanks for your reply.
If possible can you give any sample code for this kind of UDF?
Thanks,
Atul Patil -
The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting. (Restrictions are not on.) Do you know where I go to change the setting to allow me to "always allow" cookies?
Hi lisaarnett111,
If you are having issues turning on Always Allow for cookies in Safari on your iPad, you may want to check to make sure that you don't have Private Browsing enabled, as noted in the following article:
Turn Private Browsing on or off on your iPhone, iPad, or iPod touch - Apple Support
Regards,
- Brenden -
Change value of a typedef in parallels to another running action
Hello,
Well, I have a problem with my VI.
To summarize I use a Vi « IdsVg.vi » to achieve some measurements process.
This one uses an action engine as a sub-vi to store data of the front panel and to precede complementary actions. The front panel is a strict typedef…
I programmed the Vi avoiding to use sequence structures in order to be able to do other actions on the front panel in parallels. Nevertheless I’m running out of ideas for solving my problem.
The problem:
I would like to change values (time constant, Boolean of graph) of the front panel at any instant when the main vi is running. The actual problem is: when I start the program, using register event I can change values of the front panel, but when the program is running the while loop in which it gets the measurement, it isn’t possible to change parameter of the front panel…
Is there a solution or a trick??
Thank you for help
Attachments:
MyProblem.lvproj 10 KBPutting in the project file does not help much, good try though. The actual files are missing though, so nothing shows up.
I suggest you create a separate producer consumer loop in your main vi. The vi retrieving the data could pass the relevant data (producer) and the consumer loop will then process the data and update the fron tpannel. Note, only the producer consumer loop will update the front pannel.
You would not need a sequence structure to control the update. The producer consumer loop will only execute when you provide the necessary data. -
Getting change values from a collection
Title says it all. I have a collection connected to a
datagrid and have a simple form that allows me to add/modify/delete
entries from the collection. Now I want to send the changes to the
collection back to the server. How do I read/parse the collection
for these changes? Examples would be helpful. Below is what I have
so far to examine the collection (found elsewhere) how do I extract
the name/value pairs that have changed?
public function
collectionEventHandler(event:CollectionEvent):void {
switch(event.kind) {
case CollectionEventKind.ADD:
addLog("Item "+ event.location + " added");
break;
case CollectionEventKind.REMOVE:
addLog("Item "+ event.location + " removed");
break;
case CollectionEventKind.REPLACE:
addLog("Item "+ event.location + " Replaced");
break;
case CollectionEventKind.UPDATE:
addLog("Item updated");
break;
}ArrayCollection supports the length property, so you can
simply iterate over it with a for loop and use the bracket notation
to return each item. Build the structure you want to sent, then
away you go.
If you are wanting to only select changed values, you will
have to track this yourself.
Tracy -
How to get all property names and values of an bean instance at runtime?
How can I get all property names and values of an bean instance at runtime?
(The class of the bean instance is dynamic and I can not know before I write the code .)Look at Class. It has a way to get at all public methods and attributes.
If you need to get to private attributes you can do what the Introspector does and expect the methods to follow the Bean pattern and pull the attributes out based upon that. Privates are all hidden from direct access but through the Bean Pattern they can be figured out. -
While trying to change a BOM with transaction CS02, a runtime error appears
While trying to change a BOM with transaction CS02, a runtime error appears.
In intial screen he entered material ,plant BOM usage and date valid from after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
Developer trace
ABAP Program SAPLKED1_WRITE_CE4_BPS1 .
Source LKED1_WRITE_CE4_BPS1U01 Line 30.
Error Code SAPSQL_ARRAY_INSERT_DUPREC.
Module $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
Function HandleRsqlErrors Line 775.
RABAX: level LEV_RX_STDERR completed.
RABAX: level LEV_RX_RFC_ERROR entered.
RABAX: level LEV_RX_RFC_ERROR completed.
RABAX: level LEV_RX_RFC_CLOSE entered.
RABAX: level LEV_RX_RFC_CLOSE completed.
RABAX: level LEV_RX_IMC_ERROR entered.
RABAX: level LEV_RX_IMC_ERROR completed.
RABAX: level LEV_RX_DATASET_CLOSE entered.
RABAX: level LEV_RX_DATASET_CLOSE completed.
RABAX: level LEV_RX_RESET_SHMLOCKS entered.
RABAX: level LEV_RX_RESET_SHMLOCKS completed.
RABAX: level LEV_RX_ERROR_SAVE entered.
RABAX: level LEV_RX_ERROR_SAVE completed.
RABAX: level LEV_RX_ERROR_TPDA entered.
RABAX: level LEV_RX_ERROR_TPDA completed.
RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
RABAX: level LEV_RX_END entered.
RABAX: level LEV_RX_END completed.
RABAX: end RX_RFC
In sm21
Perform rollback
Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
Short dump "090618 110101 donalda 11557 " generated
Runtime Error SAPSQL_ARRAY_INSERT_DUPREC
Exception CX_SY_OPEN_SQL_DB
Occurred on 18.06.2009 at 11:01:01
The ABAP/4 Open SQL array insert results in duplicate database records.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
neither
caught nor passed along using a RAISING clause, in the procedure
"RKE_WRITE_CE4__BPS1" "(FUNCTION)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
If you use an ABAP/4 Open SQL array insert to insert a record in
the database and that record already exists with the same key,
this results in a termination.
(With an ABAP/4 Open SQL single record insert in the same error
situation, processing does not terminate, but SY-SUBRC is set to 4.)
How to correct the error
The exception must either be prevented, caught within the procedure
"RKE_WRITE_CE4__BPS1"
"(FUNCTION)", or declared in the procedure's RAISING clause.
To prevent the exception, note the following:
Use an ABAP/4 Open SQL array insert only if you are sure that none of
the records passed already exists in the database.
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
"SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
"RKE_WRITE_CE4__BPS1"
If you cannot solve the problem yourself, please send the
following documents to SAP:
1. A hard copy print describing the problem.
To obtain this, select the "Print" function on the current screen.
2. A suitable hardcopy prinout of the system log.
To obtain this, call the system log with Transaction SM21
and select the "Print" function to print out the relevant
part.
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, you can either use the "PRINT" command in the editor or
print the programs using the report RSINCL00.
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.Hi ,
you are getting beacuse u are trying to do mass update to database.
Please check that below note are applicable to your system.
Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
Note 869534 - AFS MRP doesn't work properly with all BOM item categories
Thanks Rishi Abrol -
Smartview 11.1.2.5- Cannot change value in Text-List Dropdowns- Excel Crashes
Using latest/greatest Smartview with 64-bit Office and Windows 7. I have a native essbase app utilizing text-lists. I am trying to update text-value through smartview. Smartview automatically produces a drop down to select a value from the linked text-list. However- as soon as a different value is entered or selcted in this cell with the drop-down list- Excel crashs. I have reproduced this consistently everytime. I have no way to change values for text-measure accounts linked to text-lists. I feel this is and incompatabiliyt issue with office 64-bit.
SmartView using the forms. It appears this issue has been logged as issue number 6566082 as seen here: http://docs.oracle.com/cd/E17236_01/epm.1112/readme/sv_1112200_readme.html
But I can't seem to find out where I can get information on the status of this issue and whether it's been patched in future versions. -
How to capture changed value in ALV Grid
Hi Guys,
I have an ALV grid report where I have 'Edit On' for one of the quantity fields in the report. How do I capture the new (changed) value in the suboutine for user command when user changes the value in the report and clicks on a button ?
Points assured for helpful replies.FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM...........
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data
ENDFORM.
Also chk the blog
/people/community.user/blog/2007/01/10/displaychange-mode-of-editable-fields-in-alv-using-function-modules-but-not-custom-containers -
Not able to get changed values in the SAVE EVENT in ServHPartnerDet view
Hi Experts,
I am new CRM WEB IC, i have requirement like need to access four IBASE fields from BupaIbaseDetail and need to display those fiedls in ServHPartnerDet view. I am able display the fields and its values in the target view. But when user press change button and changes those four fields and press save button not able get the changed values in to the SAVE EVENT.Anyone please help me in this.
IBHEADER , IBASEADDRESS are the CONTEXT NODE CREATED in target view. I have binded IBHEADER to CuCoIbase custom controller and getting four fields data from IBASEADDRESS. below is the code for CREATE_CONTEXT_NODES.
METHOD create_ibaseaddress.
DATA:
model TYPE REF TO if_bsp_model,
coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
entity TYPE REF TO cl_crm_bol_entity, "#EC *
entity_col TYPE REF TO if_bol_entity_col. "#EC *
model = owner->create_model(
class_name = 'ZL_CRM_IC_SERVHPDET_CN00'
model_id = 'IBaseAddress' ). "#EC NOTEXT
ibaseaddress ?= model.
CLEAR model.
coll_wrapper =
ibheader->get_collection_wrapper( ).
TRY.
entity ?= coll_wrapper->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
IF entity IS BOUND.
TRY.
entity_col = entity->get_related_entities(
iv_relation_name = 'FirstLevelComponent' ).
CATCH cx_crm_genil_model_error.
ENDTRY.
TRY.
entity ?= entity_col->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
CLEAR entity_col.
IF entity IS BOUND.
TRY.
entity_col = entity->get_related_entities(
iv_relation_name = 'ComponentAddress' ).
ibaseaddress->set_collection( entity_col ).
CATCH cx_crm_genil_model_error.
ENDTRY.
ENDIF.
ENDIF.
ENDMETHOD.Code i have written in the CREATE_CONTEXT_NODE method for my custom context nodes( IBHEADER,IBASEADDRESS).
this CREATE_IBHEADER some data related to IBASE header then from this reading the IBASEADDRESS contextnode fields for displaying in the ServHPartnerDet. It is working fine but After changing the four fields values in the ServHPartnerDet view and trying to save, then context is not reading the new values it gives the old values only.
TRY.
lr_coll_wr = ztyped_context->ibaseaddress->get_collection_wrapper( ).
IF lr_coll_wr IS BOUND.
lr_entity ?= lr_coll_wr->get_current( ).
ENDIF.
CATCH cx_crm_genil_model_error.
ENDTRY.
CALL METHOD lr_entity->if_bol_bo_property_access~get_property_as_value
EXPORTING
iv_attr_name = 'BUILDING'
IMPORTING
ev_result = lw_building.
the building has got result of old value no the new value.
method CREATE_IBHEADER.
DATA:
model TYPE REF TO if_bsp_model,
coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
entity TYPE REF TO cl_crm_bol_entity, "#EC *
entity_col TYPE REF TO if_bol_entity_col. "#EC *
model = owner->create_model(
class_name = 'ZL_CRM_IC_SERVHPDET_CN01'
model_id = 'IBHEADER' ). "#EC NOTEXT
IBHEADER ?= model.
CLEAR model.
bind to custom controller
DATA:
cuco TYPE REF TO cl_crm_ic_cucoibase_impl,
cnode TYPE REF TO cl_bsp_wd_context_node.
cuco ?= owner->get_custom_controller(
'CuCoIbase' ). "#EC NOTEXT
cnode ?=
cuco->typed_context->ibaseheader.
coll_wrapper = cnode->get_collection_wrapper( ).
ibheader->set_collection_wrapper( coll_wrapper ).
endmethod.
Maybe you are looking for
-
Turned on sharing in iPhoto on my iMac. My MacBook sees all the photos but not all events or albums appear. I have many albums in several folders. Any suggestions?
-
My ipod has come up disabled and i cant get it to work for me
my ipod has come up disabled and there is no time lenght on it and cant get it to connect to my itunes for it to work
-
Hi, We have an issue wherein a resource manager is unable to view a project to which he has been assigned as a resource manager. I check his roles, BP and everything looks good. His HR reocrds look good as well. I have even re-imported his HR master
-
Appserver is installed into: c:\Program files\Sun\Appserver When trying to perform asant build for hello1 sample an error occured c:\program%20files\Sun\j2eetutorial14\examles\common\targets.xml couldn't be found and c:\program%20files\Sun\j2eetutori
-
Error when accessing Access database in ASP?
for some reason when I try to open my Access database it constantly and consistenly gives me an error message that claim the table or the query is not valid or the table cannot be found. Both the database and the table exist and are accessible with t