Hide some columns in alv if no values are present for that columns ..

Hi all,
This looks like a wierd requirement ..In my ALV report, i am displaying around 30 fields. Among those , based on the input ,data will not be there for some  of the columns .. In the output we want to hide those columns
eg:
Matnr     Descr    Column3  Column4
Mat1      Des1     (No data)  sfsfs
Mat2      Des2     (No data)  (No data)
The required output is :
Matnr     Descr    Column4
Mat1      Des1     sfsfs
Mat2      Des2     (No data)
How to do this in the most simplest / right way?
Hope my question is clear .
Thanking you in advance,
Shankar

Hi shankara,
1. In the output we want to hide those columns
For this,
  a) first we have to know/detect  by looping the table/logic
     that which fields contain no data / are to be hidden
   b) after that we have to use the field catalogue properties.
    c) We have to loop at the fieldcatalogue,
        and set the value fieldcat-NO_OUT = 'X'.
       for those fields.
    (In this manner, those fields/columns won't be shown)
regards,
amit m.

Similar Messages

  • Is there a way to hide some reports based on the selected values in prompt.

    Hi Experts,
    Is there a way to hide some reports based on the selected values in prompt.
    For ex. if a year is selected in the prompt then the report should display year wise report.
    If a year and half year both are selected in the drop down from prompt section then 2 reports should come.. One for year wise and another for half year wise.Kindly look into this.
    Regards
    Ashish

    Hi,
    Use presentation values in prompts for year,half,qtr and month.Example- For year-y is presentation variable in the same way for halfyear-h,qtr-q and month-m.
    create four intermediate reports.Example-Report r1 with only year column,r2 with only halfyear column,r3 with qtr column and r4 with month column.
    Make column in each report(r1,r2,r3,r4) is equal to their presentation variables(y,h,q,m).
    Use four sections.
    Section1-Place report that should come when only year.
    section2-Place report that should come for year and halfyear.
    Section3-Place report that should come for year,halfyear and qtr.
    Section4-Place report that should come for year,halfyear,qtr and month.
    Apply guided navigation for each section selecting guided navigation-
    For section1-
    properties->Guided navigation->check this Reference Source Request(Yes)->select report r1(year)->check this Show Section(if request returns row)
    In the same way do for remaining section2(select r2),section3(select r3) and section4(select r4)
    Thanks,
    Srikanth
    http://bintelligencegroup.wordpress.com/

  • Using MISSING FIELD VALUES ARE NULL for external table

    I want to place a null for values missing in the sub_account field. Here is my external table:
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
    create table ext_INCOMING_ORDERS_table (
    Account varchar(5),
    Sub_Account varchar(1),
    Override_Code varchar(1),
    Nomenclature varchar(28),
    chg_nbr varchar(3),
    quantity integer,
    U_I varchar(5),
    zipcode varchar(5),
    type_reject varchar(2)
    organization external
    type oracle_loader
    default directory user_dir
    access parameters
    records delimited by newline
    missing field values are null
    badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
    logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
    fields
    Account(1:5) char(5),
    Sub_Account(7:7) char(1),
    Override_Code(10:10) char(1),
    Nomenclature(11:38) char(28),
    chg_nbr(40:42) char(3),
    quantity(44:48) integer external,
    U_I(50:54) char(5),
    zipcode(56:60) char(5),
    type_reject(61:62) char(2)
    location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
    reject limit unlimited;
    How can I place the MISSING FIELD VALUES ARE NULL for missing values for the sub_account?

    made the change I received this error:
    SQL> select * from ext_INCOMING_ORDERS_table;
    select * from ext_INCOMING_ORDERS_table
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "no": expecting one of: "comma, date_format,
    defaultif, enclosed, ltrim, lrtrim, ldrtrim, notrim, nullif, optionally, ),
    rtrim, terminated"
    KUP-01007: at line 7 column 26
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
    create table ext_INCOMING_ORDERS_table (
    Account varchar(5),
    Sub_Account varchar(1),
    Override_Code varchar(1),
    Nomenclature varchar(28),
    chg_nbr varchar(3),
    quantity integer,
    U_I varchar(5),
    zipcode varchar(5),
    type_reject varchar(2)
    organization external
    type oracle_loader
    default directory user_dir
    access parameters
    records delimited by newline
    badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
    logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
    fields
    Account(1:5) char(5),
    Sub_Account(7:7) char(1) NO PRESERVE BLANKS,
    Override_Code(10:10) char(1),
    Nomenclature(11:38) char(28),
    chg_nbr(40:42) char(3),
    quantity(44:48) integer external,
    U_I(50:54) char(5),
    zipcode(56:60) char(5),
    type_reject(61:62) char(2)
    location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
    reject limit unlimited;

  • Change LOV of column in view, based on values of another LOV of column in the same view

    Hi,
    I am using Jdeveloper 11.1.1.5.
    I have a scenario in which I have two columns in the view. column names are:
    1- Column A
    2- Column B
                        both the columns have LOV's
    LOV in column A contains values as: 1, 2. Now, when I select the value 1 in column A, In the column B, an LOV named ABC should be shown. and when I select value 2 from LOV in column A,  LOV named XYZ should be shown in column B.
    how can I do that?
    thanks in advance (^.^).

    Use onchange attribute of the first drop-down. On change, submit the form. On server side, fetch the values for second drop-down based on the value selected for the first drop-down.

  • Ora-01401 value too large for the column

    I am running several sql statements in one transaction in oracle 8.1.7 for redhat linux 7.3. I got the error message ORA-01401 which is the values inserted is too large for the column at the last sql statement. But I copied and pasted the same sql statement through sqlplus, the row was inserted successfully. So, it looks like no value is excessed the length of the column. Is there anybody know what the problem is? Thanks.
    Houmin

    I forgot mentioning that I ran those sql statement in java code.
    Houmin

  • Line Graph Issue - In BIP values are summed for same date

    Hi
    I have below data
    Date-----------------------Sell
    27-Mar-13----------------10
    28-Mar-13----------------15
    28-Mar-13----------------20
    30-Mar-13----------------25
    There are two entries on 28-Mar-2013. On BIP line graph; Sell values are added and graph show value 35 on 28-Mar-2013.
    I want to show two different values on line graph for 28-Mar-2013.
    Edited by: 1010402 on Jun 7, 2013 12:49 AM

    Hi 913804
    I am amazed you found the browser certification of OBIEE 11.1.1.6 I could not find it anywhere in the documentation nor from metalink personell.
    Regarding the graphs not showing, we found this to be an issue with IE and not with Firefox. First make sure you have followed the upgrade step listed in
    3.9.11.2 Updating Oracle Business Intelligence Catalogs from http://docs.oracle.com/cd/E23943_01/doc.1111/e16793/patch_set_installer.htm#PATCH250. Then the last resort was to recreate the graph component in each report from scratch. As you say pie charts are unaffected.
    Regards,
    Nick.

  • Field values are repeating for search help.

    Hello Friends.
    I have a problem. When I create a search help for a field the identical field values are repeating. What should I do to trigger only the first time.
    for example:
    <u>Field-name</u>-                        <u>field-value</u>
    Supplier Nr ---                                 Commodity
    5001 -
                                               casting
    5002 -
                                               casting
    5003 -
                                               casting
    So when I create the search help for commodity it is showing 'casting' 3 times in a pop-up window. It should not repeat. Can you please give me the solution what should I do?

    Hi
    Search helps
    Standard search help
    Types of search helps
    Concept of search help
    Search Help Interface
    Dialog behavior of search helps
    Selection method for search helps
    Performance of search helps
    Attaching search helps
    Hierarchy of search helps
    Standard Search Help
    The input help (F4 help) is a standard function of the R/3 System. It permits the user to display a list of possible values for a screen field. A value can be directly copied to an input field by list selection.
    The fields having an input help are shown in the R/3 System by the input help key to the right of the field. This key appears as soon as the cursor is positioned on the corresponding screen field. The help can be started either by clicking on this screen element or with function key F4.
    If the number of possible entries for a field is very large, you can limit the set of displayed values by entering further restrictions.
    Further meaningful information about the displayed values is included in the display of possible entries, especially if the field requires that a formal key be entered.
    TYPES OF SEARCH HELPS
    Elementary search helps
    Describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    Collective search help
    Combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    Search Help Interface
    Search help interface determines how the exchange of values between the screen template and the selection method is implemented.
    The search help interface defines the context data that can be used in the input help and the data that can be returned to the input mask. Analogously to the interface of a function module, the search help interface comprises interface parameters.
    When you define an interface parameter of a search help, you must also define whether it should be used to copy data to the input help (IMPORT parameter) or whether it should be used to return data from the input help (EXPORT parameter). A parameter of a search help can also have both attributes at the same time.
    The location from which the IMPORT parameters of a search help get their values and the screen fields in which the contents of the EXPORT parameters of the search help are returned are defined in the search help attachment. The search help itself should always be attached to an EXPORT parameter of the search help. If this parameter is also the IMPORT parameter, its contents are only used in the input help if it is a search string (that is, if it contains a ´*´ or a ´+´).
    You must define the parameter types of a search help. You can do this by assigning them data elements.
    Value Transport for Input Helps
    NOTE:In the above example, screen fields A, B and C are linked with parameters of the search help. As a result, values can only be transported between the screen and the search help for these three fields. Existing contents of screen fields A and B can be used for selecting the hit list since they are linked with an import parameter of the search help. The values of parameters A and C can be returned to the screen from the hit list since these parameters are declared as export parameters of the search help.
    Description of dialog behavior
    A hit list might contain plentiful number of entries. A
    dialog provides the user with an option to restrict the
    entries displayed on the hit list.
    In an input help process, the set of possible entries is presented in the dialog box as a list for displaying the hit list. The user selects the required value from this list by double clicking. Since the possible entries are often formal keys, you must be able to display further explanatory information about the possible entries in the list.
    If the set of possible entries is very large, the user should be able to define additional conditions for the attributes of the selected entry. Restricting the set of data in this way both increases the clarity of the list and reduces the system load. Additional conditions can be entered in a further dialog window, the dialog box for restricting values.
    Specifying the dialog type of a search help defines whether the dialog box for restricting values should be offered and if so under what conditions.
    The attributes in the dialog box for displaying the hit list or in the dialog box for restricting values must be defined as internal parameters of the search help. An internal parameter can also be used in only one of the two dialog boxes. It can also belong to the search help interface.
    The internal parameter types are also defined with data elements. These data elements define how the parameters are displayed in the two dialog boxes.
    Reward if usefull

  • Change in which values are allowed for Product Ads conditions?

    Hi,
    According to https://msdn.microsoft.com/en-US/library/bing-ads-product-ads-guide.aspx#conditions, the following Product Ads condition values are allowed:
    New
    Used
    Refurbished
    Remanufactured
    Collectable
    Open Box
    But, around 3/14, all by the top three stopped working. I don't see any information about this in release notes. Can someone clarify if this is a temporary problem or permanent spec change.
    Thanks,
    Hans

    Hi NMU,
    I am not aware about SAP BW, can you try the following :
    --If the report saved in SAP BW then delete the report and save a report which is reflecting your changes.
    --Also try to create a new parameter with Country1 and add three countries and try to save the report.  If that is working then remove the Country paramenter (old) from the report.
    Thanks,
    Sastry

  • What values are possible for a specific object/field

    Hi everyone,
    I am trying to do the following
    Pull a list out of the system that would provide me with value's description for a specific authoirsation object / field
    I have tried SE16 > AGR_1251 > one of my roles
    I am getting the role, object, field, low and high values
    for example
    myrole - M_FORECAST - ACTVT - 03
    What I have missing is the English description of what "03" is. for example "Display"
    A 03 for a field may not always have the same meaning for different objects
    Alternativly can I pull a list somewhere of the potential values and their description for a specific Authorization Object / Field combination?
    Thank you
    Coco

    Please go through the following Tables:
    TACT : Contains the Text Descriptions of all Activities (for e.g. 01= Create/ Generate, 02= change etc.)
    TACTZ : Contains the Authorization Object specific Activities.
    TOBJ  : Description of Authorization Objects
    TOBJT: Text Description of Authorization Objects
    AUTHX:  Details of Fields
    TPARA:  Parameter Ids of Fields
    There are many more... but these are of help as per your question.
    Regards,
    Dipanjan

  • BW 7.3 Error in DTP if the values are char for the char field

    Hi,
    I have created a field with
    Eg: Field1 CHAR 7 -> i have removed the ALPHA conversion
    I am loading the data from ECC if the values are
    AA0-992 or AA1-AT1 there is no issue it is getting loaded
    but when i am getting the values as AAA-BBB it throws an error.
    In RSKC "-" is allowed CHAR.
    Can someone help becuase as this is the CHAR field it should accept
    Thanks

    Hi,
    I resolved in between we had the lower case characteris so that thrown and error.
    Thanks

  • Can we hide some data in alv report list,if so how to hide that data.

    in my report for single object type i will have 3 to 4 remarks which comes in the next line, so along with that remarks i must have the same object type but it should be in a invisible mode.

    You can do that by simply sorting the alv display by <b>object type</b>, all the data after that will be group according to its object type and the object type will only be printed once.
    You can make a varian inthe ALV and call it on your code, or insert the code with this (if you use function module for creating ALV):
    information for sort and subtotals
    types: begin of slis_sortinfo_alv,
           spos(2) type n,
             spos like alvdynp-sortpos,
             fieldname type slis_fieldname,
             tabname type slis_fieldname,
           up(1) type c,
           down(1) type c,
           group(2) type c,
           subtot(1) type c,
             up like alvdynp-sortup,
             down like alvdynp-sortdown,
             group like alvdynp-grouplevel,
             subtot like alvdynp-subtotals,
             comp(1) type c,
             expa(1) type c,
             obligatory(1) type c,
           end of slis_sortinfo_alv.
    DATA: l_v_sort TYPE slis_sortinfo_alv.
      REFRESH: ta_fieldcat, ta_sort.
      v_layout-zebra = 'X'.
      v_layout-colwidth_optimize = 'X'.
      l_v_sort-fieldname = 'OBJECTTYPE'.
      l_v_sort-spos      = 1.
      l_v_sort-up        = 'X'.
      l_v_sort-subtot    = 'X'.
      APPEND l_v_sort TO ta_sort.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = v_repid
          is_layout          = v_layout
          it_fieldcat        = ta_fieldcat[]
          <b>it_sort            = ta_sort[]</b>
          it_events          = ta_events[]
          is_sel_hide        = wa_selcrit
          i_save             = 'A'
          is_variant         = spec_layout
        TABLES
          t_outtab           = ft_output
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
    Regards,
    -don-

  • Extra column names selected when using the 'popup describe' for selecting columns

    Hi,
    In SQL Developer 3.2.20.09, if you use the popup describe function on a table and individually select some columns using Ctrl + click (not shift click which would select a range of columns), and then drag them to the SQL worksheet so the column names come across, it will include all columns between the individual columns that were  selected.
    For example if I choose column 1 and 5, it will include columns 1,2,3,4,5 when I drag them across.
    Simple to reproduce on any table, just open the SQL worksheet, type the name of a table, open the popup describe and select some columns.
    regards,
    Steve

    This isn't happening in v4 EA2 so it appears to be fixed.

  • SWITCHOVER_STATUS value are different for Oracle 11gR1 and 11gR2

    Hi All,
    I would like to know why is there a difference in the SQL output when run on a 11gR1 and 11gR2 Primary database in a DataGuard configuration.
    On a 11gR1 Primary database
    Open an SQL Session on the Primary database and run the SQL statement
    SQL> select switchover_status from v$database;
    To Standby
    Now open a second SQL Session
    Run the above SQL statement
    SQL> select switchover_status from v$database;
    Sessions Active
    Now, when I do the same on a 11gR2 Primary database here is the result
    On a 11gR2 Primary database
    Open an SQL Session on the Primary database and run the SQL statement
    SQL> select switchover_status from v$database;
    To Standby
    Now open a second SQL Session
    Run the above SQL statement
    SQL> select switchover_status from v$database;
    To Standby
    Is this a bug in 11gR2 ? Is there a patch/fix available ?
    Oracle 11gR2 version 11.2.0.1.0
    TIA,
    Sudhir

    Hello Loic,
    The result on the Standby Database is "Not Allowed". This is because there is no alternative Standby Available.
    I have some scripts which does the switchover based on the Database status. As per Oracle 11gR2 DataGuard Admin docs.
    Cut pasted for Oracle DataGuard Admin docs.
    Step 1 Verify that the primary database can be switched to the standby role.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    1 row selected
    Note: The WITH SESSION SHUTDOWN clause can be omitted from
    the switchover statement if the query performed in the previous step
    returned a value of TO STANDBY.
    When I use SQL statement "ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY;" and if there are Active SQL sessions then I get the error
    ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY *
    ORA-01093: ALTER DATABASE CLOSE only permitted with no sessions connected
    Thanks,
    Sudhir

  • In which table  batch characterstics values are saved for tcode VA01

    DEAR EXPERT,
    i am working on a development to update screen field values in characterstic assignment screen. i need  in which table the data we put for each characterstics  stored. and i want to know how i will update the screen field value in va01 in the above standard screen.
    req.: suppose a = 1.
                         b = 2.
                         c = ?
    i need how how c will update if a + b.
    please reply.

    hi,
    check table CABN.

  • Power shell search one column of a csv file and replace text in that column

    I have a huge CSV file.
    Column J has number which represents states.
    I would like to search through column J of output.csv and replace the number with the state name.
         J
    State
    233
    219
    233
    210
    Becomes
       J
    State
    NC
    TN
    NC
    SC
    I have tried several methods that seem to do noting or erase everything in my csv file or at best searches every column and if a phone number has 210 in it, it changes it to SC.
    Can any one point me in the correct location?
    Thanks!
    R White

    Thanks so much
    I gave it a try using this
    Import-Csv C:\temp\outfile.csv| ForEach-Object {
    if ($_.State.tostring() -like '256') { $_.State.tostring().replace('256', 'Somethingelse256')}
    if ($_.State.tostring() -like '257') { $_.State.tostring().replace('257', 'Somethingelse257xx')}
     } | export-csv C:\temp\outfileNEW.csv
    it produced a C:\temp\outfileNEW.csv
    with only a column A that had this all the way down it
    #TYPE System.String
    Length
    16
    16
    16
    16
    16
    16
    16
    R White

Maybe you are looking for

  • MacBook Pro won't sync with iPhone but iPhone does

    Since upgrading MacBook Pro to OS X Yosemite and each of iPhone and iPad to iOS 8.1.2, whilst appointments made on iPhone and iPad appear on Calendar in MacBook Pro, those made on MacBook Pro don't appear in Calendars on my iPhone and iPad. Tried iTu

  • E Business Suite File corrupted

    Hi I am new to E Business Suite. I am still at the learning stage. I am downloading the E Business Suite software R12 from E Delivery Site. The version I will use is linux X86 EBS. I am using a Windows machine to download all the files. The download

  • Cfldap to get 2 level of subordinates list from active directory

    <CFLDAP SERVER="ldap.com" PORT="333" START="O=COM,C=AN" SCOPE="SUBTREE" NAME="qryLevel1" ACTION="QUERY" ATTRIBUTES="cn, uid, alias" FILTER="(&(manager=cn=TestName,ou=employee,o=COM,c=an)(objectclass=olPerson))" MAXROWS="999999" TIMEOUT="90000"> By us

  • How to display local HTML5 web page in flash builder mobile application?

    We have one single html5 web page that includes script tag to include a set of resources(java script). Currently we have tried using web view, htmlloader and IFrame, but none of the approaches worked as the page is included in the assets folder itsel

  • What does "Adjustments disabled" mean and how do I get it enabled?

    When 2.1 came out I bought it, but have only tried to use it today. Projects works, Metadata works but Adjustments says "Quick Preview On (adjustments disabled). I have a couple of questions? 1) How did this happen? 2) What does it mean and? 3) How c