Using SAP Exit Variable twice on the same report

Hello all,
I need to use the same variable -Current Calendar Day (SAP Exit)- to filter against 2 characteristics on the same report.
Unfortunately it's not possible, here the error:
" Variable 0DAT is used in both (structure) element 11T4741S4XTWZUAJ9IQ6DUDE1, and element AZLK9YCS4XGJ940MRPMLXMDS9 for various characteristics (ZCBBIDATE, ZCBPHTDT). This is not permitted as the characteristic is required for the F4 value help structure."
May you please suggest me a way to do it ? Thanks in advance.

Hi
As the 0DAT varaible check the other standard varaible which provides the same function in business content.
Or create a varaible with Customer exit and use it.
In CMOD write the code in like this
WHEN 'ZDAT'
L_ZDAT = Sy-datum.
L_S_RANGE-low = L_ZDAT.
and follow the other codes as you define for other varaibles.
REgards
M.A

Similar Messages

  • How to create/use SAP Exit variable of Query designer

    Hello experts,
    Can you please guide me on how to create/use SAP Exit variables ?
    Is there any way we can transport customer exit include in which we write all codes related to customer exit variables?
    Kindly provide your valuable inputs on this.
    Thanks,
    Mitesh

    Hello Gautam,
    I think you should first implement the user-exit via the transaction SMOD/CMOD and the SAP-Enhancement RSR00001 User-Exit ( BW Reporting )
    For the concrete implementation I would suggest to encapsulate the variables, as it is described here
    Easy implementation of BEx-Userexit-Variables
    and here: BEx-Userexits reloaded
    Kind regards,
    Hendrik

  • Error when using SAP Exit Variable for Current Fiscal Period (0FPER)

    Hi Friendz,
    My requirement is to execute a query for the current fiscal period. I am using the SAP Exit Variable 0FPER.
    I placed this variable on char. Fiscal year/period 0FISCPER.
    When I execute the Query, it is returning the error: No value could be determined for variable ZVBSYCUR; Variables Contain Invalid Values.
    Please give inputs on how to use this variable.
    Regards...
    Ganesh

    Hello Dipika,
    I am also getting the same error.
    ERROR: Variable 0FPER could not be replaced.
    Yesterday we created one customer exit. But this should not affect the SAP Exit right? Till yesterday the 0FPER variable was working fine. I tried re-installing from BI content, but still getting the same error. If anybody has a clue please let me know.
    Thanks,
    Harshal

  • Using an WD Component twice within the same Component

    Hi all,
    our company has made a WD Component for editing business partners.
    My job is to build a WD Component where two business partners (different roles) are edited within the same window.
    My idea was to make 2 separate component usages of the Business Partner WD Component within my component.
    This just works fine. But there is a problem when mapping the context of both Business Partner-Components into my WD Component. There are always naming conflicts. This is because it is not allowed that there are two nodes with the same name in the context, even if they are in different subnodes. Renaming the nodes after mapping them in my component also doesn't work, because it is not possible to rename nested nodes.
    Does anyone know a solution?
    Kind regards,
    Florian

    Hi Anurag,
    thank you for giving me help. You are right, it is possible to use a component twice within the same webdynpro component.
    But the problem is the context mapping in the target component.
    Let me give you an example.
    This is the context of the twice used component.
    CONTEXT
    |
    |->NODE_1
    |  |
    |  |->SUBNODE_1
    |  |  |
    |  |  |->SUBSUB_NODE_1
    |  |  |  |
    |  |  |  |->ATTRIBUTE_1_1_1
    |  |  |  |->ATTRIBUTE_1_1_2
    |  |  |->SUBSUB_NODE_2
    |  |  |->SUBSUB_NODE_3
    |  |  |->ATTRIBUTE_1_1
    |  |  |->ATTRIBUTE_1_2
    |  |->ATTRIBUTE_1
    |  |->ATTRIBUTE_2
    |  |->ATTRIBUTE_3
    Now, if i map this context (NODE_1) to the target web dynpro component I have a problem. I have to map it twice (one time for each used component), so that i can access both used components. But WebDynpro only allows me to rename the node NODE_1. Mapped subnodes (SUBNODE_1, ...) cannot be renamed. So i cannot map the context of both used components, because there are always naming conflicts. WebDynpro doesn't allow that there are two nodes with identical names within the context, even if they are in different subnodes.
    Is there a solution? We really need one.
    Thanks
    Florian

  • Using so_object_send twice in the same report

    Hello All,
    I have a requirement in which i need to send a mail with a certain text to a receiver1. Then in the same report i need to send another text to another receiver2.
    I am calling the function module so_object_send twice to do this.But only one mail is sent with both the receivers in the same mail.But the requirement is that two seperate mails should go to two different receivers.What can be the problem?
    Kindly help,Points will be rewarded graciously..
    Regards,
    Anuj.

    Hi,
    I hope you are clearing the work areas & Internal table after the 1st FM SO_OBJECT_SEND is called.
    Flow should be as follows:
    1) Populate 1st receiver & Email details
    2) Call FM "SO_OBJECT_SEND"
    3) Clear Work area & Refresh Internal tables
    3) Populate 2nd receive & Email details
    3) Call FM "SO_OBJECT_SEND".
    Best regards,
    Prashant
    Best regards,
    Prashant

  • Use a capture device twice at the same time?

    I have write a application using JMF. But I have a big question that how can I use a capture device several times at the same time????
    For example:
    I create a player to play video from my webcam on my PC ,and then I want to send the video stream from my webcam to another PC at the same time. But I failed--only one task can work.
    For example:
    1, I write a class Player and another class RTPTransmit. Then I send the same medialocator to two of them. Then there will be a exception said that capture device is in use. And only one task can work.
    2, I write a class Player and another class RTPTransmit. Then I use :
    dataSource1 = Manager.createDataSource( locator );
    dataSource2 = Manager.createCloneableDataSource( dataSource1 );
    then I send dataSource1 to Player object to play video on local PC and send dataSource2 to RTPTransmit to send video to another PC. But only one task will work too.
    My question is that how can I use a capture device several times at the same time???
    I have tried several ways and sill can not find a method. If anyone know how to do,could you tell me please? Thank you very much.

    Yes ,I use Manager.createCloneableDataSource() method to create the clone of the datasource ,but it can not work too. The java doc illustration is :
    Creates a cloneable DataSource. The returned DataSource implements the SourceCloneable interface and enables the creation of clones by the createClone method.
    If the input DataSource implements SourceCloneable, it will be returned right away as the result. Otherwise, a "proxy" DataSource is created. It implements the SourceCloneable interface and can be used to generate other clones.
    When createCloneableDataSource is called on a DataSource, the returned DataSource should be used in place of the original DataSource. Any attempt to use the original DataSource may generate unpredictable results.
    It means that if I clone a datasoure from original datasource, then the createCloneableDataSource() method will return a datasuouce implements interface SourceCloneable, right ? I see that the intereface SourceCloneable has a abstract method createClone() , but when I use createCloneableDataSource() to get a source clone, I find that I can not use method createClone(), why??? For example: data1 is the
    orginal datasource. Then:
    DataSource data1 = Manager.createDateSource( locator );
    DataSource data2 = Manager.createCloneableDataSource( data1 );
    now data2 is the "proxy" datasource which implemnets the interface, right? But I can not use data2.cloneClone() ,why? Then I write the fllowing code:
    DataSource data3 = Mangaer.createCloneableDataSource( data2 );
    DataSource data4 = Manager.createCloneableDataSource( data2 );
    playOnLocalPc = new PlayOnLocalPc( data3 );
    playOnLocalPc.start();
    rtpTransmit = new RTPTransmit( data4 );
    rtpTransmit.start();
    PlayOnLocalPc and RTPTransmit is my own class to play or transmit video stream. But they can not work at the same time. If I play video from webcam on local PC and then start to transmit stream to other PC , the play window will become black. Why?????It is too strange. Dose anyone know the reason ,please tell me, thank you very much. Giving some example code will be better:) Thank you again!

  • To twice open the same report since the infoview

    Post Author: Guillaume
    CA Forum: Desktop Intelligence Reporting
    Hello, I have a big problem. Detail : 1- I connect myself with the account u201CTESTu201D on the infoview. 2- I open a document u201CAu201D in mode DESKI 3- I refreshed it. 4- During the refresh, i go to another computer and i open a document u201CAu201D in mode DESKI on the infoview (with the account u201CTESTu201D). The second document "A" will open only when first document u201CAu201D finishes this refreshed  I tested with DESKI only (intranet), and i haven't the probleme.  Please, see the attachment. I use Business Objects XI R2 SP1 MHF1 Can you help me Thanks

    Hi,
    I hope you are clearing the work areas & Internal table after the 1st FM SO_OBJECT_SEND is called.
    Flow should be as follows:
    1) Populate 1st receiver & Email details
    2) Call FM "SO_OBJECT_SEND"
    3) Clear Work area & Refresh Internal tables
    3) Populate 2nd receive & Email details
    3) Call FM "SO_OBJECT_SEND".
    Best regards,
    Prashant
    Best regards,
    Prashant

  • Why we use customet exit variables?

    hi friends,
    why we use customer exit variables. can u give me some examples at what scenerio we use
    default/user entry, formula, text, hierchies and hierchies. ( with processing type is customer exit)
    can i get atleast 1 scenerio for 5 types variables?
    Thanking u
    suneel.

    Hi Suneel
    Check info about Exits,
    Replacement Path
    You use the Replacement Path processing type to specify the value that automatically replaces the variable when you execute the query or Web application
    check this link explains step by step
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    Customer Exit:
    If you need to use a processing type other than manual entry/default value, replacement path, SAP exit, or authorization, then a customer exit gives you the option of setting up a processing type for variables, tailor-made to your specific needs.
    The customer exit is designed as an enhancement that you can configure with customer-specific logic
    SAP Exit:
    SAP exits are delivered content variables. Before creating any custom variable exit, its advisable to check if there are any SAP exits delivered to do the same functionality.
    Check these links for SAP and Customer Exits,
    To see SAP Exits -> Use Tcode SMOD
    To See Customer Exits -> Use Tcode CMOD
    There are projects to which Exits are assigned. Selects the relevant projects.
    What is User Exit:
    http://www.sap-img.com/abap/what-is-user-exits.htm
    How to find then:
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    All Exits List:
    http://www.easymarketplace.de/userexit.php
    Thanks,
    Sudhakar.

  • BEx SAP-Exit Variables

    Where do I find documentation on BEx SAP-Exit Variables. What the Exit does and so on?

    Try this link.
    http://help.sap.com/saphelp_nw70/helpdata/en/36/df22419e2ab167e10000000a155106/frameset.htm
    The variables are documented as per BI Content.
    -Saket

  • Filtering criteria using an Exit variable

    Hi,
    I have a requirement as follows:
    There are 2 info objects for Start& End Periods of project.
    There is another Keyfigure(number of months) which is populated by calculating the difference of Start & End periods.
    Now, the filtering criteria would be Start period, End period and number of months.
    When the user enters the Start and End periods of the project and also the number of months, the system shoudl display all the projects matching the above filtering criteria.
    Eg:
    Project1:  Start period : 01.2009
                   End period :  06.2009
                   Number of months : 6
    Project2:  Start period : 02.2009
                   End period :  04.2009
                   Number of months : 3
    Project3:  Start period : 03.2009
                   End period :  05.2009
                   Number of months : 3
    Project4:  Start period : 05.2009
                   End period :  07.2009
                   Number of months : 3
    Project5:  Start period : 05.2009
                   End period :  09.2009
                   Number of months : 5
    Now if the user enters the following the filtering criteria:
    Start period: 01.2009
    End period:  12.2009
    Number of Months : 3,
    the system should display only project2,project3,project4.
    Any thoughts on how to achieve this using an Exit variable? Because the variables Start and End periods are created on 2 seperate info objects.
    Thanks
    Shyam

    Hi,
    I think you should create the two variable..
    One for start period where user puts the start period:- 01/2009 to 01/2009
    Also in the end period user can select the :- 01/2009 to 012/2009.
    in exit variable you can take the user input and add the high value for strat period similar to user input..
    and in the end period user puts the end month and in exit u need to put the start period in low value.
    Hope this helps..
    in this caase, u will get the
    start period value    01/2009 to 01/2009
    End Period Value   01/2009  to 12/2009.
    Regards
    Gopal

  • Comparing fields from multiple entities in the same report (report builder 1.0)

    Created a model that contains 2 entities. I open that model in report builder 1.0.  When I drag a field from one of the entities into the design area, i can no longer see the other entity or use any of the fields from that other entity. 
    I need to use fields from both entities in the same report (join tables).  In management studio i would simply write a query and join tables but i cannot figure out how to do this in report builder.  Once i select a field from one entity
    how do i select fields from more than one entity and drag them into the same report.

    Would it be possible for you to send me instructions for this? I am not that familiar with SQL coding but I can definitely figure it out. I have been wanting to get information on reports from multiple entities for a very long time! The only way I can
    currently do it is have our document management software people write the report for me for quite a large fee. I would much rather do this myself. Right now I can select a few fields from one entity (the main one), some from a second entity under that one,
    but I cannot add any fields from a third entity! Quite annoying and hindering! Thank you :)

  • Variable required for 0DOC_DATE, same as the SAP exit variable 0P_KEYDT

    Hi Gurus,
    I am currently trying to create a query based upon the InfoProvider -  FIAP: Line Item (0FIAP_C03).
    For the Characteristic Net Due Date (0NETDUEDATE) there is a SAP exit variable called Key Due Date (0P_KEYDT).
    I need to replicate this variable for 0DOC_DATE, which is what I need to use in this query.
    I do not have any knowledge of ABAP therefore could you please advise;
    1) Whether this variable can be replicated for 0DOC_DATE so that it defaults to system date - 1 day
    2) What steps I need to take to create this variable
    3) What is the exact ABAP code that I will need to do this.
    If there is a variable that already exists for 0DOC_DATE that acts in the same way as 0P_KEYDT then please let me know.
    Thanks
    Nate

    Hello,
    1&3) goto CMOD - create e.g. ZBWVARS. Add RSR00001enhancement. Modify ZXRSRU01 include.
    You need developer key to do that.
    CASE i_vnam.
    WHEN 'ZDOC_DATE,'.
        IF i_step EQ '2'.
          CLEAR l_s_range.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          l_s_range-low = sy-datum - 1.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    ENDCASE.
    2) In Query Designer create customer-exit variable ZDOC_DATE.
    BR
    Ondrej

  • How to find out the customer exit and sap exit variables created provider?

    Hi all,
    How to identify what are all the customer exit and sap exit variables are been created for an info provider. is there any tables which allow us to find out.
    thanxs
    haritha

    Hello haritha,
           SAP Exit and Customer Exit variables are created for  Characteristics and not for individual InfoProviders.
    So whenever the characteristic is used in the InfoProvider, by selection the appropriate variable the exit can be called.
    So the same Exit can be in one or more InfoProviders.
    Hope it helps.
    Thanks,
    Chandran

  • SAP Exit Variables changes using FM RREX_VARIABLE_EXIT

    Hi BW Group:
                I am trying to made some modifications on Dates fields and for that I created variables as SAP Exit.
    In the code of the standard FM RREX_VARIABLE_EXIT appear a part to include the code for the new variables as RSVAREXIT_XXX_YYY.
    Does any one in the group use a SAP Exit variable before? Do you need to code in this FM?
    Thanks in advance.
                      Norge

    Hi,
      Please chk this URL , hope it may help u .
    http://help.sap.com/saphelp_bw21c/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm

  • Subject: Where are SAP Exit Variables and how to use them in Bex Query

    I have seen references to variables:  0cyear (Current Year), 0CALYEAR (current year), oCALMONTH (Current month/year).
    Under 0CALMONTH characteristic or 0CALYEAR I do not see any of the variables, so how does
    one use these variable in the query. For example I want to create a restricted key figure:  Duration restricted by Current calendar year (e.g.  2009 if I am in 2009, 2010 if I am in 2010..).

    Thanks a lot. Actally, I was looking in my production system and under varaiables I did not find any SAP Exit variables,
    but in development envrionment I do see some.
    Why will it not show me these variables in production? Is it because:
    1. Some special premssion is required to view this type of variable
    or
    2. THese varaiables were not installed from Business Content
    It is hard for me to beleive, it is permission issue.

Maybe you are looking for

  • Can't Enable XMP after BIOS flash to V1.4 on P55-GD85

    I didn't put this in the BIOS section because while the BIOS is involved,  I don't think it's necessarily a BIOS issue.  However, if it should go there please move it. While not new to computers by any stretch I committed the cardinal sin of updating

  • Problem with Image positioning

    Hello everyone I am having a problem with the positioning of an image I want to sit on  top of the background in DW. I want it to sit on top of the background  because I want to use a behaviour effect so that it fades in. Anyway, I  go to Insert and

  • Bad sound from hard-drive music?

    The music stored in iTunes on my mac mini does not reproduce with good fidelity.  E.g., If I import a commercial CD to iTunes, using wav, output is substantially inferior to the source CD -- to the point that it's unlistenable on a decent stereo syst

  • Transaction Code PE51

    Hi , I want to add text in between two lines on the header of the Payslip. I have added the text in the text modules , but am not able to view it  . How can i rectify this . Thanks, Rohit

  • HT1338 How do I know it is updating? I don't see the icon and want to get rid of this tool bar someone put on my desktop

    How Do I know it is updating? I clicked the "19.99" and I was signed in, but it never made me agree to anything, it just says updating.  I don't see any progress bar or anything.