How to check which RFCs causing issues in the system and RFC response times

Hi,
We have an issue with the RFC response times in CRM and need investigstion. We need to know which Which RFCs causing issues and how we can solve the problems.
Regards

Hi,
chek the below code
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
EXPORTING
FILE = W_FILENAME
RECEIVING
RESULT = W_RESULT
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
WRONG_PARAMETER = 3
NOT_SUPPORTED_BY_GUI = 4
others = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-* MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF W_RESULT IS INITIAL.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
EXPORTING
DIRECTORY = W_FILENAME
RECEIVING
RESULT = W_RESULT
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
WRONG_PARAMETER = 3
NOT_SUPPORTED_BY_GUI = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
ENDIF.
ENDIF.
IF W_RESULT = 'X'.
RC = '1'.
ELSE.
RC = '0'.
ENDIF.
reward if helpful.
Regards,
nagaraj

Similar Messages

  • How to check  which column data differs from master table and archive table

    Hi All,
    i have two tables, table a (a1 number,a2 varchar2,a3 varchar2) and table b (b1 number,b2 varchar2,b3 varchar2).
    how to check the data in both the table are same( including all columns).
    data in a.a1 is same as b.b1 and a.a2 is same as b.b2 like that.
    if they not same , i need to know which field differs.
    Kindly Share ur ideas.

    887268 wrote:
    thanks Sven W. ,
    above reply clearly shows what my question is.
    one column must be primary key, based on that key i need to find out which are the fields having different data..
    im strugling with this, i tried the following already, but not able to get.
    select the columns from a MINUS select the columns from b.
    -- from this i can find whether the difference occurred or not.
    but i cant able to get which are the fields value changed.Good. Then you would match the rows using the PK column and need to compare the columns
    Instead of a MINUS + UNION ALL + MINUS we can now use a FULL OUTER JOIN
    It is a little task to write out all column names, but 40 columns can be handled.
    This statement would show you both tables with matching rows on the same line.
    select a.*, b.*
    from a
    FULL OUTER JOIN b on a.id = b.idNow filter/check for mismatches
    select case when a.col1 != b.col1 then 'COL1 value changed'
                    when a.col2 != b.col2 then 'COL2 value changed'
                    when a.col3 != b.col3 then 'COL3 value changed'
             end as compare_result
            ,a.*, b.*
    from a
    FULL OUTER JOIN b on a.id = b.id
    /* return only non matching columns */
    where (a.col1,a.col2,a.col3) != (b.col1,b.col2,b.col3) You might need to add nvls to take care of null values. Test this!
    Another way could be to group upon the primary key
    select *
    from (
      select id 
               ,count(distinct col1)-1 cnt_col1
               ,count(distinct col2)-1 cnt_col2
               ,count(distinct col3)-1 cnt_col3
       from
         select 'A' source, a.*
         from a
         UNION ALL
         select 'B' source, b.*
         from b)
       group by ID
    /* only records with differences */
    where 1 in (cnt_col1, cnt_col2, cnt_col3)
    ;The count columns will hold either 1 or 0. If it is 1 then this column has a difference.

  • How to check if Message already exists in the queue and if message is processing currently

    Hi everyone
    I am new to Azure and worked on adding messages to the queue through workerrole1. Worker role 2 pulls them out from queue and processing them and de-queing them.
    Worker role1 runs method gets called after every 10 seconds and puts messages in queue
    CloudQueueMessage
    message = newCloudQueueMessage(oAzureWorker.WorkerInstanceOf
    + "_"+ oAzureWorker.AgentId.ToString()
    + "|"+ ExecutionId.ToString());
                                    queue.AddMessage(message);
    Worker role2 runs method gets called after every 10 seconds too and checks the queue like this
    foreach
    (CloudQueueMessagemessage
    inqueue.GetMessages(20,
    TimeSpan.FromMinutes(5)))
    // Process all (20) messages in less than 5 minutes, deleting each message after processing.
    // Process message
    queue.DeleteMessage(message);
    Following are my questions
    1) How do I check in worker role1 if the message is already in queue, Because I don't want to queue it back again if its not yet processed and is in the queue already
    2) How do I check in worker role1 if the message is currently processing. Because I don't want to queue it back again.
    3) How do I make sure that ALL the messages get processed in the order they are inserted. I know Queue is FIFO, but I know if the message gets delayed in processing another instance can pick it up, even if it gets picked up by another instance, I want to
    make sure that the order remains.
    Right now the instances of both these worker roles are 1, in the future when we increase them, I don't want them to queue the same messages multiple times or queue them if the message is already in process mode.

    Hi Sarah,
    I agree to the Frank's suggestion. Why you need to burden the worker role 1 to check if the message really sits on the queue or not? You can do this simply in your code before pushing it on queue instead querying queue.
    All you need to do on worker role 1 is - push the message on the queue and forget as the entire queue design in azure is designed from asynchronous processing.
    About worker role 2 - Use the GetMessage method which hides retrieved message's from other clients and hence makes sure that only one client is processing it at a time. If processing is successful - delete the message. if it is not - the message will be
    visible anyways after the mentioned time provided in the GetMessage method.
    I agree that when you will increase number of instances of your worker role 1 which might insert duplicates in the queue - in that case - you might need to introduce the shared entity (like database) and let all instances communicate through it to avoid
    the duplication of messages on queue. 
    Bhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale

  • How to check if a user exists in the system ?

    Dear Gurus,
    I want to check whether a user ID exists in the system after logon by using VBA. If the user ID exists, then I will update the user's information with external data by using the method user.change.
    When running below codes, error occurs and error msg is: "The persistent key for an business object instance of type USER has not been set. Cannot invoke method EXISTENCECHECK"
    How can I do to check the user ID existence ?
    Set oUser = oBAPICtrl.GetSapObject("user")
    oUser.ExistenceCheck "MyUserID", return:=oReturn
    Thanks and Regards,
    Bao Yan

    Mickey,
    I'm afraid I never did get this to work properly. However, in the way of all bad/good (delete as appropriate) programmers eveywhere I worked around this problem. I was using this code in Banner.asp to change the view based on the user group so if a given session variable was set a user would see a different view. It works fine with no slow down on the page and you should be able to adapt it to what you need.
    Hope this helps.
    Neville
    Note: Application variables are ones I have defined in config.xml.
    Code follows:
    <!--START:INC\common\getgroup.asp-->
    <% 'NAH 29/03/2004 ' 'This check the to see if the current user has the group in their membership that has been defined as the group to provide an alternative view of the portal.' 'The group variable is defined in the config.xml as "ALTVIEWGROUP"'
    'Do not do this is we have already matched the group'If Session("groupMatch") <> "1" and Session("groupMatch") <> "2" then
    Dim pGroup
    pGroup = Application("ALTVIEWGROUP") Set Session("groupMatch") = nothing
    Dim Plumtree
    Set Plumtree = Server.CreateObject("ADODB.Recordset") Plumtree.ActiveConnection = "Driver={SQL Server};Server=" & Application("DBSERVER") & ";Database=" & Application("PLUMTREEDB") & ";" Plumtree.Source = "SELECT GROUPID FROM " & Application("PLUMTREEDBUSER") & ".PTGROUPMEMBERSHIP WHERE (USERID = " & strUserID & ") AND (GROUPID = " & pGroup & ")" Plumtree.CursorType = 3 Plumtree.CursorLocation = 2 Plumtree.LockType = 1 Plumtree.Open()
    'If there are records we should have a match otherwise set the session varible to no match.' If Plumtree.EOF then Session("groupMatch") = "2" Else 'By getting here the user should have the matching group but complete one final check to make sure' If cInt(Plumtree.Fields.Item("GROUPID").Value) = cInt(pGroup) then Session("groupMatch") = "1" Else Session("groupMatch") = "2" End If
    End If
    Plumtree.Close() Set Plumtree = Nothing
    End if%><!--END:INC\common\getgroup.asp-->

  • How to check if a constraint existed in the table and drop it?

    Hi all,
    I want to drop a constraint from a table. I do not know if this constraint already existed in the table. So I want to check if this exists first.
    Below is my query:
    DECLARE
    itemExists NUMBER;
    BEGIN
         itemExists := 0;
    SELECT COUNT(CONSTRAINT_NAME) INTO itemExists
    FROM ALL_CONSTRAINTS
    WHERE UPPER(CONSTRAINT_NAME) = UPPER('my_constraint');
    IF itemExists > 0 THEN
    ALTER TABLE my_table DROP CONSTRAINT my_constraint;
    END IF;
    END;
    Here is the error I got when I executed the above query:
    ORA-06550: line 11, column 5: PLS-00103: Encountered the symbol "ALTER" when expecting one of the following: ( begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << continue close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe purge
    Please help me with this!
    Greatly appreciate!
    Khoi Le

    Yes, I also tried to put the pl-sql in the Execute Immediate. However, the error still remains
    EXECUTE IMMEDIATE 'DECLARE
    itemExists NUMBER;
    BEGIN
         itemExists := 0;
    SELECT COUNT(CONSTRAINT_NAME) INTO itemExists
    FROM ALL_CONSTRAINTS
    WHERE UPPER(CONSTRAINT_NAME) = UPPER('my_constraint');
    IF itemExists > 0 THEN
    ALTER TABLE my_table DROP CONSTRAINT my_constraint;
    END IF;
    END';
    I execute the above code via running the batch file.
    Here is the error after I ran the batch file:
    ORA-06550: line 11, column 5:
    PLS-00103: Encountered the symbol "ALTER" when expecting one of the following:
    ( begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    continue close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe purge
    The symbol "lock was inserted before "ALTER" to continue.
    ORA-06550: line 11, column 53:
    PLS-00103: Encountered the symbol "DROP" when expecting one of the following:
    . , @ in <an identifier>
    <a double-quoted delimited-identifier> partition subpartition
    ORA-06512: at line 2117
    I can not manually drop it. I need to do this via running an update script file.
    Is there a different way to accomplish this?
    Thank you very much!

  • Which RFCs causing issues in system

    Hi All,
    We have an issue with the RFC response times in CRM and need investigstion. We need to know Which RFCs causing issues in CRM and how we can solve the problems.
    Kindly let me know as earliest as possible.
    Regards

    have a look here:
    ST03
    Go to EXPERT MODE
    if the problem is happening now then you could use last minute load ( for a specific user for example)
    if you have no cllue , or it happens always:
    workload, Total , day, "today"
    in the analysys views: RFC Profiles
    now it depends on if you are using it as server or client, there you see all FM's called via RFC ; number of calls, total execution time, etc.
    Hope this is usefull;

  • How to check which version of hyperic is installed , hyperic 32 bit or 64 bit version on solaris

    how to check which version of hyperic is installed , hyperic 32 bit or 64 bit version on solaris

    If you have only a single home, the quickest/easiest way is probably just to check the properties of %ORACLE_HOME%\odp.net\bin\2.x\oracle.dataacess.dll
    Or are you asking how to check it at runtime?
    If you want to see externally what is actually loaded by an app you can use process explorer
    http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
    If you want to check it in the app itself:
    http://stackoverflow.com/questions/383686/how-do-you-loop-through-currently-loaded-assemblies
    Hope it helps,
    Greg

  • How to check which currency is assigned to Bank in Vendor Master

    Hi,
    Good Morning to All.
    We have a requirement. We like to know the details for currencies in Bank accounts maintained in Vendor Master.
    For ex.
    For XYZ vendor we have assigned ABC bank for country GB along with the IBAN,SWIFT, A/C No, etc....now how can we be sure while making payment to vendor that the bank account maintained in vendor master is relevant to currency USD and not to GBP or any other curreny.
    As we are planing to make automation payment to vendors, we are not able to find any currency linked to Bank account in vendor master.
    We have more that 10K vendors and its impossible to check with all of them regarding the currency and update the vendor master.
    Do we have any way to find out the link between the Vendors Bank Account & Currency the bank account tagged too.
    Thanks in advance for your assistance.
    Do revert.
    Rex

    Hi Rex,
    The Currency in which the Vendor has maintained the Bank account is an information that you will get only from the vendor.. and then you can update in the vendor master.. From SAP system you will not get this info anywhere..
    In FBZP.. we maintain Our Bank Accounts and not the Vendor Bank Accounts.. For Vendors, we only maintain the Bank key in our system in T-Code Fi01 and his Bank details in the vendor Master.
    When you update the Partner Bank Type in vendor master with Currency in which the Vendor has maintained his bank account with the Bank, you can write the logic in BTE to pick up logically in APP.
    Hope it clarifies..
    Regards,
    SAPFICO

  • How can check which patch install in oracle 10g

    hi experts,
    i have use oracle 10g , i hv patch information but how can check which patch install ?

    Run following command , it will give you list of patches installed on Oracle Home
    cd ORACLE_HOME/OPatch
    opatch lsinventory
    For patchset and CPU patch , check/query DBA_REGISTRY_HISTORY
    Virag

  • How to check which version of Jdk installed on the machine?

    How to check which version of Jdk installed on the machine?
    & Which version of Oracle Insatlled on my machine?

    String version = System.getProperty("java.version"); %

  • How to check for a function module with its description and functionality

    Hi all,
    How to check for a function module,with its description and its functionality,in detail how can I know the purpose of a particular function module,how to search for a function module which suits my requirement .

    Hi,
    You can search a FM of your requirement by putting in the Key words and searching for a FM. Like * KEYWORD * and then pressing F4.
    Say for example you need to search something regarding converstion.
    Search for * CONVERT * and press F4.
    If there is something specfic like converting date to something you can give
    DATE * CONVERT *
    OR
    CONVERT * DATE *  and press F4.
    Once you narrow down your search you will have a Function module documentation inside the Function module. Please note that all the FMs willl not have documentation.
    Regards,
    Pramod

  • HT5622 How do you get rid of an old Apple ID that hasn't been used in a while in which you no longer remember the password and the email account no longer exists?

    How do you get rid of an old Apple ID that hasn't been used in a while in which you no longer remember the password and the email account it's tied to no longer exists?

    The password will not be sent to you, because Apple does not know it. They will send a link where you can reset the password. It will be sent to your Rescue email address, not the iCloud email address. If you don't have one contact Apple Account Security and they can reset it for you: http://support.apple.com/kb/HT5699

  • How to find which datasource are using  tables AFRU ,CAUFV and AUFM

    *how to find which datasource are using  tables AFRU ,CAUFV and AUFM*

    Hi,
    You can enter your table names in SE11 transaction and click "Display" and again click "Where -Used-List". Then it will show all the places where these tables are used(Datasources)
    Hope this helps.....
    Regards,
    SUman

  • How to check whether a file exist in the program folder or not?

    Hi guys,
    how to check whether a file exist in the program folder or not? Let is say i recieve a file name from user then i want to know if the file is there not and act on that base.
    abdul

    Look at the class java.io.File and the .exists() method:
    http://java.sun.com/j2se/1.4/docs/api/java/io/File.html

  • I am using Indesign cs5 version 7.0.4 with a mac OS X version 10.9.4. I am having an issue where the save and save as option disappears. I am exporting the file as .idml and then resaving to avoid losing work but has to import all the images which takes a

    I am using Indesign cs5 version 7.0.4 with a mac OS X version 10.9.4. I am having an issue where the save and save as option disappears. I am exporting the file as .idml and then resaving to avoid losing work but has to import all the images which takes ages. Any help out there?

    I believe there are a couple of similar threads about CC or CC2014 behaving this way that might give yo some hints, but CS5 is not supported on your OS and may not run properly regardless of what you do. An in-place OS upgrade or an attempt to migrate the application would both be major problems for ID, so if you did either of those things you'll want to uninstall, run the cleaner tool (CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3) and reinstall.

Maybe you are looking for

  • Report for open order and shipped qty  summary

    Dear Folks,            Can any one please help me. Report for open order summary Vs shipped quantity what are the related programs to it. throw some light on it.

  • Error in creating  External Table

    I am following the following procedure to create an external table,but somehow i am not getting success.Can anyone pls explain the error? CREATE OR REPLACE DIRECTORY TEST_DIR AS 'C:\TEST' Directory created. GRANT READ,WRITE ON DIRECTORY TEST_DIR TO P

  • F110 - Pmt Method in Vendor Master not carried over

    Hi SAP Experts, Am relatively new to SAP-FI and would like to ask for your invaluable tips on my problem. Am using F110 where my payment method is "C" and all of my vendor open items don't have any payment method for each invoice. When I run F110, th

  • How do I view my screen full size

    I'm wondering how I can get my application windows (such as safari) to display full-screen without having to manually re-size by dragging the bottom corner?

  • AS3.0: Can't add child and access subchildren timelines?

    I have the following code: var myParent:Parent = new Parent(); var mySymbol_01:Symbol01 = new Symbol01(); var mySymbol_02:Symbol02 = new Symbol02(); myParent.x=100; myParent.y=100; addChild(myParent); myParent.gotoAndStop(1); button.addEventListener(