Read parameters content from dynpro

Hello,
I have a problem with reading a parameters content.
Following coding:
Log table
DATA: BEGIN OF it_log OCCURS 0,
        matnr_short(10),
        matnr  TYPE matnr,
      END OF it_log.
PARAMETERS s_matnr TYPE rmmg1-matnr.
Now I enter numbers like 1234000000, 1235000000, 1236000000.
Content of s_matnr will be 000000001234000000, etc.
Q: How can I read all entries of s_matnr into it_log-matnr ?
2.Q: How can I read 1234000000 to it_log-matnr_short ?
Thanks a lot!

What the user enters and sees is 1234000000. But internally, SAP stores it with leading zeroes, this is why you see 000000001234000000 in debug, and this value is also stored in database.
The conversion from 1234000000 to 000000001234000000 is made by a function module named CONVERSION_EXIT_<routine>_INPUT, see below for value of <routine>.
The conversion from 000000001234000000 to 1234000000 is made by a function module named CONVERSION_EXIT_<routine>_OUTPUT.
To find out the <routine> value:
Start SE11 transaction
Look at structure "rmmg1"
Look at the component of its field "matnr" (it is a data element)
Look at the domain of this data element
Look at the "routine" of this domain. If it is named MATN1, it means that the conversion functions are CONVERSION_EXIT_MATN1_INPUT and CONVERSION_EXIT_MATN1_OUTPUT.
You can call yourself the second function module if you need to remove the zeroes.
Sap library here : http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee19446011d189700000e8322d00/frameset.htm

Similar Messages

  • Reading WebDAV Content from ABAP

    Hello,
    I like to read WebDAV Content from SAP NetWeaver Portal KM with ABAP.
    For writing Content with WebDAV I found this post:
    A small working example of how to use the Abap webdav client to write files
    With Method GET_CONTENT from CL_SWDCL_NAMESPACE_CLIENT I can read single files, but what I need is a list with files and folders for a given path.
    I also tried to use the Interface IF_SWDCL_BASIC_SEARCH_CLIENT, but I only get HTML-Errorcodes 400 or 422 since I don't know which parameters I need.
    Maybe there is someone here who can help me to solve this problem.
    Thank you.

    Hello,
    I face the same problem, did you already find a solution you can share?
    Thanks in advance
    Stefan

  • How to read the content from a External Content Type with out creating External List in Sharepoint 2013?

    Hi,
    I have a requirement to read the External Content Type and storing the Data in a Session Variable. The Reading of the content from External Content Type with out creating a External List.
    Please help I am trying to find the solution, but unable to do that.
    Thanks,
    Pradeep

    Hi,
    Firstly an external content type designed to work with SharePoint list and there is no way to read apart from this.
    If you are looking the solution out of the " Business Connectivity" then find that data source has been exposed through WCF and  Web Service ?
    So you can use REST API and CSOM to consume those data in SharePoint.
    You can also leverage the ADO.NET option if the datasources based on MS technologies.
    Murugesa Pandian| MCPD | MCTS |SharePoint 2010

  • Reading email contents from a program

    Hello,
    I need to read an email content from a program, to attach it to an CRM activity. Does anybody know if there is a function for this? I will have the email data (Object id, folder, type, etc) available.
    Thank you!
    Paola

    Hi,
    My Requirement is :
    1)I got a requirement to read Bounce back mails in the CRM System .My present scenario is that once a campaign is executed , the mails which get bounce back are returned to outlook location.
    2)The required scenario demands that, to read email IDs which get Bounce back and need to be compared with Email Ids in the Target group , which is assigned to the campaign and update the 'COunter' field which is assigned to the E-mails in the Master Data.
    3)Is there any machanism to read the BOunce-Back mails in CRM System itself (or) It should be read from outlook location where the mails are returned presently, so that COUNTER which is tied up with the E-mails in Master Data can automatically updated.
    4) Is there any possibility to read the Mails in the Outlook location with Mail IDs in the CRM system.
    I have gone through Mr Thomas article and i think it works for my requirement  but i dont know how to proceed further to read bounce back mails when a campaign is executed in CRM System.
    Can any one guide  me how to solve this problem .
    THANKS
    SURESH

  • Read MIME content from POP Server

    Hi All,
    I just want to read the mails from POP Server and redirect the mails to different folders as per the content existing in the mail.
    Now I could able to read the messages from the mails from POP server as well. I'm facing problem while reading MIME type mails from the POP server.
    Can anyone guide me or send me some examples for reading mails from POP Server...
    Thanks in Advance.
    Regds,
    Murugesh

    Reading from a POP server is easy. If it's not working for you
    then please describe in more detail what you tried and what
    happened.
    Saving the messages in other folders can't be done using
    POP, since it supports only a single folder. You can save the
    messages in IMAP folders, or you can get a third party local
    store provider and save the messages in local files.

  • Reading binary content from HTTP?

    As long as i read text (ascii) data from a HttpURLConnection, the resulting stream (written to a file) is okay (readable). but when i want to read a PDF file with the same code, the written output file is not readable with the Acrobat reader (file type not supported or file corrupted):
                    //read data from HTTP server:
                    InputStream is = null;
                    HttpURLConnection con = null;
                    try {
                        System.out.print(key+": connecting ...");
                        con = (HttpURLConnection) url.openConnection();
                        if (con instanceof HttpsURLConnection) { //HTTPS URL?
                            //avoid "java.io.IOException: HTTPS hostname wrong:  should be <217.5.135.142>"
                            ((HttpsURLConnection) con).setHostnameVerifier(new HostnameVerifier() {
                                public boolean verify(String hostname, SSLSession session) {
                                    return true;
                        System.out.print(" reading ...");
                        try {
                            is = con.getInputStream();
                            try { //in case input stream is compressed via GZIP:
                                is = new GZIPInputStream(is);
                            } catch (IOException ioe) {
                                //ignore (input stream is not GZIP compressed)
                        } catch (IOException ioe) {
                            System.err.println("Error getting input stream. HTTP return code: "+con.getResponseCode()+" ("+con.getResponseMessage()+"). "+ ioe);
                            return;
                        IOUtils.writeStream(is, os);
                    } catch (Exception e) {
                        System.err.println("\nError getting content from URL: " + e);
                        return;
                    } finally {
                        if (is != null) { try { is.close(); } catch (IOException ioe) { ioe.printStackTrace(System.err); } }
                        if (con != null) { try { con.disconnect(); } catch (Exception e) { e.printStackTrace(System.err); } }
                        if (os != null) { try { os.close(); } catch (IOException ioe) { ioe.printStackTrace(System.err); } }
                    }when i open the written pdf file with a text editor, i noticed the the first line is
    DF-1.4
    so, the first character "P" is missing. but even when i add the "P" in the text file and save it, Acrobat Reader shows the same error.
    is there another way to load binary data from a HttpUrlConnection and/or write it to a file?

    yes, it's simple and works with text/ascii content from URLS:
         public static void writeStream(InputStream inputStream, OutputStream outputStream) throws IOException {
            if (inputStream != null && outputStream != null) {
                int count;
                byte[] bytes = new byte[128];
                while ((count = inputStream.read(bytes, 0, bytes.length)) != -1) { //use full read() method for GZIPInputStream to be treated correctly
                    outputStream.write(bytes, 0, count);     
        }//writeStream()it's pdf content that doesn't work (completely). the first two characters "%P" are mssing. if i add them by hand (e.g. my writting this two characters to the outputSTream before continuing with the PDF content), the resulting file is okay (can be read by acrobat reader).
    perhaps, some inner Java class misinterpret the "%P" characters as a special code sequence?

  • Problem in reading net content from java on unix environment

    Friends,
    I was trying to write sample java program which can able to connect to web and read the content.
    But facing some proble. Kindly help me
    package com.validate.email;
    import java.net.*;
    import java.io.*;
    public class ReadWSDL {
      public static void main(String args[]){
           String nextLine;
           URL url = null;
           URLConnection urlConn = null;
           InputStreamReader  inStream = null;
           BufferedReader buff = null;
           try{
                System.setProperty("http.proxyHost","proxy.resources.company.com");
                System.setProperty("http.proxyPort", "80");
              // Create the URL obect that points
              // at the default file index.html
              url  = new URL("http://ws.cdyne.com/emailverify/Emailvernotestemail.asmx?wsdl" );
              urlConn = url.openConnection();
             inStream = new InputStreamReader(
                               urlConn.getInputStream());
               buff= new BufferedReader(inStream);
           // Read and print the lines from index.html
            while (true){
                nextLine =buff.readLine(); 
                if (nextLine !=null){
                    System.out.println(nextLine);
                else{
                   break;
         } catch(MalformedURLException e){
           System.out.println("Please check the URL:" +
                                               e.toString() );
         } catch(IOException  e1){
          System.out.println("Can't read  from the Internet: "+
                                              e1.toString() );
    Error
    Can't read from the Internet: java.net.UnknownHostException: www.tpisoft.com

    my_forum wrote:
    The same code is working in Windows, where I get the proxy from Browser.How?
    But on Unix machine it is not working. And I am using the proxy which is DNS/hostname of the unix machine.Don't you mean the DNS/hostname of the proxy?

  • Reading parameters lists from a text file

    Hi All,
    Using CR XI R2 with VB6  and external .rpt files - - - - -
    In a VB6 app I use VB to loop through my tables to create dynamic parameter lists (CR XI is limited to the number of parameters it can create from the table). This works well but each time the user refreshes the report the same code is run to re-create the parameter list which is redundant and slows down the report(s).
    Is it possible to manually create a series of text files - say each morning - and then read the parameter lists from the text file(s) at runtime instead of doing it on the fly each time?
    Thanks in advance!
    Peter Tyler
    Geneva - Switzerland

    I find this sentence confusing:
    Is it possible to manually create a series of text files - say each morning - and then read the parameter lists from the text file(s) at runtime instead of doing it on the fly each time?
    Typically, runtime means on the fly - I think...
    So, I'm not sure if you are trying to read a saved data report and filter that saved data so that you do not have to hit the database(?).
    Creating a text file is beyond the support of this forum, though that should be a trivial exercise. Reading a text file and passing the results to a parameter is the same thing you are doing already, so I'm not sure where the hang up would be here(?)
    Or - rather than creating a text file, why not create a temp table and query it as you do when you loop through the tables to create dynamic parameter lists(?).
    I'm pretty lost here...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Read rtf contents from xml file and print them in pdf using documaker

    I am using Documaker 11.2.
    Input file is XML and for a particular tag, rtf contents is passed like
    {\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial Narrow;}} \viewkind4\uc1\pard\b\f0\fs20 My\b0 name is Schoo.....
    I want to read this data excluding the RTF abstract and print the text alone in pdf along with format like paragraph,bold....
    The output file generated is PDF.
    Kindly let me know how can i achieve this in Documaker.

    There is no direct support for importing RTF from an XML extract. Perhaps feature 1514 "Mapping formatted XML data into multiline field" will be of some use. This was released in 11.0, I believe.
    Essentially you can establish paragraph and certain text formatting like bold and underline when you include the proper token information in the data. I believe this is similar to simple HTML tokens.
    Example: &lt;FIELD>&lt;P>First paragraph of data.&lt;/P>&lt;P>New paragraph with &lt;B>&lt;U>bold and underline text&lt;/U>&lt;/B>. Rest of paragraph normal.&lt;/P>&lt;/FIELD>
    The result is something like this:
    <P>First paragraph of data.</P><P>New paragraph with <B><U>bold and underline text</U></B>. Rest of paragraph normal.</P>

  • How to read XML content from IPortalComponentRequest and parse them

    Hi ,
    I have a portal application.The application has 2 components(Comp1,comp2).
    Comp1 is JspDynpage and Comp2 is AbstractPortalComponent.
    Comp1- has a iframe element which point to the external url and has a parameter return_url.
    retrun_url has a value as url to Comp2(http://ibm0343:50000/irj/servlet/prt/portal/prtroot/NewUrlProj.NewUrlComp)
    When an event occurs in the external site,i suppose to receive XML content in return_url(ie Comp2),how can i check using the request if the received content is XML and how do i parse them.
    I have already seen blogs from Prakash singh in which it refers a xml fixed location in webserver.

    Hi Detlev,
    i am reposting this once again as the previous
    reply didnt align good.
    Thanks for your reply.The scenario is that
    My portal application has to communicate with external GIS(Graphical information system)
    service provider client application.
    They say that i have to use iframe in my portal application.
    Here is the snipet of the iframe tags.
    <iframe
    id="Nedbrowser"
    name="Nedbrowser"
    width="100%"
    height="100%"
    frameborder="no"
    marginheight="0"
    marginwidth="0"
    scrolling="no"
    style="position:absolute; top:0; left:0; width:800; height:400; z-index:100; visibility:visible"
    src="http://nbg.nedg.nl/nbgint/NBG_INT_main.asp?action=CHART&datasource=NBGMV&product=INTERNET&size_x=300&size_y=300&result_frame=Results&
    result_url=http://ibm0343:50000/irj/servlet/prt/portal/prtroot/NewUrlProj.NewUrlComp&
    default_centre_x=256000&default_centre_y=471000&default_width=0.5">
    </iframe>
    <iframe
    id="Results"
    name="Results"
    width="100%"
    height="100%"
    frameborder="no"
    marginheight="0"
    marginwidth="0"
    scrolling="no"
    style="position:absolute; top:400; left:0; width:800; height:200; z-index:100; visibility:visible"
    src="about:blank">
    </iframe>
    When my portal application is started, comes the GIS map in the iframe with in my portal application.
    When the user clicks in the area of the map,Gis application returns xml data to the return_url.
    The reurn_url is my PortalAbstractComponent in which i have to parse the xml and use it for further processing in R3 system.

  • How to read the contents from the provisioning jar file in 11g

    Hi All,
    I am new to OIM 11g, can anyone please let me know the process of reading the existing jar.
    Actually What I am trying to do is:
    1. I created one process task and added one task 2. Created adapter variables 3. Create java task and select the method.
    Here I am seeing jar name as javatasks.jar:icf-oim-intg.jar.
    method name as public.java.lang.string oracle.iam.connectors.icfcommon.prov.ICProvisoningManager.createObject(java.lang.object).
    I would like to see internal code of that jar files(means need to know how they are handling proviosoing).
    but I searched in all folders I could't able to find that jar. can any one please let me know how to find the icf-oim-intg.jar in 11g.
    Thanks,
    Valli
    Edited by: 988908 on Feb 26, 2013 10:05 PM

    check inside
    <OIM_HOME>/server/icf/intg/

  • Reading content from PDF to XI

    Hi All,
    Can I know about, is XI capable of reading the content from PDF. As I came to know that we can achieve this with the adapter module can you please ignite me how to do for this or is there any other option other than this way or show me if already any threads or articles are existed?

    Hi,
    Please find some links on Convertion agent which not only convert the PDF documents. it is used to convert PDF, Word Document, HL7 and more...
    pdf files *
    SAP Network Blog: XI: Read data from PDF file in Sender Adapter
    /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter
    SAP Network Blog: XI: Generate PDF file out of file adapter
    /people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/43/6d95e0ac846fcbe10000000a1553f6/CMGetStart.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm
    Regards,
    Phani

  • Not able to access the floating content from UCM into WLP using VCR

    Hi,
    I am facing an issue while accessing the content ( floating content i.e CSS,content,javascript) from UCM 11g into WLP 10.3.2 using VCR. But at the sametime, i am able to access the content once its moved to contribution folder.
    Please let me know is there any limitation in VCR i.e VCR can read the content from UCM once its moved to Contribution folder.
    Thanks a lot,
    Suresh

    Hi
    Do you have sample code , how to refer css stored in UCM. If you have please share it

  • Reading Sheet name from csv file.

    Dear All,
    I am doing one program where i am reading contents from .csv file from oracle forms. I m using utl_file for reading the contents from .csv file.
    But problem is i am having 5 sheets under .csv file and i want to read fifth sheet's data. how do i jump to particular sheet in csv file. please help me in this case. this is very urgent.
    regards,
    Manish n

    I'm not sure of the format of a CSV with sheets : I assume it's a spreadsheet with multiple sheets ?
    I know that using Apache POI you can read (and write) native XLS or XLSX spreadsheets and then iterate through the sheets / rows cells. This requires java knowledge but works really well.
    Steve

  • Reading Structured Content with Apache Tika

    Hi,
    Is there a way to read structured content from word file using a java program with Apache Tika APIs? I know Tika internally used Apache POI
    in POI we can have
    Range range = doc.getOverallRange()
    TableIterator ti = new TableIterator(range);
    and other functions like getSection(), getParagraph()
    I am not able to find corresponding functions in Tika. Please let me know.
    Thanks

    Hi,
    The first column of excel is text and the second column is special(US ZipCode).
    I am using the below code to read the contents:
    InputStream is = new BufferedInputStream(
    new FileInputStream(fileName));
    XSSFWorkbook wb = new XSSFWorkbook(is);
    XSSFSheet sheet = wb.getSheetAt(0);
    int rows = sheet.getPhysicalNumberOfRows();
    for (int r = 0; r < rows; r++) {
    XSSFRow row = sheet.getRow(r);
    int cells = row.getPhysicalNumberOfCells();
    for (int c = 0; c < cells; c++) {
    XSSFCell cell = row.getCell(c);
    String value = null;
    switch (cell.getCellType()) {
    case XSSFCell.CELL_TYPE_FORMULA:
    value =cell.getCellFormula();
    break;
    case XSSFCell.CELL_TYPE_NUMERIC:
    value = Double.toString(cell.getNumericCellValue());
    break;
    case XSSFCell.CELL_TYPE_STRING:
    value = cell.getStringCellValue();
    break;
    default:
    System.out.println("CELL col=" + cell.getColumnIndex() + " VALUE="
    + value);
    Regards,
    Raj

Maybe you are looking for

  • I accidently deleted everything off my ipod, how do I get it back?

    I accidently erased everything off my ipod. Now its stuck on the screen connect to itunes. How would I go about getting everything or most of everything back?

  • JSP database access application code

    Does anyone know of existing sample code, that can be downloaded, for the above that can do the following: 1. User login 2. Data retrieval from database 3. Data submission by fill in form Any help appreciated? Rupert

  • CFPRINT Fonts

    I am having a issue using CFPRINT. I have a pdf file which uses three fonts: Arial, ArialBold, and ArialNarrow. Note that ArialNarrow is an "Embedded Subset", the other fonts are not. When printing using CFPRINT the ArialNarrow text prints rectangles

  • Iphone 4S bought in the UK but with technical difficulties

    I bought an Iphone 4S from the UK, but I have technical difficulties with it since I live in the US, is there a way Apple could fix it here in the United States. The Ipohne has warranty.

  • Migrating a 300GB Aperture library with limited disk space.

    This morning I decided to migrate my 300GB Aperture Library to the new Photos app on my MacBook Air. I have 20GB of remaining space on my internal drive and thanks to Apple's use of hard links I was hoping this wouldn't be an issue when migrating. Af