How to read a MIME Repository Object in ABAP ?

Hi all,
How can I read a MIME Repository Object in ABAP code ?
Thanks.

Hi,
check the package SMIMES, there you can find classes and function modules to acess the mime repository.
Regards,
CW

Similar Messages

  • What authorization object is required for MIME repository objects?

    Hello
    Can someone tell me what authorization object is required for displaying MIME repository objects?
    Thanks,
    József.

    Hi,
    This thread may help you.
    Re: Authorizations for stylesheets/MIME?
    Thanks,
    JituK

  • Help!!! Can Anybody tell me how to read bookmarks of MS word using ABAP?

    It took me around 3 days , but there is still no solutions...
    Can Anybody tell me how to read bookmarks of MS word using ABAP ?
    Many thanks.

    Dear Nick  ,
    Thanks for your attention!
    I have MS word installed in the R3 server , and I uploaded my word doc with some self-defined bookmarks into SAP R3 system.
    Now I want to read these bookmarks using ABAP in this R3 system...
    Is it clear enough?
    Looking forward to your solution ...
    Thanks again..
    Best Regards,
    Leon.

  • Linking MIME Repository object(Excel sheet) to WAD

    Hi,
    I have a requirement to set an hyperlink in the existing report.  If we clicks on the hyperlink it should open an excel file which contains flat file data.  Flat file is placed in application server/Mime repository. 
    I have a solution in mind which is not accepted by the client manager.  Designed a new data flow for the flat file data and created  a query.  Linked this new query to the Hyperlink in WAD, then it works.
    Kindly provide alternative solutions to achieve the above requirement.
    Thanks in advance.
    Regards,
    Prasad.
    Edited by: venkata prasad on Nov 18, 2011 9:13 AM

    Hi,
    To achieve the requirement, we need to keep the excel file in KM repository and provide the link in script web item.
    The sample command code is:
       function executeJS_OPEN_URL_R( currentState, defaultCommandSequence )
         var commandSequence = new sapbi_CommandSequence();
         var commandOPEN_URL = new sapbi_Command( "OPEN_URL" );
         commandSequence.addCommand( commandOPEN_URL );
                    window.open("/irj/go/km//XXXfilename");
    ("/irj/go/km//XXXfilename") - this is the file path which we  saved our excel in KM repository.  Portal people will place the file in KM repository.
    Regards,
    Prasad.

  • How to read the excel file using webdynpro abap?

    Hi,
    how to read and modify excel file using webdynpro abap?
    Regards,
    Pavani

    For reading excel file follow the steps :
    1. Use a File upload UI element and bind it with xstring.
    2. Now your excel will be uploaded and stored in Xstring.
    3. Convert Xstring to String data using FM 'HR_KR_XSTRING_TO_STRING'.
    4. Now split the string at new line so as to make an internal table .
      Ex . SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE it_table.
      here it_table is type table of string.
    5.now loop at the internal table and separate the content of this table separated by tab.
      Ex. SPLIT wa_table AT cl_abap_char_utilities=>horizontal_tab INTO TABLE it_new.
    it_new type string_table.
    6. For more info , refer this thread :
    Re: How to upload excel file in Webdynpro application using ABAP

  • How to read from a PrintWriter object

    I have PrintWriter object loaded with data. How can I read it,
    what method available to use?
    Thanks!!!!

    Depends on where the output went. For example,
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    pw.print...
    pw.close();
    // now sw has the output
    System.out.println(sw.toString);

  • How to read a mime file

    Hi gurus,
    is possible to read the attachments of a mime file ? The file is located in the file system and after read the content of the file and store it in a string I would retrieve the content like this :
    MimeMultipart mm = MimeMultipart(theMimePartString) ;
    BodyPart bp = mm.getBodyPart(1);
    but the body part is null here.
    Anyone has suggestions on how to do this?
    Thanks in advance.

    What exactly is in the file? Is it an entire MIME message? If so, use the MimeMessage constructor to read it.

  • How to read parameters from request object

    We want to read parameters from GET request
    but whenever we are calling GET_URI_PARAMETER from the REQUEST we don't see any results
    url is like
    http://coevi116.wdf.sap.corp:8000/sap(bD1lbiZjPTEwMA==)/bc/bsp/sap/z_test_json/jsontest.htm?PARAM=ABC
    But reading PARAM is not givng value of ABC
    onCreate and onRequest wherever we put the code it is not reading the value
    Can anyone please help and share some expert opinion

    in jsontest.htm page create a page attribute named "PARAM" with auto check box checked and check in oninitialization, this will carry the value passed to param from url.

  • How to read Filter selection variable values into ABAP code

    HI IP Gurus,
    Requierement: In my filter characterstics, i have assigned variables, which use will enter when running th e planning sequence.
    so  variable values entered by user , i would like to get those values into ABAP code and pass them to some function module.
    SO please give me step by step detail how to achive this.
    MY understanding use the below method . but not sure how to proceed.Please let me know abap code to get values.
    GET_TAB_PARAM_DATA_SEL and GET_PARAM_DATA_SEL.
    Please help me.
    Thanks in advance.Will Assign points
    Sania

    Hi Srinivas,
    So In RSPLF1 , in paramters tab, Do i have create structure(str1) and then create component Data selection (Dtsel1) under str1(what setting i have to do here, where should i enter variable value and do i need to give info object name and how do it in code.i tried to following example, not able to get any values in tab_sel .
    It will be great, if you could explain in detail.
    other thing i found out is in Initialization method i can read i_t_data_charsel table values , where it contains filter slected values.but could not pass  these values to execute method
    Is there is any way that i can pass values from init method to execute method.
    A tabular structured parameter with name "MY_TABSTRUC" is defined for the function type. "MY_TABSTRUC" consists of the two parameter components "MY_ELEM" and "MY_DATASEL". You access the parameter values as follows:
    DATA: TAB_PARAM_STRUC TYPE RSPLFA_T_PARAM_STRUC,
           REF_PARAM_STRUC    TYPE REF TO IF_RSPLFA_PARAM_STRUC,
          REF_PARAM_ELEM     TYPE REF TO IF_RSPLFA_PARAM_ELEM,
          REF_PARAM_DATASEL  TYPE REF TO IF_RSPLFA_PARAM_DATESEL,
           L_VAL(20)          TYPE C,
           TAB_SEL            TYPE RSPLF_T_CHARSEL.
    get table of parameter MY_TABSTRUC:
      TAB_PARAM_STRUC = I_R_PARAM_SET->GET_TAB_PARAM_STRUC( 'MY_TABSTRUC' ).
    process all lines:
      LOOP AT TAB_PARAM_STRUC into REF_PARAM_STRUC.
      get component MY_ELEM:
        REF_PARAM_ELEM = REF_PARAM_STRUC->GET_COMP_ELEM( 'MY_ELEM' ).
      get internal value of MY_ELEM:
        REF_PARAM_ELEM->GET_VALUE( IMPORTING E_VALUE = L_VAL ).
      get component MY_DATASEL:
        REF_PARAM_DATASEL = REF_PARAM_STRUC->GET_COMP_DATA_SEL( 'MY_DATASEL' ).
      get data selection table of MY_DATASEL:
        TAB_SEL = REF_PARAM_DATASEL->GET_T_SEL( ).
      ENDLOOP.
    Thanks in Advance..please help me

  • How to read records from Relationship table using ABAP API's

    Hi All,
    I need to retrieve the records from Relationship table. In Java API's I came to know there is an option to retrieve this. I could not find anything in ABAP API's. Is there any option in ABAP API's to do this.
    Please Suggest.
    Thank You,
    Gajendra.

    Hi Gajendra,
    You can mainly read records from MDM (in a DDIC structure) using ABAP API's using the following function modules/methods:
    1. RETRIEVE: This is used to generically retrieve records from tables. Attributes and Values can also be retrieved.
    2. RETRIEVE SIMPLE: Retrieve records from MDM in a simple way.( simple data types).
    3. RETRIEVE CHECKOUT: Retrieves all checked out ID's.
    4. RETRIEVE ATTRIBUTES: Retrieves attribute(s) from a Taxanomy table.
    You will find all these methods in the following interface
    Interface : IF_MDM_CORE_SERVICES
    Hope it helps.
    *Please reward points if found useful.
    Thanks and Regards
    Nitin Jain

  • How to read data from an excel using abap program?

    Hi
    I have to write an abap program to read the contents of ms excel across various
    sheets. Can any one help me regarding this
    Thanks in advance
    Satish

    Hai Satish,
    <b>You save  all your Excel sheets as Text Tab Delimited.</b>
    And then for each teext file can be uploaded into your daabase table.
    See the Report that  i have done.
    REPORT Z_UPLOAD_TO_DATABASE_TABLE.
    TABLES:
      ZDETMAST.                        " Database table to be uploaded
    Data declaration of the structure to hold ZDETMAST(zdetcode) data  *
    DATA:
      BEGIN OF FS_ZDETMAST,
        CNT(3)      TYPE C,                " Client
        DETCODE(15) TYPE C,                " Det Code
        DETCAT(1)   TYPE C,                " Det category
        DETTYPE(2) TYPE  N,                " Det type
        DETDESC(30) TYPE C,                " Det description
        PFLAG(1)   TYPE C,                " Det Flag
        TOTALDR(10) TYPE C,                " Total DR
        TOTALCR(10) TYPE C,                " Total CR
      END OF FS_ZDETMAST.
    Internal table to hold ZDETMAST(zdetcode) data                     *
    DATA:
      T_ZDETMAST LIKE STANDARD TABLE OF FS_ZDETMAST.
    Function Module to upload ZDETMAST Data
    CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
         FILENAME                      = 'D:/ZDETMAST_2.TXT'
         FILETYPE                      = 'ASC'
         HAS_FIELD_SEPARATOR           = 'X'
        HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = 'DAT'
        CODEPAGE                      = ' '
        IGNORE_CERR                   = ABAP_TRUE
        REPLACEMENT                   = '#'
        CHECK_BOM                     = ' '
        VIRUS_SCAN_PROFILE            =
      IMPORTING
        FILELENGTH                    =
        HEADER                        =
        TABLES
          DATA_TAB                      = T_ZDETMAST
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
         FILE_READ_ERROR               = 2
         NO_BATCH                      = 3
         GUI_REFUSE_FILETRANSFER       = 4
         INVALID_TYPE                  = 5
         NO_AUTHORITY                  = 6
         UNKNOWN_ERROR                 = 7
         BAD_DATA_FORMAT               = 8
         HEADER_NOT_ALLOWED            = 9
         SEPARATOR_NOT_ALLOWED         = 10
         HEADER_TOO_LONG               = 11
         UNKNOWN_DP_ERROR              = 12
         ACCESS_DENIED                 = 13
         DP_OUT_OF_MEMORY              = 14
         DISK_FULL                     = 15
         DP_TIMEOUT                    = 16
         OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.                                 " IF SY-SUBRC <> 0.
    LOOP AT T_ZDETMAST INTO FS_ZDETMAST.
      WRITE:
        / FS_ZDETMAST-CNT,
         FS_ZDETMAST-DETCODE,
         FS_ZDETMAST-DETCAT,
         FS_ZDETMAST-DETTYPE,
         FS_ZDETMAST-DETDESC,
         FS_ZDETMAST-PFLAG,
         FS_ZDETMAST-TOTALDR,
         FS_ZDETMAST-TOTALCR.
    ENDLOOP.                               " LOOP AT T_ZDETMAST ...
    LOOP AT  T_ZDETMAST INTO ZDETMAST.
       IF SY-TABIX GE 2.
         INSERT ZDETMAST.
        DELETE ZDETMAST.
       ENDIF.                              " IF SY-TABIX EQ 2
    ENDLOOP.                               " LOOP AT  T_ZDETMAST
    Hope this helps you a lot.
    <b>You can also use ALSM_EXCEL_TO_INTERNAL_TABLE FM to have excel data in ITAB AND THEN YOU CAN INSERT DATA INTO DATABASE TABLE.</b>
    <b>Reward points if it helps you.</b>
    Regds,
    Rama chary.Pammi

  • How to read the input field value into ABAP variable?

    Hi All,
    i need a read the value of an input field into an ABAP variable,and i am doing this in the following way
    lstring = request->get_form_field('myFlag').
    here 'myFlag' is the input field name,but this is not returning me any value into lstring.
    I have gone through the SDN and tried to do this.
    could you please help me out to resolve this issue.
    Thanks in Advance,
    Praveena

    Dear Praveena
    In which event are you putting this code. Place it in oninputprocessing event(Page with flow logic Model of coding). Then it will surely work.
    Regards
    Vijay.M

  • How to read doc/docx/pdf/jpg files in objective-c?

    Hi am new to  objective-c,here want to read the files from the directory i know how to read the text file but what i need is to read the doc/docx/pdf/jpg files to read,i don't know how to read these files in objective-c if anyone knows about this please help me,
    thanks in advance.

    The same way. You will get a load of binary idata, and you have to handle that yourself. .. What, are you expecting libraries to read and somehow convert a .docx document to your taste? You need to look up what 'file format' means.
    (Oh alright, there /may/ be a standardized way in OS X to read a jpg and convert it into something OS X can use without you having to know the specifics.)

  • Regarding MIME Repository

    Dear Abaper's,
    i have requirement to store image (*.JPG) in SAP database so i m  using following function, store a file in MIME public folder, but i have one more requirement  to display this image through TCODE.
    have u any idea to display image in MIME repository object.
    Please help me to solve this problem.
    Regards,
    Abhilash
    R_MIME_REP = CL_MIME_REPOSITORY_API=>IF_MR_API~GET_API( ).
      LR_MIME_REP->PUT(
        EXPORTING
          I_URL                     =  'SAP/PUBLIC/img/Test.jpg' "p_path
          I_CONTENT                 = LV_CONTENT
        EXCEPTIONS
          PARAMETER_MISSING         = 1
          ERROR_OCCURED             = 2
          CANCELLED                 = 3
          PERMISSION_FAILURE        = 4
          DATA_INCONSISTENCY        = 5
          NEW_LOIO_ALREADY_EXISTS   = 6
          IS_FOLDER                 = 7
          OTHERS                    = 8 ).

    Create one Report with the reference of the report : DEMO_PICTURE_CONTROL
    Create the T Code for the report from SE93..
    Its solved...

  • How to read Image data from oracle DB?

    How to read a oracle database object ORDSYS.ORDImage from oracle
    database?
    I can get a oracle.sql.STRUCT object from the database, but i can not
    find the way to convert data to a image object(like oracle.ord.im.OrdImage)
    I had used "OrdImage imgObjj1 =
    (OrdImage)rs.getCustomDatum(1, OrdImage.getFactory());"
    it's a example from oralce.
    But OracleResultSet.getCustomDatum() method is already deprecated,
    i can't find a new method to instead of it.
    Who can help me ? Thank you!
    [email protected]

    More than likely, this is the interface you will use:
    java.sql.Blob
    http://java.sun.com/j2se/1.4/docs/api/java/sql/Blob.html
    Once you get the blob, construct a Raster objects from the Bytes you receive from the blob. Then you can create an Image, ImageIcon, BufferedImage, whatever with the Raster object.
    Good luck!

Maybe you are looking for

  • PHP in SAP Enterprise Portal

    Hi experts!!!!!!! I am making an application in php, but I need to know, who is the user that it is loggued in the portal. any idea?? thanks in advance!!! Regards

  • HT3702 I can't use my account to buy anything

    The title is my main qustion, i feel realy realy bad cause i wanna buy some gem in a handsome game.

  • SXMB_MONI do not show messages?

    Hi there, as i told you in an other Thread. I work on travel and living in our Consolidation Systems. We have it already in our TEST Systems. When i want to book now a hotel i see in the SXMB_MONI the message: Please have a look at the screenshot in

  • Error at file zip receiver

    Hi, I am doing Idoc to file scenario with file zipped at receiver Below parameters were used in module AF_Modules/StrictXml2PlainBean AF_Modules/MessageTransformBean AF_Modules/TextCodepageConversionBean AF_Modules/PayloadZipBean CallSapAdapter AF_Mo

  • Transfer itunes content?

    If you purchase songs and video content on one computer but then you use another computer to charge or use in general will u hav to buy the stuff u already bought once again?