A Field need to be Freezed based on DFF Segment field.
Hi,
I have 4 DFF Segments on a page.
And the 1st segment is having many values including "Others" in its LOV.
The second segment (Field) is only for "Others". if some one will select "Others" from the 1st segment in that case second segment (field) should be enabled else it should be freezed.
This can be handled if it's not a DFF. Any one has faced such kind of issue.
Please suggest what can be done in this scenario.
Thanks
Bachan.
hi
can u please elaborate your requirement in a detailed manner ,if you want to freeze a DFF field on the basis of the value of other field then it is not possiblle after page rendering ,but yes if u want to do the same at time of page rendering then it is possible .
thanx
Pratap
Similar Messages
-
Sorting records dynamically in REF cursor, based upon a dynamic field
Hi,
I have a REF CURSOR built by using row type, table type and PIPELINE function. I have opened the ref cursor now. I would like to update a field called 'RANK' based upon 'RATIO' field in the REF CURSOR. i.e order the records in the ref cursor by RATIO field and then update the RANK as 1, 2, 3, 4, ....
Aim: I want to update a field in the REF CURSOR based upon another numeric field.
Please help me.
OPEN sales FOR
SELECT RANK, ratio
FROM TABLE (fngetfundholdingsale (in_primarykey, in_flag));
loop
fetch sales into sale1;
exit when sales%notfound;
--I want to update sale1.rank based upon ratio
end loop;
Thanks
AshokTry to use NDS (Native Dynamic SQL):
l_order := 'ratio';
OPEN sales FOR
'SELECT rank' ||
' FROM TABLE (fngetfundholdingsale (:in_primarykey, :in_flag))' ||
' ORDER BY ' || l_order
USING in_primarykey, in_flag;Regards,
Zlatko -
Hi,
Iam new to idocs and a functional consultant. I need to know whenever we receive the inbound idocs and if i see the segments of the inbound idoc, do the fields which i see in the segments are the sap fields.????/ for instance if the inbound idoc needs to create a sales order, then the fields of the segments of such an inbound idoc are the normal sap sales order fields ??
do i need to give functional specs to the abapers that whenever the inbound idocs is received the segments fields need to be mapped to sales order fields if such an idoc needs to create a sales order ??
regards
sachinHi Sachin,
Most of the IDoc segment fields are simmilar to SAP transaction fields e.g. most of the ORDERS IDoc segment fields will be simmilar to what you can see in VA01/VA02 screen fields.
Some fields may have different names.
In the case of few segments which may repeate in IDoc with different qualifiers (such as partner details, date segments), fields will be same but different qualifier value decides where these field values will be populated in the Order.
If you are using standard function module to create Order, it will take care of mapping IDoc segment fields to VA01/VA02 screen fields. But if it is a Z function module, then you need to specify the mapping.
Hope this information will help you.
Regards,
Mahesh Pakhale -
Need Report based on "CUSTOM DATA field @ Shop Order Maintenance"
Need the REPORT based on CUSTOM DATA field.
Requirement - I am having the CUSTOM data at Shop Order Maintenance that is called as XXX, I need some report in SAP ME which can display the SFC related to particular Shop order based on XXX Number.Hi!
As far as I remember there is no such base report. So, you may try to create it using SDK or request it as custom enhancement from SAP.
If you want to create it using SDK, you can find the required data for report in CUSTOM_FIELDS table.
Regards,
Alex. -
Need Trigger that format a field based on two other fields
Hello!
I need to write a trigger, that reads on field and made some changes to it and saves the result in an other field in the same row. The trigger should work in insert and update cases.
Does anybody can send me a frame, where i can fill my logic?
Regards
Heiko GlaeskeIn this example, column1 and column2 are the values being examined and the resultant expression is saved in column3.
create or replace trigger trigger_name
before insert or update on table_name
for each row
begin
:new.column3 := :new.column1 + :new.column2;
end;
/ -
How to create a field based on DFF on a Page
Guys,
I do have a page where I do have three user enterable columnn. I want to add one more column on the page that should be based on DFF using personalization. I do not want to click this column and then let it direct to some other region or page. I need to enter the value directly as I am entering rest of other three columns. I hope I make you understand my requirement.
Thanks
SunilHey Anand,
I have followed everything that is mentioned in the link. But I am not able to view it as a field on my page.Can you please guide me if I have forgot to follow something
App Shot Name -> WIP
Display Context Field -> True
Name -> WIP_TRANSACTION (registered Flex Field name)
Prompt -> PO Number
Read Only - False
Rendered -> true
Segment List -> Attribute1
Type -> Descriptive
View Instance -> ChargeDetailsVO
Waiting for your reply.
Thanks
Sunil -
What are the mandatory fields needed to setup/register the SIP phone manually in CUCM
What are the mandatory fields needed to setup/register the SIP phone manually.Also, if someone can let me know the mandatory fields for Cisco based SIP phone and also the third party SIP hard phones like Avaya or any other Third party SIP phones both Soft phone and physical phone requirements...in CUCM
Please suggest...I need to know if MAC address is mandatory for all Cisco SIP phone to setuphttp://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/admin/7_1_2/ccmcfg/bccm-712-cm/b09sip3p.html
http://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unified-communications-manager-version-70/112110-phone-add-00.html -
To modify a field in a database table based record identification by primar
hi
i want to to modify a field in a database table based record identification by primary key filed and two more fields
ie customer (primary key
i want to modify record from intenal table the record existing with primary key field customer
the status field needs to be mofied as " value rolled"
the below code is happening
loop at it_record into wa_Record
wa_inv-customer (primary key) = wa_Record=custome
wa_inv-date = wa_Record-date
...so one
append wa_inv to it_invest
clear wa_inv
endloop.
if not it_invest is initial
modify TABle1 ( this table is data base table which needs to be mofified) based on the primary key field
and also date field and status field which is not primary key.
regards
aroraHi there.
Your requirement is to update a Z Database table from your internal table, right? You have several options:
LOOP AT it_invest INTO wa_inv.
UPDATE dbtable
SET date = wa_inv-date
WHERE prim_key = wa_inv-prim_key
AND any_field = wa_inv-any_field.
ENDLOOP.
or
LOOP AT it_invest INTO wa_inv.
UPDATE dbtable FROM wa_inv. "if wa_inv of same type of dbtable
ENDLOOP.
In the first example, I wrote any field because you can update dbase table, filtering for fields that don't belong to the primary key. However, remember that you will change all records that respect the key you used (so, in your case, use the primary key).
Regards.
Valter Oliveira. -
Deriving 1 Value from 2 Fields Based on Values in Fields
I have a query that needs to return 1 of my values based on the values from 2 fields from 2 tables. However, the value should only be returned in 1 field and one of the fields should be evaluated first. If this first evaluated field has a certain value ('Y') then the other field is ignored.
To be more clear, per the normal query below, what I want is to somehow, if possible, combine the case t2.el_contr and case t1.contr_type statements so that one field, say: mbr_contr_type_desc returns a value.
So that if the value of t2.el_contr is 'Y' then 'SUB CHILD' is returned. It is important that this field should be evaluated first (If the value of it is 'Y' then the other field evaluation can be ignored). If this is not 'Y', then t1.contr_type should be evaluated and the values as listed below also returned to mbr_contr_type_desc.
I know the following isn't correct, but it might better illustrate what I'm trying to do (the normal query is below this)
case t2.el_contr
when 'Y' then 'SUB CHILD'
case t1.contr_type
when 'A' then '1 PARTY MALE SUB'
when 'B' then '1 PARTY FEMALE SUB'
when 'C' then '2 PARTY MALE SUB'
when 'D' then '2 PARTY FEMALE SUB'
when 'F' then 'FAMILY MALE SUB'
when 'G' then 'FAMILY FEMALE SUB'
end as mbr_contr_type_desc
In an Access query I would do the following in a column:
iif([el_contr]='Y',"SUB CHILD',SWITCH([contr_type]="A","1 PARTY MALE SUB",[contr_type]="B" etc.))
*NORMAL QUERY*
select t1.ssn
t1.type,
t1.grp_id,
t1.contr_type,
t2.el_contr,
case t2.el_contr
when 'Y' then 'SUB CHILD'
end as mbr_contr_type_desc_2,
case t1.contr_type
when 'A' then '1 PARTY MALE SUB'
when 'B' then '1 PARTY FEMALE SUB'
when 'C' then '2 PARTY MALE SUB'
when 'D' then '2 PARTY FEMALE SUB'
when 'F' then 'FAMILY MALE SUB'
when 'G' then 'FAMILY FEMALE SUB'
end as mbr_contr_type_desc_1
from member_elig t1
inner join grp_master t2 on
t1.grp_id = t2.grp_idPerfect!
Thanks, didn't know that existed. Still learning my way around pl/sql..
One other (unrelated) question..when i hit the CTRL+LEFT ARROW* button in my SQL window, it will not tab back. This is really annoying! I have looked through PREFERENCES-EDITOR and can't seem to find any setting that will allow this. Do you know of any way to change this so I can tab backwards/fowards through code in the SQL window?
Thanks for any suggestions!
*Or CTRL+RIGHT ARROW for that matter.. -
Question on populating a field based on 2 other fields
Hi,
I am looking for a solution wherein I need to populate a field (say no of days) based on the other two fields selected by the user (say date from and date to). As soon as user selects the value on "date to" field, "no of days" field should be auto-populated as the value from "date to - date from". I have tried using setter and getter methods on all three field, set valuechangelistener on date to field, set auto submit to true and in the valuechangelistener event code, I am doing the calculations as mentioned in the below snippet.
public void onChangeDateTo(ValueChangeEvent evt){
this.dtDateTo= (java.util.Date)evt.getNewValue();
this.dtDateFrom = (java.util.Date)getDateFrom();//This is the getter method for date from field
System.out.println("onChangeDateTo "+ this.dtDateFrom+":"+this.dtDateTo);
if (evt.getNewValue() != null){
int intCalcNoOfDays = DateHelper.getBusinessDaysCount(this.getDateFrom(),this.getDateTo()) + 1;// my custom class which does the calculation
String strCalcNoOfDays = String.valueOf(intCalcNoOfDays);
System.out.println("strCalcNoOfDays "+strCalcNoOfDays);
this.setNoOfDays(strCalcNoOfDays);
I am getting NullPointerException while getting the value for date from (this.dtDateFrom). I have tried other approaches like attaching a binding to date from field, passing attributes etc but no luck. Can someone assist me in achieving this? Basically I need to populate one field automatically based on values entered on two other fields whenever tab event/user selects value on second field AND it shouldn't fire any other validations on the form (basically partial trigger).
Thanks very much for the help in advance.
Thanks
ShreeThanks Lilly.
I don't have a backing bean associated with the page. I have managed bean instead. JSF source code snippet below
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:h="http://java.sun.com/jsf/html">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="LMS" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:panelStretchLayout id="psl1" startWidth="160px">
<f:facet name="top">
<af:panelGroupLayout id="pgl1" layout="vertical" halign="center">
<af:panelFormLayout id="pfl1" rows="1" maxColumns="1">
<af:outputText value="LMS" id="ot1"
inlineStyle="color:Blue; font-family:'Times New Roman', 'Arial Black', times, Serif; font-size:175%; font-weight:bold; text-align:center;"/>
</af:panelFormLayout>
</af:panelGroupLayout>
</f:facet>
<f:facet name="bottom">
<af:panelGroupLayout id="pgl2"/>
</f:facet>
<f:facet name="center">
<af:panelGroupLayout layout="scroll" id="pgl4">
<af:outputText value="Dashboard" id="ot6"
inlineStyle="color:Green; font-size:150%; font-family:'Times New Roman', 'Arial Black', times, Serif; font-weight:bold; text-align:center;"
visible='#{clickActionHandlerBean.clickLink== "HOME"}'/>
<af:spacer width="10" height="10" id="s1"
visible='#{clickActionHandlerBean.clickLink== "HOME"}'/>
<af:spacer width="10" height="25" id="s5"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'/>
<af:panelFormLayout id="pfl2" rows="1" maxColumns="1"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'>
<af:selectOneChoice label="Type" id="soc1" showRequired="true"
immediate="true" value="#{bean1.type}">
<af:selectItem label="X1" value="X1" id="si1"/>
<af:selectItem label="X2" value="X2 id="si2"/>
<af:selectItem label="X3" value="X3" id="si3"/>
<af:selectItem label="X4 value="X4" id="si4"/>
</af:selectOneChoice>
</af:panelFormLayout>
<af:panelFormLayout id="pfl3" rows="1" maxColumns="3"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'>
<af:inputDate label=" Date From" id="id1"
rendered='true'
showRequired="true" inlineStyle="vertical-align:baseline;"
value="#{bean1.dateFrom}">
<af:convertDateTime pattern="dd-MMM-yyyy" secondaryPattern="MM/dd/yyyy"/>
</af:inputDate>
<af:inputDate label="Date To" id="id2"
rendered='true'
showRequired="true" value="#{bean1.dateTo}" partialTriggers="it1"
valueChangeListener="#{bean1.onChangeDateTo}"
autoSubmit="true">
<af:convertDateTime pattern="dd-MMM-yyyy" secondaryPattern="MM/dd/yyyy"/>
</af:inputDate>
<af:inputText label="No of Days" id="it1" columns="7" showRequired="true"
rendered="true" value="#{bean1.noOfDays}" maximumLength="2">
<af:validateRegExp pattern="[0-9]{1,10}"
messageDetailNoMatch="No of days can have only numbers"/>
</af:inputText>
</af:panelFormLayout>
<af:spacer width="10" height="50" id="s6"/>
<af:group id="g1">
<af:spacer width="250" height="10" id="s7"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'/>
<af:commandButton text="Save" id="cb1" partialSubmit="true" blocking="false"
immediate="false"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'
actionListener="#{bean1.ApplyButtonClicked}">
</af:commandButton>
<af:spacer width="20" height="10" id="s8"/>
<af:commandButton text="Cancel" id="cb2"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'/>
</af:group>
</af:panelGroupLayout>
</f:facet>
<f:facet name="start">
<af:panelGroupLayout id="pgl3" halign="left">
<p>
<af:outputText value="#{userinfo.userInfo.firstName}" id="otWel"
inlineStyle="color:Maroon;" rendered="false"/>
</p>
<af:spacer width="1" height="50" id="s2"/>
<p>
<af:commandLink text="Home" id="glHome" action="#{clickActionHandlerBean.showHomeRN}"/>
</p>
<p>
<af:commandLink text="Apply" id="glApply"
action="#{clickActionHandlerBean.showApplyRN}"/>
</p>
</af:panelGroupLayout>
</f:facet>
</af:panelStretchLayout>
</af:form>
</af:document>
</f:view>
</jsp:root>
Thanks
Shree -
Grant Master field group control based on authorization - hide fields
Hi,
The Grant Master field group control settings are based on grant type settings. So you can hide fields and tabs etc based on the grant's lifecycle status.
Does anyone know if this can be configured based on authorization objects / authorization roles?
We wish certain fields to be hidden in all life cycle statuses for all general users, but for central finance users we wish those fields to be visible.
There is a customizing transaction GMS103 in the SPRO/IMG path
IMG > Public Sector Management > Grants Management > Grantee Management > Master Data > Grant > GM Grant Control : Field group for Authorizations
The documentation for this transaction says:
GM Grant Control: Field Group for Authorizations
It is possible to group fields together for authorization purposes. Use this step to specify such groups in Grants Management (GM).
Standard settings
We deliver the groups you can enter here, as standard.
Activities
Choose New Entries and enter the ID for the group you want to add. When you save, the system displays the longer description for the group.
Further notes
Authorization to a group allows access to all the fields in the group for users with the appropriate authorization. Only allow access to those you know need it for the whole group.
This table is empty on our system. Has anyone used this part of the customizing and can they let me know how it links into the basis roles / authorizations etc.
Thanks
Paul AbrahamsonI found this authorization object F_GMGT_FDG
The documentation for the authorization object states:
Definition
With this authorization object, you can define authorizations for individual field groups in grants management maintenance. You thereby define which fields in grant master maintenance can be maintained or viewed by a user.
Notes
This authorization is optional. You do not have to assign authorization if there are no field groups that require special protection and consequently no field groups requiring authorization were defined in Customizing.
Defined fields
The object consists of the fields "Field group" and "Activity":
Field group
Here you define which field groups require authorization.
Activity
Here you define which activities are permitted:
02 = Change
03 = Display
* = All activities
Procedure
Proceed as follows if you want to use this authorization:
1. Determine the field groups of the fields that you want to protect.
2. In Customizing, define that these field groups require authorization.
3. For each field group, define the authorization that you wish to assign to selected users.
4. Assign this authorization using the corresponding profile.
I'll try this out and update this message again later -
XML Forms Builder: Sorting news based on a date field in a XML form
Hi Experts
I have a requirement and I am stuck up in finding a solution. I have a XML form and this has been mapped to a folder in KM. It publishes news. In the collection renderer settings there is an option to sort the news ascending or descending based on created/modified criteria.
The requirement is to sort the news based on a date field in XML form. Can you experts help me in getting the solution for same?
The users who post the news in our portal needs the information to be sorted based on a date field shown.
Thank you
Best regards
Ramamoorthy DHi Experts
I have not got any solution for this issue. Can any of you get me some clue to work on this issue with sorting news based on a date field in a XML form?
I removed the property link from the screen field Input field.
Thank you
Best Regards
Ramamoorthy D -
How to make fields readonly in Interactive Form based on Roles
Hello All,
I want to make few fields readonly and also want to disable few fields from the Interactive form based on the role, logged in by user.
Looking for a code Snippet on this issue.
Need help in this Regard.
Thanks & regards,
DebasishIs the URL you are trying to call a schema.procedure ?
If so, you need to grant execute privilege on the procedure to the <portal-schema>_public database user. -
User based block the pricing field in the sale order
HI FRIEND
We have requirement user based block the pricing field in the sale order
pls suggest me the configuration steps
with regards
dineshhi friend
when create a sale orde,r price and exchange rate is triigger from the master record.
head department want not require to End user to change the price in the sale order .
so head department only have authorisation to change price.
selected user is not allow the change the price.
so i need the configuration
with regards
dinesh -
Unable to default DFF segment based on selection of other field value.
Hi Gurus,
*I have a requirement on 'Create Work Request' page (Oracle EAM), where during creating complaint, when user selects Asset Number, based on this selection, a DFF enabled to capture Tenant Info must be populated. [For testing now, I'm writing my code in PR and not in PFR to populate some thing while page loads.]*
I have extended my CO and tried many ways (from simple to little complex) but to no success.
Simpler way:
*=======*
OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
OAViewObject vo = (OAViewObject)am.findViewObject("RequestDetailsVO");
Row row = vo.first();
row.setAttribute("Attribute1","Attribute1"); //Attribute1 is the View attribute in above VO. But this doesn't work.
row.setAttribute("DepartmentCode","CRC MAINT"); //DepartmentCode is a view attribute as well. And this works.
This code doesn't work.
Understanding that, DFF segments can't be set as simple bean, I have done below:
*===================================================*
OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");//("WorkRequestDFF_p13n");
oadescriptiveflexbean.processFlex(oapagecontext);
if (oadescriptiveflexbean != null){
ContextMap contextmap = oadescriptiveflexbean.getNamedChildMap();
if(contextmap != null){
Enumeration enumeration = contextmap.keys(oapagecontext.getRenderingContext());
if(enumeration != null){
do
if(!enumeration.hasMoreElements())
break;
Object obj = enumeration.nextElement();
OAWebBean oawebbean1 = (OAWebBean)contextmap.get(oapagecontext.getRenderingContext(), obj);
oapagecontext.getParameter("WorkRequestDesc1")
//String str = (String)oapagecontext.getNamedDataObject("WorkRequestDesc1")
if(oawebbean1 != null)
if(oawebbean1 instanceof OAMessageTextInputBean)
OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1;//.findIndexedChildRecursive("WorkRequestDesc1__xc_");
//oamessagetextinputbean.setReadOnly(true);
oamessagetextinputbean.setText("Jawad");
} while(true);
Now the issue with above code is, during the page load, all the segments are populated with value 'Jawad'. I want to populate only the first segment.
More info:
*======*
VO: RequestDetailsVO
DFF Regions ID: WorkRequestDesc
Attribute1 (DFF segment1) ID: WorkRequestDesc1
Appreciate your responses,
JawadDear Guys,
I found out a workaround for this case (If this helps others): :)
*1. Create a Message Text Input type field (representing each DFF segment) and map them to View Attribute (over which DFF was created) and VO instance.*
*2. In the extended CO, in PFR, get the handle of these created fields.*
*3. Set the values as required.*
Since these fields are mapped onto the same view attributes as DFF was, the data goes in fine.
But I still am hunting for the possibility of setting a single segment.
Thanks and Regards,
Jawad
Edited by: Jawad on Apr 19, 2012 3:36 AM
Edited by: Jawad on Apr 19, 2012 3:38 AM
Maybe you are looking for
-
hi . i have Intel based iMac. i erased whole hard disk. now it flashes folder icon with question mark... i have no internet or orginal dvd.... i want to clean install any mac osx..friend got mac book pro and osx in dmg format . what are my options?
-
I am unable to access my app store or iBooks on my iPad this morning
I am unable to access the apple App Store or iBooks this morning. What do I do?
-
ASM Instance high availability.
what woululd be the best practice to keep the ASM instance high available, Right now i have 3 dbs running on one ASM instance, i am wondering if this ASM instance has problem all the 3 dbs will be down....
-
Hi, I want to print data in a secondary window as follows. Amendment number : 3 date: 3-03-2008 Number :4444444444 date: 3--3-2008 But the second date field is not aligning properly either it comes before the fi
-
My Ipad e-mail screen has frozen while trying to download a photo attachment. An error message "cannot download attachment" is on the screen but touching "OK" does not clear it. Any suggestions please?