Setting value for attribute 'PO_NUMBER_SOLD' using setter method
Hi Experts,
I need to set the value of a screen field according to some condition. I am using setter method of this attribute to set the value but it is not getting changed.
I have written following code in DO_PREPARE_OUTPUT method of implementation class ZL_ZZBT131I_ZCREDITCHECK_IMPL using setter method of attribute
Get Referral Authorization Code
lv_val1 = me->typed_context->crechkresph->get_po_number( attribute_path = 'PO_NUMBER' ).
me->typed_context->crechkresph->set_po_number( attribute_path = 'PO_NUMBER'
value = ' ' ).
while debugging I found that in method set_po_number set_property method has been used:--
current->set_property(
iv_attr_name = 'PO_NUMBER_SOLD' "#EC NOTEXT
iv_value = <nval> ).
In set_property method following code is getting executed
if ME->IS_CHANGEABLE( ) = ABAP_TRUE and
LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY.
if <VALUE> ne IV_VALUE.
if ME->MY_MANAGER_ENTRY->DELTA_FLAG is initial.
first 'change' -> proof that entity is locked
if ME->MY_MANAGER_ENTRY->LOCKED = FALSE.
if ME->LOCK( ) = FALSE.
return.
endif.
endif.
flag entity as modified
ME->MY_MANAGER_ENTRY->DELTA_FLAG = IF_GENIL_CONTAINER_OBJECT=>DELTA_CHANGED.
endif.
ME->ACTIVATE_SENDING( ).
change value
<VALUE> = IV_VALUE.
log change
set bit LV_IDX of ME->CHANGE_LOG->* to INDICATOR_SET.
endif.
else.
check if it is a real read-only field or a display mode violation
assert id BOL_ASSERTS subkey 'READ-ONLY_VIOLATION'
fields ME->MY_INSTANCE_KEY->OBJECT_NAME
IV_ATTR_NAME
condition ME->CHANGEABLE = ABAP_TRUE.
endif.
and in debugging I found that if part ( ME->IS_CHANGEABLE( ) = ABAP_TRUE and
LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY) fails and hence else part is getting executed and hence my field a real read-only field or a display mode violation is happening according to comments in code.
What shall I do so that I would be able to change the screen field value?
Any help would be highly appreciated.
Regards,
Vimal
Hi,
Try this:
data: lr_entity type cl_crm_bol_entity.
lr_entity = me->typed_context->crechkresph->collection_wrapper->get_current( ).
lr_entity->set_property( iv_attr_name = 'PO_NUMBER' value = '').
Also, make sure the field is not read-only.
Regards
Prasenjit
Similar Messages
-
How to set value for Dropdown control using Querystring filter wepart
Hi,
I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
I am able to set value for textbox control using Query String Filer web part.
But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
How to load the values in dropdown control on form load and set a value using Query String filter webpart?
Thanks,
dhijitHi,
According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
Now it would be filter by the value you have set.
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
How to set value for trim and bleed using jsx script?
I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
Following is the code I am trying with:
var _saveName = new File ( root_path +_strFileName+".pdf");
var _saveOpts = new PDFSaveOptions();
_saveOpts.printerResolution = 300;
var bleedarray = new Array();
bleedarray[0] =9.00;
bleedarray[1]=9.00;
bleedarray[2]=9.00;
bleedarray[3]=9.00;
_saveOpts.bleedOffsetRect = bleedarray;I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds. -
Using HttpHeader to set value for session variables
Hi,
We want to set values for 2 session variables (USER and ROLEID) using HttpHeader in obiee 11g. Has anyone tried this? How can we achieve this?
I found the below note on the forum for setting value for the USER session variable. how can we set the ROLEID session variable also? is it possible to set values for 2 variables?
for setting the USER session variable,
You should add this in $BI_HOME/bifoundation/web/display/authenticationschemas.xml:
<SchemaKeyVariable source="httpHeader" nameInSource="Proxy-Remote-User" forceValue="SSO"/>
<AuthenticationSchema name="SSO" displayName="Single Sign On" userID="IMPERSONATE" proxyUserID="NQ_SESSION.RUNAS" options="noLogoffUI noLogonUI">
<RequestVariable source="httpHeader" type="auth" nameInSource="Proxy-Remote-User" biVariableName="IMPERSONATE" options="required"/>
</AuthenticationSchema>
Please suggest.
Thanks.I think maybe your SnmpValue type or value is not corrent.
1.3.6.1.4.1.7064.201.1.200.100.0 is Enum control type
when I use
SnmpValue val = new SnmpString("0");
It doesn't work, but when I use
SnmpValue val = new SnmpInt(0);
It works. I think the JDMK should give some warning message when the type is not correct. :)
The code is following:
final SnmpVarBindList setList = new SnmpVarBindList(" set varbind list ");
SnmpOid oid = new SnmpOid("1.3.6.1.4.1.7064.201.1.200.100.0");
SnmpValue val = new SnmpInt(0);
SnmpVarBind valueBind = new SnmpVarBind(oid, val);
setList.addVarBind( valueBind );
SnmpRequest setRequest = session.snmpSetRequest(null, setList); -
Get values from attributes of property sets
Hi!
Anyone know how to obtain values of attributes from property sets? Now I am using directly the EJBs but I would like to use tags (I found <ps:getPropertyNames> but it doesn´t give me the values) Any idea?
Thanks,
GuillermoGuillermo:
I am not sure if this is exactly what you mean but you can get the values of properties with the user management tags <um:getProperty> and <um:getPropertyAsString>. You are correct, though, in that the
<ps:getPropertyNames> tag only returns the names of the properties.
Ted
Guillermo wrote:
Hi!
Anyone know how to obtain values of attributes from property sets? Now I am using directly the EJBs but I would like to use tags (I found <ps:getPropertyNames> but it doesn´t give me the values) Any idea?
Thanks,
Guillermo -
SAP BEX Analyzer Set values for variables
Please help us out in sorting out this problem,
We are automating BEx Analyzer for a Testing Project with Quick Test Professional (QTP) a functional automation tool uses VB script.
Problem:
There are 5 steps in automation
Invoke BEx Application
Log in to BEx server
Run Query
Set values for Variables for Query
Display Report
We are able to do 1,2,3 steps using BEx API functions and running BEx macros but we struck up with 4th step,
1. Invoke BEx Application
Launch Excel
Dim app
Set app = createobject("Excel.Application")
Make it visible
app.Visible = true
Attach add-in to Excel file
app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SetStart")
2. Log in to BEx server
Login to Bex server
Function logonToBW(app)
Dim myConnection
Dim logonToBW2
On Error Resume Next
logonToBW2 = True
' Create logon to system with following user and system details
Set myConnection = app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! SAPBEXgetConnection")
With myConnection
.client = "600"
.User = "USERNAME"
.Password = "Welcom123"
.Language = "en"
.systemnumber = "00"
.System = "BWDCLNT600"
.systemid = "BWD"
.ApplicationServer = "156.158.7.161"
.SAProuter = ""
.Logon 0, true
If .IsConnected = 0 Then
.Logon 0, False
If .IsConnected <> 1 Then
MsgBox "Automatic logon failed. Please enter your username and password in the next screen ..."
Exit Function
End If
End If
End With
' Run connection query to see if connected
app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXinitConnection")
logonToBW2 = True
End Function
3. Run a Query
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! runQuery", "ZZCCA3_M01_Q0003"
Till here the script is running fine then the Select values for Variables window is displayed.
This is where exactly we struck up; in this window we need to select values.
Name of the Fields
Field Name Technical name of characteristic Variable Name Value
1 Company Code 0COMP_CODE ZM_COMPCODE 1000
2 Cost Center Hierarchy 0COSTCENTER ZS_CCTRN 1000MDON
3 Cost Center Node 0COSTCENTER ZS_CCTRN 1000COP
4 Cost Element 0COSTELEMENT ZS_COELN 1000GDON_6999
5 Fiscal Year 0FISCYEAR 0P_FYEAR 2007
To select values for variables, we are trying below code but its giving an error,
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 1000, "0COMP_CODE"
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 1000MDON, " 0COSTCENTER "
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 1000COP, "0COSTCENTER"
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 1000GDON_6999, "0COSTELEMENT "
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 2007, " 0FISCYEAR"
Any help highly appreciated, thanks in advance.Hi Reinhard,
Pleas look at this:
Passing a range to SAPBEX.XLA!SAPBEXSetFilterValue
Best regards,
Eugene -
Setting values for non-displayed fields on a Tabular Form
I'm having a problem setting non-displayed fields on the same table as displayed fields like last_update_date, last_updated_by, id's and other fields when creating new records or updating existing records in a Tabular form.
What is the best and easiest way to set these values without using database triggers?Hi Jes,
I'm a little reluctant to use database triggers as I used this product a couple of years ago and I'm fairly sure I handled this problem in HTML DB without the use of triggers. I am therefore I'm getting a touch frustrated that I can't remember how to do it now !!
Do you know of any way of setting values for non-displayed fields on a Tabular Form without using database triggers?
Also, you seem to be suggesting that database triggers is the best way to do this?
Thanks -
Which are the setting values for the Virtual CTI Driver? (Siebel Communica)
hi everybody,
the application I'm using is Siebel Communications 8.1.
I am learning about integration processes with the Siebel Communications Server Administration Guide. One of the points or topics there is the use of the Virtual CTI to integrate your Siebel Business Applications with Oracle Contact Center Anywhere (as in the bookshelf described).
I've read, with this driver agents can access communications functionality using the communications toolbar.
The Virtual CTI is a driver provided by Oracle. You can't see it listed on the Administration -> Communications ----> Communications Drivers and Profiles. So I guess it is important to add this driver to the list.
I have questions about that:
1. Should I add this driver to the list? or when can I do that?
2. Which are the setting values for the mentioned driver?
- Communications Channel?
- Inbound Yes
- Outbound Yes
- Interactive
- Channel string
- Library name
Could anybody help me? I would appreciate that.
RegardsThanks for the reply KT.
I am not sure how to set a new custom style, but will look it up. If you have a url that points to the topic I would appreciate it.
Thanks,
Rhek -
NSInvalidArgumentException : Attempt to set value for immutable property
I get "An unexpected error has occurred. Please quit and reopen Keynote." EVERY time I try to copy a slide and change the master that controls it. Console says "Exception caught by top level: NSInvalidArgumentException : Attempt to set value for immutable property moviePoster." I'm not using any 3rd party themes. Advice from anyone?
You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
Also, you can try navigating to different train stops programmatically.
Check: 082. How-to programmatically navigate ADF train models
in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html -
Setting values for items other than default value
How can I set the value of Items (hidden item, display item etc) without using any of navigational control such as list, select list or tree?
I have a two report region on a page and no navigation control. the requirement is only one region should be displayed at one point of time.
Condition that drives this are passed from other page through links.
The code is like this
For Region A
select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOE
For Region B
select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOHNnow there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
for e.g.
for region A
value in expression1 = expression2
P_HIDDEN = 1
for region B
P_HIDDEN = 2my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
Thanks,
R
now there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
for e.g.
for region A
value in expression1 = expression2
P_HIDDEN = 1
for region B
P_HIDDEN = 2
my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
Thanks,
R
Edited by: Rich V on May 21, 2010 10:41 PMThe question I would ask is:
How are you determining which region you want to be displayed by default?
Either way, you could potentially use a 'before header' computation to calculate the value of your hidden item, although you'd also need to include some sort of conditional means of preventing the computation from running everytime to run the page (otherwise you'd never see your other region) e.g. you might only want it to run if the hidden item is null. -
How to set value for radio button in sap crm survey suite
Hi ,
I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
Thanks & Regards,
SeshuHi,
I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
Regards,
Seshu -
How to set value for selectOneChoice
Hello,
How to set value for selectOneChoice defined as:
<af:selectOneChoice label="Label" id="soc1" binding="#{DepositorMergingBean.socSurnameComponent}">
<f:selectItems id="si1" value="#{DepositorMergingBean.socSurnames}"/>
</af:selectOneChoice>
where socSurnames is List<SelectItem> - manually filled list of SelectItem(SomeObject, (String)text_description), so - SOC is filled manually (no binded iterators, etc..)
Neither socSurnameComponent.setValue( new Integer(0) ) nor socSurnameComponent.setValue( socSurnames.get(0) ) do not help.
Thanks in advance.this.selectOneChoice.setValue(selectItems.get(2).getValue());Try as per the following sample:
SelectOneChoiceTest.JSPX:
<af:form id="f1">
<af:selectOneChoice label="Select One Choice" id="soc1"
binding="#{SelectOneChoiceTestBean.selectOneChoice}">
<f:selectItems value="#{SelectOneChoiceTestBean.selectItems}"
id="si1"/>
</af:selectOneChoice>
<af:commandButton text="Set Selected Value" id="cb1"
actionListener="#{SelectOneChoiceTestBean.onClick}"/>
</af:form>
SelectOneChoiceTestBean.java:
import java.util.ArrayList;
import java.util.List;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
public class SelectOneChoiceTestBean {
private RichSelectOneChoice selectOneChoice;
public SelectOneChoiceTestBean() {
super();
private List<SelectItem> selectItems;
public void setSelectItems(List<SelectItem> selectItems) {
this.selectItems = selectItems;
public List<SelectItem> getSelectItems() {
selectItems = new ArrayList<SelectItem>();
selectItems.add(new SelectItem("One", "One"));
selectItems.add(new SelectItem("Two", "Two"));
selectItems.add(new SelectItem("Three", "Three"));
return selectItems;
public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
this.selectOneChoice = selectOneChoice;
public RichSelectOneChoice getSelectOneChoice() {
return selectOneChoice;
public void onClick(ActionEvent actionEvent) {
this.selectOneChoice.setValue(selectItems.get(2).getValue());
Thanks,
Navaneeth -
Default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch
Hi Gurus,
Requirement is to set default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch when user clicks on Corporate Account.
Below is code that i have written in DO_PREPARE_OUTPUT.
Code is working fine and in the debug also i can see the value of COUNTRY is set to DE, but it is not showing on the screen for first time but when i load component second time(Refresh the screen), it shows me value.
Any help would be appreciated. If somebody has otheralternative kindly share.
CALL METHOD super->do_prepare_output( iv_first_time = iv_first_time ).
Calling Super Method
CALL METHOD super->do_prepare_output
EXPORTING
iv_first_time = abap_true.
Data Declatation
DATA :lr_col TYPE REF TO if_bol_bo_col,
lr_current TYPE REF TO if_bol_bo_property_access,
lr_param TYPE REF TO if_bol_bo_property_access,
lr_qs TYPE REF TO cl_crm_bol_dquery_service,
lv_attr_name TYPE name_komp,
lv_sign TYPE bapisign,
lv_option TYPE bapioption,
w_country_exist TYPE c,
w_param TYPE string,
w_value TYPE string,
w_flag TYPE c.
Getting SEARCH Context Node
lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
Get Selection Parameters
lr_col ?= lr_qs->get_selection_params( ).
Start from first parmaters
lr_current = lr_col->get_first( ).
Clearing Variables
CLEAR : w_country_exist, w_flag, w_param, w_value.
Loop till we have selection paramters
WHILE lr_current IS BOUND. " While loop 1
checking attribute name is COUNTRY then setting some variable
w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
CASE w_param.
WHEN 'COUNTRY'.
If country is filled then setting variable
w_value = lr_current->get_property_as_string( 'LOW' ).
IF w_value IS NOT INITIAL.
w_country_exist = abap_true.
ENDIF.
When we got COUNTRY attribute then setting flag
w_flag = abap_true.
ENDCASE.
Calling next parameter
lr_current = lr_col->get_next( ).
ENDWHILE. " While loop 1
In below block we are checking is COUNTRY attribute is blank and
we have found COUNTRY attribute in current selection paramters
IF lr_qs IS BOUND. " SEACRCH CONTEXT BOUND
If vairable is blank means DE or any other value is not filled in COUNTRY Attribute
IF w_country_exist IS INITIAL. " w_contry_exist
We have to add selection attribute if we come accross COUNTRY attribute during our search
IF w_flag EQ abap_true. " w_flag
Adding COUNTRY attribute with default value 'DE'
lr_qs->add_selection_param( EXPORTING iv_attr_name = 'COUNTRY'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = 'DE' ).
ENDIF. " w_flag
ENDIF. " w_contry_exist
ENDIF. " SEACRCH CONTEXT BOUND
In below block we will remove COUNTRY attribute when it has blank value
IF lr_qs IS BOUND AND w_country_exist IS INITIAL.
lr_current = lr_col->get_first( ).
WHILE lr_current IS BOUND.
w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
CASE w_param.
WHEN 'COUNTRY'.
w_value = lr_current->get_property_as_string( 'LOW' ).
IF w_value IS INITIAL.
lr_col->remove( iv_bo = lr_current ).
ENDIF.
ENDCASE.
lr_current = lr_col->get_next( ).
ENDWHILE.
ENDIF.
Edited by: Harsharandeep Singh on Apr 28, 2011 3:44 PMHi,
Try it like this:
DATA:
lr_bo TYPE REF TO if_bol_bo_property_access ,
lv_attr_name TYPE name_komp.
FIELD-SYMBOLS:
<ls_param> TYPE crms_thtmlb_search_criterion.
READ TABLE parameters
ASSIGNING <ls_param>
WITH KEY field = 'COUNTRY'.
IF ( sy-subrc = 0 ).
<ls_param>-value1 = ip_pfct.
ENDIF.
CHECK ( me->parameter_collection IS NOT INITIAL ).
lr_bo = me->parameter_collection->get_first( ).
WHILE lr_bo IS BOUND.
CALL METHOD lr_bo->get_property_as_value
EXPORTING
iv_attr_name = 'ATTR_NAME'
IMPORTING
ev_result = lv_attr_name.
IF lv_attr_name EQ 'COUNTRY' .
CALL METHOD lr_bo->set_property
EXPORTING
iv_attr_name = 'LOW'
iv_value = 'DE'.
EXIT.
ELSE.
lr_bo = me->parameter_collection->get_next( ) .
ENDIF.
ENDWHILE .
Kind regards,
Micha -
Issue in creating limits value for service PR using BAPI_REQUISITION_CREATE
HI Experts
I am creating a service PR using bapi bapi_requisition_create.I am able to create service PR successfully, but I am not able to set value for overall limit and the Expected value.
I am passing the limits values through bapi, but when I am trying to display those value in the limits tab in ME53N, it gives dump.
Please suggest how can I set the limits value.
regards
AshwiniCould Ashwini or anyone else please suggest how this issue was resolved? I am using BAPI_REQUISITION_CREATE, but the limits I enter in the REQUISITION_LIMITS table, do not get saved, although the Purchase Requisition itself gets created.
-
How to create an instance for RemoteSession without using create() method
How to create an instance for RemoteSession without using create() method?
What's RemoteSession? Not in the JDK. And does the question have anything to do with concurrency?
Maybe you are looking for
-
How do i install the new mac app store
I did my software update like the apple website instructed but the mac app store is still not popping up. I also checked my applications under finder and found the same result. Is there a way to get the mac app store on my 2008 macbook or is my model
-
Where is the "Update All Apps" in iTunes
I cannot locate it anywhere & updating apps one-by-one on all devices is cumbersome (iPad 1, iPad 3, iPod Touch, iPhone 4S white & iPhone 4S black)!
-
Greetings all! Working in CS3. I'm writing a script in which I want to reference every paragraph in every text frame from a particular page to the end of the document. Given that neither the Document or Page objects have Text objects I'm thinking the
-
Can't locate iTunes Radio after installing iOS 7
Hello, I have recently upgraded my iPhone 5 to iOS 7. When i click the "Music" Icon in the bottom, It shows me blank screen & can't see iTunes Radio. Is this iTunes Radio restricted to US region? I am using non-US iTunes Account, is that could be the
-
How do I read or change TimeStamp in log files?
We have deployed BIPublisher 10.1.3.4 EAR into OC4J container. I am seeing the following timestamp in BI log files.. [010909_032352774][][STATEMENT] [org.quartz.jobStore.isClustered]=[false] [010909_032352774][][STATEMENT] [org.quartz.jobStore.misfir