BAdI HRCATS_APPR_CUST - How to differentiate whether it is called from UWL?

Hi,
We are using the standard WebDynpro for Time Approval msscatTimeApproval.
Implemented the BAdI HRCATS_APPR_CUST for filtering the number of records.
Since this BAdI is called when using both UWL (Universal Worklist) and Time Approval, we have major issues.
I want this BAdI to work only under the Time Approval and should NOT work when called within UWL.
None of the SYST parameters were set during debugging. So wondering what other possible runtime parameters available in Portal when calling the BAdI in different areas.
Thanks in advance for your input.
Siva

Which is method is used to do the validation ? Depending on the method, you may have to access the attributes of Local Class to identify the state of document (New / Existing). 
Refer to this wiki post [Purchase Req. Line item Data manipulation using BADI - ME_PROCESS_REQ_CUST |http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseReq.LineitemDatamanipulationusingBADI-+ME_PROCESS_REQ_CUST] ( This is related to purchase requisition, still give an idea about using attributes in local classes inside badi method)

Similar Messages

  • How to differentiate whether user entered '0' or no value in the parameter?

    I need some clarification.On my selection screen I have 4 parameters( P_QTYLL,P_QTYUL,P_AMTLL,P_AMTUL). I have to check the values entered by the user in those fields and I have to display the user entered values in the next screen.My problem is if the user enters '0'(in any of the above fields) means '0' has to displayed in the next screen.But if he enters nothing means then nothing has to be displayed in the next screen.My problem is I am checking for '0', against the values(initial,'',space,0) for user entered value.But I am unable to differentiate the '0' and nothing(no value) even though I checked against the values(initial,'',space,'0').All the 4 conditions are treating both the '0' and 'novalue' the same.How to differentiate whether user entered '0' or entered nothing(no value).
    for example below is my code
    IF P_QTYLL EQ 0.
    P_QTY_LL = P_QTYLL.
    ENDIF.
    IF P_QTYUL EQ 0.
    P_QTY_UL = P_QTYUL.
    ENDIF.
    IF P_AMTLL EQ 0.
    P_AMTLL_S = 0.
    ENDIF.
    IF P_AMTUL EQ 0.
    P_AMTUL_S = 0.
    ENDIF.
    IF P_QTYLL EQ ''.
    P_QTY_LL = ' '.
    ENDIF.
    IF P_QTYUL EQ ' '.
    P_QTY_UL = ' '.
    ENDIF.
    IF P_AMTLL EQ ' '.
    P_AMTLL_S = ' '.
    ENDIF.
    IF P_AMTUL EQ ' '.
    P_AMTUL_S = ' '.
    ENDIF.
    LIKE THE ABOVE I checked against the values space,initial.But using those I am not getting any difference for no value and '0' .All the four values(space,initial,'0','') are treating both the '0' and no value in the same way.
    Thanks,
    Balaji

    hi,
    you said your teamlead doesn't want the type to be changed to 'C'.so try adding one dummy variable  of type c and pass your parameters value to this dummy variable and check  dummy variable for value '0'.
    eg:
    Data DUMMY(11) type c.
    DUMMY = P_QTYLL.
    IF DUMMY EQ 0.
    P_QTY_LL = P_QTYLL.
    ENDIF.
    DUMMY = P_QTYUL
    IF DUMMY EQ 0.
    P_QTY_UL = P_QTYUL.
    ENDIF.
    i think this will help you 2 some extend.

  • How do I make a phone call from my mac with yosemite?

    How do I make a phone call from my MacBook Pro on the Yosemite operating system?

    The following quotation is from Connect your iPhone, iPad, iPod touch, and Mac using Continuity
    There is more information in the link, including supported hardware and that you must have Settings > FaceTime > iPhone Cellular Calls set to on on the iPhone.
    Phone calls
    With Continuity, you can make and receive cellular phone calls from your iPad, iPod touch, or Mac when your iPhone is on the same Wi-Fi network.
    To make and receive phone calls, here's what you need:
    Sign in to the same iCloud account on all your devices, including your Mac.
    Your iPhone and your iPad or iPod touch need to use iOS 8 or later. Your Mac needs to use OS X Yosemite.
    All devices must be on the same Wi-Fi network.
    All devices must be signed in to FaceTime using the same iCloud account. This means any device that shares your Apple ID will get your phone calls. Look below for instructions on how to turn off iPhone cellular calls.
    Wi-Fi Calling needs to be off. Go to Settings > Phone. If you see Wi-Fi Calling, turn it off.
    Make a call
    To make a phone call on your Mac, iPad or iPod touch tap or click a phone number in Contacts, Calendar, or Safari.

  • How do I change answering a call from slide to one button push

    How do I change my iPhone 5 when receiving a call from slide to one button answer?

    Utaginat wrote:
    ... so I want the push button type instead.
    Apple Feedback

  • How to make a dynamic function call from within a package procedure

    Hi:
    I need to call a function dynamically (name and parameters determined at run time, but return value is known:always an integer). I can build the call and place it in a dynamic sql using dbms_sql. But the function is inside a package and is not public.
    So, if I issue:
    dbms_sql.parse( cur,'SELECT '||call||' FROM dual', dbms_sql.v7 )
    where call is "DOS(234,'V')"
    I get:
    ORA-00904: "DOS": invalid identifier
    If I make the function ("DOS") public and "call" equals "pack.DOS(234,'V')", it works fine, but I don't want to make it public.
    Is there a solution?
    Thanks in advance
    RuBeck

    Hi, Kamal:
    Calling from outside of the owner package is not possible if it is not public.The calls are from inside the package. It looks like the dynamic select is executed "outside" the package, so the private function is unknown
    Make it available in the package headerLooks like it's the only solution
    How often this will be executed?This is a library for loading files into tables and executing dynamic validation procedures.
    Here's an example of the mechanics:
    create or replace package mypack as
         function one return number ; -- public function
         procedure execute_it( p_name VARCHAR2 ) ;
    end ;
    create or replace package body mypack as
    function one return number is
    begin
    return 1 ;
    end ;
    function two( i number, s varchar2 ) return number is -- private function
    begin
    return 2 ;
    end ;
    procedure execute_it( p_name VARCHAR2 ) is
    select_str VARCHAR2( 1000 ) ;
    v_num NUMBER ;
    cur NUMBER ;
    nf NUMBER ;
    begin
    select_str := 'SELECT '||p_name||' FROM dual' ;
    cur := dbms_sql.open_cursor ;
    dbms_sql.parse( cur,select_str,dbms_sql.v7 ) ;
    dbms_sql.define_column( cur,1, v_num ) ;
    nf := dbms_sql.execute( cur ) ;
    IF dbms_sql.fetch_rows( cur ) = 0 THEN
    RAISE no_data_found ;
    END IF ;
    dbms_sql.column_value( cur, 1, v_numero ) ;
    dbms_output.put_line( p_name||' returns '||v_num ) ;
    dbms_sql.close_cursor( cur ) ;
    end ;
    end ;
    begin
    mypack.execute_it( 'mypack.one' ) ; -- Call public function: Works fine
    mypack.execute_it( 'two(234,''v'')' ) ; -- Call private function: error 0904
    end ;
    Thanks for your hints
    RuBeck
    PS: The indentation is lost when I post the message! I wrote it indented!

  • How do I clear an old calls from middle of screen

    how do i clear old call from middle of screen

    Uninstalling iTunes just removes the program.  It does not remove the database or media files which are what you see when the program opens.
    Trash the iTunes folder.  Not the program but the one at \Users\username\My Music\iTunes\ or whatever location is provided for the system version you are running in:
    What are the iTunes library files? - http://support.apple.com/kb/HT1660

  • How do get a history of call from contact

    How do I get a history of calls from a contact?

    Either under Recent Calls or by searching through your call history from your billing statement with your carrier.

  • How to differentiate purhcase order on hold from that of saved one

    Hi all,
    Due to customer req i designed an IDOC that send PO from R/3 to SCM. My report will be scheduled background everyday b4 midnight so that all the PO's created for that day are trasnferred to SCM. Now if they create a PO and put it on HOLD to get approval i should not send that PO. How can i knw the diff in these PO as i read PO from EKKO
    Regards,
    jayaram

    Hai..
            Pending PO 's means Hold documents.
            Check the EKKO-PROCSTAT field value.
             If the status = '01' or '03' or '04', then that is a hold document.
    Before reading the PO' s into IDOC check the status first.
    If status is not in the mentioned values then only pick that PO' s. OK
    Regards
    Sekhar.C
    Edited by: sekhar on Dec 5, 2008 9:34 AM

  • How to detect whether the request is from Desktop or Mobile and redirect accordingly.

    Hi,
    I have 2 pages with alomost data, one(for mobile devices) page having only important highlights. I want to redirect to mobile devices page when the request is from mobile devices and to regular webpage when request is from desktop...
    How can I achieve this?
    Regards, Shreyas R S

    Hi Shreyas,
    Actually you know that this forum is to discuss the VS IDE usage, it seems that it is not the VS IDE issue.
    To help you find useful information or provide a
    more appropriate
    forum, would you mind letting us know more information about this issue? Which kind of app did you develop? Is it related to the Windows Phone development
    or others?
    If it is related to the windows Phone, this forum would be better.
    https://social.msdn.microsoft.com/forums/windowsapps/en-us/home?category=windowsapps
    If not, please let us know more information about the real issue.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How Do You Debug Oracle Report Calls From Forms On The App Server?

    I am working on a system which uses oracle forms and reports 10g.
    In our system we call, we are calling oracle reports from oracle forms. How do we debug the form code when the form and report both are running on the application server in production.
    To my knowledge, this can not be done when the form is running locally since there is only OC4J forms services locally.
    I understand one views error messages through the jinitiator console but how does one turn on this facility? How do you determine what line the error occurred?
    I am looking for step by step instructions as answer to this issue.
    Please be specific. Please write in good English.

    Good afternoon,
    If you have the developer suite installed on your PC, run the report from your form and then follow this tree from the start button on your PC:
    Developer Suite Home =>
    Reports Developer =>
    Oracle Application Server Report Services =>
    Reports Queue Manager
    Select View => Past Jobs and then find your report in the list, double-click the report entry and you'll see the error message that was generated by the Report Server when you tried to run the report.
    Good luck,
    Don.

  • How do I delete individual phone calls from the recent tab on my 3GS?

    Hi there all,
    My first post online in an Apple forum. God I wish I switched from my HTC pile of %$*&! to an iPhone earlier, what a great phone.
    I have gone online and read the manual as to trying to find the answer but I can't. So maybe fellow users can assist me?
    In the recent calls tab on Ver 3.1 How do I delete individual calls without deleting the entire history of all the other calls?
    Say I have ten phone calls on my screen in the recent tab. I want to delete the one from Bob Claus and leave the rest of the history of all other callers there?
    How does one do this please?
    Many thanks in advance for your assistance and advice.

    Welcome to the discussions,
    this is not supported at this time. If you want this feature, you can leave your suggestion directly here http://www.apple.com/feedback/iphone.html

  • How to see which fields are called from a datasource?

    Hy Experts
    I have the datasource 8ZDS_DS02 and I want to know which fields in R/3 System are 'maped' to the infoobjects.  How can I do?
    Thank you in advance!

    if you have 8ZDS_DS02 as datasource, then you need to go to the update rule, Transfer rule of ZDS_DS02 and see what is being mapped to the datasource, whatever you see in 8* datasource is coming from the base ods which is ZDS_DS02.
    thanks.
    Wond

  • How would I display paper report, called from forms?

    I want to call reports 9i, from forms 9i, and display the paper report on the screen. How would I do this? So far I have gotten forms to call the report and give me a status back of FINISHED, but I don't see anything displayed on my screen.
    Thank you.

    Hi,
    you use the Forms Web.Show_Document() built-in for this. Please read http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    Frank

  • How do i make a phone call from my mac

    i can't make a phone call from my mac nor receive phone calls

    NO my mac is on a different wi-fi than my phone

  • How do I make a phone call from iPad?

    I set up my iPhone 5S personal hotspot, then link to it on the iPad (both running iOS 8). I can access the internet from the iPad, but cannot make a FaceTime phone call. Did I misunderstand the Keynote address that this would be possible with iOS 8?

    Joe,
    I hope you can help as I have the same issue.  First the basics: my iPhone 5 and iPad Air both have iOS 8 installed (there are still three family devices on the same apple id/icloud account that are not yet on iOS 8).  Both devices list the same phone number in Messages and FaceTime and both those apps use the same iCloud account.  Both devices are on the same wifi network.
    But when I get a call on my iPhone, the iPad most definitely does not give me the option to respond.  And nothing happens when I try to tap on a contact on the iPad.  :-( :-(
    I went through the links above and note a couple odd things.  For instance, the user guide says:
         "Disable iPhone Cellular Calls.  On your iPhone, go to Settings > FaceTime, then turn off iPhone Cellular Calls"
    When I go to my iPhone's Settings->FaceTime, there is no option to "turn off iPhone Cellular Calls".  What are they talking about?
    In the third link, the instructions for making phone calls have a fourth step:
         4. Wi-Fi Calling needs to be off.
    What does that mean?  Where do I look to make sure it's off?
    As an aside, I'm writing this from my 2010 MBP running Yosemite beta 3 and there appears to be no connection between it and my nearby iPhone either.  My MBP is on the same wifi network as the iPhone and both the Mac's FaceTime and Messages have the same phone # set as on the iPhone.  But when I go into the address book and look up a contact, no "phone" icon/button shows up next to the contact's phone number.  When  a call comes into the iPhone, nothing happens on the mac.

Maybe you are looking for

  • Instable - serious decline in performance

    Hello All, I dont know what have happened, but my MBP had a serious decline in performance. Now, even for simple task as opening a new tab in Firefox is showing a significant delay. I am talking about using only Firefox and Mail at the same time. Not

  • When it sleeps I lose connection

    Hello, I'm new to the Mac world. I just purchased my first iMac last week and an Airport Extreme. I set it up wirelessly and it connects directly to an old PC and a printer. Every time it goes to sleep or I turn it off my internet does not work. It s

  • Order of execution of JPDK Portlets inside the same Portal Page

    We have 2 Sample JPDK Portlets from the same provider on our page - A LoginPortlet that accepts the username and Password - A Welcome Bin Portlet that shows the logged in user's details Once the user enters username and password in the LoginPortlet,

  • How to create Reports and Forms using JSP

    Hi, How to create reports using JSP. And how many types of reports can be created using JSP.Can anyone explain with example please. Thanks, Vijayalakshmi.M

  • Command tag with OraFormsGenerator

    Hi, I am working on a project and I have to include Oracle Forms in a JHeadstart application. The interaction from JHS app to Forms is working fine. All parameters are passed. The problem comes up when I want to use an off command so I can catch an a