Execute Custom code to do a warning message on SSHR Manager Appraisal form

Hello - I do not know much about Java/OAF, but I'm really trying to learn! Here is my requirement,
please help me in getting this done.
Requirement : On Employee appraisal form, they will have their yearly objectives and their weight percentages.
These objectives weight percentage is in per_appraisal table attribute1 field(DFF).
The total weight percentage of an employess all objectives should be equal 100.
When manager will login to give them a final rating, the total of all weights percentages should be equal to 100,
if not I have to through a warning message on the Manager's appraisal form(CompFinalRatingsCO).
To calculate the total weight, we can certainly write a small pl/sql function or a procedure.
But how can I execute that code and show a warning message on SelfService HR Manager Appraisal form?
Thanks in advance for your help.
Thanks
- Srini

1) extend the CO attached to your page.
2) Capture the Button in Processformrequest of your extended CO.
3) Call a plsql function or procedure with OUT param which will return whether 100% weightage has been entered or not.
If Not, then throw warning message.
Here is the way to call Plsql proc with OUT param.
String sql =
"BEGIN bcr12_mapping_tool_procs_pkg.XXBCR12_HAS_MANDATORY(:1,:2); END;";
OracleCallableStatement cs =
(OracleCallableStatement)am.getOADBTransaction().createCallableStatement(sql,
1);
try {
cs.registerOutParameter(2, 1, 0, 2000);
cs.setString(1, int_name);
cs.execute();
String new_status = cs.getString(2);
cs.close();
if ("Y".equals(new_status.trim())) {
throw new OAException("Please enter all mandatory column highlighted.",
(byte)0);
} catch (Exception ex) {
throw new OAException(ex.getMessage());
}

Similar Messages

  • How to execute custom code only when a specific node is selected in infoset

    Hi,
    We have written a piece of custom code under a node (P1045). Not all users will have access to this Infotype as it is related to Appraisals. So, when users (w/no access to 1045) try to run a Query for other info types data, they are getting error message 'Can not access 1045'. Custom code is getting generated whenever user runs a query. Tried to control custom code with simple IF condition by giving user name. Still generating 1045 code.
    All users use same infoset, where a group of users has access to 1045 and another group does not have access to 1045.
    Appreciate your inputs to get this resolved.
    Thanks,
    Swapna.

    Why don't you try another aproach, instead of adding the infotype to the infoset, create a new table as an alias (with the fields you want to show in regards to infotype 1045) and fill it in the node depending on the authorization check for that infotype in the code ?
    I think that adding the infotype as a node will always get the data from the infotype regardless, that is why it's showing the error.

  • Execute custom code when grabbing an instance from inbox

    Hey Guys,
    I work with ALBPM 5.7 and we need to execute some basic custom code (such as updating a custom db) when an instance is grabbed from the inbox. Is there a way to do this?
    I would think there would be a handler or something available, that we can plug in.
    Basically, when an instance is grabbed from the inbox, it does get assigned to the participant. I need to execute some code so the participant name goes to the custom db too. Any suggestions?
    thanks

    Hi,
    Adding a screenflow just like when you add a screenflow for an Interactive activity.
    1) right mouse click the Grab activity
    2) click "Main task"
    3) select "Screenflow" from the implementation type dropdown
    4) click the "New" button.
    5) name the screenflow
    6) click "Next"
    7) decide what variables you want to come into (usually just the BPM object in your process) and what you want to go out of the screenflow (usually just the BPM Object, result and action variables)
    8) click "Next"
    9) click "Finish"
    10) click "Ok"
    11) click "Ok"
    Hope this helps,
    Dan

  • Warning Message when trying to print form

    Hello,
    We made some changes to a SAPScript and it's print program.  Everything was looking good untill the client tested it in the production box.  When trying to print the receipt using FB12 (to choose correspondence type), F.61 (to issue the spool request) and SP01 (To display the output) the following warnings where displayed in F.61 and the spool request was never issued.
    Can anyone help?? Thanks in advance.
    1. Message ID FB, Message #219 - Doc.type DZ correspondence lang.  doc.type name lang. E
    2. Message ID FB, Message #826 - Output of correspondence ZLMR1 1500 1400000001 2010 *******  20100921 101023 for acct type/acct D ##########
    PD. I've replaced username with * and accnt ID with # signs.

    To be more specific (for future users who will meet this problem);
    Both messages, FB219 and subsequently FB826 are caused by the fact that the description of document type DZ is not maintained in language 'E'. If this desciption is maintained, both messages will vanish.
    Regards,
    Arthur

  • Warning message in AVC in MB1A

    Dear,
    In FM i have set system warning message 70% and error message 100% in AVC. This is working fine in creation of PO, but during consumption MB1A system not issue warning message when budget consumed 70% or more but showing error message on 100%consumption.
    What is the reason during MB1A system not showing warning message if budget consume 70%or more ?
    Regards,
    Rabin.

    Hi,
    It is not Possible to give the Warning message in the Field Exit, We only pass the ERROR message to it. Just capture the value in the Field Exit and after the Field exit, if it possible to add the code then raise the Warning message there
    Regards
    Sudheer

  • Assign Customer Code Externally

    Dear Gurus,
    I would like to assign the Customer code externally instead of system generated one in XD01. For example, when i choose the Account Group as " Sold to Party" and enter the customer code manually, it gives the message that i cannot assign and it will be generated internally. Kindly advice in this regard at the earliest.
    Regds
    Jeevagan.U

    HI Geeva
    As per my understanding from your question  , you want to  give  external number  range to customer  ,  to do this you need to assign external number range to A/C group , so that you can give  external  number range to customer  hope it will solve your problem 
    path- IMG-Financial  Accounting Global setting - A/C receivable and  A/c payable - Customer Accounts -Master data- Preparations  for creatiing  customer master  data- define account group s with screen layouts ( customer ) and  create  number  range for customer  account grps -assign  number  range for  customer  account grp( here you  should assign it as external number range)
    Regards
    Venkat

  • When throwing Warning Message from EOImpl, Text, Cause and Action is coming

    Hi,
    When I am throwing JBO Exception through EOImpl code, I am getting warning message with Text, Cause and Action, But my aim is to get only Text message.
    /* Code used */
    JboException e = new ApplcoreException("Message Code");
    e.setSeverity(JboWarning.SEVERITY_WARNING);
    throw e;
    /*end*/
    Please suggest some approach.
    Thanks
    Ankur

    Applcore is not availble to the Outside world , so better to post this on the internal ADF Frontend forum.
    I suspect there might be another API to do this .

  • Warning message for Managed server

    Hi,
    I am using weblogic 11g and OS is LINUX.
    I am getting warning message for my managed server as "ThreadPool has stuck threads".
    And values of "Self-Tuning Thread Pool" are
    Active Execute Threads : 17
    Execute Thread Total Count : 17
    Execute Thread Idle Count : 8
    Queue Length : 0
    Pending User Request Count : 0
    Completed Request Count : 18529
    Hogging Thread Count: 6
    Standby Thread Count: 0
    Throughput : 13.486513486513486
    and thread dump is
    "main" waiting for lock weblogic.t3.srvr.T3Srvr@4c704c70 WAITING native
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:167)
         weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:849)
         weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:465)
         weblogic.Server.main(Server.java:67)
    "JIT Compilation Thread" RUNNABLE
    null
    "Signal Dispatcher" RUNNABLE native
         com.ibm.misc.SignalDispatcher.waitForSignal(Native Method)
         com.ibm.misc.SignalDispatcher.run(SignalDispatcher.java:54)
    "Gc Slave Thread" RUNNABLE
    null
    "Gc Slave Thread" RUNNABLE
    null
    "Gc Slave Thread" RUNNABLE
    null
    "Thread-4" waiting for lock java.util.Timer$TimerImpl@13ee13ee WAITING native
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:167)
         java.util.Timer$TimerImpl.run(Timer.java:210)
    "Thread-5" waiting for lock java.util.Timer$TimerImpl@344a344a TIMED_WAITING native
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:196)
         java.util.Timer$TimerImpl.run(Timer.java:230)
    "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
    "[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@4a2f4a2f WAITING native
    "[STUCK] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
    "[STUCK] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
    "[STUCK] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
    "[STUCK] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock [email protected]238d2 TIMED_WAITING native
    "[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@63776377 WAITING native
    "[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
    "[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@b230b23 WAITING native
    "[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@6d096d09 WAITING native
    "[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
    "[ACTIVE] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@8ee08ee WAITING native
    "[ACTIVE] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@64426442 WAITING native
    "[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
    "[ACTIVE] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@7a087a08 WAITING native
    "[ACTIVE] ExecuteThread: '15' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@35d035d WAITING native
    "[ACTIVE] ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@6300630 WAITING native
    Please suggest me how to resolve this issue.

    Hi,
    The problem is that the <b>directory /appl/webbus/bea/user_projects/domains/ITIC-DEVEL-WLI/</b> does not exist at the node, because we have move it to <b>/appl/webdbus/</b> instead of <b>/appl/webbus/</b>. The question is why applications need to create adminServerDevel/upload directory and how can override it.
    Thanks in advanced

  • Warning message "Calculating result as"

    Hi,
    When i execute the query i get a warning message as
    "Warning 'Calculating result as .....'was not executed.
    I am worried that something did not caluclate or the results are incorrect.
    Could any one of you tell me what is causing this error to occur and the nature of the way.I will assign points.
    Thanks,
    Subha

    Hi subhashini,
    "Calculate result as " is something which you find in the "Calculations" tab of the corresponding selection or formula in the query designer. What it usually does is perform Calculations on the displayed result set like count, average and many other aggregate calculations. Check what calculation is defined for the selections in that query and see if you can remove that warning..
    Check this link to help you debugging the issue
    http://help.sap.com/saphelp_nw2004s/helpdata/en/17/82853c2dc5c505e10000000a11405a/frameset.htm
    Regards, Uday
    Assign points for helpful answers and get one point for yourself.

  • Error message after chaning names of forms

    We changed the names on 5 or 6 data forms yesterday (from Planning, edited the form and changed the name on the Properties tab). After the name changes, we now get the following error message when accessing "Manage Data Forms" from Workspace only. If we log directly into Planning, we can go to "Manage Data Forms" and not receive the error message.
    Error message: "There was a communication error while loading tree data"
    Anyone have any idea what might be the issue here?
    I have searched the forum and the KB on my Oracle Support, but couldn't come up with anything.

    I can give that a shot tonight just to see if it does help, and then restore back to the current version so nothing is lost. If we were to replace the repository for the planning application, what sorts of things would we lose? We had created new version members and copied versions through planning since we started getting this error.
    We have another application that does open in Planning through Workspace without that error message, so it would make sense that its something to do with that application's repository.

  • Custom program - unknown warning messages after upgrade (4.6c to ECC 6.0)

    Hi,
    At work, we are currently upgrading from 4.6c to ECC 6.0
    One of the custom (z) programs that was moved is displaying warning messages, and preventing the user from viewing a report.
    The warnings appeared in ECC 6, but were never there in 4.6c. The warning message is "Restrict your selection". However, no matter how much criteria is entered, the warning message still appears.
    The program code uses no messages or error handling, and the messages show up on the initial selection screen, after hitting execute.
    However, just for testing, I copied the program to my own z program and it works fine.
    Why is this happening with the original program? While creating a new program with copied code fixes the problem, I donu2019t understand why this would be happening in the 1st place.
    Any ideas?

    So what the zprogram does? what tables are involved in the report, if possible post a link to your code.
    Regards
    Karthik D

  • Warning message in workbook when execute it

    Hi Experts,
    When I execute a workbook ,I am receiving below warning message,
    Warning: There is a condition on Customer Store ,results row suppress ,active on Customer
    Warning: There is a condition on Customer PO Number ,results row suppress ,active on Custom
    Warning: There is a condition on Material,results row suppress ,active on DIM1[ZDIM
    After I select close warning message,it is excuting and results are shown.Today i automate the report execution.But its ended with ABAP\4 raise exception short dump and job got failed.Pls advice me how to avoid it.

    HI Malini,
    Run the Queries induvidually in rsrt and suppress the messages in it.
    Thne try to run the work Book.
    Hope this solves the issue.
    Regards.
    Shafi.

  • Need to suppress warning message while executing querywith conditions.

    Hi,
    I have created report in which I have two conditions in report I am showing report data only if keyfigure value is greator than 4. In characteristics I have calmonth and customer I want to suppress result row  so supress result row is always  but warning message comes while executing report.
    Warning : There is a condition on Calmonth result row suppress active.
                    There is acondition on Customer result row suppress is active.
    How to avoid this message permanantly.
    Thanks & Regards
    Deepak Chavan

    Dear Deepak,
    1. Open ur query in rsrt2.
    2. When the warning message occurs, click on the mesage. u ll find the Notification number of it. Note it down.
    3. come to rsrt2 screen again.
    4. click on messages tab. search for ur message with notification number, in various tabs like generation, hierarchy etc..
    5. click suppress message check box for ur message. Save. Come back.
    6. Re-xecute the query.
    Hope this solves the problem.
    All the best.
    -Guru

  • Client not modifiable message while executing t-code ops7 and ops6

    Hi Guru's,
    I am getting "Client not modifiable message while executing t-code ops7 and ops6" in Unit test and Quality client.
    Pleae help me to resolve the error.
    Regards
    Sasikanth Reddy

    Hi
    Copy of the information I found regarding this issue:
    It is possible to allow the maintenance of 'Customizing'-tables in a       
    production client, even if the client is set to 'not modifiable'.          
    Normally this should be the case for tables TCJ04 (responsible person)     
    and TCJ05 (applicant).                                                                               
    Please could you check the settings in your system and change it if        
    necessary:                                                                               
    Transaction SE11:                                                                               
    Table TCJ04: delivery class should be set to 'C'                           
          TCJ05: delivery class should be set to 'C'                                                                               
    Transaction SOBJ -> Maintain                                                                               
    Position on V_TCJ04: Category should be 'CUST' field 'current settings'    
    should be marked.                                                                               
    Position on V_TCJ05: Category should be 'CUST' field 'current settings'                                                                               
    Please also check that your client is defined as 'PRODUCTIVE' via          
    transaction SCC4 (field client role).                                                                               
    I would also recommend that you review the attached notes with reference   
    to the usage of customizing setting "current settings": Nr. 77430,         
    Nr. 135028, Nr. 356483. These are also relevant for your release.          
    Kind regards,
    Zhenbo

  • How to remove the warning messages in CODE INSPECTOR of my report......?

    Hi All,
    I am trying to do the check to my program i.e CODE INSPECTOR. i am seeing the following warning messages below.
    1 warning message
    Program zraj0xxx include  zraj0xxx row 000083 Column0000
    %LINR-VBUP contains a hyphen
    (The Hyphen is used as a dereferencing operator! )
    Note: when i double click on the above message its taking me to the below code of my program.
    DATA %COUNT-VBUP(4) TYPE X.
    DATA %LINR-VBUP(2).
    TABLES VBPA.
    DATA %COUNT-VBPA(4) TYPE X.
    DATA %LINR-VBPA(2).
    2 warning message
    Program zraj0xxx include  zraj0xxx row 000079 Column0000
    Field string VLPMA is not referenced statically in the program
    Note: when i double click on the above message its taking me to the below code of my program.
    SELECTION-SCREEN: BEGIN OF BLOCK PROG
                               WITH FRAME TITLE TEXT-F58.
    TABLES: VLPMA,                                             
                  VLKPA.  
    TABLES VBUP.
    3 warning message
    Program zraj0xxx include  zraj0xxx row 000001 Column0000
    TEXT- GOH from the text pool is not used.
    Note: when i double click on the above message its taking me to the below code of my program.
    REPORT ZHYD0147 LINE-SIZE 255 NO STANDARD PAGE HEADING
       MESSAGE-ID ZB                                        
       LINE-COUNT 065(001).
    Thanks in advance.
    Rajesh.

    Hi Rajesh,
    First  warning message.
    DATA %COUNT-VBUP(4) TYPE X.
    DATA %LINR-VBUP(2).
    TABLES VBPA.
    DATA %COUNT-VBPA(4) TYPE X.
    DATA %LINR-VBPA(2).
    Here you are not supposed to use hyphen but instead use '_'.
    Second warning message
    Program zraj0xxx include zraj0xxx row 000079 Column0000
    Field string VLPMA is not referenced statically in the program
    That means you are not using this VLPMA any where in your program so bettr delete fromt he Top Include.
    Note: when i double click on the above message its taking me to the below code of my program.
    Third warning message
    Program zraj0xxx include zraj0xxx row 000001 Column0000
    TEXT- GOH from the text pool is not used.
    this also means that you are not using this Text elemnt anywhere of your program.So delete this one also.
    Thanks
    Rohini.

Maybe you are looking for

  • Could not complete the paste command because there is not enough memory (RAM)

    Hi, Anybody can help me please? i am getting this message again and again. i tried to restart system and re install Photoshop no luck. "could not complete the paste command because there is not enough memory (RAM)" will be great if i get reply asap.

  • Error in AET in SAP CRM 7.0 EHP1

    Hi All , I have created new table using AET in SAP CRM ehp1 and it  has created new z-component and z-table succusfully. When I opened the component and view and i noticed it has been created two context nodes. One is Parent and another is z-context

  • Oracle froms and jre1.6

    Hello, Can anyone tell if suns jre1.6.0_14 is certified for the oracle forms applications 10.1.2.3? I found out that jre1.6.0_04 is certified but are the later release of jre1.6.0_xx also certified? thx in advance.

  • Reversing accounting Document in SRS

    Hi we have created an Accounting document through SRS  now we client want to reverse this accounting document  through fb08  but not able to reverse can any one help us in this regard that how to reverse the accountin document created in SRS I will r

  • When i press "Alt" imac runs the command "duplicate" or "copy". It interferes with work, how to fix it?

    Good day! I have this problem: when i press "Alt" my imac runs the command "duplicate" or "copy". It interferes with work, how to fix it? Thank you.