Creation of virtual characteristic

I have to create a virtual characteristic (ZVCDOCNO) same as another object (Document Number - ZDOC_NO).
This virtual characteristic should have same data as Document number but should contain values that begin with 11.
I have checked the forum and found some good inputs, but all of them have been done using BADIs.
Is there any other method other than BADIs?
Solution suing BADI
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e051fda8-71a9-2a10-ac9e-8d17414a8c8c?QuickLink=index&overridelayout=true]
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e34f63-f44c-2c10-488e-c89b04e0ca7c?QuickLink=index&overridelayout=true]
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b04be008-86cc-2c10-4bad-e517ea3f4c80?QuickLink=index&overridelayout=true]
Using BADIs what will be the DEFINE and COMPUTE codes.

I created and interface.
In the Class interface
Attributes tab
Attribute          Level              Visibility     Typing    Associated Type
P_CHA_ZDOC_NO      Instance Attribute      Public         Type      VBELN
P_CHA_ZVCDOCNO     Instance Attribute      Public         Type      VBELN
In Methods tab
IF_EX_RSR_OLAP_BADI~DEFINE
method IF_EX_RSR_OLAP_BADI~DEFINE.
  CASE i_s_rkb1d-infocube.
    When 'ZBKDSO'.
      Append 'ZVCDOCNO' to c_t_chanm.
  ENDCASE.
endmethod.
IF_EX_RSR_OLAP_BADI~COMPUTE
method IF_EX_RSR_OLAP_BADI~COMPUTE.
FIELD-SYMBOLS <fs_zdoc_no> TYPE /BI0/OIZDOC_NO.
  FIELD-SYMBOLS <fs_zvcdocno> TYPE /BIC/OIZVCDOCNO.
If P_CHA_ZDOC_NO is not initial.
ASSIGN COMPONENT P_CHA_ZDOC_NO OF STRUCTURE c_s_data to <fs_zdoc_no>.
IF <fs_zdoc_no>(2) = '11'.
<fs_zvcdocno> = <fs_zdoc_no>.
ENDIF.
endif.
endmethod
I still find some logic missing.  What are the changes to be done to code?

Similar Messages

  • Batch Creation Date  as a Virtual Characteristic in 0IC_C03 Inventory Cube

    Dear Experts
    Currently we have a Stock Aging report based on Document date. But our management requirement is Batch date wise.
    Currently I am having Batch Creation date as an Attribute of 0Material info Object.
    Is it possible to create a Virtual Characteristic for Batch Date and Include in the Cube?
    If Possible please explain me the Procedure to Create Characteristic.
    Thanks in Advance.
    Viru
    Edited by: Lankem-IT on Apr 15, 2011 3:43 PM

    Refer link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f15839-0cf1-2b10-c6a7-ebe68cc87cdc?QuickLink=index&overridelayout=true
    & check ur e-mail.

  • How to create Virtual InfoProvider with Services - Virtual Characteristic

    Hi all,
    I need to create a virtual infoprovider that also fills a virtual characteristic in order to display custom characteristics and calculated values based on user selection.
    Basicaly what I want to do is send a variable in a virtual characteristic equal to the values I want to fill in the characteristic.  So for instance if my base cube contains the infoobjects Brand, Product Line, Region and Country I want a  have a new infoobject that has no data, but fills itself with the vales of the infoobject I specify at query time on the virtual cube.
    The reason for this is I am trying to create a WAD using the delta chart (waterfall graph) that will show the difference between the plan and actual totals for a specific characteristic in Profitibility analysis.
    I have a document that explains the situation.  Send me your mail address and I will send you the document.
    Kind Regards

    We found a way to build the structure for this.
    Regards

  • Creation of Virtual Cube

    Hi all,
    My requirement is creation of virtual cube based on Function Module.
    Would you please tell me what all are the steps need to be done, how to create Function Module,What is the structure of Function Module.
    Regards,
    K.Krishna Chaitanya.

    I think you may be confusing two different concepts. I have provided links to more on both.
    1) Extract data into Virtual InfoCubes using function modules
    [http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
    2) Creating function modules
    [http://help.sap.com/saphelp_46c/helpdata/en/ea/e9af304c7211d189520000e829fbbd/frameset.htm]

  • Add new virtual characteristic in report writer

    Dear gurus,
    I would like to add a new virtual characteristic 'ZZWKDT' (work done date) so that I can filter my report with this selection criteria. This field has been added to structure "CI_CCR1S". But I don't have any idea on where should I code my program in order to tell the system to fill the "Work done date" from the data I retreived and filter tthose record which not meet with user selection from being displayed.
    Pls guided me accordingly asap.
    Thanks & regards,
    LOI

    Dear gurus,
    I would like to add a new virtual characteristic 'ZZWKDT' (work done date) so that I can filter my report with this selection criteria. This field has been added to structure "CI_CCR1S". But I don't have any idea on where should I code my program in order to tell the system to fill the "Work done date" from the data I retreived and filter tthose record which not meet with user selection from being displayed.
    Pls guided me accordingly asap.
    Thanks & regards,
    LOI

  • Urgent:   Net due date virtual characteristic.

    Hi,
    We are implementing net due date virtual characteristic. Could some please provide the coding for implementing this in ZXRSRZZZ program. Its very urgent.

    Hi shiva,
    sent to ur mail
    hope it helps
    bhaskar

  • Hierarchy in BEx using a virtual characteristic

    Hello BW Experts,
    I encountered a problem with the display of a virtual characteristic in context with a hierarchy.
    The goal is to display a weighted rating (the virtual characteristic) for each hierarchy level individually.
    What I get:
    IAS Category Weighted Rating Ratio Weighted MV / MV
    Level 1 A 5
    AAA 2
    Level 2a A 5
    AAA 1
    Stock 1 A 5
    Stock 2 AAA 1
    Level 2b AAA 1
    Stock 3 AAA 1
    What I'd like to get:
    IAS Category Weighted Rating Ratio Weighted MV / MV
    Level 1 AA 3
    Level 2a A 2
    Stock 1 A 5
    Stock 2 AAA 1
    Level 2b AAA 1
    Stock 3 AAA 1
    Level 2 is the lowest level in the hierarchy and Level 1 a text node. The weighted rating is determined in a SAP Exit (include ZXRSRZZZ) in a mapping ODS whereas the ratio Weighted Market Value / Market Value (a virtual key figure) is the lookup key. The solution might be something like the declaration of the aggregation level for the virtual characteristic in the SAP Exit.
    Any suggestions would by highly appreciated.
    Thanks in advance.
    Cheers,
    Manuel

    Hello,
    why do you not using an Hierarchy with Characteristics and Attributes? This should be much easier.(use a balanced hierarchy)
    I do not believe, that you have a chance to do the rating for the levels with a virtual characteristic.
    Another possibility is to use an virtual InfoPovider with Services and do the data collection by your own.
    Kind reg.
    Michael

  • Simple logic - virtual characteristic

    I'm writing a code for a virtual characteristic, but need a couple pieces to get in place. please help with the following problem:
    In my logic, I have an internal table itab1 whose contents are as follows:
    plant sale
    1001 100
    1001 50
    2001 300
    First I want to aggregate multiple rows like below:
    plant sale
    1001 150
    2001 300
    Second, I want to create another internal itab2 which ranks plants as follows:
    plant sale rank
    1001 150 2
    2001 300 1
    Please help with logic.

    Hello,
    1) When you select values in the internal table make you select statement as below;
    select plant sum( sales ) as sales from table into corresponding fields of table itab1 group by plant.
    This will give output as:
    plant sale
    1001 150
    2001 300
    2) For ranking, i believe you want them to be ranked based on the sales they have. For that do the foll:
    data: count(3) type n.
    itab2[] = itab1[].
    sort itab2 descending by sales.
    count = 1.
    loop at itab2 into wa2.
    wa1-rank = count.
    modify itab2 from wa2.
    count = count + 1.
    endloop.
    clear count.
    Regards,
    Shashank

  • BADI for Virtual Characteristic

    Hi,
    I am able to use BADI to populate Virtual Key Figure, but getting an error when I use similar code for Virtual Char.
    Following are the details
    Characteristic InfoObjects IO_MATRAL, IO_PLANT, IO_CMATRL (virtual char)
    I want to assign the value of IO_MATRAL to IO_CMATRAL using BADI.
    Attributes are
    P_CHA_IO_CMATRL  associated type I (level: instance, visibility: private)
    P_CHA_IO_MATRL   associated type I (level: instance, visibility: private)
    DEFINE method
    method IF_EX_RSR_OLAP_BADI~DEFINE.
      DATA: l_s_chanm   TYPE rrke_s_chanm,
            l_kyfnm     TYPE rsd_kyfnm.
      FIELD-SYMBOLS:
            <l_s_chanm> TYPE rrke_s_chanm.
    CASE i_s_rkb1d-infocube.
       WHEN 'IC_SEKH'.
        l_s_chanm-chanm = 'IO_MATRL'.
        l_s_chanm-mode = rrke_c_mode-read.
        APPEND l_s_chanm TO c_t_chanm.
        l_s_chanm-chanm = 'IO_CMATRL'.
        l_s_chanm-mode = rrke_c_mode-read.
        APPEND l_s_chanm TO c_t_chanm.
    ENDCASE.
    ENDMETHOD.                    "if_ex_rsr_olap_badi~define
    INITIALIZE method
    method IF_EX_RSR_OLAP_BADI~INITIALIZE.
      DATA: l_global_name TYPE string.
      FIELD-SYMBOLS:
            <l_global>    TYPE i,
            <l_s_sfc>     TYPE rrkg_s_sfc,
            <l_s_sfk>     TYPE rrkg_s_sfk.
    there's no need to change this method
    Just create attributes for each charactersitic
    with name P_CHA_<characteristic> TYPE i.
    and constants for each key figure with name
    P_KYF_<key figure> TYPE i.
      CLASS cl_exm_im_rsr_olap_badi DEFINITION LOAD.
    get field postions for characteristics in structure
      LOOP AT i_th_sfc ASSIGNING <l_s_sfc>
           WHERE user_exit NE rrke_c_mode-none.
    field name in structure is keyreturnnm
    name of the global variable
        CONCATENATE 'P_CHA' <l_s_sfc>-chanm
            INTO l_global_name
            SEPARATED BY '_'.
    fill the global variable
        UNASSIGN <l_global>.
        ASSIGN (l_global_name) TO <l_global>.
        CHECK <l_global> IS ASSIGNED.
        <l_global> = cl_exm_im_rsr_olap_badi=>get_field_position_d(
                                           i_fieldnm = <l_s_sfc>-keyreturnnm
                                           i_s_data  = i_s_data ).
      ENDLOOP.
    endmethod.
    COMPUTE method
    method IF_EX_RSR_OLAP_BADI~COMPUTE.
      FIELD-SYMBOLS: <fs_io_cmatrl>   TYPE ANY,
                     <fs_io_matrl>    TYPE ANY.
      ASSIGN COMPONENT p_cha_io_matrl  OF STRUCTURE c_s_data TO <fs_io_matrl>.
      ASSIGN COMPONENT p_cha_io_cmatrl OF STRUCTURE c_s_data TO <fs_io_cmatrl>.
      <fs_io_cmatrl> = <fs_io_matrl>.
    endmethod.
    I am not getting any value in IO_CMATRL in the query.
    Even when I assign hardcoded value like 's', in compute method, it's not showing the value in the query result.
    Can you guys please suggest what am I missing here? (similar code works for Virtual keyFig. implementation)
    Thank you,
    Lakshmi

    Hi,
    In DEFINE Method
    l_s_chanm-chanm = 'IO_MATRL'.
    l_s_chanm-mode = rrke_c_mode-read.
    APPEND l_s_chanm TO c_t_chanm.
    l_s_chanm-chanm = 'IO_CMATRL'.
    l_s_chanm-mode = rrke_c_mode-read.
    APPEND l_s_chanm TO c_t_chanm.
    If u2018IO_CMATRLu2019 is your virtual characteristic u2026try changing the read mode to  rrke_c_mode-no_selection
    Thanks,
    Advait

  • Creation of Segment Characteristic

    Dear Experts,
          I am trying to Creation of Segment Characteristic. This Field Name: Segment was saving in many Tables. Now my requirement is to define it as characteristic for COPA Report purpose. To achieve this requirement from which table i need to get this Field.
    Assist me reg this...
    Thanks in advance,
    Regards,
    Balaji

    Hi Balaji
    1. Go to KEA5
    2. Under "Create Char", Enter WW100 and press CREATE/CHANGE
    3. In next pop up window, choose the radio button "WITH OWN VALUE MAINT" and press enter
    4. Save it
    5. Activate your data structure (match stick icon)
    6. Press back and regenerate your op concern
    Regards
    Ajay M

  • How to fulfill the virtual characteristic value into report

    Hi Experts,
          I am working on one reporting requirement that needs to add reference date (virtual characteristic) field to report.
          I have added reference date field to query and able to display the field in report.But I am not able to display reference date field runtime data in to report output.
        Could someone please help me on this how to display this virtual characteristic values into report.where the runtime variable values are stored.How to fill the data etc.
    Thanks in advance.
    Best Regards,
    Hari.
    Edited by: k hari on Jan 29, 2008 6:22 AM
    Edited by: k hari on Jan 29, 2008 6:24 AM

    You can achieve this using Customer Exit or BADI. Check the folllowing link.
    http://help.sap.com/saphelp_nw70/helpdata/en/ac/ef1f43daac9a448f0150a02e3a7aba/content.htm
    If you are using BADI
    You can create Virtual CHAR in BADI using transaction SE19
    In this transaction you can create a new or display the existing BADI.
    There you can see two tabs
    The Attribute Tab we need to give the name of the Multiprovider on which the query with the virtual char is getting executed.
    The Inerface Tab has three following sections. Need to write the ABAP code for all the three.
    Define : Defind all the characteristics and virtual char that will be used for populating virtual char
    Initialize : Initialize them
    Compute : Here you will have to write the logic for populating the virtual char.
    Once the logic is written then you can use this char in your query .
    Hope this helps.

  • Filter a query based on virtual characteristic

    Hi,
    I have a query with a virtual characteristic.
    I need to filter the query based on the results in that characteristic.
    Can it be done?
    If not, can I delete records after the stage where the characteristic is filled and before the result of the query appears?
    Thanks,
    Hagit

    Hi Hagit,
    To filter a query on the value of a virtual characteristic value directly would not be possible.
    Please check the below Forum topic and see if the note 1088469 helps you find a solution to your problem.
    Virtual characteristics or key figures load data with BIA/BWA?
    Alternatively, you can think about using a query viewwith filter to filter the virtual characteristic value. Do not have a refined solution suggestion, but you can think in that direction, I guess.
    Hope it helps.
    Thanks,
    Abhishek.

  • Creation of virtual directory for EPMA during 11.1.2.2 configuration

    Hi Experts,
    I was trying to install and configure the EPM 11.1.2.2 products on a POC machine with Windows 2008 R2. I was able to install and configure some products and i was facing issue with the EPMA configuration where it struck during "Creation of EPMA virtual Directory". I can see the virtual directory created but not sure why this is not finishing up and just struck at this level, deployment is all fine. Attached the config log for any reference
    I have enabled Windows authentication in IIS 7 and disabled Basic authentication
    Please let me know if anyone has come across this issue and thanks for your help
    [2012-11-14T11:33:51.278-08:00] [EPMCFG] [TRACE] [EPMCFG-01496] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] IIS version is 7
    [2012-11-14T11:33:51.278-08:00] [EPMCFG] [TRACE] [EPMCFG-01516] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Removing virtual directory: hyperion-bpma-server
    [2012-11-14T11:33:51.278-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: removeVirtualDir
    [2012-11-14T11:33:52.729-08:00] [EPMCFG] [TRACE] [EPMCFG-01508] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Creating virtual directory: hyperion-bpma-server(2:2), configRoot: C:\OracleEPM\Middleware\EPMSystem11R1\products\Foundation\BPMA\AppServer\DimensionServer\WebService
    [2012-11-14T11:33:52.729-08:00] [EPMCFG] [TRACE] [EPMCFG-01504] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Creating application pool: DefaultAppPool
    [2012-11-14T11:33:52.745-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: createApplicationPool
    [2012-11-14T11:33:56.769-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01001] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] trace: Updating .Net version of application pool...
    [2012-11-14T11:33:56.769-08:00] [EPMCFG] [WARNING] [EPMCFG-01001] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] trace: .Net version v2.0 will be used
    [2012-11-14T11:33:56.769-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: updateApplicationPoolManagedRuntime
    [2012-11-14T11:33:58.142-08:00] [EPMCFG] [TRACE] [EPMCFG-01510] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Using default application pool for hyperion-bpma-server
    [2012-11-14T11:33:58.142-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: createVirtualDir
    [2012-11-14T11:34:00.997-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: installAspDotNet
    [2012-11-14T11:34:02.573-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01499] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Going to allow Web Service Extension.
    [2012-11-14T11:34:02.573-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: enableWebServiceExtension
    [2012-11-14T11:34:04.008-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01500] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Web Service Extension allowing complete.
    [2012-11-14T11:34:04.008-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01499] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Going to allow Web Service Extension.
    [2012-11-14T11:34:04.008-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: enableWebServiceExtension
    [2012-11-14T11:34:05.552-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01500] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Web Service Extension allowing complete.
    [2012-11-14T11:34:05.552-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01499] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Going to allow Web Service Extension.
    [2012-11-14T11:34:05.552-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: enableWebServiceExtension
    [2012-11-14T11:34:07.050-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01500] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Web Service Extension allowing complete.
    [2012-11-14T11:34:07.050-08:00] [EPMCFG] [TRACE] [EPMCFG-07380] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.utils.os.windows.IisUtils] Getting IIS7 Default site name
    Regards

    Why did you modify analytics.ear ?
    Should'nt you make changes here : Middleware_Home>\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1
    \analyticsRes\WEB_INF\web.xml
    Follow this note : OBIEE 11g: How To Access Custom Files Through URL By Creating Virtual Directory In Weblogic Server? [ID 1408240.1]
    And you should be able to deploy that virtual directory and access it after authentication.
    HTH,
    SVS

  • Calculated virtual characteristic

    Hello,
    I need to create a characteristic which is calculated virtual runtime of the query.
    This must be calculated from an input variable that is associated with the feature query Date Mat., (Which is the condition of the filter (>=)) therefore take out the query all records in the cube whose date of CBs is> = the date entered on screen) and the expiration date of the records obtained at the office.
    As you can see the calculation is done with the same property but using the input variable.
    The code would be:
    No. days = date input variable Mat - date vto.registro read.
    No if days> = 0 or n º days <= 30.
    characteristic virtual = '0 - 30 '
    endif.
    This code is to be implemented in this project or the expansion RSR00002 RSR_OLAP_BADI badi, but what is not very clear to me is like I can read the value of the input variable ..
    Sincerely,

    Hey.  The way I have done this in the past is to catch the variable value in the variables user exit and then store that value to be used/looked up later in the virtual object user exit.
    What you will want to look at is doing an export to memory on the variable value entered (that you get in the variable user exit) and then an import from memory in the virtual exit.  I believe the code syntax is something like...
    EXPORT TO MEMORY xxx ID yyy
    IMPORT FROM MEMORY zzz ID yyy
    Here, xxx and zzz are the fields you are dealing with.  I'm going from memory here, so the syntax may be a little different but the idea is the same.
    Thanks

  • Virtual Characteristic value not populating in the query output

    Hi Experts,
    I am new to BAPI and I am using this to populate the values of virtual characteristics.
    I wrote the below code to populate if an order status got some status value then i need to populate the flag y if not n.
    I got the order value in the reprot. I need to go to order master data and should get the status and then i have to do the comparision and populate the flag zww_teco in the report.
    The below is the compute method of my implementation class.
    FIELD-SYMBOLS :
    <fs_0cs_order> TYPE ANY,
    <fs_zww_teco> TYPE ANY,
    <fs_status>  TYPE ANY.
    if p_cha_0cs_order > 0.
      ASSIGN COMPONENT p_cha_0cs_order OF STRUCTURE C_S_DATA to <fs_0cs_order>.
    endif.
    if p_cha_zww_teco > 0.
      ASSIGN COMPONENT p_cha_zww_teco OF STRUCTURE C_S_DATA to <fs_zww_teco>.
    endif.
    Select single /BIC/ZSYSTATUS
        from /BI0/PCS_ORDER into <fs_status>
       where CS_ORDER = <fs_cs_order>.
    if <fs_status> CP 'TECO'.
      <fs_zww_teco> = 'Y'.
    else.
        <fs_zww_teco> = 'N'.
    endif.
    But I am not sure why the values are not populated. But when i debug , i could see the values for
    P_cha_0cs_order = 35
    p_cha_zww_teco = 54
    But i could get the values of <fs_0cs_order>, <fs_zww_teco> after assign component statement.
    And it is firing me a dump in select statement. Also when I click c_s_data i am getting S____274, S____505 fields like that in the structure but i could see p_cha_0cs_order
    Can you please guide where i am missing ...
    Thanks
    Vamsi
    Edited by: vamsi talluri on Nov 9, 2011 6:14 PM

    Hi Sushant,
      RSRT --> Enter Query Name
    Click on Technical Information --> If " Virtual Char./Key Figures " = Y
    In my case , even then i clciked generate report,
    even after that P_CHA_0CS_ORDER = 35
    and after assign component P_CHA_0CS_ORDER of structure c_s_data to <FS_0CS_ORDER>.
    the <FS_0CS_ORDER> is nothing , here i should get the value of cs_order value of that record but it is coming empty which i am not able to rectify. How should i change or i need to put any other setting to get the value populated into my <FS_0CS_ORDER>.
    Can you please guide me .
    Thanks
    Vamsi

Maybe you are looking for

  • Linking to a specific tab in a Tabbedpanel

    I've created a page with four sections as Tabbed Panels, and I wanted to link to a named anchor in one of the panels. I found the tutorial at http://foundationphp.com/tutorials/spry_url_utils.php, downloaded the Spry 1.6.1 files, and set to work. On

  • Availablity Check which includes Block Stock

    Hi All, I do have a problem with Availability Check. For a material the Goods Reciept is made directly into Blocked Stock. Due to this the MRP is not considering the availability of the stock and creating the new PO for the old reqirement. I want to

  • Dbconsole and EM don't work on EBS?

    Hi, on EBS rel. 12 for Linux i've seen that there isn't a Enterprise Manager configured. When i start dbconsole it show me too errors, es: $ emctl status dbconsole OC4J Configuration issue. /sviltech/SVIL/db/tech_st/10.2.0/oc4j/j2ee/OC4J_DBConsole_ve

  • Using NetBeans getting gibrish instead of local

    Hi, Help will be appreciated, Using NetBeans (Using jdk1.6.0_01 and windows xp pro ) � Created properties file in local Hebrew but received gibrish in the final outcome, how can it be fixed ?

  • (Un)Logic Audio Graphik Bug

    Hello from Berlin..... Need your help or advices on my big problem with Logic. The program changed from one moment to another many of the colors to black. I installed Logic new, no change. I installed OSX new - no change. any hints ?