Text-Variables for 12 selection based on 1 Date Variable

Hello.
I have a report where the user is being prompt to enter a start date (YYYYMM) in a variable.  Based on that, my report have 12 selection using the variable + offset(1), + offset(2) .... + offset(11).
For the label of my columns, I'd like to display the the YYYYMM value, what the best way to achieve that?  From what I see, I might have to create 11 variables that are equals to my original variable entered by the user with the use of offset and then create 12 text variables to get that information but I really hope I'm wrong...
Thanks.
Regards,
John

Ok, sounds a better way than defining 24 variables (12 text + 11 Replacement path).
Since I only have one variable (Month Selection by user), however, I'm not sure how to deal with the Offset in ABAP so I can properly assign my ZMONTH02TEXT, ZMONTH03TEXT, ZMONTH04TEXT and so on.  Do you have any piece of code to share ?  (Sorry, I'm pretty new to ABAP and I've been searching this forum for example but can't really find what I'm interested in).
Basically what I need to do is to assign the following:
ZCALMONTH01TEXT = ZCALMONTH --> The actual month is no problem as it's a simple replacement path variable defined
ZCALMONTH02TEXT = ZCALMONTH with offset of + 1
ZCALMONTH03TEXT ...
ZCALMONTH12TEXT = ZCALMONTH with offset of + 11
So it's ZCALMONTH02TEXT to ZCALMONTH12TEXT that I'm not sure how to code in the user exit..
Thanks.

Similar Messages

  • F4 help for a field Based on the data in the other fields

    Hi,
    We have a selection screen(Report Program) with three fields Bill Number, Billing Date and Plant. Bill Number and Plant are stored in one table and Bill Number and Billing Date are stored in another table, Bill number is common in Both the Tables. We want to  have a F4 Help for Bill Number based on Both the Plant and Billing date. For this we are trying to get it thorugh Search Help,, Can any of you help us in this context.
    Thanks & Regards,
    Satish P.

    hi,
    FORM F_GET_details .
    REFRESH INT_RET.
    *--THIS WILL FETCH THE details
    SELECT aBill aplant Number b~BillingDate
    INTO TABLE int_table
                    FROM ( ztable_numplant AS a
                      INNER JOIN
                        ztable_numdate AS b
                          ON  abillnimber = bbillnumber ).
      IF SY-SUBRC NE 0.
    *--MESSAGE IS 'NO data found'
      ELSE.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            RETFIELD        = 'screen field'
            VALUE_ORG       = 'S'
          TABLES
            VALUE_TAB       = INT_tab
            RETURN_TAB      = INT_RET
          EXCEPTIONS
            PARAMETER_ERROR = 1
            NO_VALUES_FOUND = 2
            OTHERS          = 3.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        READ TABLE INT_RET INDEX 1 INTO INT_RET.
        WF_data_needed = INT_RET-FIELDVAL.
      ENDIF.
    ENDFORM. 
    if hlped rwrd points
    anver

  • How to set a default start and/or end date for New Events based on trigger date.

    I'm using the CalendarActivityListener to get current row when clicking on an existing event. As per previous posts this listener gives you access to event detail including Start Date, End Date, etc.
    However, what I want to do is to default the start (and end) dates for New Events based on the trigger date.
    I've tried the CalendarListener and can grab the Trigger Date from it - however, I can't see a way to pass this directly to the popup/dialog I'm using to create the new event.
    At present I'm putting the TriggerDate into the ADFContext session scope e.g. ADFContext.getCurrent().getSessionScope().put("TriggerDate",calendarEvent.getTriggerDate());
    Then, I've tried multiple approaches to try and "get" the TriggerDate from session scope to drop it into my new Calendar Event basically, I'm trying to default the InputField(s) associated with the Start Date using the value from the session - I've tried
    1. setting the default value for the InputField in the jspx using a binding expression i.e. value="#{sessionScope.TriggerDate}" - this actually sets the value appropriately when the jspx is rendered but, when I go to create I get a NPE and I can't debug. I assumed that it might be a Date type issue - it would appear that CalendarListener provides a date of type java.util.Date and that the StartDate attribute of my VO/EO/table is a DATE and therefore requires oracle.jbo.domain.Date so I tried casting it - to no effect
    2. Using a Groovy expression *(StartDate==null?adf.context.sessionScope.TriggerDate:StartDate)* in my calendar's EventVO to default the Start Date to the same result
    Any thoughts or ideas?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

  • Authorizations for WEBI report based on BPC data model

    Hi All,
    We are strugelling with setting up authorisations for the reporting on BPC data model.
    We created Bex query on top of Multiprovider that consists of BPC cube. The Bex query is source for WEBI output. The authorisations has been set up on BPC data model (cube) in BPC application but they are not passed nor to Bex query nor to Webi. Example: The query is build on top of OPEX BPC data model, this data model is restricted based on Oranizational Unit. My test user is allowed to see only Org Unit = 'Australia' in the OPEX BPC data model, however when I'm running the report I can see absolutely everything.
    We are not connecting/using any BI cubes itself for this reporting. We are intrested only in the WEBI report based on BPC data models.
    We were trying to use BPC data model (without any extra settings) as the source for BEx report, we were also trying to use virtual BPC data model as the source for Bex transient query - but non of these have helped.
    Can you please advise how the authorisations should be set up for WEBI reporting on BPC data models?
    Kasia

    Anybody can help with this issue please?

  • Revoking the access for a user based on the date specified by the certifier.

    Hi,
    Is it possible for the certifier to specify a date before he clicks on "Revoke" so that the user access is revoked on specified date in R2 PS2.
    Regards,
    Shiva

    Hi User,
    In the logical column write case when statement
    case when valueof_nqsession(ROLE)= 'Manager' and Restricted_USER='Y' then null else table_name.column_name end
    Use conditions(11g) for the same column and define if the report retrives results show the report wihotu having column if it has results show report with column
    Guided Navigation/Conditions you should use !
    http://total-bi.com/2011/01/obiee-hide-show-sections/
    Thanks,
    Saichand

  • Showing text comment for every selection under dropdownbox

    We retrieve key, value data for a dropdown box from a BI query. Based on the selection under drop down box, we want to display a comment next to it. How can this be achieved in VC without making any further calls to BI? Thanks, MD
    Edited by: Maulin Doshi on Dec 2, 2009 1:24 PM

    Hi,
    This is possible if the no.of values for that dropdown are limited.
    one of the ways you can do this is to have text fields  beside the dropdown  where you can have comment for each value in the dropdown and write the visibility condition for each of the text fields based on the value in the dropdown.
    hope this helps,
    Regards,
    Rk.

  • Stock report for a period (based on posting date)

    Hi Experts,
    We have a requirement as under:
    1) We want a report for a period say from 01.04.2011 to 30.09.2011 (closed period for both MM and FI postings). Report is being taken on a later date say 01.12.2011.
    2) The report should say the status of stock as of 30.09.2011 only even of being taken in the month of December
    3) I tried to take the desired report through MB5B for the period 30.09.2011 to 30.09.2011 (selection date fields) on 20th december, 2011 and noticed that if same report with the same selection criteria is taken at two different times, output data is not the same whereas MM and FI posting periods are already closed.
    Can anybody suggest alternative SAP standard report where output will remain the same if report with same selection criteria is taken at different intervals ELSE in case of change we should be able to see the documents posted in between if back dated entries have been posted after opening MM /FI period.
    thanks

    sure it speaks the same, but it mentions as well the reasons (1) and has much more information (2)  and a solution.(3)
    1)
    user starts transaction MB5B for a very large number of materials or for all materials in a plant
    During the runtime of transaction MB5B, goods movements are posted in parallel:
               - The results of transaction MB5B are incorrect.
               - Each run of transaction MB5B returns different results for the same combination of "material + plant".
    Example: Transaction MB5B should process 100 materials with 10,000 MM documents each. The system takes approximately 1 second to read the material master data  and it takes approximately 1 hour to read the MM and FI documents. A goods movement for a material to be processed is posted approximately 10 minutes after you start transaction MB5B. The stock for this material before this posting has already been determined. The new MM document is also read, however. The stock read before the posting is used as the basis for calculating the stocks for the start and end date.
    Even for an old and closed period, MB5B starts today and calculates backwards  any movement to finally get the stock for  the time your specified in your selection.
    2)
    The SAP standard release does not include a solution
    so you have to understand that there is no real alternative transaction in SAP
    3) and then they provide a large section with a workaround that can be developed by an experienced programmer within 3 to 5 days.
    So how shall anyone here be able to tell you an alternative report?
    if someone does, then it is an owndeveloped z-report which is not available in your sap system.
    if you know that people want lookup period closing stocks at any time in future, then either schedule MB52 at month end and store the list somewhere (and do not allow backposting)
    or have an Abaper create a stock report based on the history tables MARDH, MCHBH, MBEWH etc.
    And even here you may encounter an issue at some day, if you start archving special stocks or material masters, because then the stock figures from the historic tables are gone and you cannot rebuilt a reliable stock report .

  • SQL (Select) based on Excel data

    Hi
    I have accounts & their status in a Excel file (like below)
    Account     status     
    1111     1
    22222     11
    I have like 300 rows in excel file
    (sometimes Account will have only 4digits, in that case I want to append '0' in the front)
    (sometimes status will have only 1/2digits, in that case I want to append '00', if its one digit and '0' if its two digit)
    I want to write a select statement based on those, for example (in this case)
    SELECT * FROM SUPPLIER
    WHERE (Account = '01111' AND Status = '001')
    OR (Account = '22222' AND Status = '011')
    How do I write the select for all 300 rows(in excel) at one time? I don't want to use(create) tables. And I am using Oracle version 9
    Thanks

    Hi,
    I assume this question is just about how to format the numbers, not about directly reading the Ecel file.
    To use different formats in different situations, all in the same column, use CASE to to choose the appropriate format, like this:
    WITH     my_excel_table     AS
    (     -- Begin test data
         SELECT     1 AS n     FROM dual     UNION ALL
         SELECT     22     FROM dual     UNION ALL
         SELECT     333     FROM dual     UNION ALL
         SELECT     4444     FROM dual     UNION ALL
         SELECT     55555     FROM dual     UNION ALL
         SELECT     666666     FROM dual     UNION ALL
         SELECT     7777777     FROM dual
    )     -- End test data, cut here
    SELECT     n
    ,     TO_CHAR     ( n
              , 'fm'     
                ||
                CASE
                   WHEN     n < 1000     THEN '000'
                   WHEN     n < 100000     THEN '00000'
                                  ELSE '9999999999'
                END
              )     AS f
    FROM     my_excel_table
    ORDER BY     n;The code above produces:
             N F
             1 001
            22 022
           333 333
          4444 04444
         55555 55555
        666666 666666
       7777777 7777777As written, this assumes the numbers are all non-negative integers, but it can be modified.
    Message was edited by:
    Frank Kulash
    Sorry if this confused you. I see now that it doesn't really answer your question.
    You can use TO_CHAR separately on the two columns:
    TO_CHAR (account, 'fm00000')
    TO_CHAR (status, 'fm000')
    or use LPAD, as Visu demonstrated.
    Only use these things for display. In the WHERE-clause (and similar places), you can use leading zeros if you like, but do not use quotes, that is, just say "account = 1111" and "status = 1", or, if you prefer, "account = 01111" and/or "status = 001".

  • Selecting based on current date

    I wonder how I can set a value in a table based on the current date. I have viewed most of the posts and I found that it is straight forward to get current date. But my problem is to pass that current date for the comparison in my select statement. For example
    I can get date using the select statement but I don't know how to use it in the next select statement. See below
    select sysdate
    from dual;
    Like here,
    UPDATE PAYMENT (payment_date)
    SET (sysdate) /* this does not work */
    WHERE pid='8';
    So what do I need to do to set the payment_date field correctly? (for the reference my PAYMENT table is shown below for clarity)
    CREATE TABLE PAYMENT     
         (pid          VARCHAR(15)          NOT NULL,
         rid          VARCHAR(15)          NOT NULL,
         payment_date     DATE,               
         due_date     DATE,
    PRIMARY KEY(pid));
    I would very much appreciate your response. Thank you.
    Edited by: user10653046 on Nov 30, 2008 12:30 AM

    If I'm not mistaken, you are asking about the basic syntax of an UPDATE statement?
    You can find that in the SQL Language Reference. A link to the part where it talks about the UPDATE statement: http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10008.htm#SQLRF01708
    An example:
    SQL> CREATE TABLE PAYMENT
      2  (pid VARCHAR(15) NOT NULL,
      3  rid VARCHAR(15) NOT NULL,
      4  payment_date DATE,
      5  due_date DATE,
      6  PRIMARY KEY(pid));
    Tabel is aangemaakt.
    SQL> update payment
      2     set payment_date = sysdate
      3   where pid = '8'
      4  /
    0 rijen zijn bijgewerkt.Regards,
    Rob.

  • Customer exit code for fiscalyear period based on system date

    Hi Experts,
    Please provide customer exit code for fiscalyear period derive based sy-datum. Fiscal year period derivie current to previous 12 periods and current to fast 12 periods.
    Thanks,
    Subbaraju

    Hi Subbaraju,
    Please use below customer exit code for your solution. Please define declarations as per requirement.
    When 'ZFPERIOD'.
    IF I_STEP = 2.
    ztoday = sy-datum.
    zfast = sy-datum + 365.
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
      EXPORTING
        i_date               =  ztoday
        i_periv              = 'K4'
    IMPORTING
       E_BUPER              = PERIOD2
       E_GJAHR              = YEAR2.
    CONCATENATE YEAR2 PERIOD2 INTO FISCPERLOW.
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
      EXPORTING
        i_date               =  zfast
        i_periv              = 'K4'
    IMPORTING
       E_BUPER              = PERIOD2
       E_GJAHR              = YEAR2.
    CONCATENATE YEAR2 PERIOD2 INTO FISCPERHI.
    L_S_RANGE-LOW = FISCPERLOW.
    L_S_RANGE-HIGH = FISCPERHI.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    Similar code user for your previous periods also.
    Thanks,
    Chandra

  • Difference in output for asset report based on report date

    Dear all,
    Our fiscal year is Jan- Dec.
    In Asset balance report S_ALR_87011963,when I give report date as 31.07.2011, in output it is showing the value in every field as zero.
    But if give 30.06.2011 or 31.08.2011 or any other period end it is showing correctly values like acquisition,accumulated depreciation and net book value.
    Any of have any idea on this?
    Your help is much appreciated.
    Thanks in advance.
    Kumar

    Hi Bernhard,
    Thanks for your reply.
    It is happening only for some assets.
    Could you please elaborate your explanation on this.
    Only for July ending (31.07.2011) values are coming as zero.
    Thanks,
    Kumar

  • Wrong period values in Text template for upload of Plan data (KP06/KEPM)

    Hi,
    We are facing an issue in the upload template in text format for Upload of Cost Centre Planning data (Transaction KP06) in ECC 6.0.
    We have some User defined layouts for Excel upload of plan data. If we save the file as a text (tab delimited) file, the Period values above the Column"Period" do not correspond to the correct periods in ECC 6.0. for e.g. the values above Period 1, Period 2, Period 3 are shown as 6, 5, 4 instead of the correct values 1,2,3. These values are considered by the system for uploading the Planning value in the appropriate Periods and hence the values entered in the Column Period 1 in the text file are incorrectly uploaded by the system in Period 6 based on the values generated by the system in the text file.
    However, we do not encounter this issue in the 4.6C system where the values are correctly shown.
    We are facing a similar issue with the text upload template for Sales Planning data in CO-PA (Transaction KEPM), where the values generated by the system do not correspond to the correct period.
    Regards,
    Rajaram

    Hi Christian,
    Thanks for the quick reply, i followed your earlier reply in the below thread and resolved the issue. Thanks.
    How to delete CO plan data
    Hi Ajay,
    Thank you, We are uplaoding through KP06, Menu -->Extras --> Excel Planning --> Upload.
    Regards,
    Raj

  • Calculate difference in value based on two date parameters

    Hi All,
    I have a table and need to calculate the difference in rent amount for a property based on two date parameters.
    I have uploaded sample data here:
    https://app.box.com/s/pu8oa4f3jhrhm0ylshdz2fuo7541vn4z
    Thanks
    Jag

    Hi jaggy99,
    Do you have the knowledge of
    Excel Add-In? If you don't have knowledge of C#/VB.NET language and Visual Studio, I don't think Excel Add-In is what you want. As I said previously, your problem is totally about the business logic, we don't provide solution for a complete requirement.
    Based on your sample data, I think VBA code is suitable.
    If you're not familiar with VBA, please take a look at the MSDN documents for scratch:
    Getting Started with VBA in Excel 2010
    The steps should be like this:
    1. Sort all the records by [Rent Change Date] field
    2. Loop throuth the records and find the FromDate and ToDate as well as the corresponding [Rent Charged] field
    3. Calculate the difference and save the data into a new range
    It's not so hard, please have a try, if you encounter any development problems, you can post in this forum.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Budget Check Based on delivery date on FM

    Hi Experts,
    Is there any way to control budget check for PR/PO based on delivery date and not the posting date in FM?
    Appreciate your help. Thanks !

    It can be done with T-code OF39.
    <a href="http://img221.imageshack.us/i/of39.png/">[IMG]http://img221.imageshack.us/img221/1507/of39.th.png[/IMG]</a>
    Credit to Eli Klovski for his wonderful post.
    Best Regards,
    zalazax

  • Problem in displaying dates for replacement path with text variable

    Hi all,
    I have to display dates in sequence as descriptions for 15 columns based on the the date entered by the user in Bex Report.I managed to display date as description using text variable with replacement path for single column.I could not able to increment date for other descriptions.Could you please help me to solve this issue.Its urgent.
    Ex: User enters 03/09/2007 then in the out put desciptions for the columns should be  03/09   04/09  05/09 ............ 17/09.
    Thanks in advance.
    Regards,
    Mandadi.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

Maybe you are looking for

  • Call stored function / stored procedure from JAVA/JPA and pass array

    I fail calling a plsql function from java with jpa - it works perfect without the array but its not working with the array: PLSQL Function: function getHtml(pWhere VARCHAR2 DEFAULT NULL, pColSort HTP.STRINGARRAY) return clob is begin errorhndl.Log(pM

  • Can we report on 2 fact tables

    Hi All, We have 2 star schema's. Lets say Star A and Star B. In both we have a Common dimension Dim D. As we can see now we have a connection between Star A and Star B with the same Dim D, Like Star A -> DimD < - Star B. So, When I try to built a Ans

  • XMII versus XI/PI

    Hi Folks, I have requirement from client where they want to directly interact with MES using XI : I have few questions regarding this : 1. Is xMII a prerequisite to interface with MES ? 2.  How XI/PI can exchange data with MES using a prebuilt adapte

  • InDesign 5.5 crashes on startup in Mountain Lion

    After migrating my files from my old MacPro (OS 10.7.5) to my new iMac (OS 10.8.2), I notice that InDesign 5.5 crashes on startup. I've read some of the posts in this forum and elsewhere, but can't seem to find a solution. Is there a solution to this

  • Want to update my StarOffice 9 version but can't get access to update 9.1

    Hi, I bought StarOffice in 2009 and want to update it to version 9.2. This is a public accessable download however I need to first install version 9.1 and strange enough it sends me to a support page where I have to input an Service ID. I'm running a