Virtual Char/KF not populated in the query ????

Hi,
Can anybody suggest why Virtual char/KF are not populated in Query. I just want to populate the value from existing cube characterstics/KF value.
Code as follows:
Cube : ZDEBC01
Virtual Char: ZVIRTUAL1
Virtual KF :  ZVIRTUALK
*&  Include           ZXRSRU02
DATA: L_S_CHANM TYPE RRKE_S_CHANM.
CASE I_S_RKB1D-INFOCUBE.
  WHEN 'ZDEBC01'.
    L_S_CHANM-CHANM = '0SOLD_TO'.
    L_S_CHANM-MODE  = rrke_c_mode-READ.
    APPEND L_S_CHANM TO E_T_CHANM.
    L_S_CHANM-CHANM = 'ZVIRTUAL1'.
    L_S_CHANM-MODE  = rrke_c_mode-NO_SELECTION.
    APPEND L_S_CHANM TO E_T_CHANM.
    APPEND '0INVCD_QTY' TO E_T_KYFNM.
    APPEND 'ZVIRTUALK' TO E_T_KYFNM.
ENDCASE.
*&  Include           ZXRSRTOP
DATA: G_POS_ZDEBC01_ZVIRTUAL1 TYPE /BIC/OIZVIRTUAL1.
DATA: G_POS_ZDEBC01_ZVIRTUALK  TYPE I.
DATA: G_POS_ZDEBC01_0SOLD_TO  TYPE /BI0/OISOLD_TO.
DATA: G_POS_ZDEBC01_0INVCD_QTY TYPE I.
*&  Include           ZXRSRZZZ
FORM USER_ZDEBC01 USING    I_S_RKB1D TYPE RSR_S_RKB1D
                           CHANGING C_S_DATA  TYPE ANY.
  FIELD-SYMBOLS <L_ZVIRTUAL1>.
  FIELD-SYMBOLS <L_ZVIRTUALK>.
  FIELD-SYMBOLS <L_0SOLD_TO>.
  FIELD-SYMBOLS <L_0INVCD_QTY>.
  ASSIGN COMPONENT G_POS_ZDEBC01_0SOLD_TO
      OF STRUCTURE C_S_DATA TO <L_0SOLD_TO>.
  ASSIGN COMPONENT G_POS_ZDEBC01_0INVCD_QTY
      OF STRUCTURE C_S_DATA TO <L_0INVCD_QTY>.
  ASSIGN COMPONENT G_POS_ZDEBC01_ZVIRTUAL1
      OF STRUCTURE C_S_DATA TO <L_ZVIRTUAL1>.
  ASSIGN COMPONENT G_POS_ZDEBC01_ZVIRTUALK
      OF STRUCTURE C_S_DATA TO <L_ZVIRTUALK>.
  <L_ZVIRTUAL1> = <L_0SOLD_TO>+0(3).
  <L_ZVIRTUALK> = <L_0INVCD_QTY> + 1000 .
ENDFORM.                    "USER_ZDEBC01
Thanks,
Debasish
null

Hi,
in your code all variables:
DATA: G_POS_ZDEBC01_ZVIRTUAL1 TYPE /BIC/OIZVIRTUAL1.
DATA: G_POS_ZDEBC01_ZVIRTUALK TYPE I.
DATA: G_POS_ZDEBC01_0SOLD_TO TYPE /BI0/OISOLD_TO.
DATA: G_POS_ZDEBC01_0INVCD_QTY TYPE I.
must be of type i.
regards
Siggi

Similar Messages

  • 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

  • Virtual chars does not take part in update rules

    Hi
    Friends my question is Virtual Chars Does not take part in update rules than why to include it in data target??? directly we can include it at query designer .
    Thanks
    Asim

    Hi,
    Adding a charachteristics is to have a place holder in your data target. In virtual char you make use of this field memory pointer to populate the data for this field.
    Hope this helps for you.
    Thanks,
    Arun

  • Possibele entries are not populating for the fields on the selection screen

    Hi,
    Possible entries are not populating for the fields on the selection screen for the query.But its working fine in Development and Quality Systems.
    Can any body help me out
    Regards,
    Amit.

    Hi,
    In the Selection screen,go to Settings->Value Restrictions tab->Read Mode Settings->Custom radio button and select the options Values in Master Data or Only Values in InfoProv or Only Posted values for navigation.
    After this setting,check whether you are getting the data or not.
    Rgds,
    Murali

  • Billing tab of BP are not populated in the sales order automatically

    Hi
    Business Partners Billing Tab details like customer pricing procedure, currency, price group, Customer group etc are not populated in the Sales order automatically?
    I have checked the pricing procedure determination also.
    Thanks

    Thanks problem is solved.

  • Message type is not populating in the Inbound idoc control record

    Hi,
    I have created an Inbound Idoc function module and have done the necessary Idoc settings. But, while testing in WE19, I observed that control record is not getting populated with message type and it is dumping.
    The settings which I have done in WEDI as follows:
    1. Created Idoc segments with necessary fields and released
    2. Created Idoc type for the segment type
    3. Created message type
    4. Assigned message type to basic type
    5. In the inbound processing settings,
       filled the ALE attributes with the Idoc function module name and input value '0'
    6. Assigned FM to basic type and message type
    7. Created process code and assigned the process code to message type
    Please let me know, the reason for the message type not populating in the control record. Useful answers will be surely rewarded.
    Best Regards,
    Mallika

    Hi,     
    Maintain partner profile (Transaction code WE20) for the message type you defined in WE81 and put your process code in partner profile and check your logical system settings also in transaction SALE.
    Thanks
    Rahul

  • Decimals not seen in the query...

    Hi Guys,
    I have a problem with the query..
    I have loaded a KF with 2 decimal places in the cube.
    But when I run a query created on the cube, the digits after the decimal place are not seen in the query.
    For e.g.  the value of the KF in the cube is 9.85...but in the query, it is seen as 9
    please let me know where do i need to make the changes.
    FYI..the unit of the KF is %. Has this got anything to do with the problem ?
    thanks in advance,
    Punkuj...

    Hi Aby,
    Sorry, i just missed to mention this imp point :
    I had done the operation that you have suggested :
    I am getting the following output :
    In the Cube : 9.85
    in the query ( after the decimal selection) : 9.00
    I hope that clears my problem..
    Thanks..
    Punkuj

  • Days supply is not populating in the planning book

    Hi Experts,
    When I select multiple products in the planning book, the value is papulating as total but if I drilled down to individual product then days supply(Key figure) values are not populating in the planning book.
    Please let me know if any idea.
    Regards,
    Hrishi

    From what you mention it looks like you do not use the standard SNP Planning Book. Was the macro inactive so that you had to regenerate?
    When you move a macro from workbench to level change it should not require to be regerated.
    Please check if following macros are active (green) under level change in sequence
    Determine Workdays
    Layout Attributes
    Drill (Level)
    Else compare the macros and sequence in the standard SNP Planning Book with the Planning Book you are using.
    The Day's Supply (All: Day's Supply) and Determine workdays macros are essential for populating the day's supply keyfigure.
    Thanks,
    Somnath

  • My query prompts does not appear in the Query prompt order list!

    Dear colleagues,
    All of my query prompts does not appear in the Query prompt order list in properties of the query. It seems random which of them that appears there and not.
    This makes it impossible for me to control or change the order of prompts, instead they order themselves alphabetically.
    Is this some kind of bug? Is there a fix for this problem?
    Regards
    Silje

    Hi Stratos,
    We use Edge.
    Correction- we use Enterprise, changed a few months ago!
    By the way, we heard about a bug that probarly causes the problem.
    If the query has ever had a prompt containing 'Between', all prompts created afterwards will not appear in the prompt order list! Even if the between-prompt is deleted.. We still havent heard about a fix for this, please contact me if you hear anyting. It is not an option to create all the queries from scratch again!
    Silje
    Edited by: Silje Mari Sunde on Oct 22, 2009 9:24 AM

  • Badi-Virtual keyfigure value not populating in query

    HI all,
    I am trying to populate a constant value into the virtual keyfigure when the query is executed but the value is not getting populated.
    I followed the steps how to do this by looking into the step by step process for keyfigure article which i found in SDN.
    When i execute my BADi in se19 i am able to get the value but not in the query.
    Is there a special way to create keyfigures or is it the same way as we create a normal keyfigure.
    Can someone tell me how to get the values in query.
    Thanks in advance.
    Regards,
    Harish

    Hi,
    why dont you debug the badi while executing the report from RSRT t-code. This will give you some idea.
    To debug, put a break point in 'define' as well as 'compute' function of your Badi-implementation, then go to RSRT t-code, enter your query name and then click generate. It will stop at the break-point. Here you can see what is the problem
    Regards
    akshay

  • Virtual Key Figures its not populated when execute query

    Hi All
    I did a BADI for populate a Virtual Key Figure, I follow the instructions of link
    Link:[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e34f63-f44c-2c10-488e-c89b04e0ca7c?quicklink=index&overridelayout=true]
    In addition I add the code section of data declarated on example of: CL_EXM_IM_RSR_OLAP_BADI section define: IF_EX_RSR_OLAP_BADI~DEFINE, only information that said:
      DATA: l_s_chanm   TYPE rrke_s_chanm,
            l_kyfnm     TYPE rsd_kyfnm.
      FIELD-SYMBOLS:
            <l_s_chanm> TYPE rrke_s_chanm.
    I test the query on RSRT and the virtual Key Figure is "0.00" this look like if the virtual key figure is not populated.
    I did other things like:
    Set a Break Point on COMPUTE section of my BADI, I saw that the value is assigned, but I don't know how I can continue reviewing the pass of this value to result of query.
    I generate again the query on RSRT.
    My code is:
    IF_EX_RSR_OLAP_BADI~DEFINE
    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 'ZGTO_OB2'.
          append 'ZVIRTKF' to C_T_KYFNM.
      endcase.
    endmethod. 
    IF_EX_RSR_OLAP_BADI~COMPUTE
    method IF_EX_RSR_OLAP_BADI~COMPUTE.
      field-symbols <FS_ZVIRTKF> type any.
      P_KYF_ZVIRTKF = 16.
      assign component P_KYF_ZVIRTKF of structure C_S_DATA
      to <FS_ZVIRTKF>.
      <FS_ZVIRTKF> = 10 .
    endmethod.
    I will appreciate your recommendations, Thanks in advanced.
    Al

    Thank you very much Sanganya
    I saw this:
    I put a break point on P_KYF_ZVIRTKF = 16., then I saw that P_KYF_ZVIRTKF obtain value 16.
    Then on sentence: assign component P_KYF_ZVIRTKF of structure C_S_DATA
    to <FS_ZVIRTKF> , when the system pass this line, I review the sy-subrc and is equal 4, as I understood the ASSIGN sentence did not be complete, the value shoul be 0.
    Then when the system try to run the sentence: <FS_ZVIRTKF> = 10  the system send an Execution error that say:  GETWA_NOT_ASSIGNED...
      Error analysis
        You attempted to access an unassigned field symbol
        (data segment 32780).
        This error may occur if
        - You address a typed field symbol before it has been set with
          ASSIGN
        - You address a field symbol that pointed to the line of an
          internal table that was deleted
        - You address a field symbol that was previously reset using
          UNASSIGN or that pointed to a local field that no
          longer exists
        - You address a global function interface, although the
          respective function module is not active - that is, is
          not in the list of active calls. The list of active calls
          can be taken from this short dump.
    Exactly the line selected with error is:
    >>>>    <fs_zvirtkf> = '10.0'.
    I will appreciate your help
    Thank you
    Al

  • Changes to the infoobject are not reflecting in the query Desinger level.

    Hi All,
    We removed some Attributes to one characteristic and transported into QA.
    The removed attributes are not getting in BEx query designer in Dev, But we are getting those removed attributes in the context menu of that particular Char in BEx Designer in QA.
    We checked in the Characteristic level, those removed Attributes are not there in Info object level but still those Attributes are displaying in BEx designer level in QA.
    And info object showing as gray color even though we activated the info object, We think this may be the cause to not reflect the changes to BEx Designer level.
    Can any one suggest us to resolve the issue.
    Thanks & Regards,
    Raju. E

    Hi Raju
    Go to transation RSRT enter one of the reports and click to Generate Report. If this solves your problem then you can go to Environment\generate queries directly to regenerate the impacted queries.
    Cheers
    Tansu

  • Virtual char's not working with new session

    This is a weird one...
    I've managed to build virtual char's and key figures in BW 3.5. It is working fine with my first query, but when I start a new session of BEx Analyser (or WAD) the values are suddenly empty.
    I've found that if I reactivate the cube it works again, but only for the first session. With the next session the values are empty again.
    Any thoughts?

    burkey7669 wrote:
    I put it in the freezer( an online solution),
    No intelligetent person puts electronics in the freezer.
    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  If none of this resolves, then the device should be taken to Apple for evaluation.
    If Apple determines the device has suffered a hardware failure, they will either replace under warranty (if under warranty) or offer an Out of Warranty replacement.
    So what exactly is the problem?  They offered an Out of Warranty replacement for the defective device.

  • BI: some dimensions in multiprovider not showing in the query

    Dear all,
    i have created  cube top of DSO and i created  multiprovider with that cube and with 2 master info object
    but  when i create query it showing only few dimensions in the multiprovider so kindly help me on this
    for example multiprovider has 11 custom dimensions and 3 standard dimensions..!
    Thanks
    sivakumar Ramakrishnan.

    Can you elaborate, how many and which of the dimensions are not shown?(And please specify if they have some special properties like line item,high cardinality etc).Also check whether you have the same problem with the key figures in the multiprovider.
    Also, I know that it sounds silly but check the dataprovider of the query is whether the correct multiprovider.Check that there is characteristic in the dimension which does not appear.Then exit query designer, activate the multiprovider and go to query again.

  • Value not populating in the print out (sales order) for the 1st time

    Hi friends,
    While saving a sales order, the order confirmation going to the user is not populating the LDC field. LDC is Last date of change. This field can be found in the Additonal data 2 tab of the material in the sales order. When I enter a date in this field and save, the print preview of the output has this value, but the print out does not carry this value.
    Another weird thing about this issue is that, the second time i trigger the output, the print out has the value.
    Please give me some clue on where to check and how to go about fixing this problem.
    Regards,
    Shanu.

    Dear Shanu,
    This issue may be related bug in the output program so take help of ABAPer to fix the issue.
    I hope this will help you,
    Regards,
    Murali.

Maybe you are looking for

  • I can get every OS except mavericks??? Why???

    We want to upgrade one of our iMacs from 10.6.8 to 10.9.0, but the installer is nowhere to be found. I can buy every OS up to 10.8 and get Yosemite for free, but I can't get Mavericks at all??? Am I missing something?

  • FORALL and FOR when to use

    Hi, I am just confusing..what is the difference between FORALL and FOR.

  • Mobileme widget

    hi, when i insert a mobileme widget, I only can see my videos but my photos albums remain black : no pictures are visible as it is shown in the tutorial. I only can click on the link to go to my gallery photo album directly. Any help about that ?

  • EMail configuration on 6131

    Hi all, I did try everything to access my gmail account through POP3, but i did not success. Please help me on this problem, because even Nokia Care local here said that they did not know!!! below are what i did in the phone * Name and Address Accoun

  • Discoverer 4i Viewer for Solaris

    Is there a release date for the EAP Discoverer 4i view for Solaris?