Restricting the values based on keyfigures.

Hi All,
Good Morning..
I have a query on Bex reporting.
I want to calculate transit aging.Just i want to find the difference between the two dates.
I have one more field called quantity.
I want to calculate the difference of dates only whose quantity is "ZERO". I can restrict the keyfigures based on characteristics. But for my case i want to restrict the keyfigures based on Quantity keyfigures.
Is it possible in Query designer.
Thanks in advance.
Thanks,
Siva.

Hi,
p.o number ______p.odate_______consimentdate______qty__aging
87000001______01.02.2009______02.02.2009________1___ nil
87000002______05.02.2009______07.02.2009________0____( current date - consiment date)
Craete Two formula Variables with replacement path in columns..
1. One is for PO date and replace with Key.
2. Other is forconsiment date and replace with Key.
then just drag and drop in two columns in report and see the output. Then create one formula and do substraction. In another column you craete one more formula and use If condition
Column A = p.odate (with Replacemet variable value)
Column B = consimentdate (with Replacemet variable value)
Column C = B-A
Column D =  If QTY <> 0 then C
Thanks
Reddy

Similar Messages

  • Restricting the values based on exit

    Hi,
    I have a report in which it is displaying the user details with logged date information.  But my requriement if the user is not there then that person should not be display.  I am very new to BW how to restrict in the query.
    Thanks
    Naveen

    Hi Naveen
    Please let me know, if i have understood your question correct.
    You are executing a report which shows some user details. You dont want the information for the user, who are no more able to access the system. Which means the user were there before and now they have been removed from the system. Am I right?
    Sriram

  • How to restrict the values in seach helps

    Dear All,
                   I am new to the BSP concept.I have a requirement
    where in the BSP i need to restrict the values of the search help.i.e. 2 values are coming in the help i need to display only 1 value.
    can anybody please explain how to do it.
    Cheers,
    Deepthee Kasal
    Edited by: Craig Cmehil on Sep 2, 2008 8:21 AM

    Hi,
    I assume that you read values for the search help with function 'F4IF_FIELD_VALUE_REQUEST' and in a later step you display values with <htmlb:tableview>. If that is true and the function is delivering too many records as you mention, you could then restrict the output table of values like this:
    TABLES mara.
    DATA: mytable TYPE TABLE OF ddshretval WITH HEADER LINE.
    DATA l_repid TYPE syrepid.
    PARAMETERS p_mtart LIKE mara-mtart.
    AT SELECTION-SCREEN ON VALUE-REQUEST
    FOR p_mtart.
    l_repid = sy-repid.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname = 'MARA'
    fieldname = 'MTART'
    dynpprog = l_repid
    callback_program = l_repid
    callback_form = 'F4CALLBACK'
    TABLES
    return_tab = mytable
    EXCEPTIONS
    field_not_found = 1
    no_help_for_field = 2
    inconsistent_help = 3
    no_values_found = 4
    OTHERS = 5.
    START-OF-SELECTION.
    blah, blah, blah
    * Form F4_form
    * Exclude all material types that start with F & H
    FORM f4callback
    TABLES record_tab STRUCTURE seahlpres
    CHANGING shlp TYPE shlp_descr
    callcontrol LIKE ddshf4ctrl.
    DATA: aux_struc TYPE ddshselopt.
    MOVE: 'H_T134' to aux_struc-shlpname,
    'MTART' TO aux_struc-shlpfield,
    'E' TO aux_struc-sign,
    'CP' TO aux_struc-option,
    'F*' TO aux_struc-low.
    append aux_struc to SHLP-SELOPT.
    MOVE: 'H_T134' to aux_struc-shlpname,
    'MTART' TO aux_struc-shlpfield,
    'E' TO aux_struc-sign,
    'CP' TO aux_struc-option,
    'H*' TO aux_struc-low.
    append aux_struc to SHLP-SELOPT.
    ENDFORM. "F4_form
    Mark points if helpful

  • How to restrict the values during extraction?

    Hi everyone,
    I want to restrict the values while extracting data from R/3 Datasource... For example:
    I have MATNR, which have around 10 materials out of which i want to extract the data for only 5 materials. My Selection screen is disabled, i mean we cant do anything in selection screen... Can anyone plz tell me how to go abt this issue?
    Advance thanks,
    chintu..

    Hi KJ,
    Am saying that its not available in Selection screen in R/3 side.. am not talking abt the BW side.. Then also i want to extract the data.. How to do this? this is an interview question asked by HP today morning..
    Regards,
    Chintu.

  • Restrict the values in the Query Designer

    Hi Guru’s,
    I want to Restrict PLANT or  SALES ORG  values in the Query Designer, in the Query, PLANT has selected in the rows and having variable and SALES ORG is display attribute of the PLANT. In this scenario How can we Restrict the values?
    Thanks in Advance,
    Ravi.

    Hi Ravi,
    You cannot restrict values on the display attributes. Better change it to navigational attribute and check the box as navigational in the cube.
    Regards
    Ram

  • Restricting the values in Drop Down list for ESS application

    Hello Experts,
    We are trying to restrict the values in the drop down list box for payment method field for direct deposit iview.
    Here Payment is the Zlsch field.
    here we are trying to have only 3 vlaues in the drop down. Do I have to do it from java code or can this be restricted on the ECC side?
    Plese let me know.
    Thanks,
    James.

    James,
    What you have to do is create a DropDown ByIndex element instead of by Key and create a context node PaymentMethodNode and a value attribute PaymentAttribute under it ....then write the following code in the wdDoInit() method as :
    //Add whatever values you want in the DropDown
    String[] priority_options= new String[]{"Payroll/Corp/Partner Check","Employee Payroll ACH(PPD)"};
              List ListOfPriorities = new ArrayList();
              for(int i=0;i<priority_options.length;i++)
                   IPrivateDetailView.IPayment_MethodNodeElement pr= wdContext.createPayment_MethodNodeElement();
                   pr.setPaymentAttribute(priority_options<i>);
                   ListOfPriorities.add(pr);
              wdContext.nodePayment_MethodNode().bind(ListOfPriorities);
              for(int e=0;e<wdContext.nodePayment_MethodNode().size();++e)
                   wdContext.nodePayment_MethodNode().setSelected(e,e>=0 && e<=1);
    and then write the following code in wdDoModifyView() method:
    IWDDropDownByIndex di =(IWDDropDownByIndex)view.getElement("DropDownByIndex");
             di.bindTexts("Payment_MethodNode.PaymentAttribute");
    then create an Action and bind it to the onselect property of the DropDown and write the following code in the onAction method :
    if(wdContext.currentPayment_MethodNodeElement().getPaymentAttribute().equalsIgnoreCase("Payroll/Corp/Partner Check"))
        wdContext.currentSelectedInfotypeElement().setZlsch("C");
        else
         wdContext.currentSelectedInfotypeElement().setZlsch("P");
    I am sure it will work..

  • Restrict the values on variables screen

    I've a variable on report screen which I want to restrict the values getting from master data. Variable is a authorization variable type. So I can't set default values. I need to restrict the values for example "00D*".
    At result user should see the master data list values which starts with "00D".
    Cheers,
    Yigit

    SELECT_OPTIONS_RESTRICT is not intended for this, only to restrect the kind of sign and options which are allowed in the select-options, you can restrict to single values, range or disable exclusion, this kind of restriction.
    For your requirement, you have to restrict the dropdown values using FM VRM_SET_VALUES. (use the search tools in [forums|http://forums.sdn.sap.com/search.jspa?objID=c42&q=VRM_SET_VALUES] and [wiki|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=VRM_SET_VALUES&searchQuery.spaceKey=conf_global])
    Regards,
    Raymond

  • How can I restrict the values obtained in a search help?

    Hi guys,
    The thing is that there is a function module that according to the user name, and a material number, it tells wheter the user has permission to see the material or not.
    It is possible to use that function module to restrict the values of the search help?
    Thanks

    Hello Raulie,
    1. If the function module is not much complex then copy the same Functionmodule into your custom name ,...
    Then you would have the control at your end,,,,
    2. If the funciton module is very complex then fetch the data manually and create a custom f4 help ... to fetch the data use the similar logic of the function module so that data does not get deleted.
    Thanks,
    M.Naveen Kumar

  • Restrict variable values based on another variable in the bex query...

    I am struggling to restrict the variable values from other varaible in the selection criteria. I have a variable which restricts he organisation(0ORGUNIT) and another to restrict employees.
    When the user selects any organisation unit form the hierarchy, I want only those employees related to that organsation in the varaible selection options.
    Is there any way I can make a variable values dependant on the another variable value in variable selection screen?
    Thanks,
    Your help in this matter will be much appreciated.
    Edited by: Kthapa on Nov 25, 2010 11:08 PM

    Hi Kthapa,
    Did u try using cmod?
    i_step = 1? Used to provide default values for the selection screen variables and
    i_step = 2 for filling up the variables after selection screen.
    Try using based on ur requirement.
    Hope this helps. Revert back for any queries.

  • Restricting the Value of Search help in MIRO based on vendor

    Dear all,
    I had a problem in resticting the values of search help for vendor in the Po reference tab.  the Seach help is KRED  .  I had written a search help exit in it but i dont know how to restrict the vaues. I have to restict the Vendors Which starts with 1 series like 10000001,1000002 etc.
    Can any one help me out where to write the code in search help exit like CALLCONTROL-STEP = 'SELONE' or 'SELECT' or 'DISP' and what logic i need to use.
    Thanks & regards
    sreehari p

    Hi Sreehari,
    Write your Select query inside  IF callcontrol-step = 'DISP'.
    Use below code.
    *Types
      TYPES: BEGIN OF l_ty_tab,
             lifnr TYPE lifnr,
             END OF l_ty_tab.
      DATA: l_t_tab TYPE TABLE OF l_ty_tab,
            l_wa_tab TYPE l_ty_tab,
            l_wa_recordtab TYPE seahlpres.
    *Before displaying hitlist
      IF callcontrol-step = 'DISP'.
        REFRESH: record_tab[],l_t_tab[].
    SELECT LIFNR FROM lfa1 INTO TABLE l_t_tab WHERE lifnr LIKE '1%'.
    IF NOT l_t_tab[] IS INITIAL.
    *Pass hitlist to standard table record_tab
        LOOP AT l_t_tab INTO l_wa_tab.
          l_wa_recordtab-string = l_wa_tab.
          APPEND l_wa_recordtab TO record_tab.
          clear l_wa_recordtab.
        ENDLOOP.
      ENDIF.
      ENDIF.
    Thanks,
    Sap Fan

  • Restrict the user   based on document type on migo transaction-prepare GRN

    Hi,
    We are running ECC6.0 R/3 system.We had a requirement as follows
    In MIGO transaction , we want to restrict the user on document type i.e. we want that a particular user can  prepare GRN for document type  STO only. He cannot prepare GRN for other document type.
    We checked  SU24->maintain check indicators for transaction codes->enter migo->execute->check indicator.This returned us the authorisation objects present in Migo transaction.We checked the help of all these objects,but none of them we found suitable for above mentioned requirement.We were planning to find out the proper authorisation object to add to Profile generater.
    The following is the objects which we have checked for.
    A_B_ANLKL-->     Asset Postings: Company Code/Asset Class
    A_B_BWART-->     Asset Postings: Asset Class/Transaction Type
    B_USERSTAT-->     Status Management: Set/Delete User Status
    B_USERST_T-->     Status Management: Set/Delete User Status using Process
    C_AFKO_AWK-->     CIM: Plant for order type of order
    C_CACL_DSG-->     Interface Design
    C_DRAW_BGR-->     Authorization for authorization groups
    C_DRAW_DOK-->     Authorization for document access
    C_DRAW_TCD-->     Authorization for document activities
    C_DRAW_TCS-->     Status-Dependent Authorizations for Documents
    C_KLAH_BKP-->     Authorization for Class Maintenance
    C_STUE_BER-->     CS BOM Authorizations
    C_STUE_WRK-->     CS BOM Plant (Plant Assignments)
    C_TCLA_BKA-->     Authorization for Class Types
    C_TCLS_BER-->     Authorization for Org. Areas in Classification System
    C_TCLS_MNT-->     Authorization for Characteristics of Org. Area
    F_BKPF_BUK-->     Accounting Document: Authorization for Company Codes
    F_BKPF_BUP-->     Accounting Document: Authorization for Posting Periods
    F_BKPF_KOA-->     Accounting Document: Authorization for Account Types
    F_FICA_FOG-->     Funds Management: authorization group of fund
    F_FICA_FSG-->     Funds Management: authorization group for the funds center
    F_FICB_FKR-->     Cash Budget Management/Funds Management FM Area
    F_KNA1_APP-->     Customer: Application Authorization
    F_LFA1_APP-->     Vendor: Application Authorization
    F_SKA1_BUK-->     G/L Account: Authorization for Company Codes
    G_GLTP  -->       Spec. Purpose Ledger Database (Ledger, Record Type, 
                                   Version)
    J_1IDEP_SL-->     Authorization object for depot sale transaction
    J_1IEXC_OT-->     Authorization object for Other Excise Invoice Create
    J_1IEX_PST-->     Autorization object for posting Other Excise invoice
    J_1IGRPT1-->     Auth. for PART1 at GR
    J_1IINEX  -->            Incoming Excise Invoice
    J_1IRG23D-->     Authorisation object for Depo Transactions
    K_CCA-->                     CO-CCA:  Gen. Authorization Object for Cost Center 
                                    Accounting
    K_CSKS     -->                CO-CCA:  Cost Center Master
    K_CSKS_SET-->     CO-CCA: Cost Center Groups
    K_PCA-->                    EC-PCA: Responsibility Area, Profit Center
    L_TCODE-->                    Transaction Codes in the Warehouse Management System
    M_ANFR_BSA-->     Document Type in RFQ
    M_ANFR_EKG-->     Purchasing Group in RFQ
    M_ANFR_EKO-->     Purchasing Organization in RFQ
    M_ANFR_WRK-->     Plant in RFQ
    M_BEST_BSA-->     Document Type in Purchase Order
    M_BEST_EKG-->     Purchasing Group in Purchase Order
    M_BEST_EKO-->     Purchasing Organization in Purchase Order
    M_BEST_WRK-->     Plant in Purchase Order
    M_MATE_CHG-->     Material Master: Batches/Trading Units
    M_MATE_STA-->     Material Master: Maintenance Statuses
    M_MATE_WRK-->     Material Master: Plants
    M_MRES_BWA-->     Reservations: Movement Type
    M_MRES_WWA-->     Reservations: Plant
    M_MSEG_BMB     -->Material Documents: Movement Type
    M_MSEG_BWA-->     Goods Movements: Movement Type
    M_MSEG_BWE-->     Goods Receipt for Purchase Order: Movement Type
    M_MSEG_BWF-->     Goods Receipt for Production Order: Movement Type
    M_MSEG_LGO-->     Goods Movements: Storage Location
    M_MSEG_WMB-->     Material Documents: Plant
    M_MSEG_WWA-->     Goods Movements: Plant
    M_MSEG_WWE-->     Goods Receipt for Purchase Order: Plant
    M_MSEG_WWF-->     Goods Receipt for Production Order: Plant
    M_RAHM_BSA-->     Document Type in Outline Agreement
    M_RAHM_EKG-->     Purchasing Group in Outline Agreement
    M_RAHM_EKO-->     Purchasing Organization in Outline Agreement
    M_RAHM_WRK-->     Plant in Outline Agreement
    Q_TCODE     QM -->         Transaction Authorization
    S_ADMI_FCD-->     System Authorizations
    S_ALV_LAYO-->     ALV Standard Layout
    S_BDS_DS-->     BC-SRV-KPR-BDS: Authorizations for Document Set
    S_BTCH_ADM-->     Background Processing: Background Administrator
    S_BTCH_JOB-->     Background Processing: Operations on Background Jobs
    S_CTS_ADMI-->     Administration Functions in Change and Transport System
    S_DATASET-->     Authorization for file access
    S_DEVELOP-->     ABAP Workbench
    S_DOKU_AUT-->     SE61 Documentation Maintenance Authorization
    S_GUI-->                     Authorization for GUI activities
    S_OC_DOC-->     SAPoffice: Authorization for an Activity with Documents
    S_OC_ROLE-->     SAPoffice: Office User Attribute
    S_OC_SEND-->     Authorization Object for Sending
    S_PACKSTRU-->     Internal SAP Use: Package Structure
    S_PRO_AUTH-->     IMG: New authorizations for projects
    S_RFC-->                     Authorization Check for RFC Access
    S_SCD0     -->                Change documents
    S_SPO_DEV-->     Spool: Device authorizations
    S_TABU_DIS-->     Table Maintenance (via standard tools such as SM30)
    S_TCODE     -->                Transaction Code Check at Transaction Start
    S_TRANSLAT-->     Translation environment authorization object
    S_TRANSPRT-->     Transport Organizer
    S_WFAR_OBJ-->     ArchiveLink: Authorizations for access to documents
    V_LIKP_VST-->Delivery: Authorization for Shipping Points
    V_VBAK_AAT-->Sales Document: Authorization for Sales Document Types
    V_VBAK_VKO-->Sales Document: Authorization for Sales Areas

    Have you executed a trace while a functional user executes the transaction code for the specific parameters? (i.e. document type). The trace will then show which objects are being checked; then look at the object documentation in txn Su21 to determine if there are any ways to restrict on the particular value; in some cases, if the authorization group field is being checked, additional configuration is needed in order to implement the security (Su21 will explain in detail for the particular object).

  • Restricting the values of a dropdown in Hyperion Planning web form

    Hi,
    I have two dimensions(Entity and Project) represented in the page of a Hyperion Planning web form.Is it possible to constrain the values of a dropdown(Project) based on the value selected in another dropdown(Entity) in a data form in Hyperion Planning 11.1.1?
    Best Regards,
    Malini

    The short answer is no.
    You could make separate forms per entity which could be cumbersome to manager or pershaps do something with a suppress missing form by filling in say BegBalance with a value and suppressing the intersections that were not valid.
    -John

  • Regarding the restricting the value using the keyboard

    Hi,
    In our organisation, I've implemented the Barcode system. I've a case, where user wants that the value in a field has to be taken from the scanner. The other requirement is I've to restrict the user from entering the valu using keaboard in that field.
    Can any one help me in this regard.
    Thanks in advance.
    Regards,

    did you have the docs of the barcode scanner? Look, which kind of remote interaction you can do. Via OLE2, C, RFC, ...

  • How to populate the values based on different selections in Dashboard Promp

    Hi,
    I have a group prompt, which has 2 drop downs. The DropDown1 decides the values of DropDown2.
    I have used a SQL query in the "Show" values which will populate the dropdowns.
    When a value is 'selected" from DropDown1, the selected value decided the values of DropDown2 which is again a SQL query.
    But I see that when a new value is selected from DropDown1, the values in DropDown2 will not change until I click on GO.Even after clicking GO, the previously selcted value is retained.
    As an illustration:
    animals,plants are the choices in the first drop down, which if, animal is selected would populate the dropdown2 with cow,sheep, tiger.
    Assume animal is selected. The second drop down now is populated with cow,sheep and tiger. Assume you chose sheep.This resulted in display of sheep related info on the BI page.
    Now if I go back to the first dropdown and select plants, I would expect the second drop down to be populated with fig, palm, coconut.
    However in my case I see only the proviously popluated animals in the DropDown2.
    If I click on Go, I see that the DropDown2 is populated with Sheep,,fig, palm, coconut. Ideally I should not have seen the prevously selected value in DropDown2.
    Here there are 2 problems stated for a group promt having 2 DropDowns where item chosen from one decides the values of the other dropdown
    1. On selecting an item from DropDown1, is not populating with the corresponding values in DropDown2
    2. When 'Go' is clicked, DropDown2 is populated with the corresponding values for DropDown1 + the previously selected value in DropDown2 is retained.
    Any input to get out of this problem will help
    thanks
    Shubha

    Hi
    I am using group prompt and has 4 drop downs.
    Value of one decides the other. Values for the dropdowns will be populated by SQL results.
    'Constrain' will not be available for sql results..
    How to go about this?
    thanks
    Shubha

  • How to restrict the values for selection in the search help..

    hi,
    i have a requirement regarding screen programming. i have added a i/o field in a screen and i linked a search help for that field.
    i used the standard search help it holds some 15 values for selection...
    when i click on the  search help i m getting some 15 values for selection. but i dont need all the 15 values. i need only 4 values for selection..can any one help me regarding this...
    waiting for ur reply...
    Uday.
    Edited by: uday13 on May 31, 2010 9:17 AM

    Hello,
    Refer the below code and you can provide your own search help to a parameter depending on the value in another parameter:-
    PARAMETERS : p_belnr TYPE belnr,
                 p_bukrs TYPE bukrs.
    DATA : BEGIN OF itab OCCURS 0,
             bukrs TYPE bukrs,
           END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
      PERFORM f4_bukrs_help USING p_bukrs.
    *&      Form  f4_bukrs_help
    FORM f4_bukrs_help USING p_bukrs.
      DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
             tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
             v_belnr TYPE belnr.
      CLEAR:   tb_dynpfields.
      REFRESH: tb_dynpfields.
      MOVE 'P_BELNR' TO tb_dynpfields-fieldname.
      APPEND tb_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = 'Z_F4' "program name
          dynumb                               = '1000' "screen number
        TABLES
          dynpfields                           = tb_dynpfields
      IF sy-subrc NE 0.
      ENDIF.
    READ TABLE tb_dynpfields INDEX 1.
      IF sy-subrc EQ 0.
        v_belnr = tb_dynpfields-fieldvalue.
      ENDIF.
      SELECT bukrs from <db_table> INTO TABLE itab WHERE belnr = v_belnr.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'BURKS' "internal table field
          dynpprog               = 'Z_F4' "program name
          dynpnr                 = '1000' "screen number
          dynprofield            = 'P_BUKRS' "screen field name
          value_org              = 'S'
        TABLES
          value_tab              = itab "internal table
      IF sy-subrc NE 0.
      ENDIF.
    ENDFORM.                    " f4_bukrs_help
    Hope this helps you.
    Regards,
    Tarun

Maybe you are looking for

  • Logical Databases PNP

    I am working with logical databases for the first time. Could someone please explain the following concepts : 1) why do we need to write :      Tables : pernr pernr is a structure... but the syntax of GET event is : GET <table> ... so is pernr a stru

  • Imac will not read a cd rom and I cant eject it!!!!! Help please

    I have bought yesterday a new imac 24 inch with snow leopard. I was loading my music and pictures so I inserted a cd in the drive. The icon does not appear on the desktop so I can not open it or drag it in the recycle bin. I have tried to use the eje

  • White rectangle on Safari screen

    When I bring up the Safari screen there is a white rectangle that blocks whatever I bring up with Google. I can't get rid of it. This has only started recently. Anybody know how I can eliminate this?

  • Subquery issue

    SELECT m_label, (SELECT COUNT(c_id) FROM tbl_count WHERE tbl_main_fk = m_id) AS totalCount FROM tbl_main It's a simple subquery code to get the total count of the related table, and the result return perfectly when I click test, but it will fail in c

  • Action Script 3.0 fro Flash Professional CC running on Windows

    Hi everybody, I am trying to learn Action Script 3 on Flash Professional CC. The video courses I am following are on Lynda.com and they all talk about when referencing an instance of a movie clip that typing that instance name followed by the (dot) w