0CFM_MARKET_VALUES: PARAM_P_AUSWT as mandatory input field
Hi BW fans
The datasource 0CFM_MARKET_VALUES includes one mandatory input field.
Just for the case that there are no entries for this field in the source system, how do you prevent this error message and aborting of the extraction?
Field PARAM_P_AUSWT(Evaluation Type (Risk Management)) is a mandatory input field; enter a value
Message no. RSM1059
Thanks
BEO
You have quotation issues. Something like this:
onBlur="alert("test");"will blow up because the parser will match the wrong quotes. You have to either escape your quotes, or use single quotes internally.
onBlur="alert('test');"or
onBlur="alert(\"test\");"
Similar Messages
-
Hi All,
Mandatory input field in group
In my web dynpro application i have marked the input field "required" and in output it shows with red asterisks...
In my view i have 2 group elements with different fields. I am using method *check_mandatory_attr_on_view* to get mandatory fields in view, its not returning all mandatory fields in view. its just returning mandatory fields in first group.
Has any one faced this kind of issue before? Is there anything additional to be done?
Thanks
Rajesh YadlaDepending on which NetWeaver SPS your are,
there are some errors in this method,
so better use the other method (CHECK_MANDATORY_ATTRIBUTES).
This seems to work well.
Check also SAP Notes:
[Note 1026272 - WDA: Mandatory check on view of multiple context nodes|https://service.sap.com/sap/support/notes/1091460]
[Note 1091460 - WDA: CHECK_MANDATORY_ATTR_ON_VIEW checks only LeadSelection|https://service.sap.com/sap/support/notes/1026272] -
Checking All mandatory Input fields .
Hi All,
I have a general checkMandatory function which is working fine wiht current InputFields on view.
Now, When I add another row of input fields on that form I want them also to be checked through checkMandatory function.
How can I perform this as I want them to be checked only at the click of button.
Can I iterate through all UI elements in OnAction and then do something?
Please guide!
please reply soon1
SumitHi,
This is my checkMandatory code:
public void checkMandatory( java.lang.String displayName, java.lang.String fieldContextID )
//@@begin checkMandatory()
IWDMessageManager messageMgr =wdThis.wdGetAPI().getComponent().getMessageManager();
String attributeValue = wdContext.currentContextElement().getAttributeAsText(fieldContextID);
IWDAttributeInfo attributeInfo =wdContext.getNodeInfo().getAttribute(fieldContextID);
if (attributeValue != null)
attributeValue = attributeValue.trim();
if (attributeValue.length() == 0) {
//String fieldLabel = this.wdContext.getNodeInfo().getAttribute(displayName).getSimpleType().getFieldLabel();
messageMgr.reportContextAttributeMessage(wdContext.currentContextElement(),attributeInfo,
IMessagePoInvoice.EMPTY__INPUT,
new Object[] { displayName },
true);
I have also done the simple types thing. It is not working. Do I have to change any other property.
Can't I do it by iterating through all elements and then checking for mandatory Inputfields and calling checkMandatory function for them.
please reply soon!
Sumit -
Input field property state required
Hi
Just curious to know what is the purpose of a State property for an InputField ? Normal Item & Required are the possible values.
Regards,
Murali.Hi Murali,
I would like to explain the need for the 'STATE' property of an input field in WDA with an real-time example,
You have requirement that you need to display a Sales Order Document based on the inputs that the user gives namely Sales Order No., Material, Material No. etc..,
Out of the few user inputs the Sales Order No. is the madatory one with which you an display the sales order document.
So when you are creating a screen with all those user input you can define which user input should be mandatory one. In our case it is the Sales Order Number whose state should be mandatory one.
If you make this input as a madatory one, then the WDA takes care of during the Run-time. i.e. You will not allowed to go the next page unless you fill the mandatory input field.
Hope it helps.
Regards,
Maheswaran.B -
In BSP how to give the input field as mandatory?
Hi friends,
In BSP how to give the input field as mandatory?
In BSP i want to validate the input field (example checking the material no is valid or not)
if this material no doesnot exit means i want to pass error message.What is the code for that.
Moosahi
try this
in LAYOUT
<htmlb:inputField id = "vname" disabled = "False" value = "<%= v_visitor %>"/> <font color="red" size="2"><b><%= page->messages->assert_message( 'vname' ) %></b></font></td>
in DO_HANDLE_EVENT
in oninputprocessing
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
ENDIF.
case event->id.
when 'select'.
if v_visitor = ''.
page->messages->add_message(
condition = 'vname'
message = 'Visitor Name can not be blank'
severity = page->messages->CO_SEVERITY_ERROR ).
ELSE.
here u can write ur when ur field getting filled
endif.
endcase.
endif.
give marks if it is helpful
thanks -
Mandatory selection input field in SAP query
Can anyone please let me know how we can make a selection field input mandatory in SAP query,If we can?
we can make a selection field input mandatory in SAP query by giving the option *OBLIGATORY * with the SELECT-OPTIONS for the required field.
This addition defines the input field of the parameter on the selection screen as a required field. If no entry is made in this field, the user cannot use the Execute function (F8) to exit the selection screen, they can only use the functions Back, Exit, or Cancel.
Reward Points if useful. -
ADF: Mandatory symbol for ReadOnly input fields
Hi All,
I am using JDeveloper 11.1.2 version. I am creating sample login window. In that there is Input Text filed called "old Password" which should be readOnly always [It will display oldPassword value]. When I ran my page in OldPassword field, mandatory symbol is not displaying. Eventhough I gave required="true" and showRequired="true" in jsff file, I am getting same output. The input Text is not ViewObject based. I am just binding ManagedBean variable value to that Input field to display oldPassword value.
Can u please help me out?
Regards,
Praveen.This is the normal behavior, as a workaround you can surround the input text with af:panelLabelAndMessage and set its showRequired property to true.
<af:panelLabelAndMessage id="plam1" showRequired="true">
<af:inputText label="old Password" id="it1" readOnly="true" value="value"/>
</af:panelLabelAndMessage> -
How to make input field as mandatory field in sub screen
Hi All,
I need to display the input selection parameters in tab strip sub screen. The input screen is not giving an error while processing with blank values, but I made the input field as required in sub screen input filed settings. Can some one please help me how to make the input field as mandatory field in sub screen.
Thanks in advance.
Regards,
KannanHi Kannan,
Try this out.
1. Goto screen painter
2. Enter the program name and screen number ( screen # 1000 - in case if its a custom report prg)
3. Double click on the field which u`ve got to make mandatory.You`ll get Screen painter attributes window.
4. U`ll find three tabs here - Dict, Program, Display
5. Go to Program tab, and change the first attribute - Input field`s input value as "Required".
6. Save and activate it.
7. Now execute ur program and this should make ur field as mandatory on the screen.
This works with input fields, but I`m not sure about the input field in tab strip control.
Hope this helps
Regards,
Farhana -
SQ01 - Need an input field for query report as mandatory
Hi Guys
I have created a report using SQ03,SQ02 & SQ01. The report is running fine. But i want to make one of the input field as manadatory
Guys have any suggestion for the same
I tried in SQ02, a field named DBPAOBLIG
I got the above mentioned field when i clicked the extras tab in SQ02 - But the field is not in change mode
Please suggest me how to make the field as mandatory
Warm Regards
BalaHi,
Create a variant, when you run a query - make it to be run only with this variant (via definition in a transaction for this query). In variant, you can define required fields.
Regards,
Eli -
Disable an Input field with the help of a radio button selection.
Hi Guys,
I know it is a very basic question and also has many threads for the mentioned query. None of the threads gave me a real clue about the problem. It is as follows:
Simply, I have an input field and there are two more radio buttons on the screen, say rd1, and rd2.
Initially Rb_gtgr is active and input field is blank and disabled, and when i select Rb_selgr, input field should be active and mandatory. It means when i try to execute the code with out entering any value after it is enabled, an error message should appear. For this the code is as follows:
AT SELECTION-SCREEN OUTPUT.
PERFORM screen_grace_on.
AT SELECTION-SCREEN ON p_grace.
PERFORM check_grace_days.
FORM screen_grace_on .
DATA: l_v_grace TYPE char2.
CONSTANTS: l_c_grace TYPE char7 VALUE 'P_GRACE'.
l_v_grace = p_grace.
CLEAR p_grace.
IF rb_selgr EQ c_x.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'.
screen-required = 1.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'.
screen-input = 0.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDFORM. " SCREEN_GRACE_ON
FORM check_grace_days.
IF rb_selgr EQ c_x AND p_grace EQ 0.
PERFORM screen_grace_on.
MESSAGE e492(/ams/ramfcmess1). " Enter the number of Grace days
ELSEIF rb_selgr EQ c_x AND p_grace GE 0.
PERFORM screen_grace_on.
ENDIF.
ENDFORM.
Ideally this code should work since in the PBO i.e., At selection screen output i am enabling the fields, and also when i select the second radio button i am also checking for the value too..
I am working on 4.7 version of SAP. The Most interesting observation is it works fine for few variants, and not with others.
Thank youHi,
Go through this following code,
selection-screen begin of block B2 with frame title TEXT-005.
selection-screen begin of line.
parameters: P_BIRPT type C radiobutton group RAD1 default 'X' user-command UCOMM.
selection-screen comment 3(20) TEXT-002 for field P_BIRPT.
selection-screen end of line.
selection-screen begin of line.
parameters: P_COLRPT type C radiobutton group RAD1.
selection-screen comment 3(20) TEXT-003 for field P_COLRPT.
selection-screen end of line.
selection-screen begin of line.
parameters: P_PAYRPT type C radiobutton group RAD1.
selection-screen comment 3(20) TEXT-004 for field P_PAYRPT.
selection-screen end of line.
selection-screen end of block B2.
selection-screen begin of block B1 with frame title TEXT-001.
select-options: SO_KTOKD for KNA1-KTOKD modif id M4,
SO_BLART for BSIS-BLART modif id M2.
parameters: P_PAID type ZCLEAR modif id M3 as listbox visible length 20.
selection-screen end of block B1.
at selection-screen output.
loop at screen.
if P_BIRPT eq 'X'.
if SCREEN-GROUP1 = 'M2' or SCREEN-GROUP1 = 'M3' .
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
modify screen.
endif.
elseif P_COLRPT eq 'X'.
if SCREEN-GROUP1 = 'M3'.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
modify screen.
endif.
elseif P_PAYRPT eq 'X'.
if SCREEN-GROUP1 = 'M2'.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
modify screen.
endif.
if SCREEN-GROUP1 = 'M4'.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
modify screen.
endif.
endif.
endloop.
Thanks
Anil D -
Validation of values in an input field.
Hello togther,
I've created an input field with a value-selector, so that the user can choose a value from help-list. But he can also enter a value directly into the input field. Is there any "STANDRAD" method to check whtether the value which is in the input field is valid against the values from the value-selector?
I've found a standard method to check whether mandatory fields are field and the method works fine. Is there anything like this also for checking values against values from the selector?
Thanks in advance.
Greetings,
FlorianHello Florian,
You can create an event CHECK_DATA for OnEnter event of you input field.
Then go to the Action tab and select the action type as Validation-Independent .
Hope this will work for the input field with OVS help .
Regards
Vivek -
Inability to enter value in an input field at first go.
Hi All,
I have an input field in a table where when I click first time to enter a value, the cursor is not getting placed and I am not able to enter any value.When I click for the second time, I am able to enter the value.This is a mandatory field and we should be able to enter the value at first go which is not happening.Please help on this.
Thanks & Regards,
Reinuka Paul.Hey thanks alot for the above reply.it was really helpful.
After the patch level was applied, I am getting problems with double and big decimal.
Like Double a = new Double(string);
is giving me null value . wherewas if i print the string there is value in the string like 110.000.
Please suggest what should i do with this problem.
Thank you. -
LOV Control is going to next Input Field
Hi all,
when i clikc LOV icon on my form the control is going to next input field.second one should have partial trigger with LOV field .Due to partial trigger am facing this problem .I recreated the binidings also.But it is not working.
please help me in this .It is very urgent .
Ravi.Hi ,
Am giving all my code details .Please help me .
1.LOV INput Field with name PRMID:
<af:inputListOfValues id="prmIdId"
popupTitle="Search and Select: #{bindings.PrmId.hints.label}"
value="#{bindings.PrmId.inputValue}"
label="#{bindings.PrmId.hints.label}"
model="#{bindings.PrmId.listOfValuesModel}"
required="#{bindings.PrmId.hints.mandatory}"
columns="#{bindings.PrmId.hints.displayWidth}"
shortDesc="#{bindings.PrmId.hints.tooltip}"
autoSubmit="false" editMode="select"
binding="#{backingBeanScope.backing_rcsPartner.prmIdTxt}">
<f:validator binding="#{bindings.PrmId.validator}"/>
</af:inputListOfValues>
2.Input Field HQID having partial trigger to prmID
<af:inputText value="#{bindings.HqId.inputValue}"
label="#{bindings.HqId.hints.label}"
required="#{bindings.HqId.hints.mandatory}"
columns="#{bindings.HqId.hints.displayWidth}"
maximumLength="#{bindings.HqId.hints.precision}"
shortDesc="#{bindings.HqId.hints.tooltip}" id="it1"
binding="#{backingBeanScope.backing_rcsPartner.hqidTxt}"
partialTriggers="prmIdId">
<f:validator binding="#{bindings.HqId.validator}"/>
</af:inputText>
3. My Page Definition Page having both PRMID,HQID
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="11.1.1.56.60" id="RcsPartnerPageDef"
Package="fragments">
<parameters/>
<executables>
<variableIterator id="variables"/>
<iterator Binds="RcsPartnerSetupViewTbl" RangeSize="100"
DataControl="AdminHandlerAMDataControl"
id="RcsPartnerSetupViewTblIterator"/>
<searchRegion Criteria="__ImplicitViewCriteria__"
Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"
Binds="RcsPartnerSetupViewTblIterator"
id="ImplicitViewCriteriaQuery"/>
</executables>
<bindings>
<attributeValues IterBinding="RcsPartnerSetupViewTblIterator"
id="LastUpdateUser">
<AttrNames>
<Item Value="LastUpdateUser"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="RcsPartnerSetupViewTblIterator"
id="CreateDts">
<AttrNames>
<Item Value="CreateDts"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="RcsPartnerSetupViewTblIterator"
id="LastUpdateDts">
<AttrNames>
<Item Value="LastUpdateDts"/>
</AttrNames>
</attributeValues>
<tree IterBinding="RcsPartnerSetupViewTblIterator"
id="RcsPartnerSetupViewTbl">
<nodeDefinition DefName="com.hp.rebates.grs.model.services.ui.queries.RcsPartnerSetupView"
Name="RcsPartnerSetupViewTbl0">
<AttrNames>
<Item Value="PrmId"/>
<Item Value="HqId"/>
<Item Value="LastUpdateUser"/>
<Item Value="CreateDts"/>
<Item Value="LastUpdateDts"/>
<Item Value="Name"/>
</AttrNames>
</nodeDefinition>
</tree>
<action IterBinding="RcsPartnerSetupViewTblIterator" id="Delete"
RequiresUpdateModel="false" Action="removeCurrentRow"/>
<action IterBinding="RcsPartnerSetupViewTblIterator" id="CreateInsert"
RequiresUpdateModel="true" Action="createInsertRow"/>
<action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"
DataControl="AdminHandlerAMDataControl"/>
<action id="Rollback" RequiresUpdateModel="false"
Action="rollbackTransaction"
DataControl="AdminHandlerAMDataControl"/>
<listOfValues StaticList="false"
IterBinding="RcsPartnerSetupViewTblIterator" Uses="LOV_PrmId"
id="PrmId"/>
<attributeValues IterBinding="RcsPartnerSetupViewTblIterator" id="Name">
<AttrNames>
<Item Value="Name"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="RcsPartnerSetupViewTblIterator" id="HqId">
<AttrNames>
<Item Value="HqId"/>
</AttrNames>
</attributeValues>
</bindings>
</pageDefinition> -
Grey out the input field as soon as check box checks on selection screen!
HI Experts,
In my report selection screen I have input_field1, input_field2, check_box1. Both input fields are mandatory fileds.
My requireemnt is: If user as soon as checks the check_box1, the first input_field1 must go grey out (not allow allow to enter)!
So I have assigned a user command to check box and assigned a modif-ID to the input_field1
and wrote a LOOP AT SCREEN code as below,
PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p1 TYPE c LENGTH 10,
p2 TYPE c LENGTH 10,
p3 TYPE c LENGTH 10.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4 TYPE c LENGTH 10 MODIF ID bl2,
p5 TYPE c LENGTH 10 MODIF ID bl2,
p6 TYPE c LENGTH 10 MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF show_all <> 'X' AND
screen-group1 = 'BL2'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
But,am getting an error message saying "Enter all required fields"
Pls. let me know how to fix this?
Thank youI assume P1, P2 and P3 are marked as obligatory.
You cannot achieve that. But here is an alternative to achieve a similar functionality.
AT SELECTION-SCREEN.
CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm = 'SJOB' OR sy-ucomm = 'PRIN'.
IF p1 is INITIAL or P2 is INITIAL or P3 is INITIAL.
MESSAGE 'Enter all required fields' TYPE 'E'.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF show_all = 'X' AND
screen-group1 = 'BL2'.
screen-input = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP. -
FB60 required/mandatory text field
Hi all,
i have a quick question. how do you configure FB60 so that "text" field becomes a mandatory input. Thank youHi
Go to T-Code OBA7 ( Document type)
Select Document type KR ( Vendor invoice)
and Display it in edit mode.
Check the box " Document header text under "Required during document entry". Save the setting.
This will prompt all Vendor invoices to enter Documennt header text.( This is a client level setting)
SIVA
Maybe you are looking for
-
Getting Error while trying to enter multiple records using PA70
Hi all, While trying to enter multiple records for a custom infotype using transaction PA70, the system asked to provide details of the custom infotype in T588Q and T588r tables after giving the details i'm able to enter into the custom infotype scre
-
Oracle Database 10g Express Edition versus Standard/Enterprise Edition
Hi I couldn't find in the documentation of the Oracle 10g express edition what are the technical limitation of the DB. Is the express edition has maximum capasity? other limitation? Thanks
-
macbook pro 4GB S N w80500ox3atp i wont to clean the mac-keeper dos not install
-
How do I get the website icons to be in the bookmark entry?
The bookmark sidebar used to automatically insert the website icon in front of the bookmark entry for most sites. I upgraded to Firefox 9 and now it doesn't seem to do this even for sites that used to get the entry. How do I make the icon attach itse
-
OS patches required in Solaris 10 for JDK 1.5
I need to know if there is a set of required Solaris patches required to install jdk 1.5 and what are those? The documentation does not contain this information, thus it says that all required patches need to be installed. Thanks, Maria