Is there a command for setting the selection option to be mandatory
hi,
i have a 4 select-option in my program, and i would set that, either one select option must be fill to execute the program. which mean, at least one field ( any select option) have to be enter, or else it will not run. is there a command to restrict on this?
please help. thanks
Check this sample
TABLES : vbap.
SELECT-OPTIONS : so_vbeln FOR vbap-vbeln,
so_posnr FOR vbap-posnr.
AT SELECTION-SCREEN.
IF NOT so_vbeln[] IS INITIAL OR
NOT so_posnr[] IS INITIAL.
ELSE.
MESSAGE e000(ztest_gopi) WITH 'Atleast one shd be filled'.
ENDIF.
" OR You can do it this way also
TABLES : vbap.
SELECT-OPTIONS : so_vbeln FOR vbap-vbeln,
so_posnr FOR vbap-posnr.
AT SELECTION-SCREEN.
IF so_vbeln[] IS INITIAL AND
so_posnr[] IS INITIAL.
MESSAGE e000(ztest_gopi) WITH 'Atleast one shd be filled'.
ENDIF.
Regards
Gopi
Similar Messages
-
Edit the select option in an existing Transfer Structure
Hello everybody,
I've a problem with my NW2004s BI-construct which contains reporting for the SAP IS-U sales statistics. I used the SAP BC Data Source, Info Source and Cube. Now I started the data transfer process. The BI 7.0 could connect to the IS-U but it failed with the comment no data selected. I recognized that the selection option in the transfer structure for the object 0PSTG_DATE isn't set which I mean must be set. Has anyone of you a solution for setting the selection flag in the existing transfer structure!
Thanks a lot in advance!
Best regards,
ThomasThx for your advise, Marc.
I checked it already. The thing is that the object is marked as a selection object in SAP ECCs Data Source. I also replicated the Data Source again into BI but unfortunately that changed nothing.
Any other suggestions?
Would be gorgeous!
Thanks & Bye, Tom -
Reading the select options of selection screen
Hi All,
I have a problem in reading the select options from the selection screen.
I have two select-options on the selection screen. Based on the first select-option value, I need to get the F4 values for the second select-option.
I am using the function module 'RS_REFRESH_FROM_SELECTOPTIONS' for getting the select-options values. But here there is small problem.
This FM is returing the values if i select the multiple values. But if I give a single value in the select-options i.e., If i give only the low value, I am getting the blank entries from the function module.
How can I get the value of the select-option if i give only the low field.
Please help me in this regard.
Regards,
Kishore.Hi,
Try to use FM "DYNP_VALUES_READ"
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
TABLES
dynpfields = i_dynpfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
and after this you can read the internal table i_dynpfields. -
Setting the allowaccess option as the default in xlock
Hi,
I was wondering if someone could point me in the right direction with a problem I�m having with Solaris 10 on a distributed system and the standard xlock application.
As I stated we�re running an application on a distributed system where we want to have the ability to lock down the operational processor with the command �xlock� and also have the ability to start and stop the application from another system while the processor is locked. This can be accomplished by running the command �xlock �allowaccess� on the operational processor.
My question, is there a way to set the �-allowaccess� option in user defaults or some other place so when the �xlock� command is executed it automatically sets the �-allowaccess� option?
I�ve already accomplished it in a script, but would prefer to do it within the system.
Any ideas would be greatly appreciated.
ThanksI figured it out, it was just a matter of setting "alias -tx xlock -allowaccess xlock" in the .profile
-
How to set a dynamic variant for date in select-options in the upper field
Hi Variant experts Good Evening!
I have the following problem while setting up a dynamic varinat .
Ex: select-options: dat for sy-datum.
I am able to save the lower limit as a dynamic value but not able to save the upper values as dynamic in the select-options. Could any of you please help me in this.
Regards
Ravi.i hope dynamic variant concept is not there,
but u can use the fn module DYPRO_GET_VALUES and
DYNPRO_SET_VALUES
DYNPRO_GET_VALUES gets the values in the screen,
DYNPRO_SET VALUES sets the values.
first get the values, compare and set the values as u want -
Unable to set the selected value for a ADF LOV
Hi,
I am developing an application using jdeveloper 10.1.3 and Struts.
I have created a ADF LOV on my JSP Page as given below:
<html:select property="lob" onchange="javascript:selectLOB(this.form)">
<html:optionsCollection label="prompt" value="index" property="lob.displayData"/>
</html:select>
When i submit the form, i am able to get the value of the selected Value in the List.
JUCtrlListBinding listBinding = (JUCtrlListBinding) formBean.get("Lob");
Row r = (Row) listBinding.getSelectedValue();
String SoLob = (String) r.getAttribute("LobLob");
But i am unable to set the selected value back in the list when i return to the form again.
I tried the following:
int x = listBinding.getSelectedIndex();
listBinding.setSelectedIndex(x);
It would be really helpful if some one could let me know what needs to be done.
Thanks,
SubashiniGyan,
I tried with the code you suggest , its trying to set the value of a field, but my requirement is to change the property for
"Rendered" on the field so that based on search parameters we can hide result table column.
After searching online, I modified the controller code as follows
1.Created a new transient attribute (Testrender) with type "Boolean" and always updateable.
2.changed the "Rendered" property value on the field I want to hide as ${oa.PoSearchVO1.Testrender}.
3. Modified the controller code as follows :
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject testvo = (OAViewObject)am.findViewObject("PoSearchVO1");
OADBTransaction txn = am.getOADBTransaction();
if (testvo != null)
OARow row = (OARow)testvo.first();
if (a.equalsIgnoreCase("Approved"))
row.setAttribute("Testrender", Boolean.FALSE);
else
row.setAttribute("Testrender", Boolean.TRUE);
} But now when i run the page and populate the search field and click "Go" its hiding the field but throwing the following error and the search results are also bad.
Its using only the value of one search parameter but not the second one .
The search cannot be executed because the table has pending changes that would be lost. I think the vo is getting dirty when I update the transient attribute value. So I used txn.rollback ,then search is working fine but its not hiding the field.
So can you please let me know how to proceed from here ? -
Is there a way to get the selection order for selectedProperties?
app.project.activeItem.selectedLayers seems to be ordered by the selection order, but app.project.activeItem.selectedProperties (at least in Shape Layers) seems to be ordered by the stacking order. Is there a way to get the selection order for selectedProperties?
Thank you!Hi,
i had tried to investigate this a while back and it's really hard to figure out.
The array seems to be reorganized using various rules:
At layer level : preserve the user layer selection order,
Children of indexed groups : propertyIndex ordering,
Children of named groups : some internal ordering.
The following is may be more detail than necessary, and given that it is based on observation, not official docs, it is not so reliable, but well, it might still be of interest !!
Say you have 2 selected properties A, and B, and call [COMMON PARENT] their "greatest common ancestor", that is:
A = [COMMON PARENT].property(a1).... property(aA);
B = [COMMON PARENT].property(b1).... ...property(bB);
with a1 != b1. Then:
if [COMMON PARENT] = A (ie if A is an ancestor of B), then A comes first.
For instance: if you select comp.layer(1).mask(1).maskPath, there are 2 selected properties, the mask group and its maskPath: the first is the group and the second the path (the parent comes first).
if [COMMON PARENT] is the containing composition, ie A is a property inside comp.layer(a1), and B a property inside comp.layer(b1), then A and B are ordered according to the layers selection order.
This can have some strange side effects. For instance:
deselect everything
select comp.layer(2) (and nothing else)
select comp.layer(1).transform.position
select comp.layer(2).transform.position
===> comp.selectedProperties = [comp.layer(2).transform.position, comp.layer(1).transform.position] even though the first entry was effectively selected after the second...
if [COMMON PARENT] is an indexed group, A and B are ordered by propertyIndex
For instance:
if you select comp.layer(1).mask(2), then comp.layer(1).mask(1), mask(1) appears before mask(2)
if [COMMON PARENT] is a named group, ... no clue (internal ordering).
For instance, at propertyDepth 1, it seems that Time Remapping < Effects < Masks < Material Options < Transform, etc, independantly of the selection order, and this is also not the propertyIndex ordering.
At higher depth, in CS5 the ordering seems to be the propertyIndex ordering, but it is no longer true in CC.
For instance, selected Position (index 2), Scale (index 6) and Opacity (index 11) in various order on the same layer.
in CS5 : selectedProperties = [Position, Scale, Opacity]; // propertyIndex ordering, always
in CC : selectedProperties = [Scale, Position, Opacity]; // always the same ordering, but not the propertyIndex one
So the ordering is a lexicographic ordering (Compare the ancestor of depth 0. If no difference, compare the ancestor of depth 1. If no diff, compare the ancestor at depth 2. And so forth).
But at each step, the comparaison depends on the type of the ancestor, and when the type is named group, the ordering is internal so we can't know.
Practically the most important thing is that selected properties seem to be reorganized by "containing layer" (the layer selection is preserved),
and then in each layer selected properties are "grouped by same parent": you can't have a mask related property, then an effect related property, then another mask related property:
all masks related properties appears together, all effect related properties appear together, etc.
If several effects are selected, effect(1) and all its properties appear first (if selected), then effect(2) and all its properties would appear second etc
and so forth
Xavier. -
Is there a way for preventing the placeholder from appearing if there is not content for it?
I am creating a structure with tags and place holders. However, not all my entries have all the same information. For example, my first entry has a 3 line address (123 West Street, Suit 23, Lincoln NE 68521) but my second entry only has 2 line address (456 North Street, Lincoln NE 68521). When imported into my structure, the second address reads 456 North Street, <address2>, Lincoln NE 68521. My question for you is, is there a way for preventing the placeholder from appearing if there is not content for it?
IJWAA,
A work-around if you don't already use XSLT (to avoid having to) is to not have placeholder text, just use empty tags in your text layout that correspond to your incoming XML structure (any unused by the incoming structure IN ORDER, will be skipped). So long as you don't mind the blank line (rather than left over placeholder copy).
If you had placeholder copy in your text box (<address2> for example) look at it using the story editor window (edit > edit in story editor, or command-y/control-y) so you can see the surrounding tags... style the surrounding tags by selecting them with the cursor and applying character or paragraph styles (with text in between the tags at the time) and then delete only the placeholder text from the middle of the sandwich, leaving the tags in tact. Trying to do this without being in the story editor will not work.
Also, when importing the XML, I believe you'll still need to use "merge content" and "don't import empty white space" as you have been in order to replace placeholder text in any areas you had it.
For situations when you have a mixture of dynamic and static text in the same text block and you are merging data (more so when the placeholder text has been deleted as I've suggested above but the dynamic tags for the possible incoming text are still there), you can use a tag you've created (I call mine "staticText") in your layout to wrap ANY bits of text you don't want to accidentally delete when the surrounding tags get populated or not, using the merge option upon importing your XML. Just be sure never to use "staticText" as an actual tag in your structure or surrounding incoming data. The text contained within staticText tags in your layout will be ignored by incoming data, and won't accidentally get deleted when it's sandwiched between two sets of tags that are dynamically populated when merge content is the import option.
In my example below I'm using brackets/carats with the tag name instead of the color coded tag icon you see in the story editor, also I've used LB here to indicate a regular line break in Indesign and SP a regular space character in indesign:
[staticText>Name:<staticText][firstName>Abc<firstName][staticText>SP<staticText][lastName>Xyz<firstName][staticText>LB<staticText]
[staticText>Address:<staticText][address1><address1][staticText>LB<staticText]
[address2><address2][staticText>LB<staticText]
all other tags on following lines...
This should just leave a blank line for address2 when no data comes in for it. I'm assuming you have line breaks, if not, all the better. -
Is there any provision to view the selected record using SYS_REFCURSOR?
hi friends ,
I was using SQL Server . now i am shifting to Oracle . so we are changing the Stored Procedures in SQLServer to Oracle SP's. I have given the structure of procedure given below . If possible , i want to see the output of select statement in the TOAD editor . If any body knows please help me
CREATE OR REPLACE PROCEDURE PS_AON
P_STATUS OUT VARCHAR2,
P_CUR OUT SYS_REFCURSOR
AS
BEGIN
OPEN P_CUR FOR
select colum1,column2,column3 from Table 1;
EXCEPTION
WHEN OTHERS THEN
P_STATUS:=SQLERRM;
END;
This is one of the model of stored procedures i am using . And the editor i am using is TOAD 7.3.0 and oracle 9i. Is there any provision to view the selected records by running this procedure in TOAD editor
thanks & regards(assuming you have relatively recent version of TOAD).
Write a small block to call the procedure (or use Toad's 'execute procedure' option) as in the example below. Note the ':' in front of 'v_cur_out'. When you run the block, TOAD will prompt you for a value / datatype for 'v_cur_out'. Ignore the value, set the datatype to 'Cursor' and click OK. The resultset (if any) will be displayed in the Data Grid window below.
DECLARE
v_status VARCHAR2 (32767);
BEGIN
ps_aon (v_status, :v_cur_out);
DBMS_OUTPUT.PUT_LINE ('v_status => ' || v_status);
END;
/ -
How to set the Selected row and Column in JTable
Hi,
i have a problem like the JTable having one Method getSelectedRow() and getSelectedColumn to know the Selected row and Column but if i want to explicitly set the Selected Row and Column,then there is no such type of Methods.If anybody has any solution then i will be thankful to him/her.
Praveen K SaxenaIs that what you're looking for? :myTable.getSelectionModel().setSelectionInterval(row, row);
myTable.getColumnModel().getSelectionModel().setSelectionInterval(column, column); -
How i can set the selected item of a dropDown component from java code
Hi
Thank you for reading my post
How i can set the slected item of a DropDown component from backing beans java code ?
it is binded with a database , so one field determine its display and one other field determine its value , I want to set the selected item of this combobox
In back code i have both value and display values to use them .
can some one give me some help ?
Thanks ,See code sample 3 at http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
See also, the selection components row in the table under http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
It says
One way to preselect items is to call setSelectedValue(Object[]) or setSelectedValue(Object) from the prerender() method. You pass in the return values of the items that you want preselected. Be sure to verify that getSelected() returns null before setting the default options, or you will overwrite the user's selections on a post-back. -
Is there a way to set the default level of keyframe easing?
I'm currently using the graph editor to smooth my ease-in / ease-out keyframes with 100% influence. I'm having to adjust the easing of each keyframe individually.
Is there a way to set the default level to 100%, so that I can just select "Easy Ease In" and have it apply without having to go into the graph editor? It would save a lot of time.No, there's not a way to do that, but it's a good feature request. You can submit feature requests here:
http://www.adobe.com/go/wish -
How do you set the selected item of a combobox?
I looked around and didn't find an intrinsic method or
function to set the selected index of a combobox. I wrote a
function, but I thought I would see what the "best" way of doing it
is?
The function I wrote is;
private function
setComboSelectedItem(cmbBoxIn:ComboBox,strFindItem:String):void
for (var i:int=0;i<cmbBoxIn.dataProvider.length;i++)
if (cmbBoxIn.dataProvider(I) == strFindItem)
cmbBoxIn.selectedIndex = i;
break;
The parentheses surrounding "i" above should be square
brackets, but they do not display.
Pauldoing a calllater will solve this problem if your changing
dataprovider and trying to set the selected index on an editable
combox -
Is there a way to set the Page/Print Scaling to a default at the application level? For Acrobat and Reader?
Thanks,Often asked, but that feature retains the last used local setting.
You can however, change the default for Documents, individually, in their Properties > Advanced tab -
Is there a function module to display the selection options
Hi all,
How can I display the selection options (F2) popup, like the one in the data browser (SE11) selection screen? I have a custom report. Instead of right clicking on the selecion-options field, user want a button to click so the selection options popup appear on the screen. Is there a FM that I can use?
Thanks in advance.Hello,
i have tried debugging the standard code.... and i could find the below code which is triggering the F2 functionality for a field.
CALL METHOD call_method
EXPORTING
method = 'SetButtonState'
p_count = 3
p1 = fcode
p2 = m_enabled
p3 = m_checked
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
RAISE cntl_error.
ENDIF.
class - CL_GUI_toolbar
method - Set_button_state.
You may try this.
Regards,
Venkatesh
Maybe you are looking for
-
Reg:Bapi for mass creation of production order/confirmation
Dear Experts, I wanted to know with the following BAPI is it possible to create Multiple production orders for different semifinshed Materials along with material availability check and other functions similar to CO01 transaction. I knew there are st
-
Search Results Window Disappears
When I go to Edit --> Search a window pops up and i can input my search term. Usually this will then display a Results: output with all the results listed below which I can see them in context. Now, this window closes immediately and i have to manual
-
Value of an operation parameter depending on the characteristic value
Hi, Is it possible to set the value of the Normal Duration (or any other parameter of the operation) depending on the value of one characteristic? For example: The value of my characteristic A is 2, so I want to set Normal Duration = 10*(Value_of_A)
-
Satellite Pro A300-1H2 - Windows does not recognise HDD
Hi, i'm a newbie, this has probably bin asked before so if it has you'l have to excuse me, i have a satellite pro A300-1h2. I got the blue screen unmountable boot volume, so have tried to fit a new samsung drive. I put in my windows disc it loads all
-
Cannot install Foxfire or Thunderbird without an unknown login and password.
When I download Foxfire or Thunderbird I get a dialog box that asks me to choose a pre-set login or to enter a login and password. If I chose the first option, nothing happens. If I enter a login and password, it says they are incorrect and throws me