How to debug a authority check in program and a authorisation object in tco

Can anyone tell me how to debug a authority check in program and a authorisation object in tcode
i just want to know the flow of authorisation object in debugging how user is assocaited with authorisation object and roles.
i know if sy-subrc ne 0 is authorisation failed ,so please help me anyone on this.
every time when i put breakpoint ,if its program level only, i am able to decide only through sy-subrc but iam unable o view the flow .

flow cannot be seen, we have to be based on sy-subrc only...
you cannot see the flow in read table... describe table... transfer...
the authorization object will be assigned to the data element, that data element has some realtion to the roles given to the users. So if the role of the user and data element value doesnt match the sy-subrc NE 0.

Similar Messages

  • How to debug the method in abap program

    How to debug the method in abap program ?
    Could you please give the solution.
    Thanks
    sai

    Hi ,
    Place break point at call method .
    It takes u in to the method implementation .
    Here u can analyse the method implementation ...
    Reward if useful
    Thanks
    Jagadeesh.G

  • I connected an external monitor to my MacBook Pro, but it doesn't open any programs. It Just sits there with a blank screen.  How do I get it to open programs and act like a monitor?

    I connected an external monitor to my MacBook Pro, but it doesn't open any programs. It Just sits there with a blank screen.  How do I get it to open programs and act like a monitor?

    Dear Jean:
    It sounds like you are trying to get your external monitor to act as the primary viewing screen. For example it would have your Doc, Icons, Etc. In order to make the external monitor the primary screen you have to:
    Open System Preferences.
    Choose the Displays Icon
    There will be several tabs to choose from pick Arrangement
    Drag the toolbar to desired display
    Let me know if this helps at all!
    Lance

  • How to call a idoc in abap program and updates catsdb table

    how to call a idoc in abap program and updates catsdb table
    thank you,
    Jagrut BharatKumar Shukla

    Hi Kishan,
    You can refer to following help document,
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/content.htm
    Regards,
    Meera

  • Since 2012 I have Photoshop Elements always worked without any problem, however now the language is suddenly German how can this be changed, removed the program and re-installed, not working. Program is downloaded and updated via the apple app store?

    Since 2012 I have Photoshop Elements always worked without any problem, however now the language is suddenly German how can this be changed, removed the program and re-installed, not working. Program is downloaded and updated via the apple app store?

    I've done some research on the SQLite database. Whenever Aperture hangs up (like during auto-stack or opening the filter hud) there are thousands of SQLite queries happening. These SQLite queries cause massive file I/O because the database is stored on the disk as 1kb pages. However, the OS is caching the database file; mine's only 12MB. I'm trying to track down some performance numbers for SQLite on osx but having trouble.
    It's starting to look like most of the speed problems are in the libraries that Aperture uses instead of the actual Aperture code. Of course, that doesn't completely let the developers off the hook since they choose to use them in the first place.
    Oh, and if anyone is curious, the database is completely open to queries using the command line sqlite3 tool. Here's the language reference http://www.sqlite.org/lang.html
    Hmm, just found this. Looks like someone else has been playing around in the db http://www.majid.info/mylos/stories/2005/12/01/apertureInternals.html
    Dual 1.8 G5   Mac OS X (10.4.3)   1GB RAM, Sony Artisan Monitor, Sony HC-1 HD Camera

  • Motion how to create 3d effect with a background and one primary object

    motion how to create 3d effect with a background and one primary object

    … like that?
    http://youtu.be/yOht1GJpEm4

  • How to use the AUTHORITY-CHECK in ABAP

    I am a security guy but am trying to understand how the AUTHORITY-CHECK works. I have read the help on it but it doesn't answer to my understanding. I want a check in a report so that no matter what the user selects the program goes out and checks the authorization in the users master record and only displays what he has access to. I am sure this is basic but I am not a programmer.
    Thanks

    Hi Greg,
      Basically a AUTHORITY-CHECK is a programmatic way to check a auth object a user has.  This is only as good as the person writing the code makes is.
    Here is a basic example of how it could work.  Lets say you have auth objects for users that limit them to see company code. User A can see cc 10, User B can see cc 20 and user C can see both.
    In the code the programmer would have to first do the authcheck to see what CC the user has access to.  Then they would have to limit his reporting based on the results of the authority check.  So they might do it by saying SELECT * FROM XYZTAB WHERE COMPANY CODE = AUTHCC
    This is what I think you are looking for.  There are other ways to use the auth check.  You can do a check and end the program with a message if they don't have authorization. 
    If you need more info, let me know
    John

  • How to debug zrffous_c payment advice script program?

    Hi experts,
    Payment advice is printing through (ZRFFOUS_C) this program. I want to debug this program .I tried in this way.
    Put the break-point in the program and execute then enter the input data and execute then the following message is displayed.
    "A:FO:098 29.01.2009 PNB" after this stopped the program .How to debug this program? I want to find these values (REGUP-BELNR, REGUP-XBLNR) in the program .The location where these values selecting in the program?I tried but i didn't get.
    please give me the details or give me form name?
    please help me in this?

    Hi,
    Your procedure of debugging is correct.
    when you getting the error message , double click on the message on status bar and see wheather it is standard message or
    custome message.
    you are getting that error because of invalid data  so get  the valid data from respective  Functional consultant
    and try to debug again.
    You ll not get that error after giving valid data.
    Regards,
    Pravin

  • AUTHORITY-CHECK & customized program

    Hi,
    I've applied an authority-check to my customized program. What I did was, I've created an authorization object name 'ZFI_PGRM' in SU21 and tie it with authorization fields BUKRS, ACTVT. This authority-check will validate on the company code (BUKRS) entered from the selection screen. Below are my lines in the customized program :
    DATA: text      TYPE string,
              m_text  TYPE string.
    text = 'You are not authorised for Company Code'.
    DATA: t_t001 LIKE t001 OCCURS 0 WITH HEADER LINE..
    SELECT * FROM t001
           INTO TABLE t_t001
                 WHERE bukrs IN s_bukrs.
    LOOP AT t_t001.
      AUTHORITY-CHECK OBJECT 'ZFI_PGRM'
          ID 'BUKRS' FIELD t_t001-bukrs
          ID 'ACTVT' FIELD '03'.
      IF sy-subrc <> 0.
        CONCATENATE text t_t001-bukrs INTO m_text SEPARATED BY space.
      ENDIF.
    ENDLOOP.
    At the same time BASIS tie the autorization object 'ZFI_PGRM' to the user role in order to access the program using PFCG. The problem now is the result that I'm getting always SY-SUBRC = 12 eventhough the user is allowed to access the company's report. Please help...
    Haryati

    Run transaction SU53 after the auth check fails and maybe it will give you a clue as to what is going on.

  • Authority Check in Programs

    Hi all
    Does anyone know tell me which table I check the check the program authority.
    Thanks,

    Hi Rodrigo,
    Use following code to get it done in programs.
    Say, for object V_VBAK_VKO (which you can see in SU24), you can do it like this.
    AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'
    ID 'VKORG' FIELD VKORG
    ID 'VTWEG' FIELD VTWEG
    ID 'SPART' FIELD SPART.
    IF sy-subrc ne 0.
    show an error message.
    endif.
    Here , VKORG, VTWEG and SPART you have to pass from program and check sy-subrc return value.
    Hope this helps.
    Regards,
    Naveen

  • How to debug BADI BBP_SAPXML1_OUT_BADI during PO Creation and change

    Hi All,
    I have a scenario in which i need to send some additional  fields with the PO data to the XI via PROXY .
    To do this i have enhanced the proxy structure with additional fields and For mapping these fields, I created an implementation of method PURCHASEORDER of BAdI BBP_SAPXML1_OUT_BADI with filter PO ( Purchase orders ).
    But this implementation is not getting processed.
    Whenever Po is created the XI will receive the data but the additional fields are not available in XI.
    To check the code i need to debug the badi implementation .
    Can anybody please tell me why this badi is not triggered and how to debug the badi code.
    Its urgebt .
    Thanks in Advance.
    Regards,
    Naresh

    Hi Naresh,
    Go to your BADI Implementation set infinite loop in the method. Run the transaction SPPFP & set Promotion status to 0 & Processing Type as MET & execute it, Select the PO you want to debug & press F8. Goto sm50 to debug the BADI.
    Thanks

  • How to automate the execution of several programs and use their output

    Dear java members,
    I am trying to figure out how to get data from a file, database, or program and use that information in another program. Can you help please?
    I have looked through several texts and while the information is there somewhere I have not found the specific capabilities or examples that explain how to do this.
    I want to learn how to do this with objects.
    The specific applications I am working with are the GIS (Geographic Information System) suite of ESRI products such as ArcInfo and ArcView.
    I am working with simulators for hydrologeology (ground water) and other geophysical phenomenae. Programs for decisions and assessment of probability such as found in geostatistical analyses packages. Drawing programs and data manipulation programs such as spreadsheets in windows and scripting languages found in most Unix packages.
    I want to be proprietary platform free! I want to be accessing apps and or data wherever they are and in whichever form they are in or best used.
    Web techniques and protocols are where I think most of my effort will be focused.
    One of the mediums (media) that I expect to use a lot is XML.
    If I can find a simplified (generalized) explanation how this is done and how the parts fit together through and or with objects. If I can find references to texts and examples I will be very appreciative and very much less confused.
    I am interested in using the Java programming language.
    Thank you
    ctavares1

    Hello Tavares,
    What you seek can be done, but before that you must know from where you want to take the data. In what form you will get the data in and where you want to use it and how.
    Your problem is what we call an architectural issue. If possible please write to me at [email protected]
    With the above information - I shall be able to help you to some extent.
    Ironluca

  • How do I transfer over my Pages program and all its files to my new mac?

    I recently bought a macbook air and would like to continue to use my Pages program that I have been using on my old Macbook pro. Does anyone know if I can redownload it from the Apple store without having to pay or if there is another way I can access the program and all my old files?
    Thanks!

    The Apple Store is not the same as the Mac App Store, which is what I think KarenSelena is referring to when she says "Apps store." So, the question is, did you buy a retail box or a license for a downloaded trial of iWork '09 or did you buy the individual apps from the Mac App Store?
    If you did buy Pages from the Mac App Store you can go to the "purchases" section of the App Store.app & download it again using the same Apple ID as before.

  • How To call a Tcode From a Program and returning back ?

    Dear All,
    I have a requirement, i have to show all the open orders as in the the tcode va05  and return back to the my program. so how to display the tcode and getting back to my program. please help?

    Hi,
    Basic syntax to call the transaction is:
    SET PARAMETER ID <id name> FIELD <filedname>.
    CALL TRANSACTION <TCOde> AND SKIP FIRST SCREEN.
    If your are using ALV then snippet is :
    FORM user_command  USING okcode    LIKE sy-ucomm
                           lselfield TYPE slis_selfield.
      CASE okcode.
        WHEN '&IC1'. " SAP standard code for double-clicking
          CASE lselfield-sel_tab_field."check if double click is only on
            WHEN 'ITAB-AUFNR'."aufnr not on any other field
              SET PARAMETER ID 'ANR' FIELD lselfield-value.
              CALL TRANSACTION 'IW32' AND SKIP FIRST SCREEN.
          ENDCASE.
      ENDCASE.
    Endform.
    Pooja

  • How stop the process of a job program and no sent data to XI?

    People,
    I have a program that stop by a error message that I put after a select like this:
      IF sy-subrc <> 0.
        v_error2 = 'E'.
        MOVE 'No data found. REGUH'(e01) TO emsg.
        PERFORM call_error_function USING emsg.
        PERFORM call_log_function.
        MESSAGE: 'No data found. REGUH'(e01) TYPE 'E'.
      ENDIF.
    For example if not exist data on REGUH display a error message and the program stop but the problem is that some of this programs are executed by a job and when present the error the status of the program are presented like CANCELED and I need to change the status to FINISHED but in the log present the tables with the message that no have data or something like that.
    Other thing that I need is not sent the message to XI if no have data. I made that with the error message but now I don't know how!
    Help me with this please!
    Thanks!

    Hi,
    To send data from SAP to XI, you can use:
    IDoc
    RFC and Proxy.
    For IDoc if you have no data then the IDoc is not created and hence no error needs to be processed.
    For RFC and Proxy that you must be calling in your report:
    1. First option is to check for the data before making a call to RFC or Proxy. If there is no data don't make the call
    or if you don't get the data and you want to send a message that there is not data then you have to make another message and update this message and send it to SAP XI
    Regards
    Vijaya

Maybe you are looking for