BEx Selection Criteria need to be change

Hi friends,
I need to change the Bex Query Selection Criteria from Date to Year.
Kindly Help me out on this Issue.
Thanks in Advance
Priyanka

Hi,
Let the variable for 0CALDAY be ZVARDAY of Processing type Customer Exit Interval
Let the variable for 0CALYEAR be ZVARYER of User Entry single value
Add the 0CALYEAR to the Filter and attach the variable ZVARYER
Go to Cmod transaction and add the code to the variable exit
check the code with an Abap Consultant.
WHEN 'ZVARDAY'.
    IF i_step = 2.
      READ TABLE i_t_var_range INTO zrange
        WITH KEY vnam = 'ZVARYER'.
      lyear = zrange-low+0(4).
        CONCATENATE lyear '0101' INTO l_s_range-low.
        CONCATENATE lyear '1231' INTO l_s_range-high.
      APPEND l_s_range TO e_t_range.
regards
Happy Tony

Similar Messages

  • Selection Criteria needs to be change

    Hi,
    I have one Bex query ZHR_PONT_R_TOTALLUMPDISCOUNT.
    i want to change the selection screen from the Date to Year.
    Can anybody help me out in this issue. How to change.
    Thanks
    Priya

    Hi,
    Whappened while executing as per the previous thread:
    Re: BEx Selection Criteria need to be change
    Let me know the outcome.
    Regards
    Happy Tony

  • Change to Selection criteria in Datasource, do we need to re-init?

    Hello all,
    We are planning to change the selection criteria for a datasource, we want the year to be one of the selection criteria so we can load data only for particular years.
    Now this datasource is in production for some time, so once we do this change will we have to re-init the extractor or the delta that is working will keep working fine?
    Please let me know.
    Thanks,

    Hi Kiran
    Its worth mentioning that if its a V3 datasource like logistics then you need to load the setup table with the required data before extraction.
    Also ensure that the measures in your DSO are in overwrite mode unless the year that you are loading does not currently exists in the DSO. (ie. its a new year)
    The Full Repair Request option is under the Scheduler menu on the infopackage.
    Hope this helps. <removed by moderator>
    If you need more help let me know.
    Asif
    Edited by: Siegfried Szameitat on Jun 15, 2009 5:17 PM

  • Report Painter - Change multiple selection criteria

    Hi Experts,
    I am new to report painter. I need to change a report which is being developed in Report Painter. I need to add extra selection criteria.
    Please help.
    Regards,
    Nitin.

    Please search for available information before posting, do not post basic questions.
    Thread locked.
    Thomas

  • Description change in query report selection criteria

    I created a query report with certain criteria but in that i suppose to change the description .
    for example
    Posting date   greater than
    Posting date   lesser than
    but i need this selection criteria
    as
    Posting date  from
    Posting date  to
    regards
    kavitha

    Hi Kavitha,
    Unfortunately, it is not possible to change the system field description.
    Refer to this thread
    Re: Parameter Display Name Reg.
    Regards,
    Vijay Kumar
    SAP Business One Forums Team

  • BADI Impl. VB_BD_SELECTION to change selection criteria in batch det.

    Hye,
    I need to use the BADI VB_BD_SELECTION in order to change the selection criteria to be used during batch determination
    For this purpose  method RESTRICT_CONF_CHARS has been implemented.
    But I didn't find any documentation explaining how to manage this one:
    as result the characteristic record is deleted from the selection criteria instead of updating it with a new value specified in the structure CT_CONFIG-ATWRT.
    For example:
    in the strategy  we have the value car1 = A.
    If BADI is off than the system in production order uses right this criteria to determine the batches.
    If BADI is on than we want to define new criteria to find batches with the characteristic car1 = B but the system deletes car1 from  selection criteria.
    Thanks
    Anna

    Hi Anna,
    I have the same problem for another customer project.
    The big problem is I didn't found any documentation or an class example for that BAdI.
    Please help us.
    Thank you

  • How make default values in the selection criteria of BEx query????

    Hi all
    I have to create a brand new query, in the selection criteria(Prompts) I have two prompts. one prompt should show current budget year and second prompt should show next budget year, both prompts are mandatory and default.
    Can any one please let me know how to obtain current and next budget year??? do I need to write any customer exit or do i need to create a offset???
    Two prompts are using same infoobject 0fiscper which is mapped to ECC Table MBEW and field is LFGJA.
    Thanks

    HI sathiyaa,
    so you want to show user with two prompts one will show current year and the other next year value by default.
    //tell me that if you user change the current year value for ex: it will show 2011 by default.. and user changed it to 2009.
    you want to show 2009 year results or 2011 even though he changed the prompt.
    Here i'm considering that even though user changed current year to some other year still you want to show the current year results.
    Create a customer exit variable for calyear with ready for input (checked).
    customer exit code in CMOD :
    when ' customer exit var for cal year'
    IF I_step = 1.
    clear l_S_range.
    l_S_range-low = sy-datum+0(4).
    l_s_range-sign = 'I'.
    L_s_RANGE-opt = 'EQ'.
    ENDIF.
    if i_step = 2.
    data: zyear(4) type c.
    zyear = sy-datum+0(4).
    ex: l_s_range-sign = 'I',
    l_s_range-opt = 'EQ'.
    L_s_range-low = zyear.
    appen l_s_range to e_t_range.
    after this create a variable offset
    create a new selection in the structure, drag the KF and calyear restricted by current year variable . Copy the same selection and insert it as a new selection, go back to the calyear restriction, right clik on the variable. specify variable offset and enter + 1.
    or search in sdn how to create variable offset it will help you
    Regards,
    Ranganath.

  • Changing standard selection criteria (MB51)

    Hi all.
    I have a requirement to add the 'Requisitioner' field in the selection criteria for MB51, program (RM07DOCS). I am on version ECC6
    The requisitioner field is in the EKPO ( Purchasing Document Item) table: EKPO-AFNAM.
    What I need to do is, add this field in the selection criteria and select all purchase orders and their relating material documents (MKPF MSEG) according to entry in this field. I know the logic which I have to implement.
    I have checked out the SDN forums quite throughly and have come up with a couple of questions/solutions.
    1) Copy the program into Z-name space and add in the code
    Question: Where to specifically add the code, the program is huge with multiple enhancement points being seen in the code.
    Can someone please guide me where I can  change the displayed records, point where iI can append data or change the  internal table being sent for ALV display.
    2) Make changes in SPRO>Define field selection for material document list.
    Question: The required field is not present within the listing, It does give the option to make new entries, but I have to specify a program/table and field.
    If I create my own program to get the details and display onto an ALV Grid, will the program be called when I make selections on that requisitioner field?
    3) This is text copied from a thread, I have lost the link to it.
    Create a Z report that is a copy of the selection include of the standard selection screen include with the additional selection criteria.
    - Export the extra selection criteria value to shared memory.
    - Submit the standard VL10G program with the selection sets.
    - In user exit (depends on which field needs to be checked), import the extra selection criteria value back in and filter the selected data set.
    Could someone please guide me if it is possible to do the above within RM07DOCS, and  a little more detail on how to go about it?.
    Will reward points asap.
    Thank you

    have checked out the SDN forums quite throughly and have come up with a couple of questions/solutions.
    1) Copy the program into Z-name space and add in the code
    Question: Where to specifically add the code, the program is huge with multiple enhancement points being seen in the code.
    Can someone please guide me where I can change the displayed records, point where iI can append data or change the internal table being sent for ALV display.
    <b>---> U have to find out , where /how  they defined Selection screeen , final output they are displaying.</b>
    2) Make changes in SPRO>Define field selection for material document list.
    Question: The required field is not present within the listing, It does give the option to make new entries, but I have to specify a program/table and field.
    If I create my own program to get the details and display onto an ALV Grid, will the program be called when I make selections on that requisitioner field?
    <b>---> lot of work to do</b>
    3) This is text copied from a thread, I have lost the link to it.
    Create a Z report that is a copy of the selection include of the standard selection screen include with the additional selection criteria.
    - Export the extra selection criteria value to shared memory.
    - Submit the standard VL10G program with the selection sets.
    - In user exit (depends on which field needs to be checked), import the extra selection criteria value back in and filter the selected data set.
    Could someone please guide me if it is possible to do the above within RM07DOCS, and a little more detail on how to go about it?.
    <b>Better Options --->try to get the logic of MB51 , then do changes which are required.
    most of data , u will get it from MSEGMKPFMARA+MBEW.</b>
    revert back in case of any other issues.
    Regards
    Prabhu

  • Need to take part of selection criteria out of a custom report (R painter)

    Hi Experts..
    I have a requirement to hide cost elements/group which appear as part of selection criteria on our custom report (report painter) for projects.
    1. Why this appears as part of the selection criteria as i did not find this defined in Edit --> General data selection. (I only found  CO area, Valuation, Fiscal year, Period, and Object in there).
    2. We have found a system performance issue when a user put in cost elements for selection. So I am required to take this out. I thought i can just take this out from General data selection.. If I can't find it in there, where would i be able to do that??
    3. Suppose I would hide this selection by creating a screen variant.. I was looking in SHD0
    but its not working with our Z T.Code...it display the error message "Variants are possible only for dialog transactions"... This does not seem to work with a custom t-code. Then how would I do this ????
    Please help clarify on this ....
    Thanks....
    Monica
    Edited by: Monica Kong on Aug 24, 2008 6:01 AM

    Hi Monica,
    I believe we have an executable report here...
    go to se38 -> enter program name -> click on "attributes" button -> display
    We can see the type as 'Executable' or 'Modulepool'
    generally a selection screen is brought by using keywords 'Parameters' or 'select-options' in Executable programs and with screen in modulepool ..although we can use a combination of both in some cases
    So in your program..
    check for keywords
    'Parameters'/'Select-options'
    The best way to proceed is to press F1 on the field that needs to be removed from selection...note the details
    "screen number" and "screen field"
    (1)By default screen number = 1000  if it is an executable program
    Now see the scrren field ..if it is select-options it will something like field-low or field-high
    so in the report
    search for field for cost center and group with keyword starting as parameters or select-options and comment the same
    Remember to comment tte fields throughout the program since this field will be used in multiple locations
    (2) if it is modulepool program note the screen number , go the program and screen and remove the field from screen painter and comment the fields where ever used in the program
    Also note that using screen variant is a good option but done if user needs specific settings on a report or we need the original report as it is plus additional report with few variations
    Hope it helps
    Pls check and revert
    Regards
    Byju

  • Change of variable text in BEx selection screen

    Hi all,
    in our BW system the key users are allowed to create queries and also create variables. In some cases, especially for often used info objects like 0DATE the number of variables is increasing very quickly. The reason for this is, that 0DATE is used for a big variety of meanings e.g. delivery date, order date, invoice date etc.
    So the users always create new variables only to have a meaningful description in the BEx selection screen, because they do not want only "date" to be displayed here. As result we have many different varianbles with exactly the same technical settings with only different names.
    So my question is: Is it possible to change the diplayed text in the selection screen for each query without having to create a new variable?
    Thanek you and best regards

    Hi Stephan,
    Changing the diplayed text in the selection screen for each query is not possible.You have to create a new variable for each query.
    Rgds,
    Murali

  • Change Selection criteria for existing report in Report painter

    Hi Experts,
    We are on 4.7, using report painter for getting reports for Cost center & Profit Center. For one of the report we have selection criteria as Cost center and cost center group, but now user want us to add new selection field as Cost element and cost element Group to same report. We have tried all the options from GR32 ->Edit-> General Selection, but we don't find cost element in Key figure listed there.
    Please let us know how can we add the new field to selection criteria. We also would like to know is this is possible with existing report  to add new fields or not? Is that we need to create new report for this?
    Thanks in advance..
    Shilpa

    Shilpa-
    In my opinion the best way to troubleshoot issues like this is to go to SAP delivered standard reports and see how they are setup. For example, in your case you want to add cost element and cost element group to your report. There is one standard report from SAP - Transaction :S_ALR_87013611 which has both cost center, cost center group and cost element, cost element group in the selection criteria. You can look how this report is set up, and maintain your report in a similar fashion. Atleast this way, it will give you an idea.
    Go to transaction code GRR3 and under library look for report "1SIP-001". By double clicking on the row, you will see how it is maintained.
    Hope this helps.
    Shail

  • InfoSet - Z tables need to be appeared on the selection criteria

    Hi ,
    My requirement is to have Z table fields in the selection criteria in an info set.
    Currently i have an info set which has only standard SAP fields for selection. I have couple of Z tables whose fields need to be included in the selection criteria. Based on the values selected, report has to be displayed. So i believe some code has to be added for it.
    Can you please tell me how to add Z Fields in the query.
    Thanks,
    Sarika.

    Hi Sarika,
    Again refer to the above link http://shafiq.us/sap/index.php?option=com_content&view=article&id=54:adhoc-query&catid=41:adhocquery&Itemid=61
    Then go to heading "Ad-hoc Queries (Tcode: SQ01)"
    Then see Step 6-b, this is where you specify which field will be displayed on selection screen. Follow the steps and I am sure you will be able to complete your requirement.

  • Change LO Cockpit Initialization Selection Criteria

    We would like to use the 2LIS_12_VCITM DataSource at our organization to report on delivery information.  I am encountering a problem because I would only like to Initialize data pertaining to specific shipping points. 
    The statistical setup does not contain shipping point or any other field I can use to exclude the data I do not want.  If I am forced to do the setup for all data and filter in the update rules my volume & runtime will be unnecessarily large.
    Is there any way to add additional fields to the selection screen ( OLI8BW ) ?
    Thank you!

    Unfortunately none of the delivered selection criteria for the Statistical Setup will eliminate the documents we don't want to include.
    The delivered options are:
    Archiving Session (N/A)
    Sales Org (Doesn't Differentiate as needed)
    Company Code (Doesn't Differentiate as needed)
    Sales Doc # (No specific range that matches requirements)
    Any other suggestions that would allow me to add another field to the selection options?

  • Changing invisible selection criteria for a variant...

    Hi,
    There is a invisible selection criteria when I goto a custom Z variant of program RFBIBL00. How can I change the variant value in invisible selection criteria ?
    Regards,
    Rajesh

    Hi,
    Using the ABAP workbench (SE38) use the menu option Goto -Variants
    choose the custom variant
    Choose the attributes subobject
    and click on the change button.
    then deselect the hide from the required variable.
    Regards
    David Cooper

  • Change selection criteria or check allowance for marking

    Hi,
    I have executed the costing in CK11N and saved the result. The costing run was successful without any error.
    When I want to Mark the cost in CK24, I am getting the below error. Kindly help to resolve this issue.
    Change selection criteria or check allowance for marking
    Message no. CKCC140
    Diagnosis
    No data was selected for marking.
    Possible causes:
    There is insufficient data in the selection screen to select the required cost estimates.
    The organizational measure was not carried out, or it was issued with a different costing variant to that of the cost estimates ( Marking Allowance).
    All the cost estimates contain errors.
    The cost estimates have already been marked or released.
    For detailed information, call up the log.
    thanks and regards
    Murugesan

    Dear Murugesan,
    First ensure in CK11N,you have saved the cost estimate without any error,the signal showing with green colour.
    Then in CK24,first take a test run for marking and then without the check box for test run.
    Before Executing this T Code for marking,click on marking allowance and ensure for the period,company code and the same
    costing variant and costing version,it shows green colour which indicates alloed for marking and release,otherwise,just click on
    your company code,enter the costing variant and costing version and save the datas.
    This should be done only once during the period begining.
    Once after doing this,ensure you have complete authorization for marking and release.
    Check and revert back.
    Regards
    Mangalraj.S

Maybe you are looking for

  • 2007.08 Don't Panic Isos released, installation feedback

    Hi Arch community, 5th August, 23:00 CEST (Central European Summer Time) Arch Linux Don't-Panic 2007.08 ISO release Get Archlinux ISOs in /iso/2007.08/{i686,x86_64} on your favorite mirror. http://wiki.archlinux.org/index.php/Mirrors or http://www.ar

  • Strange FaunOS pacman problem

    Hello my friends!  I discovered FaunOS recently, and I had it installed on my HD.  I know that is a "sleeping" (or dead?) project, but I like it, really.  I tried to use PacTrac for a system upgrade, but I received some "Forbidden" messages from the

  • Role for only creating Infopackages

    Hi, We would like to give authorizations  only for creating Infopackages in Quality system . I mean remaining things others only should have Display access.. Please let me know the procedure for procedinng this Thanks in advance..

  • Getting grid layout to work with a class that extends JFrame

    In my code, I have a class extending JFrame and setting the layout to grid works and the code to add with three parameters compiles just fine but when I run it I get this: java.lang.IllegalArgumentException: illegal component position      at java.aw

  • Can't reinstall system

    Hi, can't reinstall system (10.4 ). i have trouble reinstalling my printer driver. instalation starts but then just stops about half way. apple and canon both recommanded system reinstall but i only get as far as choosing the language option for the