Hiding text depending on the condition

Hi All,
I am new to reports, I want to know how can I hide and show text information depending on the condition....
Thanks,
Pavan.

Then, u should kindly mention it pls to help others and state the version of reports u r using..!
Regards,
Abdetu..

Similar Messages

  • Generating number depending on the condition

    Dear All,
    I have table with following structure.
    formno          number(5)
    name          Varchar2(100)
    centreno     number(2)
    rollno          Varchar2(10)
    I want to generate rollno depending on the following condition.
    1. Roll number should be generated based on the centreno
    2. Roll number should be generated based on the alphabets but not in a sqeuence.
    For eg.
    my data is like
    form no     name     centreno     rollno
    200           A1      01           1
    206           A2      01           4          
    502           A3      02           6
    234           A4      03           10
    400           B1      01           2               
    501           B2      02           7
    788           C1      01 3
    100           C2 02           8
    343           C3      01           5
    130           C4      02           9
    232           C5      03           11
    i.e. first I need to sort names alphabetically by centreno. But then I need generate number in a sequence that first A, B, C...Z will be generated. Then it starts again from A, B, C...Z for that centre. Then it will run same process for other centres.
    Any ideas how to do this?
    Regards
    Trusha
    Edited by: trusha on Oct 10, 2008 3:53 PM

    Something like .. (for given sample data)
    SQL> select * from test;
            C1 C2 C3
           200 A1 01
           206 A2 01
           502 A3 02
           234 A4 03
           400 B1 01
           501 B2 02
           788 C1 01
           100 C2 02
           343 C3 01
           130 C4 02
           232 C5 03
    11 rows selected.
    SQL> select c1,c2,c3,
      2    row_number() over(order by c3,rn,c2) regno
      3  from(
      4  select c1,c2,c3,
      5   row_number() over(partition by c3,substr(c2,1,1) order by c2) rn
      6  from test)
      7  order by c2;
            C1 C2 C3      REGNO
           200 A1 01          1
           206 A2 01          4
           502 A3 02          6
           234 A4 03         10
           400 B1 01          2
           501 B2 02          7
           788 C1 01          3
           100 C2 02          8
           343 C3 01          5
           130 C4 02          9
           232 C5 03         11
    11 rows selected.
    Edited by: jeneesh on Oct 10, 2008 4:51 PM
    corrected                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Change the colour of a cell text depending on the value Web Reports (NW04s)

    Hi all,
    does anyone know how to change the color of the text of a cell depending on its value on Web Reports? For example red text for values smaller than zero and blue for values bigger than zero?
    I know you can create exceptions, but that changes the background color of the cell and not the text color
    I have tried modifying the theme but the property "negative text" doesn't related to cell values.
    Thanks
    C
    PD: Point will be awarded!
    Message was edited by:
            Carles Prunera

    This function changes all numeric fields to blue if no css style is set.
    [code]
    function turnblue(){
      var cells =document.getElementsByTagName('a');
      for ( i=0; i<cells.length; i++){
        if ( cells<i>.className == '' ){
          var changeColor = checknumber(cells<i>.innerHTML);
    // additional condition on value
          if (changeColor) {
            cells<i>.style.color = '#0000FF'
    function checknumber(cNumber){
      var x= cNumber
      var anum=/(\d+$)|(\d\.\d$)/
      if (anum.test(x))
        testresult=true
      else{
        testresult=false
    return (testresult)
    [/code]
    hope it helps

  • To hide a button in a column field depending on the condition in ALV

    Hai,
    I have a column in ALV with buttons.I need to make that button Visible or invisible based on a condition.
    i have fiels with value x and blank.
    if the value is x i need to make the button visible and viceversa.
    Cheers,
    Madhu.

    Hi,
    I assume when you say that you have a field with value X or blank that you have a internal table with one of the field as mentioned above and also a context node with
    the same structure of the internal table so that you bind the internal table to the node
    and display the same in ALV.
    If my assumptions are right you must proceed as follows.
    1.Create an internal table with the same structure that u had passed for ALV.Add one more column to that table with type wdui_visibility.
    2.Create one more node with the structure of the internal table created above.
    3.Move the coresssponding data from your old internal table to the new internal table.
    4.For the new column of type wdui_visibility fill values by comparing the field with value X or blank.ie. IF value = X wdui_visibility_column-value = '02' .
                        IF value = blank wdui_visibility_column-value = '01' .
    5.Save the changes in the new internal table.
    6.Bind the new internal table to the new node.
    7.Use the new node to display data in ALV.
    8.Create an attribute "alv_table" of type "CL_SALV_WD_CONFIG_TABLE" in the view.
    9.In the wd_init method add the following codes.
    * create an instance of ALV component
      DATA:
        lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage.
    * get ALV component
      DATA:
        lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
    * set cell editor for input fields (~make colum Wt editable)
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_column type ref to CL_SALV_WD_COLUMN,
            lr_column_hdr type ref to CL_SALV_WD_COLUMN_HEADER,
            lr_button_1 TYPE REF TO cl_salv_wd_uie_button.
      lr_salv_wd_table_usage = wd_this->wd_cpuse_<Alv component usage name>( ).
      IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
        lr_salv_wd_table_usage->create_component( ).
      ENDIF.
      lr_salv_wd_table = wd_this->wd_cpifc_<Alv component usage name>( ).
      wd_this->alv_table = lr_salv_wd_table->get_model( ).
    lr_column_settings ?= wd_this->alv_table.
    lr_column = lr_column_settings->get_column( '<column name which you want to show
                      as button>' ).
    CREATE OBJECT lr_button_1.
      lr_button_1->set_text( '<some releavnt text>' ).
      lr_button_1->SET_VISIBLE_FIELDNAME('<new column name of type
                         wdui_visibility>').
      lr_column->set_cell_editor( lr_button_1). 
    Hope this helps.
    Thanks,
    G.Jayaprakash

  • Dynamic Label change the Text depending of the locale

    Hi,
    I have create a dynamic UI (some InputFields with Labels). The development is in American English. I have create resource name in the xlf-Files. For American English and for German. I set the text of the label by the dynamic creation of the label.
    If I try to get the label texts in english I get always  the text of the creation one but not the german one. The other texts of the UI-elements are right, which I have translate to german.
    It looks like that it is not possible to create UI-Labels for international using.
    Any idea.
    regards
    Gunter

    hi Werner,
    you try in this pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/internationalization%20of%20web%20dynpro%20applications.pdf
    Regards,
    vino

  • Calling multiple webservices depend on the condition

    Hi friends,
    i need a solution for my ccbpm flow.
    we are getting request from Webservice1 , and it is going to Webservice2. Here it will check the conditon in webservice2.
    if the conditon is true from there it will go to Webservice3.
    Unless Webservice2 will send a message to Webservice1.
    we are using CCBPM flow for this.
    for this i taught like if-else conditon.
    but i do't know how to use this condition.
    could any one provide solution for this.
    are if there is any other way to do this in CCBPM .
    note: i need it in CCBPM only.
    please help me on this.

    Firstly, you dont need ABAP proxy any more for a scenario which involves commmunication only between WS and BPM (i should say PI).
    in the above given flow can I take at first receiver mode u201CS/A Bridgeu201D because need to send response to the first webservice1.
    And could you tell if I used this S/A bridge , where can I close this S/A bridge.
    Sync-Async bridge should be used only if you want to send response to WS1 in any case i.e. response should always be sent to WS1 irrespective of any condition.
    The send step in which you are sending the response to WS1 will close the S/A bridge.
    From webservice3 the response need to go to webservice1.
    So can I take here the step like SyncSend(WS3Req_To_Ws1Res).
    When WS3Rep needs to be send to WS1 then you need not include it as a SYNCSend...it should be an ASYNCSend..... SYNCSend should be used only if WS1 is again going to send you some details back
    Question 3:
    How to replace ABAP Proxies in my Entire flow.
    Case1-->
    You need not worry about proxies anymore.....now you will be importing WSDL into External Definitions in Integration repository and using the same to build Message Mapping and Message Interface.
    You will get these wsdl files from the webservice applications with whom BPM (PI) will be talking.
    Case2 -->
    In your case firstly WS1 will send you a request....so now you need to provide them with the wsdl generated in PI....so that they can establish the communication.
    How to create the wsdl file?...check it here: /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Just refer till Pt.2 of Testing section
    All the sender/ receiver protocol in your case will be SOAP.....i.e. only SOAP sender/ receiver channels needs to be created
    No channel is to be ccreated when BPM is the sender/ receiver
    Regards,
    Abhishek.

  • Generating a list depending on the condition of checkboxes

    I have a table with a list of items with a checkbox next to each of them. On a second table I'd like items from the first table to appear if they are checked off. Below is an screenshot of the result I'd like.
    I apologize if this question has already been answered, I spent an hour looking and couldn't find an answer. I suspect it has something to do with VLOOKUP but I can't figure it out for the life of me.

    noafe wrote:
    I have a table with a list of items with a checkbox next to each of them. On a second table I'd like items from the first table to appear if they are checked off. Below is an screenshot of the result I'd like.
    What you're looking for is a 'breakout table'.
    See my post at the end of this discussion from last September.
    A search of this forum for 'breakout' over the last year will bring up other examples.
    Regards,
    Barry

  • Different text depending on number of copies (RLB_INVOICE)

    Dear SDN community,
    I need to print the sales invoice in three copies, in which the first copy says "Original", the second "Duplicate" and the third "Triplicate".
    Looking at RLB_INVOICE coding, I noticed that the Smartform is called three times. I copied standard Smartforms LB_BIL_INVOICE and created inside the reapeat window three different text elements with the conditions query the SFSY-COPYCOUNT variable. In every call, the variable is 1.
    Is there any way to archive this requisite without changing standard report RLB_INVOICE?
    Naturally, changing standard report I can pass sy-tabix variable inside SF and query this variable. But shouldn´t it be possible without changing standard report?!
    Thanks in advance,
    MPM

    Dear José,
    In your solution I need to copy standard program to a Z, right?!
    Since I need to create a copy, I would rather prefer to pass the sy-index variable as parameter into my SF like shown below.
    Data: ld_index like sy-index.
    DO nast_anzal TIMES.
    * In case of repetition only one time archiving
          IF sy-index > 1 AND nast-tdarmod = 3.
            nast_tdarmod = nast-tdarmod.
            nast-tdarmod = 1.
            ls_composer_param-tdarmod = 1.
          ENDIF.
          IF sy-index NE 1 AND repeat IS INITIAL.
            repeat = 'X'.
          ENDIF.
    * call smartform invoice
    * MPM move sy-index to local variable
         move sy-index to ld_index.
          CALL FUNCTION lf_fm_name
               EXPORTING
                          archive_index        = toa_dara
                          archive_parameters   = arc_params
                          control_parameters   = ls_control_param
    *                 mail_appl_obj        =
                          mail_recipient       = ls_recipient
                          mail_sender          = ls_sender
                          output_options       = ls_composer_param
                          user_settings        = space
                          is_bil_invoice       = ls_bil_invoice
                          is_nast              = nast
                          is_repeat            = repeat
    * MPM include index parameter
                          is_index             = ld_index
               importing  job_output_info      = ls_job_info
    *                     document_output_info =
    *                     job_output_options   =
               EXCEPTIONS formatting_error     = 1
                          internal_error       = 2
                          send_error           = 3
                          user_canceled        = 4
                          OTHERS               = 5.
          IF sy-subrc <> 0.
    *   error handling
            cf_retcode = sy-subrc.
            PERFORM protocol_update.
    * get SmartForm protocoll and store it in the NAST protocoll
            PERFORM add_smfrm_prot.
          ENDIF.
        ENDDO.
    Since it seems to me that my requirement is quite normal, I was looking for way to solve it using the standard program. Somebody surely had the same problem?!
    To Satyajit: Yes, I used a copy window and I am checking SFSY-COPPYCOUNT. But value is always 1. I have three text elements with conditions checking SFSY_COPYCOUNT, but all copies are always original since the value of SFSY-COPYCOUNT is always 1.
    To sam_ins: I will check nast structure again, but I am quite sure I checked it already and the problema is the same as SFSY-COPYCOUNT.
    Thanks anyway,
    MPM
    Edited by: Marcelo Moreira on Dec 21, 2010 11:23 AM

  • In which table the condition records get stored in sap crm

    hi everybody any one can help me in this,
    In which table the condition records get stored in sap crm.
    Regards,
    Babu

    Hi Babu,
    The table name depends on the condition table you have chosen while adding a condition record. Like if it is SAP001, the database table will be CNCCRMPRSAP001.
    Regards,
    Shalini Chauhan
    Edited by: Shalini Chauhan on Jun 23, 2008 10:18 AM

  • Printing text depending on condition satisfied

    Hi all,
    Here I need to print text depending on condition satisfied.print this &GS_IT_GEN-SHORT_TEXT& or print this &gwa_equi-groes&  &gwa_equi-herst&  &gwa_t370k-eartx&.how to use variable in smartform and print program to print either of the text.if possible provide sample code to achieve this.as i am new to form printing section i don't know much about it's programming.
    Thanks in advance.
    Regards,
    Harshada

    Hi,
    you can define variables in the Global definitions node,
    and we can create program lines in the smartform and in that program lines you can write ABAP code,
    so, here based on the conditions we can assign. for eg:
    l_var1 should be defined in the global definitions node.
    if condiion 1.
    l_var1 = g_value1.
    elseif condition 2.
    l_var1 = g_value2
    endif.
    and then you can print &l_var1&.
    Edited by: Radha Vineela Aepuru on Aug 10, 2010 4:10 PM

  • Changing the Condition type Text in the Purchase Order

    Hi SAP,
    Hi,
    We have a requirement where by we need to change the Description of the condition type text in the Purchase order.
    The condition type is a entered at item level.
    Normally this description comes from the Condition type Definiton i.e., T685T-VTEXT.
    can any one of you suggest a User exit or a method where by we can change this text at PO.
    Has any one of you came across such situation before. if so please provide me with your inputs.
    Thanks
    Best Regards
    ShitalD
    Edited by: Shital Deshpande on Feb 21, 2010 1:07 PM

    Hi,
    I think it is a config setting..Please check with your functioal consultant regarding the same.. I won't suggest to change the standard SAP table T685T but you can keep it as last option .
    From SPRO you can follow the below path
    Sales and Distribution->Basic Functions -> Pricing > Pricing Control -> Define condition types.
    Regards,
    Nagaraj

  • How can i define a boolean variable with the condition if i got a specific text on a selected column?

    How can i define a boolean variable with the condition if i got a specific text on a selected column?
    Example:
    my select results:
    [id = 102] [Company = 'Microsoft']
    If i got microsoft in 'Company' i want to my another table with the columnName "Microsoft" get "true".
    Can you help me?

    That is called 2-table UPDATE.
    Example:
    http://www.sqlusa.com/bestpractices2005/updatewithcorrelatedsubquery/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Ok so i'm trying to do a conditional format on numbers if (cell a2) = greater than or text then make the same cell or another cell do something. Does anybody knows how to do that on numbers. thanks.

    hi I'm from Italy.
    ok so i'm trying to do a conditional format on numbers if "a cell" = greater than or text then make the same cell
    or another cell do something like insert a number or change color.
    Does anybody knows how to do that on numbers?. thanks.

    Among the things you'll learn from the User Guide:
    Conditional formatting can be used to change the style of the text in a cell and/or the fill colour of the cell.
    A formula may be used to set the value in a cell. In both cases, the format rule or the formula affects only the cell to which the rule is attached or which contains the formula. Neither values or formats may be 'pushed' onto another cell.
    Regards,
    Barry

  • How to set colors in cells depending the conditions  in alvtree

    Hi All,
    Could you please provide me idea or sample program how to set colors in cells depending the conditions  in alvtree.
    Thanks,
    Suresh

    When running vim in a terminal, it will use whatever colour scheme is defined by the terminal.  You should have a look at this thread:
    http://bbs.archlinux.org/viewtopic.php?id=51818
    Also, check the wiki article on Xdefaults.

  • Text Determination at Opportunity creation dependent to the Sales Orga

    Hello experts,
    we try to define a text determination for opportunities dependent to the sales organisation. That means we have a text type calles e.g. "Sales Orga TEXT". In an opportunity at creation time, the user's sales orga will be determined for the opp. Dependent to this sales orga we want to determine different content for the text type "Sales Orga TEXT".
    I've created a function module for this issue. I don't know how i can get the sales orga of an opp at creation time. Is there a structure which is available at this time? Or how can I get this info?
    Somebody any ideas?
    Thanks
    Abbas

    Use function module CRM_ORDER_READ and get the organization details from the output structures for ORG ET_ORGMAN or more so use the function module CRM_ORGMAN_READ_OW and get the org details.
    You need the header guid of the transaction.

Maybe you are looking for