Request for sample ZXRSRU01 code-  pass to VKF

Hello,
I wrote an earlier mssg but I fear I may have been too complicated in my request.
I would like to pull a BEx variable user entry in and use it to calculate a key figure.
I have the virtual KF code working fine.
I just need help pulling the user value in.
The variable is a single value entry. So I am unsure about the high/low range that I see in most examples.
My include is setup as follows-
*how would I write the code to pull the user entry?
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
REFRESH e_t_range.
*- Steps
CASE i_step.
  WHEN '2'.
    CASE i_vnam.               " Variable name
  When 'VariableTech_name'.
     <insert code to pull here>
ENDCASE.
Additional questions:
1) Is there a way to turn off the filtering of the user entered variable? I would prefer to only use it to just pass the info to CMOD rather than filter out data on the report.
2) Do I need to create special BEx variable? (customer exit, etc) Or will any work with this?
Thank you very much.
- Brandon

Hi KJ,
Thx for the quick reply!
In the code example-
and 'MONTH' represents the variable tech name that we are pulling. And 'CUMMONTH' represents the place we are passing it to?
Is this correct? Then calculations are done in BEx.
I would like to do calculations in ZXRSRF02.
If my infoobject is defined as <ZNEWEST> in my virtual KF code-  How do I get it passed to ZXRSRF02?
I would like to take user entry and pass it to <ZNEWEST> infoobject in my VKF code.
Here is my code as I translated it from the example:
  WHEN '2'.
    CASE i_vnam.               " Variable name
      WHEN 'ZNEWEST'.
      Loop at I_T_VAR_RANGE INTO LOC_VAR_RANGE
           WHERE VNAM = 'NEWTSK'.
        Clear L_S_RANGE.
        L_S_RANGE-LOW      = LOC_VAR_RANGE-LOW(4).
        L_S_RANGE-LOW+4(2) = '01'.
        L_S_RANGE-HIGH     = LOC_VAR_RANGE-LOW.
        L_S_RANGE-SIGN     = 'I'.
        L_S_RANGE-OPT      = 'BT'.
        APPEND L_S_RANGE to E_T_RANGE.
        EXIT.
      ENDLOOP.
Thx!

Similar Messages

  • Request for sample reports developed using report designer

    Hi All,
    Request for sample reports developed using report designer.
    Thanks

    Ramesh,
    right now there really is no way to solve what you are looking for.  There partial solutions, but you will not be able to force a page break in a dynamic report.
    Here is what I have faced, and what I have come up with so far:
    I have a series of reports that have the same column heading, but spread over 5 pages in a fixed structure.  I need to be able to re-use the header and the general report design with 6 reports.  Here is my solution:
    1. Create an outline of the report.  I did all the formatting by creating a report section for each page.  You can force page breaks between the pages.  Upgrade to patch 1502 (came out last week) and you will see some new functionality (such as fit to page, page numbers, etc).
    2. Insert all you page breaks and do all the formatting.
    3. Insert an infoprovider.  Once in, you can just drag and drop the key figure cells into your formatted report.
    4. Create additional modification for formatting as needed.
    This fixes my problem (for now), but I had to do a lot of work to come up with this.  Also, the latest patch (1501 and 1502) has created an issue for me - there is a null exception when I try to use a variable or a filter value in the report body - I can't save the report.  I have an OSS message out, but our BASIS guys are going to be taking the lead on troubleshooting this.
    The reason that you are seeing some customers on the new pages is probably because of "how the cookie falls" - they just fit that way.
    I am trying to be positive and overcome the limitations that are in place right now. If my technical issue is solved, I would recommend upgrading to the new patch (1403 is the latest stable one in my opinion)
    good luck
    Pavel

  • How to create request for extracting company code

    Hi All,
    Can any body guide me how to create a request for extraction of company code 0COMP_CODE_ATTR.
    Actually i have created a request using transport conneciton but while moving this request to quality system i am getting following error.
    DataSource 0COMP_CODE_TEXT does not exist in source system QLTCLNT440 of version A
    Mapping between data source 0COMP_CODE_TEXT and source system QLTCLNT440 is inconsistent
    DataSource 0COMP_CODE_TEXT does not exist in source system QLTCLNT440 of version A
    Field KEY1 will not be delivered from DataSource 0COMP_CODE_TEXT in source system QLTCLNT440
    Field TXTMD will not be delivered from DataSource 0COMP_CODE_TEXT in source system QLTCLNT440
    Start of the after-import method for object type R3TR ISTS (Activation Mode)
    Reference to transfer structure 0COMP_CODE_TEXT_BB not available. No activation possible.
    Start of the after-import method for object type R3TR ISTS (Delete Mode)
    Start of the after-import method for object type R3TR ISMP (Delete Mode)
    Errors occurred during post-handling RS_AFTER_IMPORT for ISMP L
    The errors affect the following components:
       BW-WHM (Warehouse Management)
    Actually i have checked in Quality system 0COMP_CODE_TEXT is availble active. But i think we have to use 0COMP_CODE_ATTR data source...
    Pls help,,,
    Regards,
    viren.

    Hi Viren,
    Glad that your problem is resolved.
    Help.Sap.com is the best reference: http://help.sap.com/saphelp_nw04/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    Also check the "How-To" docs in https://www.sdn.sap.com/irj/sdn/developerareas/bi
    Bye
    Dinesh

  • Content Location request for PACKAGE failed (Code 0x80040102) - How to determine list of DP's returned from the MP

    Hi there
    So, existing SCCM 2012 environment, OSD functioning at other sites, been in use for a while.
    New location, new DP.  PXE boot system, choose the task sequence, and I get the error that the package is not found.
    Look at the SMSTS.log and sure enough I see the 0x80040102 error.  
    I have :
    Removed the offending package and redistributed it.  Verified it is present on the server.
    Verified the boundary has the server as a site system.
    Verified the boundaries have the correct IP range, and the correct Site.
    I have tried it with just a Site boundary and just a IP Range boundary.
    Created a copy of my TS, removed the offending package, deployed.  Same error, just with a different package ID (which tells me that it isn't the package, it is something on the server DP itself).
    Rebooted both the Site server and the DP.
    I'm kind of at a loss, as I would expect to see the DP show up in the below log as a DP, but I don't see it.  It looks like it gets policy, and it shows under the content location request Local: 1 (which I believe says it sees 1 local content location),
    but further below in the log it says Processing 0 Locations.
    Very confused.
    Thanks for any help...
    Content location request: TSPxe
    8/26/2014 10:48:46 AM 1584 (0x0630)
      Package : packageid.3 TSPxe
    8/26/2014 10:48:46 AM 1584 (0x0630)
      Client  : c713c862-e9be-4f67-a6d3-f164e05c29a2
    TSPxe 8/26/2014 10:48:46 AM
    1584 (0x0630)
      Local   : 1 TSPxe
    8/26/2014 10:48:46 AM 1584 (0x0630)
      Remote  : 0 TSPxe
    8/26/2014 10:48:46 AM 1584 (0x0630)
      Internet: 0 TSPxe
    8/26/2014 10:48:46 AM 1584 (0x0630)
    Sending RequestContentLocations for packageid
    TSPxe 8/26/2014 10:48:46 AM
    1584 (0x0630)
    Setting message signatures. TSPxe
    8/26/2014 10:48:46 AM 1584 (0x0630)
    Setting the authenticator. TSPxe
    8/26/2014 10:48:46 AM 1584 (0x0630)
    CLibSMSMessageWinHttpTransport::Send: URL: siteserver.domain.local:80  CCM_POST /ccm_system/request
    TSPxe 8/26/2014 10:48:46 AM
    1584 (0x0630)
    Request was succesful. TSPxe
    8/26/2014 10:48:47 AM 1584 (0x0630)
    ::DecompressBuffer(65536) TSPxe
    8/26/2014 10:48:47 AM 1584 (0x0630)
    Decompression (zlib) succeeded: original size 99, uncompressed size 178.
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    Location Reply: <ContentLocationReply SchemaVersion="1.00"><ContentInfo/><Sites/></ContentLocationReply>
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    Processing 0 locations. TSPxe
    8/26/2014 10:48:47 AM 1584 (0x0630)
    LocationsList.size() > 0, HRESULT=80040102 (e:\qfe\nts\sms\framework\tscore\resolvesource.cpp,2142)
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    FALSE, HRESULT=80040102 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,1863)
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    Content location request for packageid:3 failed. (Code 0x80040102)
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    hr, HRESULT=80040102 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,2626)
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    Failed to resolve PackageID= TSPxe
    8/26/2014 10:48:47 AM 1584 (0x0630)
    (*iTSReference)->Resolve( pTSPolicyManager, dwResolveFlags ), HRESULT=80040102 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,3412)
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    m_pSelectedTaskSequence->Resolve( m_pPolicyManager, TS::Policy::TaskSequence::ResolvePolicy | TS::Policy::TaskSequence::ResolveSource, fpCallbackProc, pv, hCancelEvent), HRESULT=80040102 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,1523)
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    Failed to resolve selected task sequence dependencies. Code(0x80040102)
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    hrReturn, HRESULT=80040102 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediaresolveprogresspage.cpp,445)
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    ThreadToResolveAndExecuteTaskSequence failed. Code(0x80040102)
    TSPxe 8/26/2014 10:48:47 AM
    1584 (0x0630)
    ThreadToResolveAndExecuteTaskSequence returned code 0x80040102
    TSPxe 8/26/2014 10:48:47 AM
    892 (0x037C)
    Setting wizard error: This task sequence cannot be run because the program files for packageid cannot be located on a distribution point. For more information, contact your system administrator or helpdesk operator.
    TSPxe 8/26/2014 10:48:47 AM
    892 (0x037C)

    It was not just driver packages, it was whatever package was next in line in the Task Sequence.
    The issue got even more strange...I added a DP from my central location to the boundary group of the site that was failing.
    Now it pulls from the local DP.
    If I remove the DP from my central location (that is not local to the failing site), then it stops working again.

  • Request for Sample SAP Archive Project Plan

    Dear SAP Practitioner
    My firm is in the mist of planning for SAP Data archiving project. We are looking for sample SAP Data Archiving Project plan and other related documentations. We sincerely hope that you can share for the knowledge of our firm and the rest of the community.
    Regards
    Leonard
    Message was edited by: Leonard Tan

    Hi Kenny,
    Whenever you create a custom (Z) idoc type and want to trigger idocs for it you would need to use the MASTER_IDOC_DISTRIBUTE function module for the same.
    Hence to get some sample programs just do a <i>where used</i> on this function module.
    Hope this helps. Also please refer to the link below:
    <a href="http://">help.sap.com/saphelp_erp2004/helpdata/en/78/21783151ce11d189570000e829fbbd/frameset.htm</a>
    to understand more about not only creating the outbound program using this function module but also about the related SPRO and other configuration.
    Regards,
    Aditya

  • Request for sample code of hr_ex_employee_api.actual_termination_emp

    Hi,
    I need sample code for hr_ex_employee_api.actual_termination_emp . anyone who worked on this api or who have knowledge of this api,Please send the sample code
    Thanks and Regards
    Dixit

    I do not have sample code but it is not a difficult API to call. I have worked on it before, so if you have a specific question on it, happy to help out if I can.

  • Request for sample code, Validating XML Schema

    Does anyone have some sample code to validate
    an XML Schema with the Oracle parser?
    Also, the classgen code seems to have more XML Schema classes in it. There is an xschema.jar full of XML Schema related code. Would it be possible to use this code?
    I've tried DOMSample.java with the v2 parser. It seems to happily echo Schema based XML files that are obviously wrong. (I use Tibco's XML Authority to verify the XML file and XML Schema).

    I do not have sample code but it is not a difficult API to call. I have worked on it before, so if you have a specific question on it, happy to help out if I can.

  • Request for phone lock code - Nokia E7

    I got updation for my E7 to symbian anna. when i am trying to activate phone lock, it asking password and i tried 12345. But the phone shows incorrect password. It is the first time i am trying to enable this option. pls share other lock codes.

    You may have changed your lock code , if you can't remember it  then you'll need take it to your local Nokia care point. Please bare in mind that you will need back up your files first as  any activities  performed by a care point will potentially delete all your data.
    I should stress that there could be an additional charge for the service.
    If this post answers your question, you can help others by clicking the green accepted solution' button.
    Please ask your questions to the main board and not to my mailbox. Thank you.

  • Looking for sample java code for dvt:hierarchyViewer

    Hi.
    We currently use Jdeveloper 11g Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407
    Recently, we have seen some nice demos for Manager-Employees tree. Here is one @ http://jdevadf.oracle.com/dvt-faces-demo/faces/dvtTagGuide/ariaXml.jspx?_adf.ctrl-state=mmpgr9aco_4.
    If I construct hierarchyViewer from master-detail view objects, I can't achieve dynamic levels. So I believe I need to create a treeModel binding to recursively generate the hierarchy.
    Can someone kindly show me a working example for this implementation? Your help is highly appreciated. Now I have to reverse engineer it.
    Sam
    Edited by: user719281 on Sep 2, 2009 2:35 PM
    Edited by: user719281 on Sep 2, 2009 2:35 PM

    Hi Juan,
    Thanks for the quick reply. I already have a similar example http://blogs.oracle.com/shay/2009/07/exploring_the_hierarchy_viewer.html and I made my code work.
    However, I realize I must pre-define view objects (and their levels) to achieve this goal. What if I need to use managed bean to dynamically generate the hierarchy? In other words, the level of hierarchy is unknown at run time, the managed bean must be called recursively to generate the next level of nodes.
    In the current source code,
    <dvt:hierarchyViewer inlineStyle="width:100%;height:600px;" id="hv1"
    value="#{bindings.EventsView1. *treeModel* }"
    selectionListener="#{bindings.EventsView1. *treeModel* . *makeCurrent* }"
    layout="hier_horz_left">
    The hierarchyViewer seems to be built around treeModel but the closest I have found is Frank Nimphius's Re: Building a Tree Table using Recursive table
    Without recursive calling, i don't think I can get similar hierarchy in http://jdevadf.oracle.com/dvt-faces-demo/faces/dvtTagGuide/ariaXml.jspx?_adf.ctrl-state=rka5d3wx6_9. I have been investigating this for last few days. Correct me if I am wrong :-) Thanks again!
    sam
    Edited by: user719281 on Sep 1, 2009 5:17 PM
    Edited by: user719281 on Sep 1, 2009 5:18 PM

  • HT1918 Request for valid security code

    iTunes insist that I "enter valid Security Code" when I already have. I have re-entered all my card info to make sure it is right and I have ample credit available yet I keep getting the decline message and request to enter the right security code. I get this message on both my laptop and iPad. What am I missing?

    Often there is another (billing) issue on your account. Contact iTS and they'll check it out.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Request for C++ ExtractorProcessor code snippets

    Hi,
    Does anyone have any C++ code snippets of using the ExtractorProcessor?
    I'm trying to implement an ExtractorProcessor in C++ - I have created a ValueExtractor and I can create the ExtractorProcessor from that, but the compiler gives me an error when I try to invoke it
    Error     6     error C2665: 'coherence::lang::TypedHandle<T>::TypedHandle' : none of the 4 overloads could convert all the argument types     c:\dcs_systems\test\trunk\ThirdParty\Components\coherence_3_7_1_x86\include\coherence\lang\TypedHolder.hpp     205     D3ContextCache
    This is my call
    int CacheD3ContextRepository::getD3ContextState(int call_id) const
         Integer32::View vKey = Integer32::create(call_id);
         ValueExtractor::View vStateExtractor =
              COH_MANAGED_BOX_EXTRACTOR(Integer32::View, CacheD3Context, getState);
         ExtractorProcessor::Handle vStateFetcher = ExtractorProcessor::create(vStateExtractor);
         Integer32::View vState;// = _cache->invoke(vKey, vStateFetcher);
         return *vState;
    Essentially I have CacheD3Context object but I don't want to read back the whole object just the state field.
    I have been told that something called a 'ReducerAggregator' is a better way of doing this but I haven't been able to find this yet.
    Thanks
    Joe
    Edited by: 841803 on 09-Apr-2013 00:55

    Hi Joe,
    The invoke method returns an Object::Holder, which will need to be cast to the extracted type:
    int CacheD3ContextRepository::getD3ContextState(int call_id) const
        Integer32::View              vKey            = Integer32::create(call_id);
        ValueExtractor::View         vStateExtractor = COH_MANAGED_BOX_EXTRACTOR(Integer32::View, CacheD3Context, getState);
        ExtractorProcessor::Handle   vStateFetcher   = ExtractorProcessor::create(vStateExtractor);
        Integer32::View              vState          = cast<Integer32::View>(_cache->invoke(vKey, vStateFetcher));
        return *vState;
        }Note that when the extraction will be performed server side, the above extractor will be evaluated as a ReflectionExtractor in java, and will invoke the java getState method. This implies you'll need the CacheD3Context (or equivalent) java class in the classpath of your cache servers. If this is not an option then have a look at PofExtractor.
    thanks,
    Mark
    Oracle Coherence

  • Request  for sample Functional Specification for BDC to upload PA40 or PA30

    Hi Experts
    I need to Write a Functional specification to Guide My ABAP team member to write a BDC for uploading data in PA40.
    It would be great if somebody could spare me one .
    Thanks in advance
    Rajeev Chhabra
    <u>[email protected]</u>

    Hi Rajeev,
    Your company might be having standard format of FS.
    Writing a FS for a BDC is not that tough job. You need to provide some basic information such as the file structure to be used in BDC, Number of fields in the file, which fields on the screen need to be populated (you can get the fields technical name by doing F1 on the field).
    I think you can use this as a guideline to write your own FS.
    Regards,
    Atish

  • Request for samples using JavaBeans

     

    Murali Krishna Devarakonda wrote:
              > Going through the Weblogic 4.5 CA JSP samples, I felt that at least
              > one example showing the use of JavaBeans inside a jsp would have been
              > useful.
              We'll do so.
              

  • Looking for sample code of HOW-TO use EntityFacadeImpl class

    I have created the following using JDeveloper Ver 9.0.3.1:
    1. Entity Bean
    Localinterface: userLocal.java
    Local home interface: userLocalHome.java
    Remote interface: user.java
    Remote home interface: userHome.java
    Bean implementation: userBean.java
    2. Facade Session Bean (auto generated by JDeveloper)
    userFacade.xml
    userFacadeColImpl.java
    userFacadeImpl.java
    I am looking for sample client code on how to make use the facade session bean.
    Thanks in advance.

    repost

  • Payment request for customer

    Hi guys,
    payment request for customer T.code f-59 we got an error "Special G/L indicator J for payment request is not a noted item"  urgent
    thanks & regards
    syam

    Hi,
    Goto OBXY and double click on spl. gl indicator J, and then sel.properties button and then select noted items check box.
    Thanks & Regards
    Sunitha.

Maybe you are looking for

  • Smart Album Keyword Bug

    I have a library of 17,440 "Referenced" photos, grouped across multiple projects, none of which contain more than about 400 photos. Prior to importing these images into Aperture, I had already keyworded all of them; the keywords are embedded within t

  • Adobe Acrobat 6 and Adobe Reader 9 Web browser problem

    Good Day, I have a user that has Acrobat 6 and Reader 9 installed on the same computer. Acrobat 6 is used to edit (via open with -> Adobe Acrobat) while for normal reading, they use Adobe Reader 9 (since some files that were created in Acrobat 9 cann

  • Web Reports should open in new Internet Explorer Window

    Hello Gurus, When I execute my bw reports in web, it utilizes the existing IE (internet explorer) window. Is there I can control and specify a new window.. thanks in advance

  • Viewing & Editing PDF In Mobile Phones

    We have been generating online image catalogs from our website, but there is a problem in viewing the pdf in mobile phones if multiple columns & rows are there with images & texts. Also is there any way we can edit the PDF in mobile applications? [ l

  • Unable to download loops after re-install of OS

    I had just ran the software update, downloaded the package, then I re-installed my OS. I am now on 10.8.2, and can't download the loops! Apple software update says I am up to date!