How to display  text in colour in  a classical report?

Hello export
I had written a classical reoprt i want to display page total and total in red colour. Please tell me the synatx.
Thanks in advance.
Chitta Ranjan Mahato
Edited by: chitto123 on Oct 27, 2010 11:29 AM
Moderator Message: Basic Question. Please search before posting
Edited by: kishan P on Oct 27, 2010 3:33 PM

data nodeinf type ref to if_wd_context_node_info.
data node type ref to if_wd_context_node.
node = wd_context->get_child_node( 'ZRADIO' ). "ZRADIO is the node name
nodeinf = node->get_node_info( ).
data lt_vs type table of WDR_CONTEXT_ATTR_VALUE.
data ls_vs type WDR_CONTEXT_ATTR_VALUE.
ls_vs-text = 'Copy'.
ls_vs-value = '1'.
append ls_vs to lt_vs.
You dont need to write this code. just give '1' in the key to select porperty of the radio button.'
and create on label also for each radio button. three labels for three radio buttons.
and as you said if i create an attribute name flag type wdy_boolean and if i bind it readonly property of all radiobuttons.suppose if i select copy radiobutton remaining two will be disabled.
actually it will disable all the three radio buttons.
but in anycase your requirement is that user should not be able to select the other radio buttons once he has selected one.
that requirement will be fulfilled by this.
thanks
sarbjeet singh

Similar Messages

  • How to display text in colour and arrange radiobuttons in sequence

    Hi all,
    according to my requirement  the screen should be appear like this Rate Caregory in green colour
    under this Select Action should be displayed in blue colour
    under this three radiobuttons should be displayed like this sequence
    copy  Massupload  Automated Rate Processing if copy radiobutton is selected remaining should be disabled.
    but for me the radiobuttons are displaying one by one i have to display it in the above sequence manner.
    kindly send me the steps how to achieve this functionality.
    Thanks & Regards,
    Naveen

    data nodeinf type ref to if_wd_context_node_info.
    data node type ref to if_wd_context_node.
    node = wd_context->get_child_node( 'ZRADIO' ). "ZRADIO is the node name
    nodeinf = node->get_node_info( ).
    data lt_vs type table of WDR_CONTEXT_ATTR_VALUE.
    data ls_vs type WDR_CONTEXT_ATTR_VALUE.
    ls_vs-text = 'Copy'.
    ls_vs-value = '1'.
    append ls_vs to lt_vs.
    You dont need to write this code. just give '1' in the key to select porperty of the radio button.'
    and create on label also for each radio button. three labels for three radio buttons.
    and as you said if i create an attribute name flag type wdy_boolean and if i bind it readonly property of all radiobuttons.suppose if i select copy radiobutton remaining two will be disabled.
    actually it will disable all the three radio buttons.
    but in anycase your requirement is that user should not be able to select the other radio buttons once he has selected one.
    that requirement will be fulfilled by this.
    thanks
    sarbjeet singh

  • How to display text on last but one page in SAPSCRIPTS

    how to display text on last but one page in SAPSCRIPTS

    u have create one Foooter window , this has to be called in  only One Page.So hardcode /assign this window to only one PAGE number.
    regards
    Prabhu

  • How to display texts automatic. besides entered value for a field in Trans.

    How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
    Message was edited by: Sarika Kedia

    Hi sarika,
    Welcome to SDN.
    1. first of all, such display of text,
       is not automatic.
       (it appears to be automatic)
    2. At design time,
       a) take one extra field for text
         and mark it as OUTPUT ONLY
    3. Then in PBO coding,
        call some module, and in that module
        write code
    4. The code should be to
       select from TEXT Table
       into the work area.
    EG. THE SCREEN TEXT FIELD NAME IS
    T510A-FIELDNAME.
    CLEAR t510a.
      SELECT SINGLE * FROM t510a INTO t510a
      WHERE trfar = FIELVALUE.
    5. This will take care of
       displaying the text value of that field.
    regards,
    amit m.

  • How to display text on last but one page

    how to display text on last but one page

    Hi Preeti,
      If u r working on a smartform then click on th window go to the condition tab there
      at the end u will find events click on the the event on which u want to trigger the 
      print.
      If u r working on a script then create a text element and call this text elemtn at
    the end of processing of the main window, this will make sure that thetext element
    is triggered only at the end.
    I hope that helps u , if not pls let me know.
    Regards,
    Vaibhav B Gawali.

  • How to display subtotals in separate column in alv report?

    hi,
    I am displayed the subtotals  for QUantity field BDMNG in Reuse_alv_grid_display  in the same column.
    but I want to display subtotal in separate column.
    How to display subtotals in separate column in alv report?
    thanks&regards.
    samba.k

    Hi
    As far as i know you can't do this,the option you have is to create one more column (subtotal) and populate it by manual calculation at every subtotal (not alv subtotal but yours) .
    Best Regards
    Yossi

  • How to print some text in BOLD in a classical report

    Hi,
    I need to print some selected text in BOLD in classical report.
    Went through SDN forum...came across some suggestions like using class cl_dd_document and its functions..
    The problem is that one of its function "add_text" allows to highlight text...but the display function "display_document" requires a container to display, whereas mine is a simple classical report...am i wrong somewhere..or is there any other method to do the same...
    Thanks!!

    Hi Deepti,
      I am not sure that is possible on a classical report ntu you can use colors to highlight a part of the report output in order to check the various options you have with format is to check F1 on format.
    Regards,
    Himanshu

  • How to display multi line headings in procedural alv report

    Hi experts,
    How to display multi line heading in alv( procedural alv report) report.
    some columns single line and some columns multi line in the same report.
    ex: 
                  solvent consumed          solvent recovered
                   fresh |   recovery             recovery | spent                            batch no                         storage
    I am using procedural alv .pls give me idea.

    Hi Ram,
    Check the sample report [how to display multi line headings in procedural alv report|http://sample-code-abap.blogspot.com/2008/01/printing-multiple-line-header-and.html]
    Thanks,
    Duy

  • How to display TEXT vertically in SMART FORM

    Hai,
    I need to display the column name of a table vertically (readable from bottom to top) in smart form.
    Could any one please tell me how to do this?
    Thanks & Best Regards,
    Maniyam Bhaskar.

    Hi,
    Go through these threads for the discussions happened on similar issue... hope it helps you..
    how to print text vertically in smart forms
    vertical and horizontal printing in same page with smartforms or sapscript
    Good luck
    Narin

  • How to display TEXT more than 500 char in a report as multiple lines.

    Hi Friends,
    i have a requirement like i should display Texts of length more than 500 Characters in a report( ALV LIST) as multiple lines
    I am fetching the data Using FM READ_TEXT
    the output im currently geeting with 150 Char in lenth as a single line
    How we can split the text into multiple lines in a report
    first i would like to know is it possible? if possible please give your valuable suggitions if not is there any alternative way to do this task.
    Thanks & regards
    kumar.

    Hi,
    This is possible but the Solution might not look Standard/Appropriate to you.
    In ALV, you can have Multiple Line Output...There is a Field in the Field Catalogue..called as Row_position...this is by default 0...which means Single row/Line ALV output....You can have this Value in the Range of 0 to 3.......A ALV field with row_position 1, will be displayed in the second line for every record...i.e. you will have multiple line for a single record of ALV.
    In your case......you can use this but you need to split your field in two fields.....but you may end up spliting a single word....but for that also you can design the logic of splitting the Fiel value at SPACE only......
    This may work.......and Sorry if not work......

  • How to display text file in JSP?

    Hi,
    I am new to servlet/JSP/java programming.
    I have been able to download a file using ftp. I dont know who to display it in JSP.
    Here is my code. Any help will be appreciated...
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.net.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="com.dmhistory.*" %>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <%
    byte[] bytes = new byte[4096];
    URL theUrl = new URL("ftp://user:passwd@host/migr/Movers_for_Ora8/BG/logs/FLD-PAC3-20020311.log");
    BufferedInputStream in = new BufferedInputStream(theUrl.openStream());
    BufferedOutputStream outstream = new BufferedOutputStream(new FileOutputStream( new File( "D:/temp/log.txt" )));
    int pos = in.read( bytes );
    while ( pos != -1) {
    outstream.write( bytes, 0, pos );
    pos = in.read( bytes );
    %>
    <%
    in.close();
    %>
    DONE!!!
    </body>
    </html>
    How can i display this downloaded file in the browser?
    I want to display it in the original format i.e which new line and carriage returns...line by line..
    Thanks,

    Hi,
    I finally go it to display. but now I have new problem. The browser shows the text without the /n/r.
    But when I view the source using 'view->source', if see that the text has got proper format with newline and carriage returns.
    Any ideas how to display it correctly in the browser?
    <%
                   URL theUrl = new URL("ftp://user:pwd@host/migr/Movers_for_Ora8/BG/logs/FLD-PAC3-20020311.log");
                   //URL theUrl = new URL("ftp://dbcmaint:[email protected]/migr/Movers_for_Ora8/SNP/logs/SNP-PAC2-20020314.log");
                   URLConnection uc = theUrl.openConnection();
                   InputStream content = uc.getInputStream();
                   BufferedInputStream in = new BufferedInputStream (content);
                   LineNumberReader lnr = new LineNumberReader (new InputStreamReader (in));
                   String tempStr = "";
                   String str = "";
                   while ((tempStr = lnr.readLine()) != null) {
                   str += (tempStr);
                        %>
                        <%=tempStr%>
                        <%tempStr = "";
                        %>
                   <%
                   in.close();
                   lnr.close();
              %>
    Thanks

  • How to display text in script as same as text in news paper

    Hi Expets
    I have a requirement i need to display text in script as same as text displayed in news paper
    with out creating any windows. iie ( Abcdef should be in one cloum after some space i need to display 1234)
    please let me know how can i achieve this
    Ex
    1.
    hi abcdef           12345
        abcedf          12345
    abcedf            12345
    Regards
    Suresh
    Edited by: suribabu124 on Jun 15, 2010 7:55 AM

    Hi,
    If you need to print a form like news paper you need go for multiple main windows.We know that we can use 99 main windows in one page.first create one main window and then leave a space then create one more window and select window type as mainwindow.
    while populating data,after completion of one main window the control will move to next main window,which is in the same page.
    Like this you need to analyse and code according to your requirement.

  • How to display text in custom control?

    Im doing a module pool program. There I have a Input field ,if user input there, some text I have to show in custom control. I have created custom control . But how to display some text there? what method I have to use?
    I have use this code for creating custom control.
    CREATE OBJECT EDITOR_CONTAINER
          EXPORTING
            CONTAINER_NAME              = 'TEXTEDITOR'
          EXCEPTIONS
            CNTL_ERROR                  = 1
            CNTL_SYSTEM_ERROR           = 2
            CREATE_ERROR                = 3
            LIFETIME_ERROR              = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        CREATE OBJECT TEXT_EDITOR
          EXPORTING
            PARENT           = EDITOR_CONTAINER
            WORDWRAP_MODE    = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
            WORDWRAP_POSITION          = LINE_LENGTH
            WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.

    Hi,
    You will have to use the method 'set_text_as_r3table' to display your text in the object.
    The text will have to be passed as an internal table to the method.
    Regards,
    Ankur Parab

  • How to display text in reverse order ?

    I was wondering how to display data [text-numbers...etc] in the reversed order.
    E.g.
    if the data is as follows:
    ORACLE
    it should be displayed as:
    ELCARO
    thanx in advance !

    An alternative would be a MODEL clause solution:Nice!
    Here another alternative with only one measure:
    SQL> create table t
      2  as
      3  select 'bocajijA' col1 from dual union all
      4  select 'ORACLE' from dual union all
      5  select null from dual
      6  /
    Tabel is aangemaakt.
    SQL> select old_col
      2       , col1
      3    from t
      4   model
      5         partition by (col1 old_col)
      6         dimension by (0 i)
      7         measures (col1)
      8         rules iterate(10000) until (iteration_number = length(col1[0])-1)
      9         ( col1[0]
    10           = substr(col1[0],1,iteration_number) ||
    11             substr(col1[0],length(col1[0]),1) ||
    12             substr(col1[0],iteration_number + 1, length(col1[0])-iteration_number-1)
    13         )
    14  /
    OLD_COL  COL1
    bocajijA Ajijacob
    ORACLE   ELCARO
    3 rijen zijn geselecteerd.Regards,
    Rob.

  • How to display text dynamically

    hello,
                                  i am working in dialog programing i need to display text which is save in a file and i want that whenever each new call screen i should display a text message from my flat file on the new screen ..... is there is a funda of xml?

    If the text is same for all the screens then copy it into a string or variable type c and write it on all the screens

Maybe you are looking for

  • HP Photosmart 6520 series37C041 connectivity issues

    Recently installed printer (wireless connection) on mac OSX 10.8.4. Has been working well up to now, it wont print. There is a file in the print queue that i cant delete. (might be the problem - try and delete it from queue and message "cant delete -

  • Windows 8 PC not able to remote desktop via Remote Web Access

    Windows 8.1 PCs cannot initiate a Remote Desktop session to Windows 7 PCs via Remote Web Access running on Windows Server 2012 Essentials.  The Windows 8.1 PC can Remote Desktop to the Windows 7 PC by IP using a VPN, and can connect using the "Remote

  • I want to create my own playbar in flash. How to install?

    Hi, I'm running cp7. I want to write my own playbar in flash and have it show up in the skin editor so I can choose it. I created one with a .swf extension and put it in the playbar folder, but I still can't see it in the skin editor. Suggestions? Th

  • Creating ad-hoc network for iTouch in XP

    Has anyone been able to sucessfully create an ad-hoc network within Windows XP and get there iPod touch online with it? (***** that you can't import certificates on the iTouch yet...)

  • Processing photos in the field taken with DSLR

    I want to be able to take my DSLR (Nikon D800e) and iPad to a workshop and accomplish minor edits in the field. If i transfer RAW files to my iPad, will LR Mobile allow me to edit them?