How to use the cases in button action?
Hi Experts,
I want to get a prompt message if the field is empty.I got it but at the same time if the field is filled I want the other action to be performed that is to call a BAPI and give me output.How can I give two events for the same action.
How to use the cases in button action?
So, please guide me.Urgent need
Regards
Nutan
Hi Nutan,
if I understand you, then you have a simple validation. Therefore you can use the validation functionality of VC for your components. An alternative could be by writing a new ABAP RFC function module like:
BAPI Input parameters as input and BAPI output parameters as output and an additional return code or string for a message:
IF I_FIELD IS INITIAL.
E_RETURN_CODE = "THE FIELD IS EMPTY."
ELSE.
CALL FUNCTION <YOUR_BAPI>
<BAPI PARAMETERS>
ENDIF.
I hope that helps.
Best Regards,
Marcel
Similar Messages
-
How to use the CASE Expression in Where Cluase?
Hi All,
I'm trying to use the CASE Expression in the Where Clause at some trigger on the Form?
I've tried this Code:
Declare
N Number;
begin
SELECT COUNT(E.EMP_SID)
INTO N
FROM EMPLOYEES E, RANKS R
WHERE CASE WHEN R.qualification_sid = 1104 AND E.rank_sid = 8 THEN
(TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1)
ELSE
(TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1)
END
BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR');
END;
When I run this code as a normal query at any SQL editor it works successfully, But When I Compile it at some trigger on the Form it gives me this error:
Encountered the symbol "CASE" when expecting one of the following:
( - + mod ......
Heeey how to specify the previous code to be shown as code in the thread?
Note: I'm using Forms 6iOK I tried it and worked but for one condition:
WHERE DECODE (E.qualification_sid, 1104,
(TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1),
(TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1))
BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR')
But how to put two conditions for the same Expression:
WHERE DECODE ((E.qualification_sid, 1104) AND (E.RANK_SID, 8),
(TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1),
(TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1))
BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR')
The previous code gives me this error: missing right parenthesis -
How to use the standrad Refresh button in ooalv Grid?
Hai Experts ,
i write editable oo alv program its works fine. when change the data
then click save button its saved correctly, but the problem is totals of row & column not refresh when i am click the
Refresh button . Please Help how to handle the standard Refresh button in ooalv .
Thanks
Adv....thank q u for ur reply,
when i edit the data in grid and save the data its saved successful,
but the problem is manually i calculating the totals at the end of the Row as well as at end of the columns,
when i edit the data in Grid that totals are not effected for that im using the Standard Refresh button ,
Plz help me. -
How to intercept the InCopy 'Save' button action?
Hi,
I have an InCopy plug-in that can successfully intercept ‘Save’ actions from the File->Save menu (using an Action Filter).
But in InCopy there is also a Command Bar that contains a ‘Save’ button. The problem is that I cannot work out how to intercept this button action from within the plug-in code.
I have tried ‘Spy’ and tracing events and so far there does not appear to be any clue to what I should be intercepting to achieve this.
(the button action does not appear to trigger a FileSave action... which is what I was hoping it would do).Thanks for the reply, I am beginning to think that I need to do something similar.
Did you disable the button via code?
I know that the class id (boss) for this button is kSaveButtonBoss.
Regards
Malcolm -
How to use the video control buttons on YouTube with voice over
I have a Macbook Pro and since I am totally blind I use the voice over. I am watching YouTube videos but I can't access the buttons at the bottom of the screen. I can't play/pause the videos or use the slider. I ca't use any of those buttons. Is there sometihng I am missing here?
I dont know if you will be able to connect other device like PS3 or Wii.
As far as I know only the Xbox 360 could be connected to a Qosmio and could be used with the Windows MCE.
I presume this is possible due to connection of Microsoft products; MCE and Xbox360
To be honest; why you dont take a look into the user manual if this notebook is new to you?
All details are mentioned in the user manual which is already preinstalled on the notebook. -
How to use the reset utility button when the device is not recognized?
like many other shuffle first generation users, after purchasing a second generation ipod and tried using first generation itunes, it wanted me to update software. So I did. Now the computer, a/c adaptors, ihome alarm clock does not recognize my first generation shuffle. The reset utility will not work because it can't find the ipod. And, no it is not Windows because other devices are recognized on the same port but not the ipod. I AM UNABLE TO CHARGE MY IPOD. That is unacceptable. APPLE, figure out how to fix this. It is not fair to pay a $100 for a product and have it work for only as long as a newer product is created! What is everyone supposed to do with these IPODS?
I would agree. I picked up an ipod shuffle bascially
because it's the smallest and lightest player I could
find. I was also replacing a SanDisk device that
worked perfectly for 4 years until it was damaged.
Anyway, I've been screwing around with this 2nd
generation shuffle, which my PC WIL NOT recognize,
nor will iTunes. It's downright sad that the device
depends on iTunes to work in the first place,
particularly because that's a piece of garbage
software to begin with. Every other device
manufacturer in the world seems to be able to figure
out how to build USB devices that are immediately
recognized by XP pro without any screwing around,
software installation or ridiculous blinking lights.
The four year old Sandisk device, for example was a
hassle-free installation with significantly older
software. I don't get this one at all, but it would
be great to see a solution, which are absolutely not
in the suggested '5 Rs'. Incidentally, there
shouldn't be 5 anythings, there should be one
'P'--plug in, like the $20 mp3 players that are
available.
So return it... -
How do I use the CASE statement in the where clause?
Hello Everyone,
I have 2 queries that do what I need to do but I am trying to learn how to use the CASE statement.
I have tried to combine these 2 into one query using a case statement but don't get the results I need.
Could use some help on how to use the case syntax to get the results needed.
thanks a lot
select segment_name,
product_type,
count (distinct account_id)
FROM NL_ACCT
where
ind = 'N'
and
EM_ind = 'N'
and product_type in ('TAX','PAY')
and acct_open_dt between (cast('2006-01-17' as date)) and (cast('2006-01-17' as date) + 60)
GROUP BY 1,2
order by product_type
select segment_name,
product_type,
count (distinct account_id)
FROM NL_ACCT
where
ind = 'N'
and
EM_ind = 'N'
and product_type not in ('TAX','PAY')
and acct_open_dt between (cast('2006-01-17' as date)) and (cast('2006-01-17' as date) + 30)
group by 1,2
order by product_typeSomething like:
SELECT segment_name, product_type,
SUM(CASE WHEN account_id IN ('TAX','PAY') and
acct_open_dt BETWEEN TO_DATE('2006-01-17', 'yyyy-mm-dd') and
TO_DATE('2006-01-17', 'yyyy-mm-dd') + 60 THEN 1
ELSE 0 END) tax_pay,
SUM(CASE WHEN account_id NOT IN ('TAX','PAY') and
acct_open_dt BETWEEN TO_DATE('2006-01-17', 'yyyy-mm-dd') and
TO_DATE('2006-01-17', 'yyyy-mm-dd') + 30 THEN 1
ELSE 0 END) not_tax_pay
FROM NL_ACCT
WHERE ind = 'N' and
em_ind = 'N' and
acct_open_dt BETWEEN TO_DATE('2006-01-17', 'yyyy-mm-dd') and
TO_DATE('2006-01-17', 'yyyy-mm-dd') + 60
GROUP BY segment_name, product_type
ORDER BY product_typeNote: You cannor GROUP BY 1,2, you need to explicitly name the columns to group by.
HTH
John -
How to use the action OnExpandAll on UI element Tree
Hi, experts .
I am in WDA developing project and developing the screen which has Tree .
I want to expand all nodes when users click the button on the head of Tree .
I copied the application `WDT_TREE` and created Tree of my application successfully .
And I created the action OnExpandAll on my Tree and tried to create the function to expand all nodes .
But I do not know how to use the action OnExpandAll .
I can see the button to start action OnExpandAll on the head of Tree .
I am trying to write logic in the action . But it does not work successfully .
(In my tree , when I click the button for OnExpandAll , all nodes are outputted on root node .
Because my logic is wrong ... )
Please give me any hints .
MasaoHi
As your case it is a recursive node.
then you have to create method and call it recursively for the expanall functionality.
do it like this.
create an attribute the node FOLDER
name = 'ISEXPANDED'
type = WDY_BOOLEAN.
Now bind the property expanded of treenode FOLDER UI to this attribute.
now go to the methods tab and create one method say name ZEXPANDALL.
in thsi method make one importing parameter of type ( type ref to ) if_wd_context_node. and name NODE.
then write the following code in this method.
method ZEXPANDALL .
DATA ELT TYPE WDR_CONTEXT_ELEMENT_SET.
DATA EL TYPE REF TO IF_WD_CONTEXT_ELEMENT.
data nd type ref to if_wd_context_node.
data nds type WDR_CONTEXT_CHILD_MAP.
data chld type wdr_context_child.
data nf type ref to if_wd_context_node_info.
data name type string.
ELT = node->GET_ELEMENTS( ).
LOOP AT ELT INTO EL.
EL->SET_ATTRIBUTE(
NAME = 'ISEXPANDED'
VALUE = ABAP_TRUE
data parent_key type string.
EL->get_attribute( exporting name = 'TEXT' importing value
= parent_key ).
* create the child nodes
create_node(
exporting
cur_element = EL
parent_key = parent_key ).
nds = el->get_child_nodes( ).
loop at nds into chld.
nd ?= chld-node.
nf = nd->get_node_info( ).
name = nf->get_name( ).
if name eq 'FOLDER'.
zexpandall( "recursive call
nd
endif.
endloop.
ENDLOOP.
endmethod.
NOw go to your eventhandler created for action expandall.
there write the following code.
method ONACTIONEXPANDALL .
DATA lo_nd TYPE REF TO if_wd_context_node.
lo_nd = wd_context->get_child_node( 'FOLDER' ).
ZEXPANDALL( lo_nd ).
endmethod.
thats it.
Thanks
sarbjeet singh -
I have installed a trial of Adobe illustrator on my macbook pro. It is the 2014 release of adobe illustrator. I want to trace an image using the custom trace button.
I start a new document. Then I place my scanned pencil/colored pencil drawing, in to the document. I have tried scanning and then placing it as a jpeg, bitmap, and tiff file. I have tried scanning and then placing it, in color and in black and white. The scan mode I use is flatbed. Adobe illustrator allows me to select the default button and one of eleven preset buttons (e.g high fidelity photo), but it does not allow me to click the custom trace button. The custom trace button is grey while all the other buttons are white.
Does anyone have any ideas how I could custom trace?It seems pointless to adjust it afterwards because it is then only a couple a pencil lines rather then a full drawing. And how do I adjust it afterwards? Would I do this using the different buttons under the window button?
-
Can anyone tell me how to access the sync apps button please? I used to be able to select it but it is no longer visible.
You have to connect and select iPhone in computer iTunes Sidebar.
If you don't see the Sidebar, toggle it on in iTunes menu View > Show Sidebar.
Take a look at this screenshot on updating apps. -
When using the up/down buttons in the Inspector, how do I get them to move by .01, instead of default, which is always too much.
Feature unavailable.
Most of the time it's more efficient to type directly the wanted value.
Yvan KOENIG (VALLAURIS, France) mercredi 1 février 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My Box account is : http://www.box.com/s/00qnssoyeq2xvc22ra4k -
I shot at a Live performance last weekend by using the 'capture now' button. Now, my FCP is only playing the first 6 frames - how can I access or recover the full hour I shot?
FCP X? Then you need to use a different forum...This is the FCP 7 and earlier forum:
https://discussions.apple.com/community/professional_applications/final_cut_pro_ x
FCP 7? Did it look like it captured normally? Everything go smoothly? Stop normal? Did an error occur at any point? Can you open the file in QT?
In the future...do not rely on ONLY FCP for this task. Get a reputable recorder that can record to ProRes. AJA KiPro, KiPro Mini, Atmos Ninja, Decklink Recorder...lots of options. -
How to change the search provider when using the Firefox Home Button Search feature?
In Firefox itself I have configured duckduckgo as my default search provider.
But when I use the Firefox Home Button Search it is always set to google and I do not see any option to change that?
I like the Firefox Home Button Search (or whatever it's called) otherwise, but it's annoying that it does not use the default from Firefox.
I use the Google Now Launcher.''philipp [[#answer-704494|said]]''
<blockquote>
...usually it will be enough to switch the default engine in firefox back and forth once to work around the issue...
</blockquote>
Thank you, problem resolved -
How to use the POST method In Oracle APEX 3.1
Hi,
In APEX if we are submitting the page the parameters( Variables ) will pass through URL.
How to hide the these parameters from URL??
I Hope POST method will solve this problem.
How to use the POST method in APEX???
Help me out to solve this problem.
thanks in advance.
Cheers,
ShanIn APEX if we are submitting the page the parameters( Variables ) will pass through URL.No they won't. Submission POSTs the <tt>wwv_flow</tt> form.
Sometimes a branch may be performed after submission, generating a URL in which parameter values are visible. To avoid this, use the save state before branching option.
Other actions—like using navigation lists, or clicking a link in a report—will perform a GET using parameters in the URL. In these cases using Session State Protection is advised. -
Hi All,
How to use the manually entered Hours/Days in the Duration field for BG_ABSENCE_DURATION fast formula?
Requirement is to restrict employees for applying for leave more than the accrued balance. In SSHR, apply leave functionality, the employee enters the start date, end date and duration manually. The entered duration must be used in the fast formula to check against available balance.
In the BG_ABSENCE_DURATION FF, I have a function to calculate the net accrual balance as on the calculation date.
I want to add the logic as - If to_number(Duration) /*[manually entered value]*/ > net accrual balance then
Duration = 'FAILED'
invalid_msg = 'Error'
return duration, invalid_msg
Thanks!Hi,
We have a standard functionality to override the duration calculation and you don't need to add a validation for the same. Please set the value of profile option HR: Absence Duration Auto Overwrite to Yes
When you do this user will not have to enter the duration value manually. It will get auto calculated based on the duration calculation in BG_ABSENCE_DURATION when you click on the next button.
For not allowing negative leaves to be applied, If you are on R12 then, this is a standard functionality and you need to set profile option HR Allow Absence Negative Balance to No
If you are on 11i then refer Note: 268171.1: How Do You Stop Accrual Plans from Going Negative?
Try and let me know in case you need further help.
Thanks,
Sanjay
Maybe you are looking for
-
Here is the deal, i have not been a good mac owner in the sense that i probably havent had proper updates throughout the years. Hence, my itunes is out of date and my iphone doesnt get recognized by itunes (poor fella). but the strange thing is tha
-
Access Services Not Working Correctly
I have deployed Access Services and kept to the correct steps accurately according to the Microsoft whitepaper on deploying it. When I create a new Access app, this is the way it looks in a browser when I go into it: As you can see, it looks quite te
-
Function Module used to updating URL attachment in RE80
Hi there ! I'm currently developing a program in RE module . I'm finding off ways on how to auto update my URL attachment in RE80 , someone told me to use the function module SO_OBJECT_UPDATE to do it , but then I don't know how it works ? Can someon
-
is there a way around the 7 photo limit per month in iphoto when you are making a calendar?
-
Can't render in Premiere when I have After Effects open MAC OSX YOSEMITE
When I'm using dynamic link with AE files in my PP timeline I can't get it to render at a normal pace. It will start and then crawl for the simplest of tasks. The only way I get it to work is by clicking off of PP into AE and then back to PP again. T