Add date (selection criteria) in MB52/MB58

Hi friends,
I must add date selection in selection screen of MB52. I have been creating ZMB52 but I don't know how can I add date field in selection screen.
Also i need to add date selection in MB58.
Can anybody help me?
Thanks,
Jawahar.

hi,
data : date2  type date.
or u can use some standard fields
if u r using mara table in report u can use
data : date1 like mara-erdat.
selection-screen : begin of block blk1 with frame title text-001.
select-options : s_date2 for date2.
selection-screen : end of block blk1.
Reward with points if helpful.
Message was edited by:
        Vinutha YV

Similar Messages

  • Complex Data Selection Criteria

    Is it possible to do complex Data Selection Criteria invloving more than one InfoObject in Data Selection tab of the InfoPackage?
    Eg  :
    (Controlling area = 'ABC' and Fiscal Period between 001/2005 & 003/2005)
    OR
    (Controlling area = 'AAA' and Fiscal Period between 004/2005 & 008/2005)
    OR
    (Controlling area = 'XYZ' and Fiscal Period between 003/2005 & 008/2005)
    We are currently planning to use 3 different InfoPackages to do the same and checking if it can be done in 1 InfoPackage.
    Thanks!

    BAPI_IPAK_CHANGE is a good option, but will not give you the flexibility you are looking for as it will change the selection criteria, but will not give you the AND, OR (complex selection)option, that you are looking for. What you will end up havig to do if you follow this route is to call the same selection package 3 times with modified selection criteria for each using BAPI_IPAK_CHANGE, or have to use BAPI_IPAK_CREATE to create the infopack with these selection for every load. This will eliminate all or any delta loading hopes that you may have.
    I feel that infopackage group will work nicely for you and with minimal effort of maintenance in the future.
    Rishi
    Message was edited by: Rishi Joseph

  • Data selection criteria

    Post Author: malibu0814
    CA Forum: WebIntelligence Reporting
    I have a report that I would like to define the selection criteria by an external source.  For instance, my data has an item field that if I could allow users to fill in an external file (.xls, .csv, .txt, etc.) with the values to be selected I could then allow my users to run their own reports rather than constantly coming to me for assistance.  Here is an example file input:
    item-no-1
    item-no-2
    item-no-3
    item-no-4
    item-no-5
    item-no-6
    item-no-7
    item-no-8
    item-no-9
    item-no-10
    item-no-11
    item-no-12
    This would be in lieu of using the Prompt feature for the field.
    Thanks.

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    Malibu0814:
    You don't give much details on your database architecture (i.e. are your universes pointing to MySQL, some other DBMS, or to Access tables, etc, etc).  My suggestion would be to either give the users the capability to populate a special data mart in the DBMS, or give them a shared folder to update a spreadsheet/access table, or take the user's input and populate the same.  Once the data is captured to an agreeable location, then use that as a "reference" table of sorts that links in and causes it to be the final "filter" for the report that they want.
    An alternative to all of this would be for you to do a "one-time" upload to a reference table (along the thought above), but put in every conceivable value and make that a part of the report in the form of a prompt.  When users want to run their report they just comb through the prompt selecting the item(s) they want and they can serve themselves without troubling you.  The only time you would get involved would be to add yet another value to the reference table that was not captured in the first go around.
    Good luck!

  • VL01N - add custom selection criteria

    Hi all,
    we have implemented custom batch search strategies with additional Z-tables.
    Is it possible to write custom selection criteria to the "selection criteria" in a delivery in order to have a monitoring on used restrictions?
    Any userexists/BADIS available?
    regards

    hi,
    this is to inform you that,
    In vl01n you can have it in batch selection criteria.
    please say toyour ABAPER to have a push button and assign your selection criteria.
    but this will become major development.
    Business Add-in:
    VB_BD_SELECTION : Preselection of Batches Within Batch Determination
    VB_GET_EXT_BATCHES : Access to Customer-Specific Batch Usage Data
    VB_GET_POS_PLANT : Enhancement of Automatic Site Determination in transn MB56
    VB_SLED_MANAGEMENT :Control of Shelf Life Expiration Date Processing
    BATCH_MASTER :Enhancements for Batch Master Transactions
    regards,
    balajia
    Edited by: balaji timmampalli achari on Nov 15, 2010 5:23 PM

  • A/r Invoice report query based on posting date selection criteria

    Hi experts,
    I am trying to write a query to get the A/r invoice report including Docnum, Docdate, cardname, project, linetotal, taxcode, taxtotal.
    and i tried the below query
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName],T1.[LineTotal] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocDate] >=[%0] AND  T0.[DocDate] <=[%1]
    In this query ,
    1) i am unable to sum up the linetotal( total before tax) 
    2) also unable to fetch the sum of taxamount.
    3) its more important , the above query will  me docnum , when i try to open that doc, it opens the 2007 docments. whereas the other details are correct like docdate, amount and all.
    example:   from date: 1/04/2011    to date: 28/07/2011
    Docnum    Docdate  cardname   linetotal.... etc
        2              1/04/11   XYZ              5000
    when i click the 2 (docnum)  it opens me the 04/04/2007  documents.
    how to limit the doc within the periods given?
    thanks in advance
    Dwarak

    Hi Rahul/Gordon,
    thanks for your query's .
    additionally,   i want this query without the A/r invoices whichever having credit memo as target doc. 
    and
    i have selection criteria as  T0.[U_Sec_Category] = '[%2]'  and this has 3 values like  1)CIM 2)BIN 3)DMP
    among these  CIM should be seen only only user1  and BIN & DMP only by user2.
    can u plz get me this
    thanks,
    Dwarak

  • Add new selection criteria in program RHXHAP_APP_DOC_PREPARE_ORG

    Hi All,
    my requirment is related to HR program  RHXHAP_APP_DOC_PREPARE_ORG.
    The selection criteria in the program is Org.Unit.
    Now we want to add Per.area/E.Group/job/Position in the selection criteria.
    Copied.
    I have added them in the Seleciton screen.
    Can any one share the prcess flow for this requirment.
    Thanks in advance.
    RK

    copied the std program and made the changes

  • Infopackage "Data Selection" Criteria

    Hello,
    This is a really simple question.
    I want to break out an INIT infopackage from 1 big load to several smaller loads.
    To do this I am going to create multiple INIT infopackages that have selections based upon Fiscal Year, and each infopackage will also include a selection for 0VTYPE of 010.
    The result will be 4 infopackages that have the following selections for Fiscal year/0VTYPE
    1. The beginning of time to 2001      010
    2. 2002    010
    3. 2003    010
    4. 2004 to the end of time    010
    When I create the infopackages under the 'data selection' tab I see "From Value" and "To Value"
    For each infopackage what values should I enter, so that I get the 4 correct infopackages as described above ( I am most concerned about structuring #1 and #4 correctly)?
    Thanks,
    Nick

    Hello Andres,
    I am still testing but things seem to be working well.
    What i did was setup an Delta INIT infopackage for Periods 007/2008 - 012/9999
    Then I built Full (repair) loads for 6 period intervals beneath the INIT.  For example:
    001/2008 - 006/2008
    007/2007 - 012/2007
    001/2007 - 006/2007
    It works nicely to break the load up from 1 gigantic to many smaller loads.  I put all these packages together in a process chain.
    I also found that the load was not slowing down becuase of it being a huge load, it was actually because of the Update rule processing.
    I like the smaller loads in the process chain better then 1 huge load, it is easier to manage.
    I have also addressed the update rule processing issue, so things (will be) operating much better going forward.
    Thanks for the help!
    Nick

  • Date range stops working when I add record selection criteria

    I have a simple report, using only nine fields, from four tables, plus two date parameter fields that I use to set a date range:
    SELECT "Job"."Job", "Job_Operation"."Vendor", "Customer"."Customer", "Job"."Part_Number", "Delivery"."Promised_Date", "Job_Operation"."Status", "Job_Operation"."Sched_End", "Job_Operation"."Sched_Start", "Job_Operation"."Operation_Service"
    FROM   ("TECH"."dbo"."Delivery" "Delivery" INNER JOIN ("TECH"."dbo"."Job_Operation" "Job_Operation" INNER JOIN "TECH"."dbo"."Job" "Job" ON "Job_Operation"."Job"="Job"."Job") ON "Delivery"."Job"="Job"."Job") INNER JOIN "TECH"."dbo"."Customer" "Customer" ON "Job"."Customer"="Customer"."Customer"
    WHERE  (("Job_Operation"."Sched_End">={ts '2013-08-05 00:00:00'} AND "Job_Operation"."Sched_End"<{ts '2013-08-08 00:00:01'}) AND "Job_Operation"."Status"='O' OR "Job_Operation"."Status"='S' AND "Job_Operation"."Operation_Service"='150-170 SS' OR ("Job_Operation"."Operation_Service"='150-170 ST' OR "Job_Operation"."Operation_Service"='60-180' OR "Job_Operation"."Operation_Service"='180-200 SS' OR "Job_Operation"."Operation_Service"='180-200 ST' OR "Job_Operation"."Operation_Service"='200-220 ST' OR "Job_Operation"."Operation_Service"='F-1.1923'))
    ORDER BY "Job"."Job"
    When my record selection formula is
    {Job_Operation.Sched_End} IN {?StartDate} TO {?EndDate}
    AND
    {Job_Operation.Status} = 'O' OR {Job_Operation.Status} = 'S'
    the date range works.
    However, when my record selection formula is
    {Job_Operation.Sched_End} IN {?StartDate} TO {?EndDate}
    AND
    {Job_Operation.Status} = 'O' OR {Job_Operation.Status} = 'S'
    AND
    {Job_Operation.Operation_Service} = '150-170 SS' OR
    {Job_Operation.Operation_Service} = '150-170 ST' OR
    {Job_Operation.Operation_Service} = '60-180' OR
    {Job_Operation.Operation_Service} = '180-200 SS' OR
    {Job_Operation.Operation_Service} = '180-200 ST' OR
    {Job_Operation.Operation_Service} = '200-220 ST' OR
    {Job_Operation.Operation_Service} = 'F-1.1923'
    the date range doesn't work. Instead, the report returns records with all kinds of {Job_Operation.Sched_End} dates.
    What could be the reason?
    Thanks,
    Matteo

    Hi Matteo,
    Try this as the selection formula:
    {Job_Operation.Sched_End} IN {?StartDate} TO {?EndDate}
    AND
    ({Job_Operation.Status} = 'O' OR {Job_Operation.Status} = 'S')
    AND
    {Job_Operation.Operation_Service} = '150-170 SS' OR
    {Job_Operation.Operation_Service} = '150-170 ST' OR
    {Job_Operation.Operation_Service} = '60-180' OR
    {Job_Operation.Operation_Service} = '180-200 SS' OR
    {Job_Operation.Operation_Service} = '180-200 ST' OR
    {Job_Operation.Operation_Service} = '200-220 ST' OR
    {Job_Operation.Operation_Service} = 'F-1.1923'
    -Abhilash

  • Data selection criteria in Initialisation

    Hi,
    We have ODS1 that is passing its data to ODS2. I would like to filter the data that is passed trough, using a delta. However, it seems that I can't make selections on the first tab of the InfoPackage in case of an initialisation. It is possible for a full load, and not for inits?
    Can anybody help me out?
    Kind regards,
    Hans de Klein

    Siggi,
    Thanks for your reply. I tried it: when I create an InfoPackage it is possible to make the selections, but when I switch to Initialisation on the Mutation-tab, they dissapear.
    Can it have anything to do with settings of the ODS?
    Hans

  • Add selection criteria (date) in MB52

    Hi friends,
    I must add date selection in selection screen of MB52. I have been creating ZMB52 but I don't know how can I add date fields in selection screen.
    Can anybody help me? Thanks

    Hi Mehmet,
    In which block of the Selection Scren do you want to add the values. I am assuming that you want to add Date Selection in <b>Database Selections</b> part.
    This is the code sample.
    Goto Line 373.
    * Selection screen
      SELECTION-SCREEN BEGIN OF BLOCK abgrenzung WITH FRAME TITLE text-001.
      SELECT-OPTIONS:
        matnr  FOR mara-matnr MEMORY ID mat MATCHCODE OBJECT mat1,
        werks  FOR t001l-werks  MEMORY ID wrk,                  "718285
        lgort  FOR t001l-lgort  MEMORY ID lag,
        charg  FOR mchb-charg  MEMORY ID cha MATCHCODE OBJECT mch1.
    <i>*Adding the Date Selection option here</i>
    <b> SELECT-OPTIONS : date FOR sy-datum.</b>
      SELECTION-SCREEN END OF BLOCK abgrenzung.
    Regards,
    Arun Sambargi.
    Message was edited by: Arun Sambargi

  • How to add a new selection criteria in a report painter

    Hi
    I would like to know how to add a selection criteria in a report painter. I believe in Gen data we can add our selection criteria but my there is no option to select  company code in that. Can anyone help me in this
    Thanks in advance
    Sankar

    hi sankar,
    When u click on the Gen. Data Selection on the right side of the screen you can see the Available Characteristics.
    On the same side u can see with the 3 colors blue, yellow and white....
    Click on the that , in that screen click on the Administrator option.
    There in that screen UNCHECK the company code.
    Click on the ACTIVATE and CLOSE it.....
    Again SAVE the table settings.... then you can find the Company code..
    Hope this will helps u out...
    Ranjit Kumar 

  • Start Data Selection for Header Tabels fail

    Hi!
    The above mentioned activity fails because tabels COEP and COBK are vergy large and it seems that I run into a time out.
    I found the note:
    1166229 - Customizing the select statement within Fill Header Reports
    I' am not a CO spezialist and I don't know which field I could take to add additional selection criterias on this tabels.
    As much as I understand this tabel save CO data and since I transfer with TDMS just the last 2 month of our production system, my idea is to select e.g. just year 2009 for COEP and COBK.
    Any hint or proposals??
    BR
    Werner

    Hi,
    1. Check if all the recommendations as per note 890797 are followed.
    2. If yes, run the troubleshooter for the activity.
    3. Here, under "Change Technical Settings for Conversion Objects", change the size category for the table to Large.
    4. Go back to the Troubleshooter screen and run "Troubleshooter for Conversion Objects" -> "Automatic Repair"
    5. Restart Data Selection
    Hope this resolves the issue.
    Regards,
    Suman

  • Additional selection criteria for RHECM_CREATE_COMP_PROCESS (create compens

    Dear All,
    There is a requirement to add additional selection criteria for  RHECM_CREATE_COMP_PROCESS.
    Compensation Plan needs to take several optiions rather than a single option.
    Incentive Plan Type to be added as additional selection criteria
    Do we need to copy the standard program and then modify it or there can be some other way out for it.
    Thanks and Regards
    Shraddha

    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

  • Selection criteria are not applied to summary fields on group footers.

    I wonder if anyone can help me with this problem.  I am using Crystal reports version 11.2, and my data source is a Sql Server view.
    The records on the view have a date field, and I have selected all records within a given date range in "Selection Formulas".
    The records are then grouped, and the Crystal summary facility used to summarise number fields on the group footers.
    So for example, if my view contains four records, one with field "amount" = 2, one with field "amount" = 8, one with field "amount" = 6, one with field "amount" = 3, but only the first two records are within the valid date range, you would expect to see the first two records listed out at detail level, then field "amount" summarised at group level, with a summarised value of 10.
    ie ....                record1                      2
                           record2                      8   
                           group level total         10
    This works fine when I run the report using Crystal's "print preview" facility.  However, when the report is run from within an application written in C#.NET, the selection criteria are not applied to the summary field, so you get ..
                           record1                      2
                           record2                      8   
                           group level total          19
    I tried putting the date selection criteria at both record and group level, but that did not work.
    I googled the problem and found an article explaining that Crystal first performs the record-level selection, then it creates the groups and totals up any summary fields, and only then does it apply the group-level selection criteria, which can lead to problems like the one I have described above.  However, since I have put my date selection criteria at both record and group level, I do not understand why I still get the problem.
    In one report I got round this problem by creating a formula that returned zero if the record date was outside of the valid date range, and returned the number field to be summarised if the date was valid, then summarising that formula, instead of summarising the number field directly.
    In other reports I created one formula to set a shared variable as zero, then another formula to accumulate it at detail record level, then another formula to display the variable at the group footer.  In other words, I did not bother with the Crystal summary facility at all, but created my own summary facility.
    While googling the problem to see what other people did in this situation, I noticed that most fixes used variations of the "shared variables and formulae" fix to get round the problem.
    The problem is that I have lots of complex reports and it will take ages to replace the summarised fields with shared variables and formulae.  The reports were initially tested with "Print Preview" so we did not notice this problem until the C#.Net application was ready to use them.  And I can't believe that you are simply meant to ignore the summary facility and re-invent the wheel by doing it all manually.
    Please tell me that there is something simple that I have been doing wrong!!!  If I have not given enough information for you to answer, please let me know.
    Thanks,
    Anne-Marie

    Hi, Anne-Marie;
    You may be running into a common issue that is docuemented here:
    [SelectionFormula|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303334333833393335%7D.do]
    Regards,
    Jonathan
    Edited by: Jonathan Parminter on Mar 16, 2009 8:03 AM

  • 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

Maybe you are looking for

  • Form is taking the time to activate

    Hi All, I am working in Travel Expense adobe form. Already standard travel expense form was copied to Z form(Modified the standard layout) and using that form presently in my client. I have taken the copy of this Zform and doing the changes right now

  • Query regarding rownum

    hi, why can't we use > operator in rownum? why we always have to use < or = ? is there any particular reason for this....why the following query wont work? select b.* from brnd b where rownum in (select rownum from brnd b where rownum <=3);

  • Upgrading from older version of iPhoto

    I recently installed the new OSX 10.4.6 on my iMac G4. I am running iTunes 6 just fine but I tried to install iPhoto 6 (I am somehow still running iPhoto2) and the installer process stoppe and said it couldnt install because there was "no eligible iP

  • EDIFACT TODESADV(IDOC)

    Hi, I want to perform EDIFACT to IDOC scenario.Please advise  me step by step document. I tried to perform..But I m confused.Firstly i imported EDIFACT_96A.xsd to external definition and used as source.As target i used idoc.And I mapped tit each othe

  • Reinstall iTunes with serial number typo?

    When I installed iTunes from the CD that came with my 60 GB video iPod, I typed one digit incorrectly (a 5 instead of an S) in the serial number. I de-installed all software and re-installed, this time only using the update iPod and iTunes files from