Need to populate Y or N based on some logic in Bex Report

Hi Experts,
I have a report requirement following are the details:
1. ENDDA is a characteristics DATE field coming from Info Provider.
2. Now if ENDDA < Report Run Date we need to populate N in report field
3. If ENDDA > Report Run Date we need to populate Y in report field.
would be great if some body can give some insight into the approach to follow and achieve this requirement.
Regards
Raj Rai

Hi
Now i have created a CKF with two formula variables:
Var 1 is replacement path variable which is taking ENDDA time characteristics as its reference value.
Var 2 is SAP Exit formula var bringing in the report run date.
Issue:
Var1 date format is MM/DD/YYYY
Var2 date fromat is MMDDYYYY
we need to substract these two in order to get the difference in days but for that the date format have to be uniform for both variables. In SAP Exit i tried appending the '/'value b/w MM, DD & YYYY but its showing x when i look at query o/p.
I checked the code by executing the query in RSRT in debug mode and checked the value of L_S_RANGE which is perfect in 05/24/2011 but the same value in var o/p in showing X at query side.
Any pointers would be help ful
Regards
Raj Rai
Edited by: Raj Rai on May 24, 2011 10:01 AM

Similar Messages

  • Rearrange rectangular cards based on some logic

    Hi,
    I am looking to implementing the following.
    I have a page which has a scroll viewer and this scroll viewer holds a list of cards [ Rectangular grids of some height].
    It is very obvious that these cards appear in the scroll viewer based on the order they are in XAML.
    But in the on navigated to event, I want to change the order of these cards based on some logic and then shown the cards accordingly during run time.
    Could you please help me on how this can be achieved.

    Hi Naveen,
    >>I have a page which has a scroll viewer and this scroll viewer holds a list of cards [ Rectangular grids of some height].
    Could you please tell us how did you show the card list? Any code snippets will be helpful to understand your implementation.
    If the data was loading from a collection, you can consider using
    LINQ OrderBy to reorder it.
    For example, to get a random collection, we can do like this:
    var result = collection1.OrderBy(elem => Guid.NewGuid());
    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.

  • Determine the Struture columns Based on User Entry in Bex Report

    Hello Experts,
    I have requirement as below.
    Requirement: Create a Bex report to Display Credits and Sales based on Fiscal Period in Rows and Profit centers in Columns ( PC1, PC2, PC3....PCN where N is Number of Profit centers a user entered in Selection screen).
    I want to take Fiscal Period, Sales and Credits in Rows and Each profit center in Seperate Columns. The Tricky part is, I cannot define a structure with fixed number of Columns since User can Enter any number of Profit Centers in the selection Screen.
    To put it simple terms, I have to Pass the Profit Center Variable Values to the Structure and Determine the Number of Columns in the Structure Dymanically at runtime..
    Can this be done. If so Please let me know the Solution.
    Thank and Regards,
    Prashanth

    Hi Pasha,
    Thanks for responding back.
    Actually there are 2 other Columns that I did not mention above. First Column is to Display values for all Profit Centers and the other Column is to Display the difference of Total - 'Values of all the Profit Centers that the user has selected'. Im not sure how it will work if I put the PC Char outside the Structure.
    Please let me know If you have some more thought.
    Thanks,
    Prashanth

  • Need to display the BW documents as a column in the Bex report

    Hi,
    I know, from Bex you can Goto "Goto -> Documents" or "Goto -> Documents for navigation status" context menu to display documents.
    But I was wondering, is there a way to display the documents as a column in the report, instead of going through the menu?
    Thanks a bunch.

    Sonali,
    the very purpose of it being a document is that it can have any data that might be required to identify the value like an image etc... this would be the reason why you cannot display the document directly on the page..
    Options are :
    1. When loading the data - have a routine that looks into the document and populates the text attribute of the IOBJ
    2. Use a virtual characteristic to pick up the value of the characteristic and fetch the document content ( Not sure if this can be done )
    3. If you are using Web reporting - use the table interface to fetch the value of the document and put it into the cell.
    Arun
    Assign points if it helps..

  • Need logic in Bex report

    Hi
    I have a QM report. The fields in the report are Notifications and HSE advisor are Info objects and Total number of notifications is a key figure.
    The data in the infocube is
    <b>Notification--HSE Advisor----Total number of notifications</b>
    1500----
    1
    1500--XYZ--
    0
    1501--ABC--
    1
    Now I created a report with this data. with codition Total number of notifications is equal to 1 for notification. My report is dispalyed like below.
    <b>Notification--HSE Advisor-----Total number of notifications</b>
    1500--Not Assigned--
    1
    1501--ABC--
    1
    Now my issue is without removing conition. the report should display data for HSE Advisor. like shown below.
    <b>Notification--HSE Advisor-----Total number of notifications</b>
    1500--XYZ--
    1
    1501----
    ABC -
    1
    Can anybody help me with logic, how to solve this issue.
    Thanks in advance
    Narendra

    Hi Pankajm
    Thanks for replying.
    The data in IC is
    <b>Notification--HSE Advisor----Total number of notifications</b>
    1500--BLANK -1--
    (loaded on 28.09.07)  
    1500--XYZ0--
    (loaded on 01.10.07)
    1501--ABC1--
    (loaded on 02.10.07)
    Now my report is designed in such way not display the notifications which has Total number of notifiaction is equal to 0. The report will display only The total number of notifications is equal to 1 (using condition in the report)
    As per the design the report is dispalyed like shown below
    <b>Notification--HSE Advisor----Total number of notifications</b>
    1500----
    BLANK -
    1
    1501--ABC--
    1
    This report will not displayed the record below due to condition.I am missing HSE Advisor data in the report.
    <b>Notification--HSE Advisor----Total number of notifications</b>
    1500--XYZ--
    0
    Now my report should display the data like shown below (with out removing condition).
    <b>Notification--HSE Advisor----Total number of notifications</b>
    1500--XYZ--
    1
    1501--ABC--
    1
    Thanks in Advacne
    Narendra

  • Need to populate unique key based on the combintion of rows

    Hi
    I have one table like this below.
    ID PUB_DATE PUB_NAME PP SECTION PAGE_No
    20080225 TR 1AB L 004
    20080225 TR 1AB L 004
    20080225 HN 1AB L 002
    20080225 HN 1AB L 002
    20080225 WW 1p1 L 001
    20080225 WW 1p1 L 001
    I need to populate unique id for ID column based on the combination of rows.
    Exampl:
    We know that first two records are same, then i will populate ID as 1 for these two records. Then next two records are same , then i will populate ID as 2 for these two records.
    I need to populate ID as follows.
    ID PUB_DATE PUB_NAME PP SECTION PAGE_No
    1 20080225 TR 1AB L 004
    1 20080225 TR 1AB L 004
    2 20080225 HN 1AB L 002
    2 20080225 HN 1AB L 002
    3 20080225 WW 1p1 L 001
    3 20080225 WW 1p1 L 001
    Please anybody help me?.
    Thanks

    Get a programming logic book, look at master file versus transaction file (typically uses a bank as the business example). Try this yourself yet? Any PL/SQL experience? Or is this your homework assignment?
    And look up what the definition of unique means in Oracle. Title of your thread is very misleading.

  • How to populate Second drop down based on the first drop down value

    Hi Experts,
    i have a HTML BSP page. with 2 drop down with SELECT and OPTION tags. i need to populate the second drop down based on the first drop down value.
    i tried HTMLB script they work good as stand alone when i try to embed the HTMLB with HTML it does not work.
    Please can you give me a solution only with ABAP script and HTML.
    please clearly let me know on what event i should implement it. sample code is really appreciated .
    With regards,
    Chella

    You can have event handler for first drop down . Then populate the data for 2nd field when the event triggers on first field.

  • Populate a select list based on sql query

    I need to populate a select list using an sql query based on the value value I get from the previous page sent using link . How can I achieve this behaviour ? I tried giving select app_item_id a,app_item_id b from app_item_definition where app_id = :P11_APP_TDL_ID order by 1 in LOV, but it doesn't work . Please advice .

    Okay, I just had the right idea and it's working well! Sorry for posting!
    I return the name of the employee that has edited a dataset and simply add all others of the logged on department! Really easy! Should have thought of that before posting! ;-(
    The correct code is select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter a, vt_tbl_punktdaten b where a.cnt_bearbeiter = b.int_bearbeiter and
    inv_pt_id_sub = :P4_PTIDS
    union select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where int_behoerde in (SELECT
    CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK where STR_REGIERUNGSBEZIRK = lower (:app_user))Bye,
    Seb

  • Need to Populate Material Type from ECC to APO Product Master

    Hi All,
    I need to update the material type field from ECC to APO.
    I am using the userexit CIFMAT01 and component EXIT_SAPLCMAT_001.
    I need to extract field MTART from MARA table and need to Populate it in APO Product master.
    In APO i am using the ATT01 field of table /SAPAPO/MATKEY.
    But this does not work the data of material type is not getting populated in APO.
    We have tried to use a break point in the user exit and while executing the transaction CFM2 it does not stop at the break point.
    Can anyonwe guide me as to how to go about in implemeting this user exit.
    Regards
    Nitin

    Hi Nitin,
           Make sure that u r pass the material type as a below :
    CT_CIF_MATKEY-ATT01 = Pass the Material Type.
    CIF_MATKYX -ATT01      = 'X'.
    Check the below thread to debug the CIF queue:
    debugging CIF user exit
    Regards,
    Siva.

  • I need help with event structure. I am trying to feed the index of the array, the index can vary from 0 to 7. Based on the logic ouput of a comparison, the index buffer should increment ?

    I need help with event structure.
    I am trying to feed the index of the array, the index number can vary from 0 to 7.
    Based on the logic ouput of a comparison, the index buffer should increment
    or decrement every time the output of comparsion changes(event change). I guess I need to use event structure?
    (My event code doesn't execute when there is an  event at its input /comparator changes its boolean state.
    Anyone coded on similar lines? Any ideas appreciated.
    Thanks in advance!

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • Need to populate description  beside its selection screen

    Hi
    I need to populate description of the following field beside its selection screen.
    can someone guide and help..
    for eg:
    If i enter 1 in the selection screen. its following description shd be populated next to it
    Kamlesh

    I tried working on ur logic.
    the error which I am getting is as follows:
    Kindly help me with the error.
    the name of the comment can be up to 8 character long. can u help me wht shd i put
    code is below
    selection-screen: begin of line,
                      comment 1(7) p_shift_desc,
                      position 33.
                    position 1(8) COMMENT p_shift_desc FOR FIELD P_shtim,
                     COMMENT 13(35) p_sht_de.
    parameters :      p_shtime TYPE tc37a-kaptprog OBLIGATORY.  " Shift
    selection-screen: comment 50(40) p_sht_desc,
                      END OF LINE.
    atselection this is the code written.
    tables : tc37t.
      DATA : lv_shift TYPE tc37t-kaptprog.
            lv_shiftd type tc37t-ktext.
      SELECT kaptprog
          UP TO 1 ROWS
        INTO lv_shift
        FROM tc37a
       WHERE kaptprog EQ p_shtime.
      ENDSELECT.
      IF sy-subrc NE 0.
        MESSAGE e034 WITH text-002 p_shtime text-003.
      ENDIF.
      IF NOT p_shtime IS INITIAL.
        SELECT SINGLE * FROM tc37t  WHERE spras = sy-langu AND kaptprog =
        p_shtime.
        IF sy-subrc = 0.
          p_shift_desc = tc37t-ktext.
        ENDIF.
      ENDIF.
    ENDFORM.                    " validate_shift

  • Need to populate sequence value in a field after insert in oaf page

    Hi All,
    I have a custom OAF insert page in that i need to populate a sequence value to a field once the data inserted successfully to the table.
    so for that i followed the below approach.
    1>Created a sequence in database.
    2>In the EOImpl java file in the setter method for the respective field have written below code.
        public void setContainid(Number value) {
            if (value == null) {
                    OADBTransaction t = getOADBTransaction();
                    value = t.getSequenceValue("XXXXX_CONTAIN_SEQ");
            setAttributeInternal(CONTAINID,value);  
    But still i am not able to populate the sequence value for the field in my oaf page,please help me out on thsi.
    Thanks

    Hi,
    Write this logic in create method of EOImpl:
      public void create(AttributeList attributeList)
        super.create(attributeList);
        OADBTransaction transaction = getOADBTransaction();
        Number contID = transaction.getSequenceValue("XXXXX_CONTAIN_SEQ");
        setContainId(contID);
    --Sushant

  • Need for Portal to support BEx Report (Excel based) in BI7.0

    Experts,
    We are on BW 3.5 version and upgrading to BI7.0. We have all the reports so far is Excel Based (no web reporting). Do we need to have portal implemented for our BW report to run after upgrading to BI 7.0? In other words, is Portal mendatory to have to run any BEx Report in BI 7.0 invironment? Thanks.
    NP

    Hello Nimesh,
    No, in BI7.0  BEx Analyzer is still supported. Portal is used only for web reports and if needed these web reports can be exported to excel or pdf. It is not mandaory to have portal to see BEx reports.
    Thanks
    Chandran

  • I need to populate the Document Currency in the COPA analysis. At the movem

    I need to populate the Document Currency in the COPA analysis. At the movement Overhead reporting is Profitability Analysis Cube in BW. Now they want to Include the document currency in the reporting and they want add the field document currency and currency key. Can any one tell how to create the Document currency in COPA Analysis please. Thank you

    Hi,
    CO-PA will only store values in either operating concern currency or company code currency (if active). The fields FRWAE and KURSF are just for the line item display in transaction KE24 when pressing 'entry/op currency'.  COPA does not store values in the document ccy.
    The 'foreign currency' in the PA line item always contains the currency that was used for the conversion, but does not contain the document currency of the original document. So only in case the document currency was used for the translation of the PA values the foreign currency will  be equal document currency.
    In case of SD documents, CO-PA always uses the document currency as base of the conversion in order to transfer values of statistic condition types consistently.
    In case of FI/MM documents system uses the company code ccy as the base for conversion into operating concern ccy (foreign ccy).
    regards
    Waman

  • Need to populate 'Order' field for Frieght charges related GL account item

    When we are creating Billing Document for outbound deliveries, we need to populate a spcific value (which is fetched from a bespoke table) in the 'Order' field (COBL-AUFNR) corresponding to the Frieght Charges related GL Account item in the accounting document.
    Can anyone please suggest which user-exit/badi/bte we can use to implement this enhancement?
    I have seen that there are some user-exits with names such as EXIT_SAPLV60B_XXX ('001' to '008') and several others. Please suggest some useful solution.

    Hi
    U can use the exit 004, 005 and 006.
    Max

Maybe you are looking for