Critical problem with customer exit scenario

Hi Gurus,
I have some critical prblm in designing the report.
we have one field say VOtype which holds numeric values..
and another column parameter whihc holds whihc type & corresponding values..
VOtype 
1400   parameterA 1
1400   parameterA 2
1400   parameterB 3
1510   parameterA 3
1501   parameterA 3
1521   parameterB 4
now when user enters some variable X - value.. say X=3
the report should calulate total conisidering first 3 digits of VOtype so we hav four combination 140, 151, 150, 152
the report should see lik this
                                TotalA     TotalB
1400   parameterA 1   
1400   parameterA 1
1400   parameterB 3
                                   2          3
1510   parameterA 3
                                   3          0
1501   parameterA 3
                                   3          0
1521   parameterB 4
                                   0          4
when user enters  X=2
the report should calulate total conisidering first 2 digits of VOtype
so we hav only two combination 14, 15
the report should see lik this
                                     TotalA     TotalB
1400   parameterA 1   
1400   parameterA 1
1400   parameterB 3
                                       2          3
1510   parameterA 3
1501   parameterA 3
1521   parameterB 4
                                       6          4
can you help me in handling this situation?..
whether i hav to go for customer exit?..
how can I represent the data in report as above.. like all the detailed lines & also total disply in report?..
points will be awarded ..for every solution..
Regards,
Naveen

Hi ,
U have to create a customer exit variable for the value type by assigning the value of each document type = required count
this is the solution for ur problem
Assigning points is the way of saying thanks in SDN
Regards ,
Subash Balakrishnan

Similar Messages

  • Problem with customer exit variable that is input ready as well

    Hello all,
    I'm facing an issue with a customer exit variable that again has been defined as input ready. I'm not sure why it is working incorrectly and I#m wondering if this is a bug or if I do s.th. stupid.
    The problem is that in the exit program ZXRSRU01 this varibale does not go into the program code I have prepared for this variable. I have added entry points for all three i_step values 1,2,3, but the code will never be touched and in debugging I can see that it simply pypasses the code for this variable.
    I have tried to enter a value or to leave it blank, no difference.
    When I run another test by just using a customer exit variable w/o input ready capability, then I have no issue, the exit does exactly what I have coded.
    Does this mean, that a customer exit variable along with input readiness dows not work ?????
    You may ask why I need this variable. Well, my intention is to use the input value of this variable A to derive other values for a complete different variable B. Afterwards I want to erase the input given into variable A to have it blank.
    Any comments are appreciated
    Thanks

    Hi Heiko,
    I assume A & B variables are defined on different Characteristics. If you wish to derive B based on A, you can create the Query Characteristic Restriction on B & have a dummy RKF restricted on A whose processing is by Manual Input; where processing of B is by Customer Exit. In istep 2 you can check for B, read A & derive B. There would not be a need to blank out A since the Query would not be restricted on A - you can hide the dummy RKF from showing in the output. Just a thought.
    --Priya

  • Problem with customer exit variable in BeX Query

    Hi All,
    We have created a customer exit variable in a query and populated with few patterns in customer exit.
    My query has to bring all the records where the address line is containg the patterns passed through customer exit. Here the query is not working as expected.
    It is bringing the values where the address line is exactly same as the pattern and not bringing the records where the pattern is part of the address line.
    For example: Pattern passed in customer exit = 'HOSPITAL'
    The record where address line = 'HOSPITAL' is shown in the rpeort, where the record with address line = 'HOSPITAL ROAD' is not shown in the report.
    I would appreciate your help on this.
    Regards,
    Rakesh

    Hi Diogo,
    Below is the code I am using in the customer exit.
    SELECT * FROM zae_tt_pbuild INTO TABLE gt_pbuild.
          IF sy-subrc = 0.
            LOOP AT gt_pbuild INTO gs_pbuild.
              CONCATENATE '*' gs_pbuild-pbuild '*' into lv_pattern.
              ls_range-low = lv_pattern.
              ls_range-sign = lc_sign_i.
              ls_range-opt = 'CP'.
              APPEND ls_range TO e_t_range.
              CLEAR: ls_range,
                     lv_pattern.
            ENDLOOP.
          ENDIF.
         ENDIF.
    I have tried using '%' instead of '*' aswell but the result is same.
    Thanks,
    Rakesh

  • Problem with customer exit variable on date range

    Hi All,
    I have customer exit variable on date range. In the selection screen it has to give the week range  as a default (05/21/2009 to 05/27/2009).
    Earlier its working fine and from yesterday onwards it is not working properly. yesday onwards default date range was not displaying in selection screen.
    Wht would be the problem.
    Thanks in Advance

    Hi Ashish,
    I checked every thing what u told earlier. Every thing is fine.
    And another thing is
    I have routine in infopackage level. Since day before yesterday it was working fine and yesterday onwards it was not working.
    Eg: budat will take the data based on routine for the week. But yesterday onwards it is not picking up the data.however I have the data in datasource for the week.
    Wht would be the problem. I debuged the code and its working fine.
    Sekhar

  • Problem with customer exit EXIT_SAPLL03A_002:

    hello all ,
    i have to write some code in the customer exit 'EXIT_SAPLL03A_002'. this customer exit will trigger while creating a transfer order using LT01,LT02 or LT03 transaction . the standard program for all these transactions is SAPML03T . The customer exit EXIT_SAPLL03A_002 is present inside the Standard program SAPML03T. i have to change the storage type indicator value in the internal table imlvs which is present in the standard program SAPML03T.but when i try to access this internal table inside the exit 'EXIT_SAPLL03A_002'.it is showing syntax error as 'IMLVS is not found '.
    How can i make use of field symbols in this case ?
    can we declare a field symbol as internal table .
    my requirement is to change th value of (SAPML03T)IMLVS-LTKZE inside the customer exit 'EXIT_SAPLL03A_002'.
    Thanks in advance ,
    pavan.

    Hi,
    Here is the example for your reference. I am trying to change the shipping condition in the internal table.
    FIELD-SYMBOLS: <fs> TYPE table,
                   <fs_ekpv> TYPE cekpv.
    DATA:lv_structurename(40) TYPE c,
         lv_ttype TYPE cifapottype,
         xekpv TYPE TABLE OF ekpv.
    DATA:lv_vsbed TYPE vsbed.
    lv_structurename = '(SAPMM06E)PTV[]'.
    ASSIGN (lv_structurename) TO <fs>.
    IF <fs> IS ASSIGNED.
      IMPORT lv_ttype FROM MEMORY ID 'ZAPO_TTYPE'.
      CHECK NOT lv_ttype IS INITIAL.
      CLEAR lv_vsbed.
      SELECT SINGLE  vsbed
             FROM ztlb_transport
              INTO lv_vsbed WHERE ttype = lv_ttype.
      IF NOT lv_vsbed IS INITIAL.
        LOOP AT <fs> ASSIGNING  <fs_ekpv>.
          <fs_ekpv>-vsbed = lv_vsbed.
        ENDLOOP.
      ENDIF.
    ENDIF.
    Thanks,
    Vamshi.

  • Problem with Customer exit

    Hi,
    I have a set of variables:
    ZVAR_002 : Fiscal year period (User entry/mandatory/single value), Ready for input.
    ZVAR_004 : Key date to derive Document Date (customer exit/mandatory/single value) used date as reference characteristic, Ready for input.
    ZVAR_005 : Key date to derive net due date (Replacement path/optional/single value) used date as reference characteristic.
    what i am trying to achieve is to derive a date from ZVAR_002(Fiscal year/period) into ZVAR_004.
    example: 001.2007 - 31.07.2006
                  010.2007 - 30.04.2007
    i want the same value that is on ZVAR_004  to be used by ZVAR_005.
    firstly i do not want ZVAR_004 to be ready for input, but i am getting error when i do not check the input ready box. is this a limitation?
    Because i made ZVAR_004 mandatory when the variable screen pops up i am not able to leave the field blank as it requires me to enter some value. As mentioned above i do not want this variable to be displayed in the first place. i want to derive it from ZVAR_002.
    I am using a customer exit to derive the value of ZVAR_004 from ZVAR_002. I am using the following code.
    WHEN 'ZVAR_004'.
      CLEAR:  t_date.
          SELECT  SINGLE low
          FROM  RSZGLOBV
          INTO  lv_fiscper
          WHERE objvers = 'A'
          AND   vnam =    'ZVAR_002'
          AND   iobjnm =  '0FISCPER'.
          IF    sy-subrc IS INITIAL
            AND NOT lv_fiscper IS INITIAL.
            lv_fiscper_month = lv_fiscper+4(3).
            lv_fiscper_year  = lv_fiscper+0(4).
            CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
              EXPORTING
                I_GJAHR        = lv_fiscper_year
                I_PERIV        = 'EM'
                I_POPER        = lv_fiscper_month
              IMPORTING
                E_DATE         = T_DATE
              EXCEPTIONS
                INPUT_FALSE    = 1
                T009_NOTFOUND  = 2
                T009B_NOTFOUND = 3
                OTHERS         = 4.
            IF SY-SUBRC IS INITIAL.
              l_s_range-low    = T_DATE.
              l_s_range-sign   = 'I'.
              l_s_range-opt    = 'EQ'.
              APPEND l_s_range TO e_t_range.
            ENDIF.
          ELSE.
            CLEAR e_t_range.
          ENDIF.
    What i find is the value that i give for ZVAR_002 is not updated in the in the table RSZGLOBV. Can anybody please help me resolve this issue.
    Thanks in advance.
    Ravi.

    Hi All,
    Fixed the issue myself.
    ZVAR_002 : Fiscal year period (User entry/mandatory/single value), Ready for input.
    ZVAR_004 : Key date to derive Document Date (customer exit/mandatory/single value) used date as reference characteristic, Ready for input.
    ZVAR_005 : Key date to derive net due date (Replacement path/optional/single value) used date as reference characteristic.
    as i have mentioned about these three variables earlier, the variable ZVAR_005 was set to replacement type and gets the value from ZVAR_004, as i require them same value.
    Because my ZVAR_005 reis dependent on ZVAR_004 which inturn is dependent on ZVAR_002 the customer exit variable ZVAR_004 should be checked for ready for input and whcih inturn does not run the customer exit at step 2.

  • Problem with customer exit variable

    HI i have created a customer exit variable to rread a table based in user input and pass it to my variable , every thing works fine but i get a waring message in my WAD saying
    RANGE-LOW for customer exit variable ZVSO_PRM corrected to #   BRAIN  746
    Does any one have any idea why is it comming
    my code is as follows
    WHEN 'ZVSO_PRM'.
    IF I_STEP = 2.
    DATA: BEGIN OF ZPROD_MODEL OCCURS 0,
    I_PROD LIKE ZCURR_PM_T-/BIC/ZPRODMOD,
    END OF ZPROD_MODEL.
    DATA: BEGIN OF ZREGIO_TABLE OCCURS 0,
    REGION LIKE ZCURR_PM_T-/BIC/ZREGION,
    END OF ZREGIO_TABLE.
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZREG02'.
    CLEAR L_S_RANGE.
    ZREGIO_TABLE = LOC_VAR_RANGE-LOW.
    APPEND ZREGIO_TABLE.
    ENDLOOP.
    LOOP AT ZREGIO_TABLE.
    SELECT /BIC/ZPRODMOD FROM ZCURR_PM_T INTO TABLE ZPROD_MODEL WHERE /BIC/ZREGION = ZREGIO_TABLE-REGION.
    APPEND ZPROD_MODEL.
    ENDLOOP.
    SORT ZPROD_MODEL.
    CLEAR L_S_RANGE.
    LOOP AT ZPROD_MODEL.
    L_S_RANGE-LOW = ZPROD_MODEL-I_PROD.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDLOOP.
    ENDIF.

    Could it be that the code doesn't find any value in ZCURR_PM_T table for the specified input region?

  • Variable with customer exit

    Hello,
    I have created a query with customer exit variable.this variable calculates cumulative month from the beginning of the year. this variable depends on another regular variable 0PCALMON (single value, mandatory). i also use this variable in the query to show the month itself.
    <b>the problem is as follow:</b>
    until yesterday the 0PCALMON variable pop up normally, but now the variable doesn't pop up  at all!
    Does anyone have an idea?
    Thanks,
    Maya

    Hi,
    The variable may be personalized with some value.
    <b>To remove the personalization for a user:</b>
    Step 1: RSA1 -> Search for ODS 0PERS_VAR
    Step 2: Manage -> Contents ->selective deletion
    Step 3: Put the user to remove the personalization
    http://help.sap.com/saphelp_nw04/helpdata/en/01/42c73c13b0ce5be10000000a114084/content.htm
    Regards
    Happy Tony

  • Error while trying to Execute the Query with Customer Exit

    Hi Experts,
           I am having a Query with Customer Exit, it is working fine for all the Employess, except for one. When i try to remove the Customer Exit it is working for her too. Below is the error i am getting.
    system error in program SAPLLRK0 and form RSRDR; CHECK_NAV_INIT_BACK
    Thanks,
    Kris.

    Hello Kris,
    Are you working with multiprovider? Please check if OSS notes 813454,840080 or 578948 are applicable in your case.
    Regards,
    Praveen

  • Problem with custom paper size on dot matrix printer

    Hi All,
    I'm using CR2008 with updated to SP2. I have a problem with custom paper size (W=21; H=14), the CR Viewer show report with custom paper size correctly but when I print it to a dot matrix printer (Epson LQ 300+) the content was rotated to landscape. If print to a laser printer the content was printed correctly. My report was printed correctly by CR10 or previous versions I got this issue when upgraded to CR2008. I aslo tested my computer and printer with orther application like MS Word the printing have no problem with custom paper size.
    Thanks for any advice for me.
    Han

    Looking at the Epson LQ 300+ driver, I see that the latest update is from 2002. In my experience, most matrix printer drivers are not unicode. Crystal Reports is designed to only work with unicode printer drivers. See the [How Printer Driver Options Affect a Report|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/a09051e9-721e-2b10-11b6-f9c65c64ef29&overridelayout=true] article, page 6 for details. Also, see [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    Finally, see if you can print from the CR designer to this printer and if you get the correct results here.
    Ludek

  • Prob in text variable with customer exit

    Hi to all
    I am working in PA module in HR ,In my Report i have to count total number of trainee and lateral in given Date range that From date to To Date , Before that i have to calculate a Total Employee Strength before one day of From date , suppose user enter a 1st of April 2007 to 1st of jun 2007 , so Employee strength should be calculated on the 31march 2007, for that i have written custome exit , now i am getting a value also , for Display that date have a created a text variable with customer exit , but i am not able to get that date , it should be display strength as on 31march2007 , instead of it is displaying Strength as on 00.00.0000.I am giving a cod also
    ls_range-sign ='I'.
    ls_range-opt = 'EQ'.
    ls_range-low = 'EB1A'.
    append LS_Range to e_t_range.
    WHEN 'ZPA_DATE'.
    if i_step = 3.
    READ TABLE I_T_VAR_RANGE INTO L_S_VAR_RANGE WITH KEY VNAM = 'ZPA_DATE'.
    IF SY-SUBRC = 0.
    ZTEST = L_S_VAR_RANGE-LOW.
    ztest1 = ZTEST - 1.
    export p = ztest1 to MEMORY ID 'VALUE'.
    ENDIF.
    endif.
    WHEN 'ZFRMDAT'.
    if i_step = 3.
    ls_range-sign ='I'.
    ls_range-opt = 'EQ'.
    ls_range-low = ztest.
    append LS_Range to e_t_range.
    endif.
    when 'ZPA_CDAT'.
    if i_step = 3.
    ztest1 = ztest - 1.
    ls_range-sign ='I'.
    ls_range-opt = 'EQ'.
    ls_range-low = ztest1.
    append LS_Range to e_t_range.
    endif.
    when 'ZPA_VAR3'.
    if i_step = 3.
    ztest1 = ztest - 1.
    import p = ztest1 from memory id 'VALUE'.
    concatenate ztest16(2) ztest14(2) ztest1+0(4) into date separated by '.'.
    move date to temp.
    move 'Hello' to temp.
    ls_range-sign ='I'.
    ls_range-opt = 'EQ'.
    ls_range-low = temp.
    append LS_Range to e_t_range.
    endif.
    Please help me to come out
    Thanks

    Hi Stefania,
    to me it looks like your local variable num_mese is not defined with the correct data type.
    Try to change
    if num_mese = 09 to if num_mese = <b>'</b>09<b>'</b>,
    same for 10 -> '10', 11 -> '11'.
    If that does not help please let me know your coding where you define the type of num_mese (DATA statement).
    Regards
    Stephan

  • Variable creation in bw with customer exit

    hi experts,
    how to create a variable in bw with customer exit?

    Hi
    Create a variable with Processing type as customer exit.
    Then Go to Se38 and ZXRSRU01 program in change mode and there you write the necessary coding how your customer exit variable should process.
    else you can access the include function via CMOD also with selecting the enhancement for reports.
    Regards
    RaM

  • Formula Variable with customer exit

    Hi,
    can we use Formula variables with customer exit based  on characteristics(ex Bill date)? if yes, can you guys help me on this.
    Thanks
    kri

    Yes , you can use a formula variable with customer exit based on characteristics .
    Depends on the requirement what you want to show in the formula variable ,
    Eg : if you want to show the max fiscal year period , in that case :
    create a new formula in the keyfigure section of your query , go to edit , you can see formula variable below the keyfigures ,
    right click on the same and create new formula variable :
    Write the code for the formula varible in the backend as we do for normal customer exit varaible :
    for this e.g the code will be :
    FORM get_variable_value
          tables E_T_RANGE      type RSR_T_RANGESID
          using I_VNAM          type RSZGLOBV-VNAM
                I_VARTYP        type RSZGLOBV-VARTYP
                I_IOBJNM        type RSZGLOBV-IOBJNM
                I_S_COB_PRO     type RSD_S_COB_PRO
                I_S_RKB1D       type RSR_S_RKB1D
                I_PERIV         type RRO01_S_RKB1F-PERIV
                I_T_VAR_RANGE   type RRS0_T_VAR_RANGE
                I_STEP          type I.
      DATA L_S_RANGE LIKE LINE OF E_T_RANGE.
      DATA loc_var_range LIKE rrrangeexit.
    Data  : l_inPer TYPE string.
    IF i_step = 1.
    Select min( distinct FISCPER )
            from /BIC/A(DSO name)
            into l_minper  .
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        l_s_range-low = l_minper  .
        APPEND l_s_range TO e_t_range.
    endif.
    drag the formula variable in the new formula created and exexcute the query , you will be able to see the output .
    This is just an example , your code will differ as per your requirement .

  • Hierchies and hierchies node with customer exit?

    hi friends,
    what scenerio we use hierchies and hierchies node  variable with customer exit ?
    Thanking u
    suneel.

    Hierarchy variables represent hierarchies. You can use them wherever
    hierarchies can be selected.
    Hierarchy node variables represent a node in a hierarchy. You can use them as
    an alternative to hierarchy nodes as fixed values for restricting a characteristic.
    If you use a hierarchy node variable, you can make selections by hierarchy
    node when you use the query.
    The Customer Exit processing type for variables enables you to determine
    values for variables by means of a function module exit. The function
    module used is EXIT_SAPLRRS0_001.
    You create a project in transaction CMOD by selecting the SAP
    enhancement RSR00001 and assigning this to the enhancement project.
    Activate the project.
    WHEN 'HIERARCHY'.   " Hierarchy variable
             CLEAR L_S_RANGE.
             L_S_RANGE-LOW  = 'MY HIERARCHY'. " hierarchy name
             L_S_RANGE-SIGN = 'I'.
             L_S_RANGE-OPT  = 'EQ'.
             APPEND L_S_RANGE TO E_T_RANGE.
    -> Only dependents of hierarchy 'MY HIERARCHY'
          WHEN 'HNODE'.   " Hierarchy node variable
             CLEAR L_S_RANGE.
             L_S_RANGE-LOW  = 'DEPT1'.  " Node name
             L_S_RANGE-HIGH = '0HIER_NODE'.   " InfoObject
             L_S_RANGE-SIGN = 'I'.
             L_S_RANGE-OPT  = 'EQ'.
             APPEND L_S_RANGE TO E_T_RANGE.
    -> Node 'DEPT1', that cannot be posted to
          WHEN 'HNODEVAL'.   " Hierarchy node variable
             CLEAR L_S_RANGE.
             L_S_RANGE-LOW  = 'LEAVE1'.  " node name (node is a leaf)
             L_S_RANGE-SIGN = 'I'.
             L_S_RANGE-OPT  = 'EQ'.
             APPEND L_S_RANGE TO E_T_RANGE.
    -> Node 'LEAVE1' (leaf)
    Regards
    Naga

  • Characterstic variable with customer exit

    Can u some bady help me.
    How to express about Characterstic variable with customer exit
    Edited by: chenna reddy on Aug 7, 2008 9:48 PM

    Hi,
    The variable may be personalized with some value.
    <b>To remove the personalization for a user:</b>
    Step 1: RSA1 -> Search for ODS 0PERS_VAR
    Step 2: Manage -> Contents ->selective deletion
    Step 3: Put the user to remove the personalization
    http://help.sap.com/saphelp_nw04/helpdata/en/01/42c73c13b0ce5be10000000a114084/content.htm
    Regards
    Happy Tony

Maybe you are looking for

  • Time Machine once worked, now external hard drive is "read only"

    I have a 2005 iMac G5, running OS X 10.5. Had some power issues, and reinstalled (and archived) my OS a couple of time. Recently purchased Western Digital 1TB external hard drive for back up. It worked once or twice, but now shows "read only" status.

  • Including attachments from PDF in Save as Draft and Submit as XDP

    When I wrote the first large process years ago, I ran into the problem of saving attachments that are in the PDF. If you ask the question, the response will be that you have to submit as PDF. That in turn has it's own other problems which when trying

  • I recently purchased an iPad2 and can't synchronize it to iTunes.

    When I connect it to my PC (Windows 7, iTunes 10.3.1.55), I get a message stating that it could not read from my iPad2 and asking to restore it. I downloaded the most recent iTunes and restored the iPad over and over. After restoration, Ipad launches

  • Flash can't load playerglobal.swc, flash.swc, ik.swc

    My copy of Flash CS4 has stopped publishing AS3 swf files. Everytime I try to export a swf I get these three warnings in the compiler errors window: Warning: unable to load SWC flash.swc, Warning: unable to load SWC ik.swc, Warning: unable to load SW

  • ABAP-query going in infinite loop

    Hello all, I have one on abap-query in which i am displaying data for delivery details that is table LIKP and LIPS. In this query i also have some code to get the sale order details from the  the delivery details. I have also used one FM module in th