User exit that runs at the start of VF01

Hello ABAP gurus,
Forgive me if this question seems stupid but I'm very new to user exits. In fact this is my first time handling one. I need to find the <b>user exit that runs at the start of VF01</b>. In that user exit I need to put some authorization checks and if they're not met the user won't be allowed to continue to run VF01 (VF01 must exit).
<i>When user runs billing (transaction code VF01), I need to insert an authorization object V_LIKP_VST. If they have access to that plant (VSTEL), then they can proceed to run the transaction. If not, they should be rejected or forced to exit VF01. So the trick here is find that user exit that runs at the start of VF01.</i>
Thanks.

Hi Carl
  Please see if you can use BADI: <b>BAPI_SD_BILLING_ITEM</b>.
  Alternatively, you can try with Routine: <b>USEREXIT_FILL_VBRK_VBRP</b> in include: <b>RV60AFZC</b> to add the authorization check.
Kind Regards
Eswar
Message was edited by: Eswar Rao  Boddeti

Similar Messages

  • User Exit that will allow the SAP program to create DN, but not create IDO

    Hi all,
    The requirement is when we select 1 PO in VL10g transaction and click the u201CBackgroundu201D button, the user exit will allow the SAP program to create Delivery Number, but not create IDOC for the Delivery Number to send it to warehouse system.  Also the created Delivery Number must be in changeable mode in ECC system .I need to find any exit to make the DN table field LIKP-VLSTK not to be u201CBu201D (distributed).  The B will make DN not changeable in ECC system which is hard coded value in standard program. so the DN should be changeable.
    Please suggest me the User Exit name which serves my purpose.
    Thanks in advance
    Latha.

    Welcome to SCN!
    Here is some code that will allow you to find exits and BADIS on your own:
    [Code To Find BAdi|https://wiki.sdn.sap.com/wiki/display/ABAP/CodeToFind+BAdi]
    Rob

  • BADI or User Exit that executes after BADI ORDER_SAVE

    Hi.  I am trying to find a BADI or user-exit that occurs after the BADI ORDER_SAVE has executed completely and saved the values to database.  This is because ORDER_SAVE only gives the item GUID not the header GUID and it appears the header data is only created when the save has taken place.  I am trying to use the function CRM_ORDER_MAINTAIN but I need the header data to manipulate it.
    Thanx in advance
    Martin

    I will tell you four methods to find a BADI,
    Method 1. If you think that it is a simple requirement then got SE18 and click on F4 and Iformation Systems. In the short description enter the short text and search.
    Method2. Another simple method is to search with Package.
    Method3. Put a break point in the FM SXV_GET_CLIF_BY_NAME and then run your transaction---> your requirement may satisfy here after when you press the SAVE Button. There are two more BADIs that will be triggered in general.
    a) Before Update
    b) In Update.
    Method4. Put a break point in the class CL_EXITHANDLER for METHOD get_instance. and then run your transaction.
    Hope this material helps.
    Bhargav.

  • How can i do a variable User exit that present the values before execute

    Hi Gurus,
    How can i do a variable User exit that present the values before execute, i need this:
    a variable that calculate SYS-DATUM until 30 days before (I got the code) but this  variable run automatic because is user exit, i want this variable but first present the values, not execute automatic, this is because the users want the report that automatic present the values , help

    Hi,
    Refer the below links,
    http://documentation.softwareag.com/natural/nat424mf/pdf/ops_mf/conf_usrex.pdf
    http://www.erpgenie.com/component/content/article/1097
    http://www.apentia-online.at/UP/Apentia/files/Article/SAP_BW_User_Exits_and_BAdIs.pdf
    Hope it helps you,
    Regards,
    Ravindra.

  • How to find which are the user exits that updating z table.

    There was a question posted by someone else which said:
    I have a z table. my requirement is to find the user exits that update the value to this table?
    but my requirement is to get only those user exits that update my z table.
    Before that question was rejected, it got 5 replies which made me think that this tip is worth sharing.
    So the steps are:
    Do a where-used list search from SE11
    Click on Search Range button at bottom
    Type UPDATE (you can also add Insert, Delete etc to select-option) to ABAP Key Words field
    Say No to the popup that asks whether to include Fields of the Table
    Result will show relevant programs with code snippets doing static Update on that custom table.

    EWK1 would be too performance heavy in this case. It scans the source code to get the result.
    You can however, download the list of programs given in where-used list, and give that as limiting condition in EWK1 or some other code scanning utility.
    Using my method, where-used list of table is taken from database tables, and then code scanning is done only on the that list, not on entire Z* programs.
    Try it yourself to notice the speed difference.

  • User exit that can be checked in the delivery before the EDI Message can go

    Hi all,
    I have an business requirement, to set up the block inthe delivery before the EDI message triggered.
    pls help me providing the user exit and to check the requirement in user exit.
    Regards,
    SKt

    Hi,
    You can assign a requirement in the output procedure to the EDI out put type. If this is not sufficient for your requirement, please explain the business requirement clearly so that any one can give some alternate.
    Venkat Cheedalla

  • User exit that gets triggered at the press of 'Enter' in IW42

    Hi,
    Is there any user exits that gets triggered at the press of Enter key in PM order confirmation IW42 transaction. Basically the requirement is to give a customized message at the order confirmation screen when the enter key is pressed.
    Regards,
    Prabaharan.G

    Hi,
    You may try the following enhancement points and exit respectively.
    CMFU0001        E            EXIT_SAPLCMFU_001
    CMFU0002        E            EXIT_SAPLCMFU_002
    Pls reward points if useful.
    Regards,
    Renjith Michael.
    Edited by: Renjith Michael on Jan 12, 2008 12:57 PM

  • Add code behind functionality that run when the user view the SP 2013 content pages

    I need to add code behind functionality that run when the user view the SP 2013 content pages, What is the best approach to do that?
    is it add Delegate Control to master page?
    is it add code behind to master page?
    is there an event reviver for that?
    Your answer will be highly appreciated

    Hi,
    According to me, for code behind stuff
    Create master page(using module etc..), have the required placeholders in it.
    Then, create a page that inherit from this master page, now you can use that placeholder in you page.
    Lastly, place web parts in that placeholder. So, code behind will come with that master page .
    Hope it helps.
    Thanks
    -Rahul

  • How to find out FICO user exits that are used by User

    How to find out the FICO user exits that are used by user.

    Go to tcode CMOD. In the project field drop down your list there. Put a Z* there and run the list. These should be all the exits that are activated. Search for the ones that pertain to FI. You can also search by development class. You need a little ABAP knowledge to search easily. You get this by going to the tcode then to status then to the program then to the attributes. There you find the development class. Ie FBAS.
    pls assign points if helpful as a way to say thanks.

  • User Exits or BAdis' for the Service Order create Transaction

    Hi all,
              I need to Replace a field, "Product" in the "Item Details" area  of the create Service Order Transaction(CRMD_BUS2000116) with some custom field.
    Are there any Exits/BAdi which will help me in doing this..
    Thanks in advance
    Sethu

    Hi Sethu,
    The user exits / BADI's for the Transaction(CRMD_BUS2000116 are not avaliable:
    The following info from one forum to search user exits / BADI's  that you can use: There are multiple ways of searching for BADI.
    • <b>Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).</b>
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.
    Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    <b>Go to TCode: SE84->Enhancements->Business Add-inns->Definition</b>
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    Also have a look at below report which will list BADIs.
    REPORT  Z_FIND_USER_EXITS.
    TABLES : TSTC,TADIR,MODSAPT,MODACT,TRDIR,TFDIR,ENLFDIR,SXS_ATTRT ,TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
                 P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
      IF NOT P_TCODE IS INITIAL.
        SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
      ELSEIF NOT P_PGMNA IS INITIAL.
        TSTC-PGMNA = P_PGMNA.
      ENDIF.
      IF SY-SUBRC EQ 0.
        SELECT SINGLE * FROM TADIR
        WHERE PGMID = 'R3TR'
        AND OBJECT = 'PROG'
        AND OBJ_NAME = TSTC-PGMNA.
        MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
        IF SY-SUBRC NE 0.
          SELECT SINGLE * FROM TRDIR
          WHERE NAME = TSTC-PGMNA.
          IF TRDIR-SUBC EQ 'F'.
            SELECT SINGLE * FROM TFDIR
            WHERE PNAME = TSTC-PGMNA.
            SELECT SINGLE * FROM ENLFDIR
            WHERE FUNCNAME = TFDIR-FUNCNAME.
            SELECT SINGLE * FROM TADIR
            WHERE PGMID = 'R3TR'
            AND OBJECT = 'FUGR'
            AND OBJ_NAME EQ ENLFDIR-AREA.
            MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
          ENDIF.
        ENDIF.
        SELECT * FROM TADIR INTO TABLE JTAB
        WHERE PGMID = 'R3TR'
        AND OBJECT in ('SMOD', 'SXSD')
        AND DEVCLASS = V_DEVCLASS.
        SELECT SINGLE * FROM TSTCT
        WHERE SPRSL EQ SY-LANGU
        AND TCODE EQ P_TCODE.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) P_TCODE,
        45(50) TSTCT-TTEXT.
        SKIP.
        IF NOT JTAB[] IS INITIAL.
          WRITE:/(105) SY-ULINE.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
          sort jtab by OBJECT.
          data : wf_txt(60) type c,
          wf_smod type i ,
          wf_badi type i ,
          wf_object2(30) type C.
          clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
          LOOP AT JTAB into wa_tadir.
            at first.
              FORMAT COLOR COL_HEADING INTENSIFIED ON.
              WRITE:/1 SY-VLINE,
              2 'Enhancement/ Business Add-in',
              41 SY-VLINE ,
              42 'Description',
              105 SY-VLINE.
              WRITE:/(105) SY-ULINE.
            endat.
            clear wf_txt.
            at new object.
              if wa_tadir-object = 'SMOD'.
                wf_object2 = 'Enhancement' .
              elseif wa_tadir-object = 'SXSD'.
                wf_object2 = ' Business Add-in'.
              endif.
              FORMAT COLOR COL_GROUP INTENSIFIED ON.
              WRITE:/1 SY-VLINE,
              2 wf_object2,
              105 SY-VLINE.
            endat.
            case wa_tadir-object.
              when 'SMOD'.
                wf_smod = wf_smod + 1.
                SELECT SINGLE MODTEXT into wf_txt
                FROM MODSAPT
                WHERE SPRSL = SY-LANGU
                AND NAME = wa_tadir-OBJ_NAME.
                FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
              when 'SXSD'.
    For BADis
                wf_badi = wf_badi + 1 .
                select single TEXT into wf_txt
                from SXS_ATTRT
                where sprsl = sy-langu
                and EXIT_NAME = wa_tadir-OBJ_NAME.
                FORMAT COLOR COL_NORMAL INTENSIFIED ON.
            endcase.
            WRITE:/1 SY-VLINE,
            2 wa_tadir-OBJ_NAME hotspot on,
            41 SY-VLINE ,
            42 wf_txt,
            105 SY-VLINE.
            AT END OF object.
              write : /(105) sy-ULINE.
            ENDAT.
          ENDLOOP.
          WRITE:/(105) SY-ULINE.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No.of Exits:' , wf_smod.
          WRITE:/ 'No.of BADis:' , wf_badi.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(105) 'No userexits or BADis exist'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(105) 'Transaction does not exist'.
      ENDIF.
    AT LINE-SELECTION.
      data : wf_object type tadir-object.
      clear wf_object.
      GET CURSOR FIELD FIELD1.
      CHECK FIELD1(8) EQ 'WA_TADIR'.
      read table jtab with key obj_name = sy-lisel+1(20).
      move jtab-object to wf_object.
      case wf_object.
        when 'SMOD'.
          SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
          CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
        when 'SXSD'.
          SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
          CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
      endcase.
    Hope it will help you.
    Regards,
    Arjun
    <b>Reward points if it helps</b>

  • QA10 User Exit to run addational code for Material Backflush

    Does anyone know if there is a User Exit for QA10 Automatic Usage Decision that will allow you to tack on additional code to complete a material backflush.  I have a batchjob that runs every 5 minutes which fires off a variant to evaluate the Inspection Results.  If all results recording are good the UD gets completed and the material is moved from QI Stock to Unrestricted.  At the same time once the UD and stock transfer is done I would like to run a User exit that will allow me to access a custom lookup table to change the material from CP14.B1 to CP14 and complete a backflush.

    Yes you are correct in saying that I want to do another Backflush once the auto UD is completed.  The scheduled job using program RQEVAI30 completes the UD and posts the material from QI Stock to Unrestricted Stock if results are good.  Once the UD is completed and the stock is posted to Unrestricted I need to find a User Exit that will allow me to write custom code to do a table lookup.  This table will also be custom development that we can use to say if material is CP14.B1 and the Insp. Lot Type is 04 then run MFBF to backflush raw material and complete movement type 309 to CP14 Material.  I just need to know if there is a User exit available that I can use once the lot evaluation is completed.

  • Can I create a custom SCSM task that runs on the server?

    I'm new to SCSM (got roped in as the developer/Powershell guy). I see instructions for adding a custom task to SCSM, which I know generally run from the user's console, under their security context. I also found a reference to "runtime tasks" which
    run from the server. Is there a way for me to make a custom task that runs from the server?  
    If it helps, I'll be creating a task that implements the Poweshell script found
    here that converts an incident to a service request. I'd much rather the conversion take place on the server so that we don't need to deploy the SMlets Powershell module (and another dependency) on each user's workstation. 
    Thanks!

    I'm new to SCSM (got roped in as the developer/Powershell guy). I see instructions for adding a custom task to SCSM, which I know generally run from the user's console, under their security context. I also found a reference to "runtime tasks" which
    run from the server. Is there a way for me to make a custom task that runs from the server?  
    If it helps, I'll be creating a task that implements the Poweshell script found here that converts an incident to a service request. I'd much rather the conversion take place on the server so that we don't need to deploy the SMlets Powershell module (and
    another dependency) on each user's workstation. 
    Thanks!
    Not sure what capabilities you have, but would something like this be useful?
    http://scsmlab.com/2013/12/09/how-to-create-a-custom-scsm-console-task-by-using-some-c-and-xml-magic/

  • I work in a High School and I am looking for a new library system that runs on the mac and is not windows based, can anyone recommend anything?

    I work in a High School and I am looking for a new library system that runs on the mac and is not windows based, can anyone recommend anything?

    That's a very broad question and difficult to answer without knowing more about you requirements.
    Try starting on this page Category review: library management software for the Mac |Part I  and part II  to get a starting point.
    regards

  • User Exit which runs after pressing SAVE button at VF01 Screen.

    Dear all,
    I need user Exit which runs after pressing SAVE button at VF01 Screen.
    Kind Regards,

    If you search the forum, you can find plenty of threads on this, for example Re: Badi or user exit for VF01 while save Can you let the forum know what exactly you want to achieve using user exit during saving of a billing document?
    Regards,

  • User-Exit to change/Calculate the Exchange Rate

    Hi ALL,
                 I am looking for an user-exit that can be used to change the Exchange Rate during the billing cycle. I want to claculate the exchange rate based on the translation date (BKPF-WWERT).
    BR,
    Tanmoy

    Hi ALL,
                This is a very tricky issue.
    The table BKPF has a field called WWERT (Translation Date). Now we want to calculate the Exchange rate based on the translation date. The table BSET has two fieds LWSTE (Tax Amount in Country Currency) &
    LWBAS (Tax Base in Country Currency)  and they must get updated with correct values based on the translation date, but thats not happening as the exchange rate is calculated based on the posting date/billing date. The exchange rate is determined from the TCURR table but its taking the incorrect Exchange rate.  I need to find out the way so that I can correct it.
    BR
    Tanmoy

Maybe you are looking for

  • System restore - 'file not found' nightmare

    I have a very large collection of classical and jazz music which has required a lot of manual input to get the track info right. The music is held on an external hard drive and itunes itself is on my PC hard drive. Recently I had to carry out a syste

  • Sending pictures through yahoo e-mail?

    I have my yahoo e-mail set up and i can send and recieve yahoo e-mails... but when i try to send the pictures i've taken it doesnt work. any ideas?

  • How do I add Facebook 'Like' to an iweb page

    I have tried using a code i found on facebooks social media section, but its keeps having an error. There must be a simple way to HTML snippet this in?

  • Data import as a batch process - Issue on successive runs

    Hi, We have a requirement of creating a batch process that will have to read data from REMOTE_TABLE on remote database system and insert all the rows into LOCAL_TABLE on our local data base. Scenario: When the batch runs for the first time, since LOC

  • Sub Clips In Movie Clips

    Ok, I have continually run into this so i guess i just don't understand some foundation to how AS3 works. So, I have a movie clip in the library (ClipA) - it is linked to a class. Inside Clip A there are 3 other Movie Clips (SubClip1, SubClip2, SubCl