Need help in writing code Customer Exit for reporting Variable

Hello Gurus,
       I have a requirement.When a authorized user logins to view the report, he should see only customers available in the value help screen.In the value help screen it is displaying all the customers, but data is displayed perfectly fine for the authorized sales rep. By default, Value help screen displaying all the customer numbers.
How can I restrict in the value help screen?
Any help appreciated with points.
Regards,
PNK

Hello PNK,
You can use a variable with Process type Authorization. This enables variables to be filled with values automatically from the user authorization.
http://help.sap.com/saphelp_sem40bw/helpdata/EN/44/599b3c494d8e15e10000000a114084/content.htm
Thanks
Chandran

Similar Messages

  • How to Write a CUstomer Exit for a variable in BEx

    Hi,
    How to write a customer exit variable in bex Query designer
    Do i need developers key for this (If so what type of key do i need so that i can ask basis tean to generate)
    Info Object: ZEXP_DTE (Expiry Date)
    Variable on ZEXP_DTE :
    ZEDTE
    Type: Customer Exit
    Can any one please tell me how to write a code in CMOD from this (Step-by Step)
    Expiry Date > Current Cal Day
    As arun said
    'l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.'
    I want to insert the above code for the above customer exit but as i am new to BW as  ABAP please explain me what are the steps involved in CMOD
    Thanks

    Hi,
    To write customer exit for a variable, you require Access key.
    Contact your BASIS to get that.
    Access Key,BASIS?
    To write Customer exit,
    User Exits
    User Exit for Variable
    /thread/809285 [original link is broken]
    Hope these helps u...
    Regards,
    KK.

  • How to create customer exit for characteristic variables and for text vars.

    hi friends,
      can anybody tell me how to create customer exit for characteristic variables and for text variables in bw ides system.
    thanks,
    sree

    Hi,
    Please have a look at:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Krzys

  • How to write customer exit for the variable

    Hi Experts,
    I have a requirement to create the variable, the scenaria is like this..
    I need to create the variable which gives the period/year values,if yours enters the values 05.2007 then the variable should return the first monthe the year i.e.01.2007.
    I hope it can be done by writing the customer exit..but iam unware how to achieve this.
    Please explain me step by step and cope for customer exit to done this.
    Points will be awarded
    Suraj.

    hi Suraj,
    there should variable sap exit for first month,
    for customer exit, check this how to doc for steps
    https://websmp210.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
    your code may look like
      INCLUDE ZXRSRU01                                                   *
      DATA: L_S_RANGE TYPE RSR_S_RANGESID.
      DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
      CASE I_VNAM.
      WHEN 'your 1st month variable'.
        IF I_STEP = 2.                                  "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'your user input variable'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW      = LOC_VAR_RANGE-LOW(4)."low value, e.g.200001
            L_S_RANGE-LOW+4(2) = '01'.
            L_S_RANGE-SIGN     = 'I'.
            L_S_RANGE-OPT      = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
      ENDCASE.
    hope this helps.

  • Help me writing a Customer Exit!!

    Hi Guys
      Help me how to write a customer for calculating the next quarter forecast based on the user enter the input..
    to write a code from the fiscal period they enter....
    *********START OF FIRST PROG
    WHEN 'ZVAR_**** type as interval or selection*
    CLEAR l_s_range.
    IF i_step = 2. "after the popup
    LOOP AT i_t_var_range INTO loc_var_range
    WHERE vnam = ZPxxXXXX.
    ENDLOOP.
    IF loc_var_range-low = '001'
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    l_s_range-low = "01"
    l_s_range-low = "03"
    ENDIF.
    IF loc_var_range-low = '004'
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    l_s_range-low = "04"
    l_s_range-low = "06"
    ENDIF.
    IF loc_var_range-low = '007'
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    l_s_range-low = "07"
    l_s_range-low = "09"
    ENDIF.
    IF loc_var_range-low = '010'
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    l_s_range-low = "10"
    l_s_range-low = "12"
    ENDIF.
    *****Until here I calculated the Quarterly months...if I am wrong correct me...
    ******then from here I need to caculate Next Quarter as mentioned below. which is requirement logic...
    if they enter period
    01 --- Quarter1
    02---Q1
    03--- Q2
    04--Q2
    05---Q2
    06---Q3
    07---Q3
    08---Q3
    09---Q4
    10---Q4
    11-Q4
    12-Q4
    This is how i need
    Is it again I need to enter for each period as they enter????
    pls help me with next part of coding???
    APPEND l_s_range TO e_t_range.
    Thanks a lot...
    BI Learner

    Hi,
    Here I'm giving simple code this will give First Day of the Fy Period and Last Day of the Fy Period entered by the user, so you can change as per your requirement, please ask ABAPer in your project to chenge the code, because I don't know what exactly you want to.
    it will give first date of the FY Period based on user entry on ZFYP variable
    ZFDAY_FI is Customer Exit Variable on 0CALDAY and ZFYP is User Entry Variable on Fiscal year/Perod
        WHEN 'ZFDAY_FI'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZFYP'.
            zbdatj = loc_var_range-low+0(4).
            zbuper = loc_var_range-low+4(3).
            CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
              EXPORTING
                i_gjahr = zbdatj
                i_periv = 'V3'
                i_poper = zbuper
              IMPORTING
                e_date  = zzdate.
            CLEAR: l_s_range.
            l_s_range-low = zzdate.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
    it will give last date of the FY Period based on user entry on ZFYP variable
    ZLDAY_FI is Customer Exit Variable on 0CALDAY and ZFYP is User Entry Variable on Fiscal year/Perod
        WHEN 'ZLDAY_FI'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZFYP'.
            zbdatj = loc_var_range-low+0(4).
            zbuper = loc_var_range-low+4(3).
            CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
              EXPORTING
                i_gjahr = zbdatj
                i_periv = 'V3'
                i_poper = zbuper
              IMPORTING
                e_date  = zzdate.
            CLEAR: l_s_range.
            l_s_range-low = zzdate.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
    In Report Create new Selection and drag the Keyfigure and 0CALDAY and restrict the 0CALDAY with *Intervales i.e. with ZFDAY_FI ; ZLDAY_FI *
    Thanks
    Reddy

  • Customer exit for query variable to calculate amount since 1998

    Hi Experts,
    I am trying to fetch the expenses since 1998 till last fiscal year in Bex Query.
    I have created a variable ZFYRVAR1, processing type customer exit, Interval, Mandatory. I unchecked 'Variable is ready for input' box. There is no 0CALYEAR in the infocube. We have 0FISCYEAR and 0FISCPER in the InfoCube.
    We wrote following code to populate the variable. It is throwing a warning message.
    Value " is too long for variable ZFYRVAR1.
    The column remains empty and nothing is populated. Can somebody tell me whats wrong with the code. I also defined another variable instead of l_year. like
    zyear like /bi0/pfiscyear-fiscyear.  but same error.
    Any help is appreciated.
    data: l_s_range type rsr_s_rangesid.
    data: l_year(4)     type n.
    case i_vnam.
    l_year = sy-datum+0(4).
      l_s_range-high = l_year - 1.
       l_year = 1998.
      l_s_range-low = l_year.
      clear e_t_range.
      l_s_range-sign = 'I'.
      l_s_range-opt  = 'BT'.
      append l_s_range to e_t_range.
    endcase.

    Hi Sheo,
    Hope the sample code below helps you. You can debug it in RSRT to be sure.
    DATA: L_S_RANGE TYPE rsr_r_rrrangesid.
    DATA: l_yearh(4) type c,
          l_yearl(4) type c.
    IF I_STEP = '2'.
      if i_vnam = 'ZFYRVAR1'.
         *Please check your user profile to make sure l_year is in the format YYYYMMDD.
         l_yearh = sy-datum(4).
         l_yearh = l_yearh - 1.
         l_yearl = '1998'.
         l_s_range-high = l_yearh.
         l_s_range-low = l_yearl.
         l_s_range-sign = 'I'.
         l_s_range-opt = 'BT'.
        APPEND L_S_RANGE TO E_T_RANGE.
        exit.
      endif.
    ENDIF.

  • Migrating Customer exit  for BEX variables to BADI's

    Hi All,
    I am new to ABAP In the context of BW.
    I am  using exit RSR00001 to populate variables in BEX reports.
    I want to migrate this customer exit RSR00001 to BADI.
    Can any one please tell me how to migrate the same and how it will fire in place of exit?
    Thanks In Advance
    Dhananjay

    Hi,
    Please have a look at:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Krzys

  • Need help in writing the control file for SQLLOADER

    Is it possible to error out the Sqlloader in case the data fields in the data file for a row are more than the fields stated in the control file?
    i.e. My data file is something like
    aaa,bbb,cc
    dd,eee
    And my ctl file has just 2 columns in it. Is it possible to write a control file which will cause the Sqlloader to error out?
    Thanks...

    Nisha,
    Again I posted test example in your other post but here is how can do that
    CREATE TABLE mytest111 (
       col1 NUMBER,
       col2 NUMBER,
       col3 NUMBER
    LOAD DATA
    TRUNCATE INTO TABLE MYTEST111
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    col1 integer external,
    col2 integer external
    #mytest.dat
    1,2,3
    1,2
    SQL*Loader: Release 10.2.0.1.0 - Production on Fri Apr 10 11:40:39 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Control File:   mytest.ctl
    Data File:      mytest.dat
      Bad File:     mytest.bad
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table USIUSER.MYTEST111, loaded from every logical record.
    Insert option in effect for this table: TRUNCATE
    TRAILING NULLCOLS option in effect
       Column Name                  Position   Len  Term Encl Datatype
    COL1                                FIRST     *   ,  O(") CHARACTER           
    COL2                                 NEXT     *   ,  O(") CHARACTER           
    Table MYTEST111:
      2 Rows successfully loaded.
      0 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                  33024 bytes(64 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             2
    Total logical records rejected:         0
    Total logical records discarded:        0
    Run began on Fri Apr 10 11:40:39 2009
    Run ended on Fri Apr 10 11:40:40 2009
    Elapsed time was:     00:00:00.99
    CPU time was:         00:00:00.06
    {code}
    Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Customer Exit for BW Variables

    Dear all,
    I am a BW Consultant and have a very limited knowledge in ABAP. I have the following scenario:
    My BW query has the following input variables:
    0P_FYEAR      Fiscal Year (Single Value Entry)
    0P_PER3      Posting Period (Single Value Entry)
    and the following text variables:
    ZT_FYEAR     (Text variable for Year)
    ZT_PER3     (Text variable for Period)
    ZT_CQTR   (Text variable for Comparative Quarter)
    Now, I need guidance to write ABAP code in CMOD that will achieve the following results:
    1.     Display last date of Period., e.g.:
    -     Return 31 to ZT_PER3, if January (Period 1) is selected from 0P_PER3.
    -     Return 28/29 to ZT_PER3,  if February (Period 2) is selected from 0P_PER3.
    2.     Display as Period 12.
    Display Period 13, Period 14, Period 15 & Period 16 as Period 12, e.g.:
    -       Return 12 to ZT_PER3, if Period 13 is selected from 0P_PER3.  The same goes for Period 14, 15, & 16.
    -       Otherwise, return the same period to the text variable.
    3.     Quarter-to-date Comparison
    -     If Quarter 1 periods (Period 1, 2 or 3) and Year 2012 is selected from 0P_PER3 and 0P_FYEAR, return Quarter 4 to ZT_CQTR and Year 2011 to ZT_FYEAR.
    -      Otherwise, return previous quarter and same fiscal year to the text variables.
    Would really appreciate your assistance.
    Thanks!

    Hi Fulham,
    For point 3:
    case 0P_PER3.
    when '1' or '2' or '3'.
    ZT_CQTR = '4'.
    ZT_FYEAR = 0P_FYEAR - 1.
    when '4' or '5' or '6'.
    ZT_CQTR = '1'.
    ZT_FYEAR = 0P_FYEAR.
    when '7' or '8' or '9'.
    ZT_CQTR = '2'.
    ZT_FYEAR = 0P_FYEAR.
    when '10' or '11' or '12'.
    ZT_CQTR = '3'.
    ZT_FYEAR = 0P_FYEAR.
    endcase.
    Hope This Helps.
    Ernesto.

  • Customer Exit for Formula Variable

    Hi all, and thanks in advance for your help on this one.
    I'm trying to run a function module to convert the value of a characteristic in my ODS to a formula variable. To do this, I've created a replacement path variable to hold the value of the characteristic, and then I'm passing this value to another module to convert it to factory date.
    Here is my code ZTSTGIDT is the name of the replacement path variable that is set to equal the characteristic key value.
    DATA: CONVERTDATE  TYPE SYDATUM. " Date
    DATA: FAC_DATE     TYPE FACDATE. " Factory Date
    DATA: ZE_T_RANGE TYPE RSR_T_RANGESID WITH HEADER LINE.
        WHEN 'ZFACDY01'.
            CLEAR: ZE_T_RANGE, E_T_RANGE.
    *  Get the Goods Issue date from the formula variable.
        IF I_STEP = 2.
          READ TABLE I_T_VAR_RANGE
          WITH KEY VNAM = 'ZTSTGIDT'
          INTO CONVERTDATE.
          CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
          EXPORTING
          CORRECT_OPTION = '+'
          DATE = CONVERTDATE
          FACTORY_CALENDAR_ID = 'ZB'
          IMPORTING
          FACTORYDATE = FAC_DATE
          EXCEPTIONS
          CALENDAR_BUFFER_NOT_LOADABLE = 1
          CORRECT_OPTION_INVALID = 2
          DATE_AFTER_RANGE = 3
          DATE_BEFORE_RANGE = 4
          DATE_INVALID = 5
          FACTORY_CALENDAR_NOT_FOUND = 6
          OTHERS = 7.
          IF SY-SUBRC = 0.
              ZE_T_RANGE-LOW = FAC_DATE.
              ZE_T_RANGE-SIGN = 'I'.
              ZE_T_RANGE-OPT = 'EQ'.
              APPEND ZE_T_RANGE to E_T_RANGE.
          ENDIF.
        ENDIF.
    The variable ZFACDY01 does not receive a value from this code, and it seems as if the variable CONVERTDATE never receives a value from the replacement path variable.
    1.) Is it even possible to read the characteristic value in this way?
    2.) Is there another way to read the characteristic value directly from my ODS at runtime for the record in question?
    The much easier solution is to create new key figures for each date that we need to convert to factory days and to do the conversion in the update rules, but doing so would require extensive reloads of many years worth of data. Even though performance will be impacted, we're trying to find a workaround (queries will be batch-run at night, anyway).
    Many thanks (and points!) for the person who can figure this out

    I tried using different I_STEP stages, but the replacement path variable still doesn't seem to be populated when it passes the value to the function module to convert to factory days.

  • Writing a User exit for a Variable in Bex Query

    Hi Guys,
    I need some urgent help on this.  I appreciate your help.
    I have a variable ZVAR1 ( Store id) in a query.  This processing type is manual entry.
    There is another variable ZVAR2 (0Orgunit).  The value in ZVAR2 should be populated by converting the ZVAR1 value that the user entered.
    The master data 0orgunit has the marriage between these two.
    So i guess I need to write a user exit to populate ZVAR2 from ZVAR1.  How can I do that.
    Please help me out on this.
    Thanks a lot,

    Hi,
    You can read the value of ZVAR1 from I_T_VAR_RANGE in your exit coding.
    Then perform the required manipulation to populate ZVAR2.
    Thanks,
    Balaji

  • Customer Exit for Calendar Month based on the day (system Date)

    Hello,
    I need help in creating a customer exit for Calendar month without the user input. The logic is as follows:
    For the BEx variable created with customer exit option and no user input:
    If the day on the system date falls in between 1 to 14 take the calendar year/month value as previous month.
    If the day on the system date falls in between 15 through 31 then take the calendar year/month as current month.
    eg if report is run on March 24th2009 the calendar year/month variable should be calculated as 03/2009 (March 2009)
    if the report is run on March 1st2009 the calendar year/month should be calculated as 02/2009 (Feb 2009).
    The code should be effective when run in the first 15 days of Jan when the previous month would contain the previous year as well.
    Thank You
    Srishti

    Thanks Shanthi. I am trying to incorporate the logic when the query is run in beginning of Jan when the year should be the previous year.Following is the code.please let me know if it would work. Is there a way I can test it as well?
    CASE I_VNAM.
    WHEN 'ZCURCALMON'.
    IF i_step = 2.
    data: mm(2),
            dd(2),
            yy(4),
            FM(6).
    if sy-datum+4(2) EQ 1.
    sy-datum(4) = sy-datum(4) - 1.
    else.
    sy-datum(4) = sy-datum(4).
    endif.
    if sy-datum+6(2) LE 15.
      mm = sy-datum+4(2) - 1.
      concatenate sy-datum(4) mm into FM.
    else.
      concatenate sy-datum(4) sy-datum+4(2)  into FM.
    endif.
    l_s_range-low = FM.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    Endif.
    ENDCASE.
    Thanks
    Srishti

  • I need help with my code..

    hi guys. as the subject says I need help with my code
    the Q for my code is :
    write a program that reads a positive integer x and calculates and prints a floating point number y if :
    y = 1 ? 1/2 + 1/3 - ? + 1/x
    and this is my code
       This program that reads a positive integer x and calculates
       and prints a floating point number y if :
                 y = 1 - 1/2 + 1/3 - ? + 1/x
       import java.util.Scanner; // program uses class Scanner
        class Sh7q2
           // main method begins execution of Java application
           public static void main( String args[] )
          // create Scanner to obtain input from command window
             Scanner input = new Scanner( System.in );
             int i = 1; // i is to control the loop
             int n = 2; // n is suppose to control the number sign
             int x; // a positive integer entered by the user
             int m;
             System.out.println("Enter a positive integer");
             x = input.nextInt();
             do
                m = (int) Math.pow( -1, n)/i;
                System.out.println(m);
                   n++;
                   i++;
             while ( m >= 1/x );
          } // end method main
       } // end class Sh7q2 when I compile it there is no error
    but in the run it tells me to enter a positive integer
    suppose i entered 5
    then the result is 1...
    can anyone tell me what's wrong with my code

       This program that reads a positive integer x and calculates
       and prints a floating point number y if :
                 y = 1 - 1/2 + 1/3 - ? + 1/x
       import java.util.Scanner; // program uses class Scanner
        class Sh7q2
           // main method begins execution of Java application
           public static void main( String args[] )
          // create Scanner to obtain input from command window
             Scanner input = new Scanner( System.in );
             int i = 1; // i is to control the loop
             int n = 1; // n is suppose to control the number sign
             int x; // a positive integer entered by the user
             double m;
             int a = 1;
             double sum = 0;
             System.out.println("Enter a positive integer");
             x = input.nextInt();
             for ( i = 1; a <= x; i++)
                m =  Math.pow( -1, n+1)/i;
                sum  = sum + m;
                n++;
                a++;
             System.out.print("y = " + sum);
          } // end method main
       } // end class Sh7q2is it right :S

  • How to select data from an aggregate in a customer exit for a query?

    Hi,
    I have written a virtual key figure customer exit for a query. Earlier the selection was from the cube, where there was severe performance issue. So I have created an aggregate, activated and have loaded the data.
    Now when I select that data I find that the Key table is different in development and production. How do I resolve this.
    My code is attached below. The table in developemnt is KEY_100027 and in production is KEY_100004. This code is activated and running in BW development server.
    SELECT
        F~KEY_1000041 AS K____035
         F~KEY_1000271 AS K____035
         F~QUANT_B AS K____051
         F~VALUE_LC AS K____052
    INTO (xdoc_date, xval1, xqty1)
    UP TO 1 ROWS
    FROM
    FROM
    */BIC/E100004 AS F JOIN
    /BIC/E100027 AS F JOIN
    /BIC/DZMM_CGRNU AS DU
    ON FKEY_ZMM_CGRNU = DUDIMID
    JOIN /BI0/SUNIT AS S1
    ON  DUSID_0BASE_UOM = S1SID
    JOIN /BI0/SCURRENCY AS S2
    ON DUSID_0LOC_CURRCY = S2SID
    JOIN /BI0/SMATERIAL AS S3
    *ON FKEY_1000042 = S3SID
    ON FKEY_1000272 = S3SID
    JOIN /BI0/SMOVETYPE AS S4
    *ON FKEY_1000043 = S4SID
    ON FKEY_1000273 = S4SID
    JOIN /BI0/SPLANT AS S5
    *ON FKEY_1000044 = S5SID
    ON FKEY_1000274 = S5SID
    JOIN /BIC/D100004P AS DP
    *ON FKEY_100004P = DPDIMID
    ON FKEY_100027P = DPDIMID
    WHERE
    WHERE
    ( ( ( ( F~KEY_1000041 BETWEEN 20051230 AND 20060630  ) ) AND  ( (
    ( ( ( ( F~KEY_1000271 BETWEEN 20051230 AND 20060630  ) ) AND  ( (
             S3~MATERIAL = <l_0material> ) ) AND  ( (
                s2~movetype BETWEEN '101' AND '102' OR
             s4~movetype BETWEEN '921' AND '922' OR
             s4~movetype BETWEEN '105' AND '106' OR
             s4~movetype BETWEEN '701' AND '701' OR
             s4~movetype BETWEEN '632' AND '632' ) ) AND  ( (
             S5~PLANT = <l_0plant> ) ) AND  ( (
             DP~SID_0RECORDTP = 0  ) ) ) )
    GROUP BY
        ORDER BY F~KEY_1000271 DESCENDING.
          IF sy-subrc NE 0.
            EXIT.
          ENDIF.
        ENDSELECT.
    How do I transport the code and make it work?
    Whats the reason that the two key fields are different.
    I had transported the aggregate from development to production. Activated it and filled the data.
    What is the way out? Please help.
    Regards,
    Annie.

    Hi Sonu,
    The main task is to move the contents of the one internal table to another with some condition.
    First sort and delete the duplicate entries from the First Internal table like below : 
    sort it_tab by material ascending date_modified descending.
    delete adjacent duplicates from it_tab.
    Then move that Internal table contents to another internal table.
    Define another internal table with the same structure as you have first internal table and then
    Second Step :
    it_itab1 = it_itab.
    If you are using seperate Header line and Body then you can do like below :
           it_itab1[] = it_itab[].
    This will fix the issue.
    Please let me know if you need any further explonation.
    Regards,
    Kittu
    Edited by: Kittu on Apr 24, 2009 12:21 PM

  • Customer Exit for 13 month from current month

    Hi Gurus,
    I need a customer exit for 13 months from current month. Based on the requirement I have written following code
    When 'VPI_13CALYRMON'.
        IF i_step = 1.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'BT'.
          l_s_range-low = sy-datum+0(6).
          l_s_range-high = sy-datum+0(6) + 13.
          append l_s_range to e_t_range.
        endif.
    Please could you guide me the code.
    Thanks
    Ganesh Reddy.

    Hi,
    I think you can do it in below way.
    When 'VPI_13CALYRMON'.
    IF i_step = 1.
    temp1 = sy-datum+0(4).
    temp1 = temp1 +1. (because adding 13 months would take year to next year)
    temp2 = sy-datum+4(2).
    temp2 = temp2 + 1. (after adding 13 months, the month would be one more than of previous year)
    concatenate temp1 temp2 into temp3.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    l_s_range-low = sy-datum+0(6).
    l_s_range-high = temp3.
    append l_s_range to e_t_range.
    endif.
    Hope this helps.

Maybe you are looking for

  • Music and pictures not in Touchsmart

    Hi, Any idea how to get the music and pictures back into my Touchsmart? The computer seems to have a mind of its own, and was going to delete the music and photos altogether from the Touchsmart. I still have my Music and Photos in the Library of the

  • Apache Proxy Plugin (2.22) and Weblogic 9.2 - using SSL

    Hello, I need some help configuring Apache 2.22 to proxy to Weblogic 9.2. I'm able to do this without SSL. But when I introduce SSL into the mix, it does not work. Here's what I'm doing: 1. I set the secure port in the httpd.conf file (7002 is my sec

  • Safari cannot open webpage with shockwave popup

    SAFARI for iPOD... ipod safari cannot open page if the main page opens shockwave(macromedia or flashy) popup.. I have tried enabling popup on ipod but it didn't help.. Can someone tell me how to bypass that.. the webpage is epaper.timesofindia.com ..

  • Transforming multiple documents with x:transform

    Hello, I am trying to use x:transform to apply a transformation to a document that combines content from other documents. I have been trying to use x:param to pass in the other supporting documents as node-sets but I am getting errors as follows: <c:

  • Problems for create PO from SRM to ECC BADI BBP_ECS_PO_OUT_BADI

    Hello Experts I require your help in the following topic: I have created an extension to BBP_ECS_PO_OUT_BADI BADI, you can make an extension to data conditions of my code-PO annexe, however I get the following situation: When I have the active code,