Variable Exit for Displaying last transaction or opening bal

Dear Experts,
material            year                period              amt         qty            
abc                   2008                  01                4545         878
abc                   2008                  03                5255         900
def                   2008                  02                4333         1212
def                   2008                  05                4551         1555  
like wise data is stored in infocube , i am going to create a query based on the infocube . In query i define a variable for period and year respectively .if i give the input of period as 02 and year 2008 for the opening stock should get displayed as
abc                   2008                  01                4545         878
def                   2008                  02                4333         1212 
if i give input of period as 10 and year as 2008 i should get the values as
abc                   2008                  03                5255         900
def                   2008                  05                4551         1555  
and also pls let me know how and where  to write the variable exit
PS: This is Go Live Critical
Thanks and regards,
raj

Hi Frank.
Im sure its possible to find the date last year, but it will involve some programming and thinking about time/dates etc, unless you can do a lookup in the factorycalendar or "normal" calendar, stored in the system AND having the number of day info.
But you want to do this on the fly, in the report? I think performance might take a hit...
regards
jacob
Edited by: Jacob Jansen on Oct 8, 2009 8:53 PM
Edited by: Jacob Jansen on Oct 8, 2009 8:54 PM

Similar Messages

  • To find the User Exits for a particular Transaction.

    hi,
        I want to find the number of User Exits for a The Transaction MM01 or MM02,
        I serched in the forums but could not find satisfactory ans,
        I tried with:
                 T.Code-> System>Status->Prog Name>SE38>find Call Customer-Exit.
        But its not helping me,
        Please help me.
    Thanks and Regards
    Suraj S Nair.

    hi ,
    if you are new to user exist use --> follw the below methos to find the user exit for a particular transaction or t-code
    create one custom pgm in se38 and execute >selection screenenter t-code and execute it will return all the user exists for a specific transaction..
    Finding the user-exits of a SAP transaction code
    * Finding the user-exits of a SAP transaction code
    * Enter the transaction code in which you are looking for the user-exit
    * and it will list you the list of user-exits in the transaction code.
    * Also a drill down is possible which will help you to branch to SMOD.
    * Written by : SAP Basis, ABAP Programming and Other IMG Stuff
    *              http://www.sap-img.com
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : 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 obligatory.
    select single * from tstc where tcode eq p_tcode.
    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 = 'SMOD'
                           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:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.
    *---End of Program
    Regards,
    Prabhudas

  • Screen exit for ME51(old transaction)

    Is there any screen exit for ME51 old transaction? ME51N(new transaction) I was able to find, please help me to find something in ME51.
    Thanks

    Hi,
      check enhancement : MM06E005.
    Regards,
    Himanshu

  • How to find the customer exits for a particular transaction

    hi
    how to find the customer exits for a particular transaction

    Hi jyothsna vankadari ,
    ther is a convenient way to find all BADIS called. You may know that BADIS are the newer version of EXITs.
    I would suggest you to go for BADI.
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Regards,
    Clemens

  • Field Exit for ME21N & ME22N transactions

    HI Friends,
    I need to make the SAP Standard screen field "Overdeliv. Tol." & "Unlimited" to inactive under the Item level data --> Delivery tab in ME21N & ME22N transaction.
    Can i do ths? If so give me the steps and Screen exit for the same...

    For User Exit's
    goto to tcode->status->program name->double click on that,
    then goto to-> attribute take the package name and
    Goto SMOD tcode ->Utilities->give the package name and F8
    then a list of exits will display for that tcode as well as that package.
    double click on the exit u can see the Fm exit,screen exit,feild exit,include exit. there
    u can check the table MODSAP
    For BADI's,
    1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
    keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
    then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
    2)Goto to tcode->status->program name->double click on that program will display's
    then  press crtl+F then cl_exithandler
    Thank u,
    santhosh

  • User Exit for F-92 transaction!

    Hi everyone,
    I hope you all fine!
    I hope you guys could help me with this.  This is about user exit, I need one for the transaction F-92, when the user wants to sale a fixed asset I need to catch the fixed asset number to validate it, but I don't know if I'm doing something wrong with this user exits that I found here in the forum none of them stops when a type a break-point sentence.
    SAPLF051 Workflow for FI (pre-capture, release for payment)
    RFKORIEX Automatic correspondence
    RFEPOS00 Line item display: Checking of selection conditions
    RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
    FEDI0001 Function Exits for EDI in FI
    FARC0002 Additional Checks for Archiving MM Vendor Master Data
    F180A001 Balance Sheet Adjustment
    F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002 FIDCC1: Change IDoc/do not send
    F050S003 FIDCC2: Change IDoc/do not send
    F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
    Does any body know if there's any more user exit that are not listed in here for this transaction? or in the user exit listed above there's one that could stop at the break-point. but I'm not doing it correctly!
    I hope you guys could help me with this, I'll really appreciate it.
    Thanks for your time.
    Regards,
    Guillermo E.

    Hi Vinod,
    Thanks for your reply, I also tried as you told me to use the transaction OB28, but I'm having some problems to understand how to use it.  I found this documentation to create a user exit, here is the link:
    http://www.richard-harper.me.uk/Kb/showtext.aspx?id=0007c
    I followed the steps that it says, but the functional consultant can't see the new user exit that I'm trying to use.
    I hope somebody could help me to understand how to set up a user exit with the transaction GCX2, and how to set parameters to make to make a query to a custom table and return a value to trigger the validation.
    Or if I'm supposed to use another way to do it.
    Thanks for your time!
    Regards,
    Guillermo

  • GL Account User Exit for all FI transactions

    Hi Experts,
    We  have to create a Ztable and it stores GL bank account principal amount.
    Ex: 130121 (SCB Bank) - Rs.10,00,000.00
    In SAP , for the same GL account closing balances will available in FS10N of each month.
    Ex: 130121 (SCB Bank) for Sep'09 - Rs.8,50,000.00
    Now, the requirement is..
    I want to put an User Exit for this Bank GL Account . It has to perform a check operation whenever this GL accounts comes for posting on any FI transactions, and
    it'll check each time to the GL account principal balances(from Ztable) with the posting amounts and give a popup message regarding about the bank limits exceeded, remainaing amounts and then only they can able to post the transactions.
    Ex: If they are posting in F-02 (general ledger posting) the amount showing in GL account which go for my user exit calculations everytime and the same will be for all other FI GL transactions.
    Hope u understood else pls let me know by your replies.
    Pls advise.
    thanks & regards
    sankar.

    Hi..
    In the tcode where u want to put the user exit, In the menu select System--> Status and double click on the program.
    Then click on search and give the search term as "call-customer function".. and see if there are any available user exits..
    Select one, and double click on the 3 number..if '003' ,double click on it,it will take u to the Fm..where u will find an include starting with Z.
    Here u can write the code u want.
    Regards,
    Vishwa.

  • Variable Exit for YTD using posting period

    Hi Friends,
    I need to calculate the YTD amount per user entry, i.e., when user enters the posting period value as 5 the Actual value should calculate the amount for posting period 5 and Actual YTD value should calculate the amount from Period 1 - 5.
    I'm getting the same amount as period 1 for YTD as well....I created a two variables for YTD , one is with single value optional with default value as 1 not ready for input and another variable as customer exit with single value. In the exit I'm reading the user entry value as my 2nd variable value. Then I'm using these two variables as range in RKF with key figure and value type.... i.e,
      WHEN 'ZTEST'.
    data:      zper     TYPE t009b-poper
        if I_STEP = 2.
          READ TABLE I_T_VAR_RANGE INTO ZPER WITH KEY VNAM = '0P_PER3'. " this is the mandatory user entry for Actual value
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         l_s_range-low   = zper.
          append l_s_range to e_t_range.
    ENDIF.
    Thanks
    sam

    I used the range and when I use RSRT to test the query , I'm getting the exact variable values in the result example if I give the input as year = 2010 and Posting period = 3 - 6
    I'm getting the variale values for input as 3-6 and variable values for Actual YTD as 1-6 but the Actual YTD value is showing the same value as Actual.
    I have the cost element heirarcy as the row item. I'm not sure If we are allowed to use heirarchies in the rows when we are using the above logic for YTD?  Also when I drill down by posting period I could see all the values in Actual YTD but when I removed drill down it is only showing the value for 3-6 just as Actual....Please advice
    My Key figure in the RKF is a cumulated balance...Does it causes the YTD values and Actual values same?
    Example result below for Period input 10:
    Posting period Actual        Actual YTD
    1xxxxxxxxxx     xxxxxxxxxx     210,587,416 USD
    2xxxxxxxxxx     xxxxxxxxxx     172,717,190 USD
    3xxxxxxxxxx     xxxxxxxxxx     178,563,365 USD
    4xxxxxxxxxx     xxxxxxxxxx     160,894,981 USD
    5xxxxxxxxxx     xxxxxxxxxx     145,730,654 USD
    6xxxxxxxxxx     xxxxxxxxxx     109,796,716 USD
    7xxxxxxxxxx     xxxxxxxxxx     108,377,441 USD
    8xxxxxxxxxx     xxxxxxxxxx     95,732,276 USD
    9xxxxxxxxxx  xxxxxxxxxx     88,925,649 USD
    10xxxxxxxxx     107,755,724      107,755,724 USD
    Overall Result     107,755,724      107,755,724 USD 
    thanks

  • Variable Exit for fiscal week and weekday previous year

    Hi experts.
    in a reports I'm entering a date manually through a variable ZDATE1 for current year.
    I need to find out the corresponding date last year based on the week number and week day for the entered date.
    So, If i enter date 08/21/2009 , and that happens to be week 35 and day 2 for this week. so what would be the calender date for the same week 35 and day 2 in the previous year (2008).
    Please help with any functions or methods or syntax...
    Thanks

    Hi Frank.
    Im sure its possible to find the date last year, but it will involve some programming and thinking about time/dates etc, unless you can do a lookup in the factorycalendar or "normal" calendar, stored in the system AND having the number of day info.
    But you want to do this on the fly, in the report? I think performance might take a hit...
    regards
    jacob
    Edited by: Jacob Jansen on Oct 8, 2009 8:53 PM
    Edited by: Jacob Jansen on Oct 8, 2009 8:54 PM

  • Custome variable exit for fiscal year/period

    Hello BW Gurus,
    Q1[1,2,3] Q2[4,5,6] Q3[7,8,9] Q4[10,11,12] quarterly periods
    I have a custom variable exit as shown for fiscal year period
           IF LOC_VAR_RANGE-LOW+4(3) =< '003'.
              L_S_RANGE-LOW+4(3) = '001'.
           ELSEIF LOC_VAR_RANGE-LOW+4(3) > '003' AND
                                              LOC_VAR_RANGE-LOW+4(3) =<'006'.
              L_S_RANGE-LOW+4(3) = '004'.
           ELSEIF LOC_VAR_RANGE-LOW+4(3) > '006' AND
                                                LOC_VAR_RANGE-LOW+4(3) =< '009'.
              L_S_RANGE-LOW+4(3) = '007'.
           ELSE.
              L_S_RANGE-LOW+4(3) = '010'.
           ENDIF.
    Now this works fine to give me the Current Quarter ....say if user puts 005/2007 i get the data Current quarter as [4+ 5] i.e. April and MAy data. Now for <b>Previous Period</b> I gave an offset as -3 to -1 inorder to get data for Q1[123] but the requirement is changed and I want the same time period i.e. [1+2] and not the entire quarter since the Current Quarter calculates only for 4 and 5.
    I hope u are getting my point....please give your suggestions will reciprocate with lots of points

    Hi gaurav,
    Basically If I am selecting period 005 I am getting the data for 4 and 5 as Current Quarter i.e. April is the starting period of that Q2.
    Similarly the previous Quarter should also give me data for period 1 and period 2.
    Right now the offset I gave is -3 to -1 on my custom variable so i am getting data for the entire previous quarter which is Q1[1,2,3] but in reality i just want data for period 1and period 2.
    Can you please help me in this
    Appreciate your concern
    Thanks

  • User exit for V.23 transaction

    Hi,
    Is there any user exit or BADI available for transaction v.23?
    Thanks,
    Venu

    Dear Venu,
    There are no user Exits for V.23 T code,check whether any BADI's are available.
    I will suggest you to post the same thread in ABAP Forums.
    Regards
    Mangal

  • User-exit  for displaying message in LT15

    Hi,
    I am looking for a user-exit (or another way?) for displaying a warning message when the user tries to cancel a TO via LT15 (under certain conditions). But the only user-exit that I found that would do the thing here is ZXLTOU02, but it's performed only in Update task - no message display possible.
    Any ideas?
    Cheers!

    Thanks for your input Chidanand,
    But I've already tried by setting a breakpoint in all available exits concerning TO confirmation/cancellation - none of them is reached when LT15 is executed. The only one is the one I mentionned, and it is being performed in update task - so no message issuing possible.....
    Any other ideas?

  • User Exit for display User fields in MM03

    Peace to All,
    I was able to place user fields in Purchase View of MM03.
    Question , how do I pull data from ZMARA table  of my master data so that I can display it on MM03.
    I will appreciate your help on this. Does anyone has a sample program to do so.
    Thanks in advance,
    Shilpa

    Hi Shilpa,
    Check the following user exit for MM03:
    MGA00001            Material Master (Industry): Checks and Enhancements 
    MGA00002            Material Master (Industry): Number Assignment       
    MGA00003            Material Master (Industry and Retail): Number Display.
    Hope this will help you....

  • User Exit For CO02 (PP transaction)

    Dear All .
    When Production order is saved it should check for requested  quantity and withdrawn quantity . Also it should check for the confirmation of all operations .
    I could find the User exit . Since I have not written any User exit before this I am am not understanding what has to be done . If any body knows about that pls guide me
    thank you all .

    Exit Name           Description
    CCOWB001            Customer exit for modifying menu entries
    COIB0001            Customer Exit for As-Built Assignment Tool
    COZF0001            Change purchase req. for externally processed operation
    COZF0002            Change purchase req. for externally procured component
    PPCO0001            Application development: PP orders
    PPCO0002            Check exit for setting delete mark / deletion indicator
    PPCO0003            Check exit for order changes from sales order
    PPCO0004            Sort and processing exit: Mass processing orders
    PPCO0005            Storage location/backflushing when order is created
    PPCO0006            Enhancement to specify defaults for fields in order header
    PPCO0007            Exit when saving production order
    PPCO0008            Enhancement in the adding and changing of components
    PPCO0009            Enhancement in goods movements for prod. process order
    PPCO0010            Enhancement in make-to-order production - Unit of measure
    PPCO0012            Production Order: Display/Change Order Header Data
    PPCO0013            Change priorities of selection crit. for batch determination
    PPCO0015            Additional check for document links from BOMs
    PPCO0016            Additional check for document links from master data
    PPCO0017            Additional check for online processing of document links
    PPCO0018            Check for changes to production order header
    PPCO0019            Checks for changes to order operations
    PPCO0021            Release Control for Automatic Batch Determination
    PPCO0022            Determination of Production Memo
    PPCO0023            Checks changes to order components
    PPCO0100            test
    STATTEXT            Modification exit for formatting status text lines
    regards
    vinod

  • Is there a User exit for fast entry transaction PA42

    I am trying to find a user exit for transaction PA42 Fast entry. 
    We currently have custom table that we check before allowing maintenance on employee data.  I have found user exits for transaction PA30 and PA40 but am struggling to find one for PA42 Fast Entry.
    Any assistance would be greatly appreciated.
    Shamshudin

    You can check the following...
    Determined from program DevClass     HRPBAS01     User Exit for HR Master Data
    Determined from program DevClass     HRPC0001     HR: PC download authorization
    Determined from program DevClass     HRRPAI01     User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
    Determined from program DevClass     PARA0001     Enhancement for Determining the Number of Periods
    Determined from program DevClass     PARA0002     Enhancement for Calculating Annual Salary; IT0008,14,15
    Determined from program DevClass     PBASRP01     PA: User exit distributed reporting
    EXIT_SAPFP50M_001                          PBAS0001     PA: Pers.Admin./Recruitment: Default values and checks
    EXIT_SAPFP50M_002                          PBAS0001     PA: Pers.Admin./Recruitment: Default values and checks
    EXIT_SAPMP50A_001                          PBAS0002     PA: Enhancements for Personnel Administration - Menu

Maybe you are looking for

  • HT1937 cant access my apple account to restore my new iphone 5

    i cant seem to access my apple account on my computor as its saying the following message... saying that my password is incorrect but iv tried it a million times, its allowing to me access it when i use another iphone, i have jst had this phone so pl

  • Trying to send ANSI escape sequence to a VT-100 term

    I am writing an application that you can telnet to via a vt-100 terminal like the default windows telnet client. I would like to have the ability to clear the screen, set colors etc. I found that the ANSI sequence to clear the screen is <ESC> [2J and

  • Error Installing Packaged Applications - Apex 5

    Hi Folks: I installed APEX 5 successfully. Everything seems to be running fine except I'm unable to install packaged applications. I get a screen that looks like the following when trying to install a package application: The text in the dropdowns fo

  • Problem in downloading After Effect

    Hello, I tried to download after effect cs6 and it give me the error code.  I have read the "Download and installation help" and knowing that the computer can't download after effect unless it is a 64 -bits but mine is 32 -bits. So is there a way tha

  • How can i add a 3rd monitor to my brand new macbook with thunderbolt?

    I have just bought a new 13" macbook pro and already have one screen attached.  How can I add a 3rd.  I'm told it is capable of running several at once???