Developing prompts to enter a date range

I need to develop a report for an agency allowing their user to select information from a table, between a user specified date range, which could change daily. The user needs to be prompted to enter a city, a start date, and an ending date... Then display and print this report based on their entered criteria. I would like to use the pop-up date pickers if possible. Can you give me some direction as to how I would go about developing the required prompts.

Raj,
Thank you for your help, I believe it is what I am trying to do. I am still having trouble bringing back data.. I feel that I am very close..
The new page I created was PAGE 33.. On this page I have
REGION:
REGION: (Title-Retail-Labels)
TYPE : SQL Query
REGION SOURCE:
select name,address,city,state,zip
from retail
where RENEWAL_DATE between to_date(:P33_START_DATE,'DD-MON-YY') and to_date(:P33_END_DATE,'DD-MON-YY')and POD =:P33_POD
X Use Query-Specific Column Names and Validate Query
ITEMS:
10: P33_START_DATE Date Picker (DD-MON-YY) (Source:SQL Query)
20: P33_END_DATE Date Picker (DD-MON-YY) (Source:SQL Query)
30: P33_POD TextField (Source:SQL Query)
I am querying data from the Retail table with the following columns.
ID, Name, Address, City, State, Zip, Telephone, Fax, Permit, Renewal_Date, Owner, Contact, SalesTax, Violations, Compliance, Lease, Look, County, POD
If I modify my query to say where renewal_date is not null or POD is not null I pull back the appropriate records..
POD (column name) is basically point of destination and is a city..
When I run the page it allows me to select two dates and type in a city. I have a Submit button to submit to page 33... It says no data found (the default).
Does anything look incorrect..
Thank you in advance for your help,
Kevin

Similar Messages

  • Prompt user for date range

    Im working on a report that when it is opened by end user, i want it to prompt them for a date range. The report should only show records that fall between the date ranges entered.
    If i use the select expert and hardcode specific dates in, it works and only shows the records i want to see. However i cannot figure out how to set Crystal to prompt the user to enter the in DateTime and the to Date Time fields with Select Expert.
    Ive tried using a Parameter field, which it prompts for the date range, but still pulls up all records as normal. Its like it ignores the date range the user enters.
    The select expert shows this formula, the date/time is all zero's in this example.
    {SHOP_ORD\.REVISED_START_DATE} in DateTime (0, 0, 0, 00, 00, 00) to DateTime (0, 0, 0, 00, 00, 00)
    Please help

    Figured it out.
    Had to create two Parameter Fields {?StartDate} and {?EndDate}.
    Then used Select Expert, Formula Editor to modify the formula and set the in DateTime = {?StartDate} and the to DateTime = {?EndDate}
    This works. Just hide the Parameter fields and you have your range selector

  • When i enter date range n vkorg iam getting all sales orginzation

    HI All,
    I have enter which you have given for me but its not working
    eg..
    it isfunction module
    import parameters
    all are options
    p_stdate=01.04.2005
    p_endate=30.04.2005
    p_kunnr= i will not enter any thing
    p_vkorg= m600
    so i have entered only date ranges and vkorg
    it shouled display only m600 sales orginzations but iam getting all sales orginzations
    the code i have retun----
    FUNCTION ZBAPI_CUSTOMER_DETAILS.
    ""Local interface:
    *" IMPORTING
    *" VALUE(P_STDATE) TYPE KNA1-ERDAT OPTIONAL
    *" VALUE(P_EDDATE) TYPE KNA1-ERDAT OPTIONAL
    *" VALUE(P_KUNNR) TYPE KNA1-KUNNR OPTIONAL
    *" VALUE(P_VKORG) TYPE KNVV-VKORG OPTIONAL
    *" VALUE(P_NAME1) TYPE KNA1-NAME1 OPTIONAL
    *" EXPORTING
    *" VALUE(RETURN) TYPE BAPIRETURN
    *" TABLES
    *" IT_CUSTOMER STRUCTURE ZBAPI_CUSTST
    ranges: lr_erdat for kna1-erdat,
    lr_kunnr for kna1-kunnr,
    lr_vkorg for knvV-vkorg,
    lr_NAME1 for kna1-NAME1.
    if P_kunnr IS not initial.
    lr_kunnr-sign = 'I'.
    lr_kunnr-option = 'EQ'.
    lr_kunnr-low = p_kunnr.
    append lr_kunnr.
    endif.
    if P_vkorg IS not initial.
    lr_vkorg-sign = 'I'.
    lr_vkorg-option = 'EQ'.
    lr_vkorg-low = p_vkorg.
    append lr_vkorg.
    endif.
    if P_name1 IS not initial.
    lr_name1-sign = 'I'.
    lr_name1-option = 'EQ'.
    lr_name1-low = p_name1.
    append lr_name1.
    endif.
    if not p_stdate is initial and not p_eddate is initial.
    lr_erdat-sign = 'I'.
    lr_erdat-option = 'BT'.
    lr_erdat-low = p_stdate.
    lr_erdat-high = p_eddate.
    append lr_erdat.
    endif.
    *select the General Data in Customer Master from kna1
    select kunnr land1 name1 name2 ort01 pstlz regio sortl stras telf1 telfx adrnr mcod1 mcod2 mcod3
    anred erdat ernam konzs ktokd name3 name4 spras telbx telf2 teltx fityp stcdt lzone
    into corresponding fields of table it_KNA1 from kna1
    where kunnr IN lr_kunnr AND
    name1 IN lr_name1 AND
    erdat IN lr_erdat .
    Move all the data to it_customer
    if sy-subrc = 0.
    loop at it_kna1.
    move-corresponding it_kna1 TO it_customer.
    append it_customer.
    clear it_customer.
    endloop.
    endif.
    *select Customer Master Partner Functions from knvp.
    if not it_customer[] is initial.
    select kunnr vkorg parvw
    into corresponding fields of table it_knvp
    from knvp FOR ALL ENTRIES IN it_customer
    where kunnr = it_customer-kunnr and
    vkorg in lr_vkorg .
    endif.
    Read Customer Master Partner Functions from it_knvp move it to it_customer
    loop at it_customer.
    read table it_knvp with key kunnr = it_customer-kunnr binary search.
    if sy-subrc = 0.
    it_customer-vkorg = it_knvp-vkorg.
    it_customer-parvw = it_knvp-parvw.
    modify it_customer.
    clear it_customer.
    endif.
    clear it_knvp.
    endloop.
    pls can you help in this code
    thanks
    mars

    HI All,
    I have enter which you have given for me but its not working
    eg..
    it isfunction module
    import parameters
    all are options
    p_stdate=01.04.2005
    p_endate=30.04.2005
    p_kunnr= i will not enter any thing
    p_vkorg= m600
    so i have entered only date ranges and vkorg
    it shouled display only m600 sales orginzations but iam getting all sales orginzations
    the code i have retun----
    FUNCTION ZBAPI_CUSTOMER_DETAILS.
    ""Local interface:
    *" IMPORTING
    *" VALUE(P_STDATE) TYPE KNA1-ERDAT OPTIONAL
    *" VALUE(P_EDDATE) TYPE KNA1-ERDAT OPTIONAL
    *" VALUE(P_KUNNR) TYPE KNA1-KUNNR OPTIONAL
    *" VALUE(P_VKORG) TYPE KNVV-VKORG OPTIONAL
    *" VALUE(P_NAME1) TYPE KNA1-NAME1 OPTIONAL
    *" EXPORTING
    *" VALUE(RETURN) TYPE BAPIRETURN
    *" TABLES
    *" IT_CUSTOMER STRUCTURE ZBAPI_CUSTST
    ranges: lr_erdat for kna1-erdat,
    lr_kunnr for kna1-kunnr,
    lr_vkorg for knvV-vkorg,
    lr_NAME1 for kna1-NAME1.
    if P_kunnr IS not initial.
    lr_kunnr-sign = 'I'.
    lr_kunnr-option = 'EQ'.
    lr_kunnr-low = p_kunnr.
    append lr_kunnr.
    endif.
    if P_vkorg IS not initial.
    lr_vkorg-sign = 'I'.
    lr_vkorg-option = 'EQ'.
    lr_vkorg-low = p_vkorg.
    append lr_vkorg.
    endif.
    if P_name1 IS not initial.
    lr_name1-sign = 'I'.
    lr_name1-option = 'EQ'.
    lr_name1-low = p_name1.
    append lr_name1.
    endif.
    if not p_stdate is initial and not p_eddate is initial.
    lr_erdat-sign = 'I'.
    lr_erdat-option = 'BT'.
    lr_erdat-low = p_stdate.
    lr_erdat-high = p_eddate.
    append lr_erdat.
    endif.
    *select the General Data in Customer Master from kna1
    select kunnr land1 name1 name2 ort01 pstlz regio sortl stras telf1 telfx adrnr mcod1 mcod2 mcod3
    anred erdat ernam konzs ktokd name3 name4 spras telbx telf2 teltx fityp stcdt lzone
    into corresponding fields of table it_KNA1 from kna1
    where kunnr IN lr_kunnr AND
    name1 IN lr_name1 AND
    erdat IN lr_erdat .
    Move all the data to it_customer
    if sy-subrc = 0.
    loop at it_kna1.
    move-corresponding it_kna1 TO it_customer.
    append it_customer.
    clear it_customer.
    endloop.
    endif.
    *select Customer Master Partner Functions from knvp.
    if not it_customer[] is initial.
    select kunnr vkorg parvw
    into corresponding fields of table it_knvp
    from knvp FOR ALL ENTRIES IN it_customer
    where kunnr = it_customer-kunnr and
    vkorg in lr_vkorg .
    endif.
    Read Customer Master Partner Functions from it_knvp move it to it_customer
    loop at it_customer.
    read table it_knvp with key kunnr = it_customer-kunnr binary search.
    if sy-subrc = 0.
    it_customer-vkorg = it_knvp-vkorg.
    it_customer-parvw = it_knvp-parvw.
    modify it_customer.
    clear it_customer.
    endif.
    clear it_knvp.
    endloop.
    pls can you help in this code
    thanks
    mars

  • User Prompt for Date Range in Bex Query Analyzer

    I have a workbook that has two queries. The queries both require the user to enter a date range upon refresh. I want the user to be able to hit refresh, enter the date input into the dialog box and then both queries to use this date range for their input. I have seen this in other book, but when I click refresh on my book it only runs the first query. How do I get the second query to use the first queries input?

    use the same variable in both the queries. this will let the user enter the date in a single variable and this will refresh both the queries.
    rgds, Ghuru

  • Text Varible for user enter date range

    Hi,
    I need code for text variable,
    the user enters the date range in user entry varible screen
    ex : production for the date range of xxxxx(xxxx= text variable)
    user enters the date range 25-05-2010 -  31-05-2010
    The query description name should be 
    production for the date range of    25-05-2010 -  31-05-2010
    for that  i need code i _step 2  code
    User eners the date range in varaible screen as per that report header has to come
    Please provide the valuble code.
    Thanks & Regards,
    Sathish

    Use Replacement Path Approach instead of Customer Exit.
    Create two Text variables TVAR1 and TVAR2 of type replacement path. Replace them with the Date Characteristic that you are using on which variable is created for user to enter the date range. 
    While creating Text variables, for TVAR1 select From Value and  TVAR2 select To Value.
    Now make the Query description as   Production for the date range of &TVAR1& - &TVAR2&

  • Pass a date Range from VB to a parameter

    Hello,
    I'm thinking this is an easy question, but ...
    In a Visual Studio 2008 VB program, I'm allowing the user to pick a starting and ending date from DateTimePickers. (works fiine).
    In a CR 2008 report, I have a paramter defined as "pDateRange",  Type = date, Allow Range Values = Yes.
    In the Record Selection, I use a formula of {tblData.INSTALLDT} in {?Date_Range}.
    When I run the report, I can enter the date ranges in via the Enter Values prompt screen, and it works file,
    All I need to know is - how do I pass the dates the user selected in the VB program to the pDateRange parameter?
    Thanks very much,
    Carl

    Thanks Ludek for the reply.
    Unfortunately, I canu2019t seem to puzzle this out.  None of the examples seem to work.  This is an example, along with their comments.
    I get the error "The parameter field current values cannot contain range values because the ValueRangeKind property is set to discrete." on the last line.
    I could REALLY use some help getting past this issue.
           Dim myReportDocument As New CRS_Tab_Prod_Org_Cnt_Params2
            Dim crParameterFieldDefinitions As ParameterFieldDefinitions
            Dim crParameterFieldDefinition As ParameterFieldDefinition
            Dim crParameterValues As ParameterValues
            Dim crParameterRangeValue As ParameterRangeValue
            crParameterFieldDefinitions = myReportDocument.DataDefinition.ParameterFields
            'Access the individual subreport parameter field "Date_Range"
            crParameterFieldDefinition = crParameterFieldDefinitions.Item("Date_Range")
            'Cast the variable to hold the values to pass to the Report before execution
            crParameterValues = crParameterFieldDefinition.CurrentValues
            'Cast the variable to hold the range value for the parameter
            crParameterRangeValue = New ParameterRangeValue()
            'Set the Date range and include the upper and lower bounds. Use the Cdate function as insurance
            'to ensure that the value passed is cast to the appropriate data type
            With crParameterRangeValue
                .EndValue = CDate("1/1/1997")
                .LowerBoundType = RangeBoundType.BoundInclusive
                .StartValue = CDate("12/20/1997")
                .UpperBoundType = RangeBoundType.BoundInclusive
            End With
            'Apply the Date range to the values to be passed to the Report
            crParameterValues.Add(crParameterRangeValue)
            'Pass the parameter values back to the report
            crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
    Thanks for your help,
    Carl

  • Date Range Parameter's Restriction

    Could you someone please tell me how BO restricts date range parameter when the users tries to run a query?  Often times, users simultaneously try to get several years of data dumped into a single query.  Some users even forget to enforce the date range, which causes the query to try to get the data from the beginning of time. 
    How do we as a BO developer create some sort of date range restriction so that it can prevent users from overloading a query?  If the users want to get several years of data, he/she has to run a query in batches instead of doing it all at once.
    I hope there is a way that we can create a custom informational error message for each report to prevent users from trying to query too many months or years of data.  Some reports may hit small and well-indexed tables that allow large date range queries.  But, some reports query against large and poorly indexed tables, which can potentially cause adverse effect on performance without date range restriction. 
    Any thoughts or advices on how to implement such things (if possible).  I am also afraid that the answer will be "currently not doable".  If so, any ideas if the next version of BO will allow such functionality, or if it is at least in the plan at all?  Thank you so much for your insight and sharing.  Have a great day!

    Dear Amr,
    Thanks so much for your quick reply!  The field I want to create a restriction on is called RESULT_DT_TM.  When I saw the "where" section of the field, I just don't see how I can apply my START_DT_TM and END_DT_TM parameters on this field so that START_DT_TM and END_DT_TM cannot be more than 365 days apart.  If my query does not use parameters called START_DT_TM and END_DT_TM, this "where" section will not be valid? 
    I don't think the solution has to be on the field itself but rather on the parameter START_DT_TM and END_DT_TM.  What I want is that as long as START_DT_TM and END_DT_TM are more than 365 days apart, it does not matter what field these parameters are running against. The screen would then display something saying "your date range parameters for this report must be within 365 days.  Please revise your date range on query".
    Sorry, I am PL/SQL report programmer, and not familiar with what BO can do.  So, is there anyway that can make my dream come true?  Thanks a bunch again, Amr.

  • Searching Date Ranges

    Can you do a search on date ranges in the contains clause? I am using USER DATASTORE so I am able to store alot of information under one index. Included in this information is the date a record was entered. I would like to have the ability to search on a range of entery dates.

    Hi Neil
    Hope the following steps will give the workaround solution to solve the problem
    1a.  Create the characteristic field 'Next Review Date'.
    1b.  In Basic data tab-->Value Assignment :  Tick mark Multiple Values & Interval Values.
    1c.  In Values Tab enter the date ranges that you need to define
              For Example:
                                  01.05.2011 - 30.05.2011
                                  01.06.2011 - 30.06.2011
                                  01.07.2011 - 30.07.2011
                                  01.08.2011 - 30.08.2011
    1d. Save it.
    2a. Assign the characteristic to the class.
    3a. Go to CV01n.
    3b. In Additional Data tab, you can view the characteristic field that you have defined. For example 'Next Review Dateu2019
    3c. Now you can enter any interval values between the dates that you defined for the characteristics.
          For example 10.05.2011 / 20.06.2011 / 25.07.2011 / 30.08.2011 or any value between the range. (If the value is not  
          between the range (ex: 10.12.2011) then the system will throw the error.
    3d. Save the DIR.
    4a. Go to Cv04n>Classification Tab> Press 'F4' key on the characteristic. Now you can select the interval and search the required documents.
    Harris.

  • How to put condition for one date range should not interfear with another ?

    hi friends,
    how to put condition for one date range should not interfear with another  date range.
    my data base table has two fields
    from date
    to date.
    when we enter the date range in the data base , new date range means from date and to date should not interfear.
    can  anybody help me.
    thanks &Regards,
    Revanth
    Edited by: rk.kolisetty on Jul 1, 2010 7:18 PM

    Do it the SAP way....
    First entry...from is today, to is 99991231.
    New dates entered, now we have two rows...:
        from is original date  to becomes yesterday.
        From is today          to is 99991231

  • Searching on date ranges in classification

    Goodday All,
    I'm trying to search on date range within classification.
    I have a classification field 'Next Review Date'. It has been setup as date format.
    Does anyone have any idea how to search on a date range? For example 01.01.2011 to 01.02.2011
    Any help would be appreciated

    Hi Neil
    Hope the following steps will give the workaround solution to solve the problem
    1a.  Create the characteristic field 'Next Review Date'.
    1b.  In Basic data tab-->Value Assignment :  Tick mark Multiple Values & Interval Values.
    1c.  In Values Tab enter the date ranges that you need to define
              For Example:
                                  01.05.2011 - 30.05.2011
                                  01.06.2011 - 30.06.2011
                                  01.07.2011 - 30.07.2011
                                  01.08.2011 - 30.08.2011
    1d. Save it.
    2a. Assign the characteristic to the class.
    3a. Go to CV01n.
    3b. In Additional Data tab, you can view the characteristic field that you have defined. For example 'Next Review Dateu2019
    3c. Now you can enter any interval values between the dates that you defined for the characteristics.
          For example 10.05.2011 / 20.06.2011 / 25.07.2011 / 30.08.2011 or any value between the range. (If the value is not  
          between the range (ex: 10.12.2011) then the system will throw the error.
    3d. Save the DIR.
    4a. Go to Cv04n>Classification Tab> Press 'F4' key on the characteristic. Now you can select the interval and search the required documents.
    Harris.

  • Date range previous year?

    How would I get all records that are in the previous year from the date the report is run?
    Thanks
    Chris

    Hi Chris,
    Are you doing a current vs previous report?  There are two ways to do this.  One is to have two parameters: one for a start date and one for an end date.  When your users enter the date range, set your Record Selection formula to go back 1 year from the start date. 
    {TABLE.DateField} >= Date (Year ({?StartDate} - 1), Month ({?StartDate}), Day ({?StartDate})) And
    {TABLE.DateField} <= {?StartDate};
    The other suggestion would be to use a subreport to query the previous year's data. 
    Good luck,
    Brian

  • Project Online - offline project plan prompts for date range to be entered when accessing Resource Usage view

    When I save a project plan to my local computer from Project Online and open it up in an offline mode and access Resource Usage view I get prompted with Date Range dialog boxes with the first one saying "Show resources/assignments that start or finish
    after:" and the second one with "And before:".
    I don't have any filters that are setup in Project Online that are not available in offline mode to trigger these prompts.
    Please let me know what could be causing the date range prompts. Thanks.

    Hi,
    You probably retrieve an enterprise filter into your local file. Just open the organizer from MS Project, go to the filter tab (be sure to have your project selected in the drop down menu at the top left of right of the organizer) and delete the date range
    filter.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How to translate dashboard prompt year/period into literal date range

    I am using OBIEE 10g. I have a dashboard that prompts for a fiscal year and fiscal period (both are numeric data types). I need to use these values in the date filter for my answers request - however, to fully utilize the indexes and partitioning that have been set up on my fact table (Teradata database) I need to be able to convert fiscal year/period to a literal date range and pass literal date values (i.e. 10/01/2011 - 10/31/2011) to my answers filter. So far I have been unable to do this, I'm hoping someone has some ideas.
    Here are some things I've tried so far:
    In the dashboard prompt, set variables var_year and var_period (which would be set to 2012 and 10, respectively). Create a filter on my answers request for Date (from calendar dimension) that calculates a min/max date value based on var_year and var_period. While this works to return data, the sql is not optimized as it does not contain literal date values for the filter (10/01/2011 - 10/31/2011).
    Create a subreport that takes the year/period from the dashboard prompt and calculates 2 columns, one for the "From Date" (using min calculation) and one for the "To Date" (using max calculation). Then create a filter on my answers request that uses the results of this subreport to create the date filter. Again this works - however, instead of passing the literal date values for from and to dates, it passes the min/max calculations so that these are executed again in the answers request sql. Therefore again this is not optimized, as it is not passing literal date values for the filter.
    I have only been able to get this to work by creating a prompt for entering a from and to date directly, and using this to pass to the answers request filter. This generates optimized sql as it contains literal date values. However, this is not acceptable to the users as they want to enter fiscal year/fiscal period at the dashboard prompt, not a date range.
    I have tried to get the fiscal year/fiscal period columns in the dashboard prompt to set another dashboard prompt for a date range, thinking I could then set new presentation variables for those from/to columns to use in the answers request, but I can't figure out how to do this. Is this even possible, to use a dashboard prompt value to set a subsequent dashboard prompt value?
    Is there some other method of converting these prompt values to literal dates that I am missing?
    Thanks in advance for any help you can provide.
    Rhonda

    Disregard. I gave up and just brought in the Fiscal Period Start Date and Fiscal Period End Date to the rpd so I can use them in the dashboard prompt, created presentation variables for each, and used those in the report filter.

  • Creation of internal table dynamically based on the Date Range entered

    Hi SAPgurus,
    I have been facing one issue i.e creation of internal table dynamically based on the date range entered in the selection screen. For example the date range I am giving as 06/2006 to 08/2006, it should display the Fieldcatelog dynamically, this part i have completed but the only issue I am facing is to populate the sales data into that fields.
    Right now my program is displaying the ALV like this.
    Ex:
    <b>CSR    District   06/2006  07/2006  08/2006  totals</b>      
    Shiva      New York                             10.00
    Shiva      new york                             30.00
    Shiva      new york                             40.00
    but it should display like this
    <b>CSR    District 06/2006 07/2006 08/2006 totals</b>
    Shiva  New York  10.00   30.00 40.00
    80.00                 
    Please help me in this scenario, how to acheive like this..
    Thanks & Regards,
    Sivaram Kandula

    Hi Sivaram,
                 I also got the same requirement . i saw rich and your code whatever you have uploaded.i have created dynamic internal table but i am facing the issue to populating the data to my dynamic internal table.
    Sivaram, can you please explain your code after this.
    *<dyn_table>
    *tab_item.
      LOOP AT tab_item.
        ASSIGN COMPONENT 1 OF STRUCTURE <dyn_wa> TO <dyn_table>.
        ASSIGN COMPONENT 2 OF STRUCTURE <dyn_wa> TO <dyn_table>.
    *    <dyn_wa> = tab_item-bztxt.
    *    <dyn_wa> = tab_item-total.
    *    APPEND <dyn_wa> TO <dyn_table>.
    **    <dyn_wa> = tab_item-total.
    **    ASSIGN tab_item-bezei  TO <dyn_wa>.
    *  APPEND <dyn_table>.
      ENDLOOP.
    how you are puting the loop at tab_item. but tab_item is already commented.
    can you send me the code after that.
    i am sending some part of my code.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
       EXPORTING
         it_fieldcatalog = gt_fCAT1
       IMPORTING
         ep_table        = new_table.
    ASSIGN new_table->* TO <dyn_table>.
       create data new_line like line of <dyn_table>.
       assign new_line->* to <dyn_wa>.
    select vbeln
            fkart
            vkorg
            vtweg
            fkdat
            spart
            fksto
            from vbrk
            client specified
            into table gt_vbrk
            where mandt = sy-mandt
            and fkart in ('ZF5','ZFR')
            and vkorg = '1100'
            and vtweg = '20'
            and fkdat in s_fkdat
            and spart = '06'
            and fksto = ' '.
       if gt_vbrk[] is not initial.
      select  vbeln
              fkimg
              prsdt
              netwr
              matnr
              arktx
              werks
              mwsbp
              from vbrp
              client specified
              into table gt_vbrp
              for all entries in gt_vbrk
              where vbeln = gt_vbrk-vbeln
              and werks in s_werks
              and matnr in s_matnr.
      endif.
    select mnr ltx spras from t247
    into table it_t247
    where spras = 'E'.
    data: lv_month1 type vbrp-prsdt,
           name1(3) type c,
           s_month type string,
            s_month1 type string,
             s_month2 type string.
    *      lv_netwr1 type vbrp-netwr,
    *          lv_mwsbp1 type vbrp-mwsbp.
          loop at gt_vbrp into gs_vbrp.
            gs_final2-matnr = gs_vbrp-matnr.
            gs_final2-arktx = gs_vbrp-arktx.
            gs_final2-fkimg = gs_vbrp-fkimg.
           lv_month1 = gs_vbrp-prsdt.
            read table it_t247 into wa_t247 with key mnr = lv_month1+4(2).
            if sy-subrc eq 0.
            name1 =  wa_t247-ltx.
            endif.
             concatenate  name1
                       lv_month1(4) into s_month SEPARATED BY '_' .
             CONCATENATE S_MONTH 'QTY' INTO S_MONTH1 SEPARATED BY ''.
              CONCATENATE S_MONTH 'VALUE' INTO S_MONTH2 SEPARATED BY ''.
             gs_final2-month = s_month.
              lv_netwr1 = gs_vbrp-netwr.
            lv_mwsbp1 = gs_vbrp-mwsbp.
            gs_final2-MONTH_QTY = S_MONTH1.
            GS_FINAL2-MONTH_VAL = S_MONTH2.
            gs_final2-value = lv_netwr1 + lv_mwsbp1.
           append gs_final2 to gt_final2.
           clear: gs_final2. "lv_name2.
           endloop.
           if gt_final2[] is not initial.
             sort gt_final2 by matnr month ascending .
             loop at gt_final2 into gs_final2.
            gs_final2_01 = gs_final2.
         collect gs_final2_01 into gt_final2_01.
        endloop.
           endif.
       ENDIF..
    Regards
    Ankur

  • How to prompt date range for a single column in reports

    Hi All,
    I am having a prompt which shows from date and to date, both these columns will come from day column of calendar .We want that our report values should be between the from date and to date.Can someone tell me how can this be achieved.Because if we build a report we will pull day column from calendar and say its prompted.How can we get the condition that day clumn should be between from date and to date of prompt.
    Thanks and Regards,
    Amrit

    Hi vineet,
    Thanks for your reply
    I am having one prompt where we will have two columns from date and to date, both these columns are coming from same column called day in mth_calendar.I am having 1 report where the date range should lie between from date and to date of prompt.In this case should I use your second suggestion or the first one.
    Thanks,
    Amrit

Maybe you are looking for

  • How to loading the opening stock balance into Infocube 0IC_C03

    Dear Expers, I have referenced SDN a expert's documentation, but I canu2019t go on at page 10 . Check: How Tou2026 [Handle Inventory Management Scenarios in BW|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0

  • Connect New HD DVI from iPhone to Mac?

    Is it possible? I have it connected but its not detected : ( HD DVI in iphone to HDMI with end going into my thunderbolt/mini display.

  • Software Applications Deleted Report

    Seeing the applications installed report generating data, but I'm not getting any data from Software Applications Deleted Custom Inventory report and I have uninstalled apps through Zen. Any ideas on if this report is working for anyone and if so, an

  • User can not inherited privilege from Role

    DD1 is a new user, CT_GROUP_USER is a role with all tables access right. 1)First, check the privilege of role CT_GROUP_USER select table_name,privilege from dba_tab_privs where grantee='CT_GROUP_USER' we can see CT_GROUP_USER have ALL tables' privile

  • Migrate Default VLAN to another vlan

    Hi We are replacing our core stack of 3750 with a new core setup as a VSS. As part of this migration I want to connect the new core to the old core via trunk links as I migrate the configs over and connections.  My management vlan is currently vlan 1