How to display sinlge character in o/p column(matnr) in Alv

Alvreport:
material no in output is displaying  Matnr
                                                sdmo46dm0012
from the above i want to display only fifth character in o/p:
                                                                                Matnr
                           required o/p:                           4
please answer me with coding as soon as possible.

In the internal which you are using to display the data replace the MATNR just by the fifth character of the MATNR.
LOOP AT ITAB ASSIGNING <FS_ITAB>.
<FS_ITAB>-MATNR = <FS_ITAB>-MATNR+4(1).
ENDLOOP.
Or you can have a different column which can be used for display purpose of that one character, you will have to have that extra column in the internal table as well as the field catalog.
Regards,
Ravi
Note - Please mark all the helpful answers

Similar Messages

  • How to display greek character in adobe digital edition using urf-8

    how to display greek character in adobe digital edition using urf-8

    when i tried to open below link
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm
    It's not opening & displaying access denied message as below.
    403 Access denied
    You do not have the permissions to access this resource
    Error is logged with Tag:
    Just want to know, Is it possible to display japanese characters on report using crystal report 8.5?
    We've constraint to use only CR 8.5
    Regds,
    Kaushal

  • How to display the content of a BLOB column in a ADF/BC pages ?

    How to display the content of a BLOB column in a ADF/BC pages ?
    There is some image in database table blog column. And we want to display image on the screeen.
    There is some example about upload and dowload blog columns.
    (steve not yet document example page etc...)
    But We want to display blog picture in a image component...
    is there any basic way to do it ?
    Thanks a lot...

    Ali,
    You could just download the sample app... but... here is the servlet code from the demo (look at it just for technique - you'll obviously have to change it for your needs)...
    John
    package oracle.fodemo.storefront.servlet;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.domain.BlobDomain;
    import oracle.jbo.domain.DBSequence;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.ViewObjectImpl;
    public class ImageServlet
      extends HttpServlet
      private static final String CONTENT_TYPE =
        "image/jpg; charset=windows-1252";
      public void init(ServletConfig config)
        throws ServletException
        super.init(config);
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response)
        throws ServletException, IOException
        response.setContentType(CONTENT_TYPE);
        response.setContentType(CONTENT_TYPE);
        String detailProductId = request.getParameter("detail");
        String thumbnailProductId = request.getParameter("thumbnail");
        boolean thumbnail = true;
        String productId = null;
        OutputStream os = response.getOutputStream();
        String amDef = "oracle.fodemo.storefront.store.service.StoreServiceAM";
        String config = "StoreServiceAMLocal";
        ApplicationModule am =
          Configuration.createRootApplicationModule(amDef, config);
        ViewObjectImpl vo =
          (ViewObjectImpl) am.findViewObject("ProductImages"); // get view object (the same as used in the table)
        if (detailProductId != null)
          productId = detailProductId;
          thumbnail = false;
        else
          productId = thumbnailProductId;
        vo.defineNamedWhereClauseParam("paramThumbnail", null, null);
        vo.defineNamedWhereClauseParam("paramProductId", null, null);
        vo.setWhereClause("DEFAULT_VIEW_FLAG = :paramThumbnail AND PRODUCT_ID = :paramProductId");
        vo.setNamedWhereClauseParam("paramThumbnail", (thumbnail? "Y": "N"));
        vo.setNamedWhereClauseParam("paramProductId", productId);
        vo.executeQuery();
        Row product = vo.first();
        BlobDomain image = (BlobDomain) product.getAttribute("Image");
        InputStream is = image.getInputStream();
        // copy blob to output
        byte[] buffer = new byte[10 * 1024];
        int nread;
        while ((nread = is.read(buffer)) != -1)
          os.write(buffer, 0, nread);
        os.close();
        vo.setWhereClause(null);
        vo.removeNamedWhereClauseParam("paramProductId");
        vo.removeNamedWhereClauseParam("paramThumbnail");
        Configuration.releaseRootApplicationModule(am, false);
    }

  • How to display each character of an input string in different rows

    Dear Members,
    I want to write a SQL or PL/SQL where in I can separate and display each character of an input string into multiple rows.
    For eg, the input string is TESTING, I want the result to be displayed as following:
    1 T
    2 E
    3 S
    4 T
    5 I
    6 N
    7 G
    I know we can use substr, but it returns me only one or more than one characters consecutively.
    Please help me get the desired output.
    Thanks in advance.

    Hi,
    Perhaps
    with a as
    select 'TESTING' text from dual
    select level, substr(a.text,level,1)
    from a
    connect by level <= length(a.text)

  • How to display and edit the clob datatype column from Data base

    Hi ,
    I have a requiremsnt as below
    1) One Table having some columns with CLOB data type along with varchar columns
    2) need to display the data from DB in search screen and need to be edited clob column in edit screen
    I created EO and VO with that Table and how to display the clob value into the input box for editing.
    using Jdev 11.1.1.5.0 version.
    Can you please help on this.
    THanks & REgards,
    Madhu

    Hi,
    If you are using an inputText component to display a Character Large Object (CLOB), then you will need to create a custom converter that converts the CLOB to a String.
    For custom convertor refer below link,
    http://docs.oracle.com/cd/E2438201/web.1112/e16181/af_validate.htm#BABGIEDH
    (section7.4 Creating Custom JSF Converters)
    Thanks,
    Santosh M E

  • How to display 2 lines in the same column header of jTable?

    Please could you help me to display 2 character lines in the same column header of a JTable?
    And how to make a fusion between to cells?
    Thank you very much

    In Swing, most components will accept text in the html format
    http://java.sun.com/docs/books/tutorial/uiswing/components/html.html
    You can then use <br> tags to make your header text multiline

  • How to display MySql query results in multiple columns?

    Hi, I know how to display PHP/MySq
    l query results in a single column, but I am really stuck at displa
    ying the results in multiple columns in DW CS4.
    Can anyone help me with a code example?. I am new to php/mysql. Thanks

    Are you asking how to pivot the results of the query? Do a search for horizontal looping. If that's not what you are asking, please provide more details.

  • How to display unicode character in jsp pages?

    i have to display user need language using unicode character according to user selected in radio button arabic or german in jsp
    pages. can you explain how i have to code?

    Hi,
    Visit the following URL http://java.sun.com/docs/books/tutorial/i18n/ .
    It will help you.
    bye for now
    sat

  • How to display Chinese Character(s) in a image on a Linux platform?

    Hi,
    I have the following code that runs perfect on Windows XP system after I installed the Chinese fonts on it, and set the fontconfig file under jre.
    What the program does is: load an image file, write some Chinese chars in it and redisplay the image, so that the image will contain the Chinese characters in it.
    I ported the generating image with Chinese Characers part of code into a web application which the servlet returns the modified image to client. The web application is running on a linux box. However, when a user views the image on the browser, the Chinese chars are not well displayed (they are just several squares).
    My question is, does the problem comes from the Chinese fonts settings on the linux system where the servlet is running on? And, how to fix the problem, any simple links on how to do that?
    Thanks.
    public void paint(Graphics g) {
    ImageIcon photo = new ImageIcon("C:\\image.jpg");
    Graphics2D g2 = (Graphics2D)g;
    g2.drawImage(photo.getImage(), 0, 0, null);
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    Font font = new Font("Arial Unicode MS", Font.PLAIN, 16);
    g2.setFont(font);
    g2.drawString("’†•¶", 140, 220);
    }

    "Arial Unicode MS" is the font provided by Microsoft, usually with MS Office products. I believe that's why those Chinese are rendered as square boxes on Linux. Either specifying some Chinese font available on your Linux box in the Font constructor, or using one of the logical fonts instead (for JDK5 and later) would help.
    Naoto

  • How to Display Japanese character in Crystal Report 8.5

    Hi,
    I've some data stored in japanese language in sql server 2005 database using nvarchar datatype.
    When i execute store proc in sql server, it's showing japanese character properly in sql server. However, when i'm trying to display data in crystal report 8.5, it's showing ????? character.
    I've tried to change font to 'Arial Unicode MS (Japanese)',MS Gothic, MS UI Gothic, MS Mincho (Japanese) as per the search result available in  google. But not had any luck.
    Can anyone please provide any solution for this?
    Many Thanks.
    Kaushal

    when i tried to open below link
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm
    It's not opening & displaying access denied message as below.
    403 Access denied
    You do not have the permissions to access this resource
    Error is logged with Tag:
    Just want to know, Is it possible to display japanese characters on report using crystal report 8.5?
    We've constraint to use only CR 8.5
    Regds,
    Kaushal

  • How to display blank character if date is not there

    Hello abapers,
    I need to diaply blank values if Date is not initialized.Not to display zeros.
    INstead i need to display spaces.
    waiting for ur favourable replies
    Regards
    Maruthi.

    Hi maruthi,
    1. For spaces, we will have to take another variables.
    2. eg.
    REPORT abc.
    DATA : dt TYPE sy-datum.
    DATA : dts(10) TYPE c.
    WRITE : 'Date Normal' , dt.
    IF dt IS NOT INITIAL.
      WRITE dt TO dts.
    ENDIF.
    WRITE :/ 'Date Character' , dts.
    regards,
    amit m.

  • How to display the content of a BLOB column in a JSP page?

    Hi,
    I've a db table with a Blob column which contains an image (".gif" file). I've created a UIX JSP page with the wizard, but I cannot display my image.
    This is my code:
    <%@ page errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
    <%-- Define Application Module and DataSource--%>
    <jbo:ApplicationModule configname="PackageTest.PackageTestModule.PackageTestModuleLocal" id="app1" />
    <jbo:DataSource id="ds1" appid="app1" viewobject="ProvaMediaView" rangesize="1" />
    <%-- Main page contents go here --%>
    <uix:contents>
    <uix:form name="form1" method="POST">
    <uix:labeledFieldLayout >
    <jbo:AttributeIterate id="dsAttributes" datasource="ds1" hideattributes="UixShowHide">
    <%if(dsAttributes.getName().compareTo("Image")==0){
    %>
    <bc4juix:LabelStyledText datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
    <jbo:EmbedImage datasource="ds1" mediaattr="Image" />
    <%}else{%>  
    <bc4juix:LabelStyledText datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
    <bc4juix:InputRender datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
    <%}%>
    </jbo:AttributeIterate>
    </uix:labeledFieldLayout>
    <uix:formValue name="RowKey" value="<%= sRowKey%>" />
    </uix:form>
    </uix:contents>
    and this is the error on running the page:
    oracle.jbo.domain.BlobDomain
    Exception Details
    javax.servlet.jsp.JspException: oracle.jbo.domain.BlobDomain
         int oracle.ord.html.jsp.datatags.ShowEmbedImageTag.doStartTag()
         void Media_Edit._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    How can I do?
    Thanks in advance.

    Hi,
    I've a db table with a Blob column which contains an image (".gif" file). I've created a UIX JSP page with the wizard, but I cannot display my image.
    This is my code:
    <%@ page errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
    <%-- Define Application Module and DataSource--%>
    <jbo:ApplicationModule configname="PackageTest.PackageTestModule.PackageTestModuleLocal" id="app1" />
    <jbo:DataSource id="ds1" appid="app1" viewobject="ProvaMediaView" rangesize="1" />
    <%-- Main page contents go here --%>
    <uix:contents>
    <uix:form name="form1" method="POST">
    <uix:labeledFieldLayout >
    <jbo:AttributeIterate id="dsAttributes" datasource="ds1" hideattributes="UixShowHide">
    <%if(dsAttributes.getName().compareTo("Image")==0){
    %>
    <bc4juix:LabelStyledText datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
    <jbo:EmbedImage datasource="ds1" mediaattr="Image" />
    <%}else{%>  
    <bc4juix:LabelStyledText datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
    <bc4juix:InputRender datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
    <%}%>
    </jbo:AttributeIterate>
    </uix:labeledFieldLayout>
    <uix:formValue name="RowKey" value="<%= sRowKey%>" />
    </uix:form>
    </uix:contents>
    and this is the error on running the page:
    oracle.jbo.domain.BlobDomain
    Exception Details
    javax.servlet.jsp.JspException: oracle.jbo.domain.BlobDomain
         int oracle.ord.html.jsp.datatags.ShowEmbedImageTag.doStartTag()
         void Media_Edit._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    How can I do?
    Thanks in advance.

  • How to display data in text file in column format

    hi
    i am acquiring data from an oscilloscope.
    wen i save the data in a text file using wite to speadsheet string, all the voltage values r displayed first and then the time values... besides its tab delimited
    how can i display it such that the time values r in one column and the voltyage values r in the other column
    thanx
    Solved!
    Go to Solution.

    Hi,
    I think you are collecting data at the same time and as aeastet told building an array will help. the example attached will give you an idea.. Though i am not sure whether this will solve your problem or not.
    Regards,
    Nitzz
    (Kudos are always Welcome, Mark as a solution if it is the One)
    Attachments:
    Untitled 1.vi ‏7 KB

  • How to display more than 255 chars in background job with ALV Grid ????

    Hi All,
    I am using ALV grid with OO.
    I have used call screen for ALV grid display. I have to display more than 255 characters in width. While running it, I can see the list perfectly.
    But in background mode, the list is truncated after 255 chars.
    Can anybody help how to send complete list(width more than 255 chars) to spool.
    Thanks and Regards,
    Neha

    Hi SAP fan,
    <b>YES you can run the ALV report in background mode.
    To run the report in background do F9 instead of F8, then give immediate and save.
    Now goto Sm35 goto job overview and view the job listed
    Choose the job and press the spool button. It will show the list created on the next page. When u clcik the list u can see the ALV output.
    To see this the job should be in the finished status.
    How to define Periodic Jobs
    1.Execute transaction SM36
    2.Define Job name, Job class, Target server
    3.Click on 'START CONDITION' button
    4.Click on 'Date/Time' button
    5.Enter Scheduled start DATE & TIME. Check mark 'Periodic Job' field. Click on 'Period values' button and select 'Hourly' or 'Dialy' or 'Weekly' or 'Monthly' or Other period and SAVE. Go back to main screen.
    6.Click on 'STEPS' button and enter Program name and Variant under box 'ABAP Program'. Click on 'Print Specification' button and enter Printer name under 'Output device' and SAVE
    7.Click on SAVE button until you get message on bottom of the screen that describes 'Job XYZ saved with status: Scheduled'.
    8.Click on 'Job overview' button or execute SM37 transaction.
    9.Select the appropriate 'Job name', 'User name', 'Job Status' & Schedule date under 'Job start condition' and click on 'Execute' button or press F8.
    10.You will now see all your scheduled JOBS.
    <b>Case: 2</b>
    You can Run in Background but make sure it is alv list, not alv Grid FM. if you are uisng alv list not problem , but if you are using alv grid then you can code like this..
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
                    RECEIVING e_offline = off.
        IF off IS INITIAL.
          CREATE OBJECT g_custom_container
                 EXPORTING container_name = g_container.
        ENDIF.
    <b>Case: 3</b>
    if you are using OO ALV.
    Just before creating the custom container check for the following condition.
    Batch or Web Reporting
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    CREATE OBJECT o_custcontainer
    EXPORTING
    container_name = lc_custcontrol
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    ENDIF.
    You can see the output in Spool in transaction SP01.</b>
    Good Luck and thanks
    AK

  • How to display Various currency categories in same column in ALV grid?

    hi..
    i wanted to display currency field in a column which has the currency value of different currency categories like US dollar, EURO, Indian Rupees. The thing is,
    1. for US dollar it should contain ONLY last 2 decimal pts.
    2. for Euro, it should hav contain last 3 decimal pts.
    3. For Indian, it should hav contain last 2 decimal pts.
    how to achieve this in one column and how to declare it, because it all in same field.
    This report is in ALV GRID.
    and important is , i also wanted to do the SUM for the total amount which has combinations of all above specified currencies.
    how to achieve it.
    any answer will be rewarded.?
    reply soon.

    You need two columns amount and currency code in your internal table, the fields must be of type CURR and CUKY, and the field catalog must link the amount and the currency code. (CFIELDNAME of the amount column contains the name of the currency code column)
    The amount will be displayed according to the currency code definition in customizing, and will be summed by currency code.
    Regards

Maybe you are looking for