How to use BADI FI_AUTHORITY_ITEM (New to badi's)

Hi all,
I don't know if this is 100% FI (it is not for sure), but I believe that here is the best place to ask.
I'm trying to had a new authorization check on FB03.
The authorization check is regarding object F_BKPF_BLA (that exists, but is not checked on the standard call of FB03).
I've discovered the BADI FI_AUTHORITY_ITEM, but now I have one question. How do I had this check here? Is it necessary to create an ABAP with an authorization check?
Or is there any simplier solution?
Thanks!

In the meanwhile, I've done some changes to the badi and implement it.
The problem is that, I can't even make a breackpoint in the method implemented.
The code implemented was:
method IF_EX_FI_AUTHORITY_ITEM~FI_AUTHORITY_ITEM.
  data: Doc_Type type bkpf-BLART.
  select BLART from bkpf into doc_type
  where BELNR = i_bseg-belnr.
  endselect.
  AUTHORITY-CHECK OBJECT 'F_BKPF_BLA'
          ID 'ACTVT' FIELD i_beract
          ID 'BRGRU' FIELD Doc_Type.
  IF sy-subrc NE 0.
    IF i_beract = '02'.
      AUTHORITY-CHECK OBJECT 'F_BKPF_BLA'
        ID 'ACTVT' FIELD '03'
        ID 'BRGRU' FIELD Doc_Type.
      IF sy-subrc NE 0.
        c_rcode = 4.
      ELSE.
        c_bmodz = 'A'.
      ENDIF.
    ELSE.
      c_rcode = 4.
    ENDIF.
  ENDIF.
endmethod.
In resume, it gets the document number and then it goes to BKPF to see the document type and checks if the user has the authorization using the object 'F_BKPF_BLA'.
Why isn't it working?

Similar Messages

  • How to use on my new iMac the Acrobat X Pro I downloaded 2 years ago on my MacBook Pro?

    How to use on my new iMac the Acrobat X Pro I downloaded 2 years ago on my MacBook Pro?

    You can use the same installer, if you kept it, and the same serial number, if you still have it, and the old serial number, if it was an upgrade.

  • How to keeps track of new coming bad blocks on a hdd

    I have some 2,5 hdd lying around and wanted to test them for bad blocks and found that I can use Badblocks for this.
    But how do I keep the "list" of bad blocks up-to-date if new bad blocks are detected, or is this not posseble?
    Solixxx
    Last edited by solixxx (2013-09-30 23:48:21)

    graysky wrote:You can detect and lock out bad ones... but the danger is not knowing which good blocks will go bad in the future.  I have a hdd in an old machine that has bad blocks on it... been running fine for 9+ months now after isolating them.
    Exactly :-)
    I've been using a drive with isolated bad blocks for over a year now, but I store only data I don't care that much about - I can re-download or recreate it.
    I thought you just wanted to list the bad blocks. If you're going to reformat the device, it is the mechanism of isolating the bad blocks I wrote about, so you should be OK.
    I think badblocks prevents the bad block from being used by the filesystem, but they still reside on the device, so if you run badblocks again, it should list both the old bad blocks and any new ones too.

  • How to use my defauld new NOKIA,ASHA311

    How to close various nokia people on the forum with following titles and tasks.please immedieatly stop following titles? And start my new forum follow am use my Nokia Asha311 Touch skin mobile phone.and my countory:Bangladesh. So request nokia service slove my all problem? USE NEW FORUM ASHA311 Support mobile phone. Need my member ship of nokia support Terms and conditions of use that asha311 mobile phone defauld setting apply to my nokia account and my website.
    Moderator's note: IMEI was removed on this post. It is unwise to publish this kind of information in a public forum.
    Solved!
    Go to Solution.

    Use mobile phone NOKIA ASHA311 Touch skin phone. My IMEL Serial number XXXXXXXXXXXXXXX .Countory:Bangladesh.Use nokia support new forum with follow my member ship of nokia support TERMS AND CONDITIONS of use that apply my nokia account&my asha311 touch skine mobile phone defauld home page.
    Moderator's Note: The IMEI number was edited out. Please do not publish unique serial number in a public forum.

  • How to use JDK5.0 new feature code in tomcat 5.5.9, jsp files

    Hi Everyone:
    I am trying to use JDK5.0 new feature code -- for loop in jsp file , but got compile error , i try the same code in the java file which is working fine. i am wondering is it tomcat jsp compiler problem ?
    following is my code and error msg
    /* jdk 5.0 new feature, but cannot use in this jsp file, tomcat version? or setting problem ?
    for (Thumbnail thumbnail : thumbnailList){
         System.out.println(thumbnail.getAbsolutePath());
    // following is working fine in jsp
    Iterator iter = thumbnailList.iterator();
              while(iter.hasNext()){
                   Thumbnail thumbnail = (Thumbnail) iter.next();
                   out.print(thumbnail.getAbsolutePath()+"<BR>");
         %>
    the error msg is :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 16 in the jsp file: /test/testImageGallery.jsp
    Generated servlet error:
    Syntax error on token(s), misplaced construct(s)
    An error occurred at line: 16 in the jsp file: /test/testImageGallery.jsp
    Generated servlet error:
    Syntax error on token ")", : expected
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    I am using fedora core 4 x64bit , tomcat 5.5.9,
    java -version
    java version "1.5.0_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05, mixed mode)
    tomcat settings
    tomcat5/bin/catalina.sh run
    Using CATALINA_BASE: /home/normal/tomcat5
    Using CATALINA_HOME: /home/normal/tomcat5
    Using CATALINA_TMPDIR: /home/normal/tomcat5/temp
    Using JRE_HOME: /home/normal/jdk1.5.0_04

    The JDT compiler that Tomcat installs by default is only 1.4 compliant.
    You can use ant instead:
    remove the common/lib/jasper-compiler-jdt.jar file
    place ant.jar file from the latest Ant distribution in the common/lib folder.
    If you do this, you also need to use the "javac" argument to catalina.sh.
    Documentation reference: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html

  • How to use search in new itunes

    When I search an artist in the new version of iTunes a window pops up and shows me all of the albums.  I can put all of the tunes on an album on play lists, but I can't for the life of me figure out how to see the individual tracks on an album any more. This has made making playlists very difficult.  Any tips on how to go back to the old search without popups or how to get individual songs to show without knowing the name?

    In the Search window there is a small black arrow. Click on this and untick Search Entire library. Then search will behave as it used to.

  • How to use Superdrive on new Macbook Pro Help

    Hi I have just Bought a New Macbook Pro ( my first Mac so am Bit of a Virgin there )
    I am looking to Burn Files, Movies ,Music ,etc to DVD ,CD'S etc ..now there is this super new drive but I cannot find the Software to use it on the Computer ( I have Leopard 10.5 )
    Is there any Included software ?? to do these things (in Windows I used to use NERO ) or do I need to Buy/Download a program to do this -- Is there one included on a DVD when I bought the Computer Maybe I missed ??
    Any help or suggestions of what I need to do , or Get would be Appriciated ..
    Thanks Mark

    Click here and here for information; to see more, choose Mac Help from the Help menu in the Finder.
    (26678)

  • New iMac-how to use old and new

    So, I'm in the middle of migrating my settings from my old iMac to my new iMac. I've already started transfering my settings and applications.
    I was going to give my old iMac to my husband, who now has a MacMini. After I started transferring, he told me I should just keep both iMacs for working. It would actually be convenient - Keep one for having browser, planning, mail, business apps open at all times and the other for heavy-duty Photoshop, etc. work.
    What should I do to be able to work on both? Do I need to re-do my set up on the new  one? The settings and apps really should be the same any way - do I need to create a different user?

    Do I need to set up a different user on each computer?
    No
    Right now, becuase I was in the process of migrating, the new iMac is a duplicate of what's on the old. Do I need to create a new user on one and delete it on the other? What happens if I have the users duplicated?
    Not necessary, when you migrate it will make a clone of the other machine if you choose all options. If you want then to remain synced  you can do so with the same user account and AppleID assuming you use iCloud and both machines are on Lion. You can sync what I noted in my first post.
    I want to use one more for light business apps and one for my image processing.
    If your goal is to sync apps and data currenlty there isn't an automated method of doing that other than keeping the data on an account such as DropBox. If you don't have a DropBox account then that may be what you're looking for however you will have to pay for data in excess of 2GB. The first 2GB is free.

  • How to use camera of new mac book air on skype or google hangouts

    Named programmes can not see new macbook Air's camera.

    See this thread:
    https://discussions.apple.com/thread/5306216?tstart=0
    FIX:
    1. You need Time Machine
    2. Go to folder /Library/CoreMediaIO/Plug-Ins/DAL/
    3. Copy AppleCamera.plugin to good place (usb memory stick is the best place).
    4. Go to Time machine in date that skype work fine.
    5. Change AppleCamera.plugin with file from Time Machine
    6. Restart system, Now skype need to work with camera.
    From Apple:
    MacBook Air (Mid 2013): FaceTime HD Camera might not work after OS X 10.8.5 update
    oldvett 
    He also stated that he has never had a presenting complaint or has ever heard of a problem with their computers and skype
    he just had not heard of same, thats all. A fix for the skye connection with the camera with 10.8.5 is coming from Apple, I wont however conjecture on the time frame,... but you can assume soon.
    Peace

  • How to use the updated value in the same update statement

    Hello,
    I just wonder how to use the updated new value of other column in the same udpate statement. I am using Oracle 11.2, and want to update the two columns with one update statement as following:
    create table tb_test (id number(5), tot number(5), mon_tot number(5));
    update tb_test set (tot = 15, mon_tot = tot *15) where id = 1;
    ...I would like to update both tot and mon_tot column, the value of mon_tot shall be determinted by the new value of tot.
    Thanks,
    Edited by: 939569 on 1-Feb-2013 7:00 AM

    Edit: example added
    SQL> create table tb_test
      2  ( id number(5)
      3  , tot number(5)
      4  , mon_tot number generated always as (tot*15) virtual
      5  );
    Table created.
    SQL> insert into tb_test (id, tot) values (1, 5);
    1 row created.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1          5         75
    1 row selected.
    SQL> update tb_test
      2  set    tot = 15
      3  where  id = 1;
    1 row updated.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1         15        225
    1 row selected.

  • Using correlation names :new and :old in ODBC

    Does anyone know how to use correlation names :new and :old through an ODBC connection?
    EG:
    CREATE TRIGGER Print_Cust_changes
    BEFORE INSERT ON CUST_tab
    FOR EACH ROW
    BEGIN
    dbms_output.put('Adding: ' || :new.custid);
    END;
    When I try to do that using ODBC, I get this error:
    Server Msg: 24344, State: HY000, [Oracle][ODBC][Ora]
    Trigger, procedure or function created with PL/SQL compilation error(s).
    And if I try and Insert I get:
    Server Msg: 4098, State: HY000, [Oracle][ODBC][Ora]
    ORA-04098: trigger 'BCL.PRINT_CUST_CHANGES' is invalid and failed re-validation
    The same code works perfectly in SQL*Plus.

    The plot thickens...
    I just tried this code:
    CREATE OR REPLACE TRIGGER Print_Cust_changes
    BEFORE INSERT ON CUST_tab
    FOR EACH ROW
    BEGIN
    INSERT INTO CUST_LOG VALUES('X');
    END;
    And received the same error:
    Server Msg: 24344, State: HY000, [Oracle][ODBC][Ora]
    Trigger, procedure or function created with PL/SQL compilation error(s).
    Again, using the same code (Cut & Paste) in SQL*Plus, it works without any problems.
    The ODBC function being used is: SQLExecuteDirect(), ODBC driver is SQLORA32.dll v9.02.00.00
    CREATE TABLE, VIEW, INDEX etc, all work fine, but not a trigger. If I read the code back from ALL_TRIGGERS after using SQL*Plus or the console application to create the trigger, it is exactly the same code...

  • How to use the BADI  WORKORDER_GOODSMVT to meet my requirement?

    Hello Abapers,
    My requirement is I need to display Batch Number in confirmation of production order(co15) which is entered in creation of production order(co01).While debugging the CO15,i got badi as WORKORDER_GOODSMVT.
    I am new to BAdi,HOW to use this badi to meet my requirement.
    Please help for me to solve my problem.
    If any one implemented batch mangement in PP.Please tell the procedure how u achieved?
    waiitng for your favourable replies
    Regards
    Maruthi.

    Hai,
    IN my reuqiremnt,i used GOODS_RECEIPT method to meet my requirement.
    Regards
    Maruthi.K

  • How to use the Include Statement in the BADI

    Dear All,
            I am trying to implement the BADI. So i need to use the Include in the BADI.
    How to use the Include statement in the BADI. I cant able to use it in the Public, Private and protected statement.
    Where should i mention that,,,,
    Thanks
    Yogesh

    Hi Sharat,
      Thanks for your reply.
    I need to use the BADI HRWPC_PCR_APPR_FORM. In which the values are available in the Container. So if i need to use the container values then i need to use that include <cntain>.
    Is there any possible ways to make it.
    Thanks
    Yogesh

  • How to use standard BADi?

    Good day experts.
    I have a requirement which I need to save details (such as amount, description, doc. no. etc) on F-22 (screen 0700) into a ztable which I will going to create. Since F-22 is a SAP standard, I need to use Exits or BADi to accomplish my requirement. I do some readings about BADi before I make did post.
    First, I research on how to check what are the available BADi on F-22. So, there is that tutorial on how to get the exit handler of that particular transaction. In my case, the name of the BADi is FI_RES_ITEM_CURRENCY. However, I am not lucky to get some more information what to do next. As for my further readings, I have to use SE18 and SE19. When I use se18, I can see the interface and methods of this SAP BADi. Since this BADi is a SAP standard, I cannot insert any codes in its method. So, what I did is, I make a zclass. I copied this class "CL_DEF_IM_FI_RES_ITEM_CURRENCY" in se24 and make a zcopy of it. Now I can now insert some Abap codes in its method. But my question again is, how to implement this class into the BADi, "FI_RES_ITEM_CURRENCY" which is a SAP standard.
    Can anyone help me what is the next step/s for me to do to accomplish my requirement? Thanks a lot for your kind help.

    Hi,
    as you already concluded SE18 is only for defining BAdIs definition or View the BAdI Definition. To implement the BAdI you may use transaction SE19.
    Depending on your SAP Release it's either quite easy or (starting with 6.0) you probably have to create a enhancement befor you can implement a actual BAdI.
    Hope this helps.
    BR
    Tobias Kugelmann

  • SRM 7.0 BADI Define Agents-- How to use type /sapsrm/t_wf_area_entity

    Hi Experts,
    I'm using SRM 7.0. When implementing BADI /SAPSRM/BADI_DET_AG (Define the agents of  procsess controlled workflow), I created the sub-class of interface /SAPSRM/IF_WF_AREA to develop my won logic in method GET_RESPONSIBLE_APPROVERS.
    I want use the data in workflow container, seems the method GET_AREA_ENTITY_IDS of /SAPSRM/IF_WF_AREA  can provide a pointer which type is /sapsrm/t_wf_area_entity and point workflow area.
    My question is how to use this pointer (or how to use the type /sapsrm/t_wf_area_entity )? Many thanks.
    PS. I found some example code delivered by sap, but i want know the full structure which /sapsrm/t_wf_area_entity point. Below code for your reference:
    METHOD /sapsrm/if_wf_area~get_responsible_approvers.
      DATA lt_area_entity_id TYPE /sapsrm/t_wf_area_entity_id.
      DATA lr_area_entity_id TYPE REF TO /sapsrm/wf_area_entity_id.
      DATA ls_actor_id       TYPE swhactor.
      DATA lt_approver       TYPE /sapsrm/t_wf_approver.
      FIELD-SYMBOLS: <ls_agent_id> TYPE /sapsrm/s_wf_approver.
      lt_area_entity_id = me->/sapsrm/if_wf_area~get_area_entity_ids( ).
      LOOP AT lt_area_entity_id REFERENCE INTO lr_area_entity_id.
        ASSIGN lr_area_entity_id->* TO <ls_agent_id> CASTING.
        TRY.
            ls_actor_id-otype = <ls_agent_id>-approver_ot.
            ls_actor_id-objid = <ls_agent_id>-approver_id.
            lt_approver = /sapsrm/cl_wf_config_user=>get_manager_list( ls_actor_id ).
            APPEND LINES OF lt_approver TO rt_approver.
          CATCH /sapsrm/cx_wf_error /sapsrm/cx_wf_abort.
            CONTINUE.
        ENDTRY.
      ENDLOOP.
    ENDMETHOD.

    Hi Darcy,
    You can also use FM SAP_WAPI_READ_CONTAINER to read workflow container values.
    Please state if you have some other specific requierment.
    Regards,
    Saumya

Maybe you are looking for

  • Integration steps with MM and SD in Parallel Ledger

    Hello Experts, What are all the integration configuration steps between FI and MM / SD for updating the logistic transaction under Non-Leading Ledger? Also, guide me does the material ledger works for Non-Leading ledger transactions? Regards Anilkuma

  • Overheating iMac

    I'm running a 24" iMac with 2.8 GHz and 4 GB SDRAM. After installing Snow Leopard a few weeks ago, I noticed the back of the machine (upper left hand corner and below) is much hotter than it used to be. Heat is also noticeable while sitting in front

  • An error encounter on test devise (real devise) i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    Hello, I am using tesseract api in my app, which run perfectly on simulator but on test devise (real devise) it is showing an error i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

  • Music Missing in Online Slideshow

    I created an album and chose the old-fashioned movie reel template for it.  When it plays in the Organizer I hear the music, but when I go to my album online and play the slideshow, there's none of that old-timed piano music.  I didn't add a music tr

  • Protection mode?

    I have  2008 dual quad 2.6GHZ, 32 GB ram. 128GB SSD system drive, 3 1TB storage drives, mountain Lion. Mac pro boots up fine, no issues while operating it. however, in some sort of a time span between 12-18 hours, i will hear the fan spinning at very