ALV without context data

Hi,
how can I handle an ALV when no context data exists?
Should it be disabled or is there an attribute like 'ON_NO_DATA' or something like that?
During program flow I can happen that the binded context node could be empty.
Any solution for that?
Regards, Steffen

Hi,
thanks a lot, your answer helped me to solve my query.
Here the complete code I used in order to display a text notification directly in the ALV table when the binded context node is empty.
DATA:
    lr_cmp_usage TYPE REF TO if_wd_component_usage,
    lr_com_controller_if TYPE REF TO iwci_salv_wd_table,
    lr_alv_config TYPE REF TO cl_salv_wd_config_table,
    lr_table_setting TYPE REF TO if_salv_wd_table_settings.
* get alv config object and set text
  lr_cmp_usage = wd_this->wd_cpuse_alv( ).
  lr_com_controller_if = wd_this->wd_cpifc_alv( ).
  lr_alv_config = lr_com_controller_if->get_model( ).
  lr_table_setting ?= lr_alv_config.
  lr_table_setting->set_empty_table_text( value = lv_your_text ).
Best regards, Steffen

Similar Messages

  • Map context node  web dynpro to context DATA of  interface controller ALV

    Hi Experts,
    I have started creating simple ALV by following the example in the below mentioned link.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d
    I have completed 95% development but stuck with last bit of
    Set data to ALV for display (via reverse context mapping).
    When Click on the Controller Usage button. The component controller of your Web Dynpro component DOES NOT appears on the right side of the screen.
    Therefore I can not  Map context node NODE_FLIGHTTAB of your Web Dynpro component to context DATA of the interface controller of the ALV component.
    Could you please shed me light on this.
    Your time and help much appreciated.
    Best Regards
    CB

    Hi Chandra,
    You need to add component controller first. Just go to the property tab of interface controller of the alv component and click on create button and then add the component controller. After that you'll be able to see the node in the context tab.
    Regards
    Arjun

  • ALV without colors

    Hi All,
    Is it possible to display ALV without colors ?
    If yes pls help me....
    Dilip

    Hi Dilip,
    Try this code,
    REPORT ZTEST.
    TYPE-POOLS : SLIS.
    DATA: BEGIN OF IT_VBAK OCCURS 0,
            VBELN LIKE VBAK-VBELN,
            ERDAT LIKE VBAK-ERDAT,
          END OF IT_VBAK.
    DATA : FLD_CAT TYPE SLIS_T_FIELDCAT_ALV,
    FLD TYPE SLIS_FIELDCAT_ALV .
    DATA:V_REPID LIKE SY-REPID.
    START-OF-SELECTION.
      V_REPID = SY-REPID.
      SELECT VBELN ERDAT FROM VBAK INTO TABLE IT_VBAK.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
         I_PROGRAM_NAME               = V_REPID
         I_INTERNAL_TABNAME           = 'IT_VBAK'
        I_STRUCTURE_NAME             =
         I_INCLNAME                   = V_REPID
        CHANGING
          CT_FIELDCAT                  = FLD_CAT
       EXCEPTIONS
         INCONSISTENT_INTERFACE       = 1
         PROGRAM_ERROR                = 2
         OTHERS                       = 3            .
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT FLD_CAT INTO FLD.
        CASE FLD-FIELDNAME.
          WHEN 'VBELN'.
            FLD-KEY = ' '.
            MODIFY FLD_CAT FROM FLD.
        ENDCASE.
      ENDLOOP.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
         I_CALLBACK_PROGRAM             = V_REPID
         IT_FIELDCAT                    = FLD_CAT
        TABLES
          T_OUTTAB                       = IT_VBAK
       EXCEPTIONS
         PROGRAM_ERROR                  = 1
         OTHERS                         = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Thanks
    Lakshman

  • Drop down in alv based on data in other calumn of same row

    Hi Guys,
    I need to provide drop down in an ALV based on data in other calumn in same row.
    if i have two calumns country and region in my alv then drop down values for region should come depending upon country value.
    i went through lot of blogs and forum threads but none seems to solve my problem.
    I'm able to achieve this in Table but not in ALV. I'm using DropdownbyIndex Ui element.

    Hi Guys finally i am able to get my dropdown data visible.
    I am posting the code here so that others can make use of it.
    In your context node add an attribute type WDR_CONTEXT_ATTR_VALUE_LIST
    after getting data into your context node table fill the above attribute as shown in the below code
    LOOP AT lt_mara INTO ls_mara.
    clear: lv_indx.
    lv_indx = sy-tabix.
    clear ls_valueset.
    *refresh: lt_valueset.
    ls_valueset-value = ls_mara-mtart.
    ls_valueset-text = ls_mara-mtart.
    APPEND ls_valueset to ls_mara-valueset.
    clear ls_valueset.
    *ls_valueset-text = ls_mara-matnr.
    APPEND ls_valueset to ls_mara-valueset.
    *lr_element = lo_nd_mara->get_element( lv_indx ).
    *lr_child_node = lr_element->get_child_node( 'DDVALUE' ).
    *lr_child_node->bind_table( lt_valueset ).
    MODIFY lt_mara FROM ls_mara INDEX lv_indx.
    CLEAR ls_mara.
    ENDLOOP. lo_nd_mara->bind_table( lt_mara ).
    DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
    lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
    *---set data
    lo_interfacecontroller->set_data( r_node_data = lo_nd_mara ).
    DATA lv_value TYPE REF TO   cl_salv_wd_config_table.
      lv_value = lo_interfacecontroller->get_model(
    *----dropdown logic
    data: lr_col type ref to CL_SALV_WD_COLUMN,
          lr_ddn type ref to cl_salv_wd_uie_dropdown_by_idx.
    CALL METHOD lv_value->if_salv_wd_column_settings~get_column
      EXPORTING
        id     = 'MTART'
      receiving
        value  = lr_col
    *lr_ddn ?= lr_col->get_cell_editor( ).
    CREATE OBJECT lr_ddn
      EXPORTING
        selected_key_fieldname = 'MTART'
    CALL METHOD lr_ddn->set_valueset_fieldname
      EXPORTING
        value  = 'VALUESET'
    lr_ddn->set_selected_key_fieldname( value = 'MTART' ).
    CALL METHOD lr_ddn->set_type
      EXPORTING
        value  = IF_SALV_WD_C_UIE_DRDN_BY_INDEX=>type_key_value
    CALL METHOD lr_col->set_cell_editor
      EXPORTING
        value  = lr_ddn
    lv_value->if_salv_wd_table_settings~set_read_only( abap_false ).
    Just follow the above code you will be able to achieve dropdown by index in your alv.

  • Prior Year Measure Without a Date Table

    I have a table of General Ledger data in the format below... my desired end result is to have Fiscal Year as a slicer, a measure showing the sum of dollars for the selected Fiscal Year, and another measure showing the sum of the dollars for the Prior Fiscal
    Year (based on slicer selection).  Without a date table, I am struggling with how to do this... below is my failed attempt, any suggestions?
    =CALCULATE([Dollars],LG_ACTUAL_VS_BUDGET_V[FISCAL_YEAR]-1)
    Fiscal   Year
    Fiscal Period
    Dollar Value
    2014
    1
    100
    2014
    2
    200
    2014
    3
    300
    2013
    1
    1000
    2013
    2
    2000
    2013
    3
    3000

    Fiscal Sales :=
    SUM ( 'LG_ACTUAL_VS_BUDGET_V'[Dollar Value] )
    Prior Year Fiscal Sales :=
    CALCULATE (
        [Fiscal Sales],
        FILTER (
            ALL ( 'LG_ACTUAL_VS_BUDGET_V' ),
            'LG_ACTUAL_VS_BUDGET_V'[Fiscal Year]
                = MAX ( 'LG_ACTUAL_VS_BUDGET_V'[Fiscal Year]
    ) - 1
    The second (and following) arguments to CALCULATE() have to be filter expressions or table expressions.
    In this case we are using the table expression, FILTER() - confusing, that.
    ALL( 'LG_ACTUAL_VS_BUDGET_V' ) means that we'll be applying a filter to every value in LG_ACTUAL_VS_BUDGET_V
    and returning a table that is a subset of that table based on the second argument to FILTER(). This is necessary, because your row filter (in this case the [Fiscal Year] that will be in the pivot table) would otherwise eliminate values for other years from
    the filter context.
    The second argument to our FILTER():
           'LG_ACTUAL_VS_BUDGET_V'[Fiscal
    Year]
                = MAX ( 'LG_ACTUAL_VS_BUDGET_V'[Fiscal Year]
    ) - 1
    This compares the values in the column [Fiscal Year] to MAX ( 'LG_ACTUAL_VS_BUDGET_V'[Fiscal
    Year] ) - 1. The MAX() function respects your row filter (remember, the [Fiscal Year] in the pivot table), and is necessary because we need to convert the values in that column to a single scalar value. We then subtract one.
    Thus FILTER() is returning a table of all values from LG_ACTUAL_VS_BUDGET_V where
    the fiscal year is the prior fiscal year compared to the current row context. This table is being used as the second argument to CALCULATE().
    CALCULATE() then determines the value of [Fiscal Sales] in the context of that table.
    I hope this helps a bit with your understanding of what's going on and how to properly
    use CALCULATE().

  • How to create a report without any data

    HI All, <BR> Can anyone help me in writing a report without any data. I want to create a report with list of memebers from a dimension where UDA is "My UDA". I wrote a report "<UDA(CHANNEL,'My UDA')" but this fetches me data too in the report. How to eliminate the data in the report. <BR><BR>Thanks<BR>Murali

    Hi<BR><BR>Assuming you are using the essbase report writer the following script will work: <BR><BR>{ SUPPAGEHEADING }<BR>{ SUPCOLHEADING }<BR>{ SUPFORMATS }<BR>{ SUPFEED }<BR>{ NOINDENTGEN }<BR>{ FIXCOLUMNS 1 }<BR> <ROW("Dimension") <BR> <UDA(Dimension,MyUDA)<BR>!<BR><BR>the fixcolumns 1 will ensure that you only get the UDA without it you will get the variable followed by the corrosponding value.<BR>

  • BI-IP WEB characteristic without master data

    Hello!
    In Bex ready for input query i can use characteristic without master data and then i can insert new values in characteristic key (maintain this characteristic from ready for input query). But when i try use this feature in WEB application i get error messsage about incorrect master data validation. Do you have any idea  how use this feature in WEB?
    Thanks

    Hi,
    please be aware that this is called "Master data planning". Master data plannig is not supported in BI-IP although it may work in some cases. As far as I remember somebody posted how this could be done in the Web recently. I remember he used a class to achieve it. I have not tested the approach, but you should find the thread in the forum. Nevertheless you should try to find a "better" approach for generating new master data.
    See [Data entry of Character values;
    Regards
    Matthias Nutt
    SAP Consulting Switzerland

  • Can I use an Android phone without a data plan?

    Please read all of this before responding. You will not be helping when you show a clear misunderstanding of my question.
    I do not need a data plan. Everywhere I go has Wi-Fi, and I am perfectly content to not have internet connectivity in the event that I don't have Wi-Fi. What I want to know is if I can buy a phone from a store (not from Verizon or a contract renewal) and replace my current phone with it without needing a data plan. There is NO software/hardware reason why I couldn't, and the only reason I would need to is as a Verizon requirement.
    As an additional question, if Verizon doesn't allow it, is there any workaround?
    I want an android phone not to have ubiquitous connection to social media. I want an android phone to have platform to run software on in addition to making/receiving calls and text messages. I would not utilize a data plan and it would be a waste of money.
    Additional info: 
    Can I use an Android phone that I buy from a retailer on my Verizon plan without adding data? There's no hardware or software reason why I need a data plan, and there IS a point to having a smart phone without a data plan: Wi-Fi. I don't need to have redundant internet access.  The only reason conceivable for why I'd need a data plan is because Verizon wants more money for no additional service (I wouldn't USE connectivity provided by a data plan). I don't want to have a mobile platform for running software and a phone filling my pockets, I'd like it to be in one. All the connectivity I need is for calls and text messaging.
    << Comments edited to comply with Verizon Wireless Terms of Service >>
    Specifically:
    Users of the Verizon Wireless Community agree not to upload, post, or otherwise transmit any content (including but not limited to text, links, communications, software, images, sounds, data, or other information) that includes any of the following inappropriate content:
    Posts that describe how to violate any Verizon Wireless or Verizon Wireless policy or term or condition are considered unacceptable will have the offensive language deleted.
    Posts that discuss hacking and/or rooting a wireless device from any carrier will be removed.
    Message was edited by: Verizon Moderator

    I stand corrected!
    Here's an article on the subject with a good discussion and a somewhat dodgy suggestion for non-Verizon service: http://news.cnet.com/8301-1035_3-57555091-94/can-you-ditch-your-smartphone-data-plan-for-wi-fi/.
    Here's a discussion on a T-Mobile forum laying out the options (as of last November): http://support.t-mobile.com/message/198200. It sounds like it would meet one of the OP's desires: "Can I use an Android phone that I buy from a retailer on my Verizon plan without adding data?" Not on Verizon, but probably on T-Mobile.

  • HT1689 How can I play podcasts on my iphone without using data?

    How can I play podcasts on my iphone without using data?

    I used to sync my podcasts to my phone individually, but found out that the Podcast app works better for me.  It continously downloads the podcasts (not really sure when, that's the only thing, when its downloading it may use data depending on where you are) and also deletes the ones i have listened to.  Hopefully that will help you out!

  • Is there a way to hide todos without due dates?

    I have gobs of items without due dates.  iCal shows them all!  Is there any way of having it hide those?
    I am able to hide todos that have a due date in the future (past the view date of the calendar), but I cannot find an option for hiding the masses of chores, list items, things to read, etc. that have no dates on them.  Fortunately, they do show up at the bottom of the list, but...
    Also, is there a way to hide todos of medium or low priority?  Again, I'd like to focus my attention on the most pressing items!

    Hi,
    As far as I'm aware there is no way to do this.
    If you'd like Apple to add this as a feature I suggest you send them feedback.
    Best wishes
    John M

  • What is the procedure for a hard boot of my iPod touch 4th generation without itunes, and without computer, and without iPod data screen.?

    What is the procedure for a hard boot of my iPod touch 4th generation
    without iTunes, and without computer, and without iPod data screen?
    6 months after purchase I updated my iPod touch as recommend by iTunes.
    It has not worked since that day.  It frozen (disabled) with a "connect to
    iTunes" icon displayed...that is the only thing it does.  itunes does not
    recognize the iPod.  My Windows7 computer recognizes an Apple device. 
    Other computers recognize the devise but if iTunes resided on that
    computer it did not recognize the iPod
    I suffered a setback with deep depression and am just now getting out of it enough to do something.  The depression prohibited me from taking action.
    I have done every procedure recommended from Apple help and external
    sources.  I did this thoroughly with help for other owners and IT experts,
    Apple employees etc etc.  I and associates have perform reboots utilizing a
    number procedure using only button on the iPod.  These were unsuccessful
    also have performed.
    Please do not ask me to do the usual.
    Online I saw  a process using the buttons on the iPod to completely
    reformat 
    the iPod.  It was NOT the hold buttons for 10 sec let go of one wait 8 sec
    etc.  I can not find the process now...a friend showed it to me in passing
    I have lost contact with him.  This is the procedure, I believe, that with
    enable me to update and use the iPod. 

    You need an internet connection and likely a computer with iTunes but an iPhone, iPad or iPod touch with the FindMy iPhone App may work by:
    If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone and use Remote Wipe to erase the contents of your device. If you have been using iCloud to back up, you may be able to restore the most recent backup to reset the passcode after the device has been erased.
    You can also wipe the iOS device by installing the FindMyiPhone app on another iOS device and using that app to wipe the device.
    Otherwise
    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Forgot passcode or device disabled
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:                                                             
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:           
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.
    Yo may have to go to an Apple store or a friend's house with an internet connection and iTunes.

  • Bought a new macbook air because my old computer is formatted. I want to sync my iphone to my new mac, so I can save the data on my iphone without losing data. how can I do?

    bought a new macbook air because my old computer is formatted. I want to sync my iphone to my new mac, so I can save the data on my iphone without losing data. how can I do?

    You need to copy everything form your old computer, or your backup copy of your old computer to your new one.
    The iphone is not a storage/backup device.  it simply mirrors the selected content of the computer to which it is synced.

  • I have macbook pro 13.3 inch ..mac os lion 10.7.5   i want to tranfer data from macbook to external hard disk  without loosing data which in already in extrnl drive

    i want to take back up of my macbook . so i have external hard disk around 1 tb and already have 230 used ...when i transfer manually with out time machine ....because i want to tranfer into windows .....so how to change ntfs into fat32 without loosing data in external harddisk ?

    You don't have to change NTFS to FAT.
    Just install Paragon NTFS and you'll be able to transfer your data to your external HDD even if it is NTFS.

  • Upgrading a dumbphone to a smartphone without a data plan

    When you upgrade a dumbphone to a smartphone, you have to add a data plan to that line.  You also have to sign up to continue on a new, 2 year contract for that line.
    Am I correct in believing that the contract only applies to maintaining phone service, and not the data plan?  In other words, can I use the upgrade on the dumbphone line to get a subsidized smartphone, sign up for the 2 year contract extension, pay 1 month of data, and then go back to the dumbphone, dropping the data plan on that line?

    kaybracon wrote:
    "you can put the dumbphone back on the line and remove the data
    but you cant have a smartphone without a data plan"
    But I could then move that smartphone to another line on the same plan, a line which has unlimited data, but for which Verizon will no longer allow subsidized phone purchases without losing the unlimited data...
    correct

  • Partition ext hard drive without losing data

    I have just bought my first MacBook. I have an external hard drive with data on backed up from a windows PC and from reading posts see that I cannot transfer files FROM  my mac onto this drive as it is not formatted for use with a mac, although can transfer FROM the ext drive TO the mac.
    Can I partition it to make a part for the mac and keep the other part for windows use WITHOUT losing any of the data already on there? I was hoping to use this drive to back up the mac using time machine.
    Any replies appreciated in a simple form as I'm not that technical!
    Thanks

    Stress Test wrote:
    On the fly formatting from NTFS to FAT32 is not possible without loosing data.
    Not true. I have converted drives from FAT32 to NTFS, and vis versa, all while preserving the data on the drive. There is a number of ways to do it on a Windows machine. What I don't know is if there is the same software available for doing on a Mac. Since the OP mentions a WinPC, he might still have that capability himself. The one note of caution is that on an NTFS drive, you want to make sure that there are no individual files you want tot keep that are larger than FAT32 can support (4 GB). Here is one solution.

Maybe you are looking for

  • Windows Vista or XP for Bootcamp?

    Does it matter what version of Windows Vista I can use?  I found Vista Ultimate, Home Basic, Business, Home Premium. I want the cheapest one that will work fine. I only want to run some basic Window's programs, internet.  Nothing extensive like music

  • Value from condition types not to be added to material price

    Hi friends, I have a Pricing procedure for Cross company stock transfers. Supplying plant put some margin on the material price and will supply it. Now My question is how to avoid the value of the margin getting inventorized(adding to the material pr

  • Backup as a service

    Hi guys, We are a small IT service provider and MS partner. We don't use SCCM for config management, and our alternative product has a file-level / VM backup option that we are using for our clients. All of our clients are connected to us via VPN, MP

  • Errors in calling rmi methods

    iPlanet6.1 is throwing following exceptions during rmi calls. Seems to be it is having problem in establishing t3 connections to the weblogic. java.rmi.ConnectException: Connection to: 'wlserver1' over: 't3' g ot an error or timed out at weblogic.rjv

  • Dropped part of my power adapter in water - Help

    I dropped part of my adapter connector (the part that connects to my Macbook) in a bowl of water. I quickly pulled it out and tried to dry it off. Someone suggested that I put it in some uncooked rice, so I'm trying that now. I'm not really sure what