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

Similar Messages

  • Who's who - add custom selection parameter

    Hi,
    I want to add a custom selection parameter to the who's who in ESS.
    I've copied the standard infoset to a z-one, added siome output-fields and this works well.
    But now I want to add a selection-parameter which is not included in the ldb pncp (text of the personnel subarea) and I don 't qsee how I can add this. Someone out there who can help me ?

    Check the link,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/108c31e7-b6a7-2d10-3692-c1a9f7a5c4dc?quicklink=index&overridelayout=true
    Hope this helps.
    Cheers-
    Pramod

  • ABAP Query - SQ02 and SQ01 - custom selection criteria

    Hello
    I am on 46C. In my infoset I need to define three custom fields for selections. I am able to do that. Once I create my query these appear on the selection screen. So far so good.
    1. I need to use these custom selection fields as selection criteria for the tables in the join. How do I do that ?
    2. If I need to default some values for these selection criteria, I can do that in the definition. However I need the values to be greyed out to prevent the user from editing the values entered. How do I do that ?
    Thanks
    Hari

    1. I see that the standard variant assigned at the query level in SQ01. actually protects the selection field. There is no coding to make it only display. This answers part 2 of my question.
    2. I am positive that the additional SELECTION that was created is being used in the main join that retrieves data in the query (in addition to being used for other things). I am not sure why somebody would define it that way instead of just creating a regular selection field in SQ01. Could it be because there is custom coding present for additional fields and there is reference to the selection variables needed for the additional field ?
    How does one make this additional SELECTION also a criteria on the join ? I have attached the actual join Query generates - WRK, VKO and VTW are additional selection criteria.
    FYI - this is an existing query, that I need to enhance
    Thanks
    Hari
    SELECT MBEWBWKEY MBEWMATNR MBEWPEINH MBEWSTPRS MBEW~VERPR
           MBEWVPRSV MBEWZPLP1 MARAMATNR MARAMEINS MARA~MSTAE
           MARAMTART T001KBUKRS T001KBWKEY T001BUKRS T001~SPRAS
           T001WAERS MARCMATNR MARCMMSTA MARCPRCTR MARC~WERKS
           MVKEMATNR MVKEPRODH MVKEVKORG MVKEVMSTA MVKE~VTWEG
    INTO (MBEW-BWKEY , MBEW-MATNR , MBEW-PEINH , MBEW-STPRS , MBEW-VERPR
         , MBEW-VPRSV , MBEW-ZPLP1 , MARA-MATNR , MARA-MEINS , MARA-MSTAE
         , MARA-MTART , T001K-BUKRS , T001K-BWKEY , T001-BUKRS , T001-SPRAS
         , T001-WAERS , MARC-MATNR , MARC-MMSTA , MARC-PRCTR , MARC-WERKS
         , MVKE-MATNR , MVKE-PRODH , MVKE-VKORG , MVKE-VMSTA , MVKE-VTWEG )
    FROM ( MBEW
           INNER JOIN MARA
           ON MARAMATNR = MBEWMATNR
           INNER JOIN T001K
           ON T001KBWKEY = MBEWBWKEY
           INNER JOIN T001
           ON T001BUKRS = T001KBUKRS
           INNER JOIN MARC
           ON MARCMATNR = MBEWMATNR
           AND MARCWERKS = MBEWBWKEY
           INNER JOIN MVKE
           ON MVKEMATNR = MARAMATNR )
           WHERE MBEW~MATNR IN SP$00002
             AND MARA~MTART IN SP$00001
             AND MARC~WERKS IN WRK
             AND MVKE~VKORG IN VKO
             AND MVKE~VTWEG IN VTW
             AND MVKE~PRODH IN SP$00003.

  • 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

  • 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

  • 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

  • Customizing Selection Criteria's screen

    We allow our endusers to execute reports via Discoverer's web 4i viewer. Is there a way to pass the values of the parameters from a web page to Discoverer so that the enduser will not have to use Discoverer's parameter screen?
    If not, does anyone know of a way to customize the parameter screen (such as adding logos, etc.) where the enduser enters the parameter values?
    Thanks for your help,
    Kerry Brannen

    You can pass parameters directly in the URL itself.
    Refer to the Oracle Discoverer 4i - Configuration Guide
    for this.

  • How to specify custom query as well as a selection criteria

    Hi
    I'm struggling to specify a custom select query with variable no. of agruments through toplink.
    The custom query looks like:
    select outer.col1, outer.col2, outer.col3,
    outer.effective_date, outer.capacity_rate, outer.expiry_date, outer.comments, outer.create_date,
    outer.create_user_id, outer.modify_date, outer.modify_user_id, outer.vol_uom_type_code
    from tbl outer,
    ( select max(effective_date) effective_date, col1, col2, col3 from tbl
    where expiry_date is null
    or (trunc(effective_date) >= to_date('01/01/'||to_char(sysdate,'yyyy'), 'dd/mm/yyyy') )
    group by col1, col2, col3
    ) inner
    where outer.col1 = inner.col1
    and outer.col2 = inner.col2
    and outer.col3 = inner.col3
    and trunc(outer.effective_date) = trunc(inner.effective_date)
    My domain class TBL.class is mapped one to one with DB Table TBL.
    With this customer query, I want to add a selection criteria depending upon what is specified on the UI-screen - I can get col1, col2 or a combination of these as search criteria.
    So far I have tried multiple approaches:
    1. Specifying the custom query (without arguments) as a ReadAll Query in toplink descriptor and then using expression builder to add the criteria but this doesn't work as custom ReadAll query gets overridden and i get back all the results from
    TBL which match the criteria specified.
    expFinal = new ExpressionBuilder().get("col1").equal(srchCriteria.getCol1());
    results = (List) getTopLinkTemplate().readAll(TBL.class,expFinal,false);
    2. Using Named Query:
    Toplink doesn't allow me to specify a custom SQL along with a selection criteria - both for the same NamedQuery.
    3. Specifying the DB query in java layer and then adding arguments and argument values. When query is executed, i don't see arguments being added.
    ReadAllQuery query = new ReadAllQuery(TBL.class);
    query.setSQLString(READ_ALL_QUERY);
    ExpressionBuilder exp = new ExpressionBuilder();
    query.addArgument("col1", Long.class);
    Vector vect = new Vector();
    vect.add(srchCriteria.getCol1());
    query.addArgumentValues(vect);
    result = (List) getTopLinkTemplate().executeQuery(query, false);
    Please suggest. Would be great if you could share some code bits.
    Thanks
    Nitin

    Nitin,
    This style of query does require code to apply logic as it is created. If you wish to have this used as a named query you can use a query re-direct so that instead of executing a query we call a method of yours.
    You can setup your named query to use re-direction into a static method as:
            QueryRedirector redirector = new MethodBaseQueryRedirector(QueryRedirectorExample.class, "redirectMethod");
            ReadAllQuery raq = new ReadAllQuery(Employee.class);
            raq.addArgument("FIRST_NAME");
            raq.setRedirector(redirector);
            descriptor.getDescriptorQueryManager().addQuery("findByFirstNameLike", raq);The static method that then gets invoked where you can dynamically create a query looks like:
        public static Object redirectMethod(DatabaseQuery query, Record record, Session session) {
            String firstName = (String)record.get("FIRST_NAME");
            ReadAllQuery raq = new ReadAllQuery(Employee.class);
            if (firstName != null) {
                raq.setSelectionCriteria(raq.getExpressionBuilder().get("firstName").likeIgnoreCase(firstName));           
            return session.executeQuery(raq);
        }Doug

  • 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 

  • 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

  • Displaying selection criteria as part of query output

    Hi Folks,
    How do you add the selection criteria to the header of an SAP Query output?
    Thanks,
    Roy

    hi,
    for your own reports (beginning with z and y)and queries this should be no problem. Create a program, which makes your demanded heading,  and include it to your reports.
    Andreas

  • Selection Criteria in Supply Chain Cockpit

    Hello,
    Is it possible to add some selection Criteria to add object in the work area ? For example I would like to add the ABC indicator as selection criteria to load in my work area only Product that have a class A indicator.
    Thanks for your help.
    Laurent.

    Hello,
    If you want to use the Alert Monitor within the Supply Chain Cockpit (SCC) in SAP APO, you must assign application-specific alert profiles to your SCC user profile. In the upper right area of the SCC, you can see the existing alerts for the applications.
    Please look into the below link for more information:
    http://help.sap.com/saphelp_scm70/helpdata/en/47/f925c8852f383ce10000000a42189b/content.htm
    Regards

  • 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

  • How to add into dynamic selection criteria (FBL1N) - custom field from LFB1

    Hello all,
    i have following problem. I added new customer field into table LFB1 (Z* field). And now i need to use this field as dynamic selection criteria in transaction FBL1N. I enhanced selection view for logical database KDF - i have created new customer view and I added my new field from LFB1. It is OK, i see this field in dynamic selection criteria in FBL1N but if i try to select according that Z* field, short dump occured.  
    open cursor with hold LC_KRED for select (VF_KRED_FIELDS)
            from <b>VF_KRED</b>
              where LIFNR in KD_LIFNR
              and   BUKRS in KD_BUKRS
              and   LAND1 in KD_LAND1
              and   KONZS in KD_KONZS
              and   VBUND in KD_VBUND
              and   AKONT in KD_AKONT
              and   BUSAB in KD_BUSAB
              and (VF_KRED_WHERE)
    Problem is in VF_KRED - this is database view (LFA1 joins LFB1). This view has no Z* fields and therefore it cannot be use in statement above -> dump.
    Is needed repature of standard - enhancement of view VF_KRED?
    Thank you very much.

    Hi guys,
    thanks so far. I managed to show prompts in the report. But still my problem is nor 100% solved
    I would like t achieve that the filtered criteria in the report title is separated through a comma like in the report filter summary - e.g.: {001, 002, 003, 004} followed by just 1chart/table that is including the whole information.
    When I however just drag a variable into the report it automatically created different sections, right? Like ........ table, chart, whatever... .......table chart whatever........
    Regards

  • How  to add field( VBAK-SUBMI) as a Selection Criteria - VL10

    Hi friends,
    Could u please help in sort out the below issues,
    1. Add field VBAK-SUBMI as a Selection Criteria to the Selection Screen for the VL10 - Program V50RINCL, user exit V50R_SELECT_OPTION_ADD
    2.Transfer the VBAK-SUBMI field to the report created during the VL10 transaction. – Program V50RINCL, user exit V50R_USEREXIT_TRANSF.
    I am bit new to enahancements, please provide some information to achieve the above objects.
    Poits will be rewarded.
    Thanks.
    Regards. VKRAO.

    Hi,
    <b>Plz find the explanation abt user-exit below</b>
    User exits :
    1. Introduction
    2. How to find user exits
    3. Using Project management of SAP Enhancements
    1. Introduction:
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program
    SAPMV45A you will find ( Among other user exits):
    CALL CUSTOMER-FUNCTION '003'
    exporting
    xvbak = vbak
    xvbuk = vbuk
    xkomk = tkomk
    importing
    lvf_subrc = lvf_subrc
    tables
    xvbfa = xvbfa
    xvbap = xvbap
    xvbup = xvbup.
    The exit calls function module EXIT_SAPMV45A_003
    2. How to find user exits?
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document.
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project.
    Goto transaction VA01 and craete a salesorder.
    Note that Sold-to-party now automatically is "2155"
    <b>
    Reward points if it solves ur query or answer is helpful</b>
    Thanks
    Chinmay

Maybe you are looking for