Read infotype metadata

Hello,
We're building a custom (portal) view for editing PA infotypes. We configured IT metadata through transaction PM01 -> Edit Field Characteristics (Cust. Table).
Now we would like to read this metadata for dynamically detmermine which fields are mandatory, read-only or unused. This metadata appears to be stored in the T588MFPROPC table.
What is the standard method or FM to read this metadata?
Thanks in advance

Thanks!
It works only for a given field, but that's fine.
Edited by: Mathieu Scialom on Dec 7, 2010 3:35 PM

Similar Messages

  • How do I read the metadata of an object in abap?

    I need to find a way to read the metadata of an object (say an internal table) in abap.  An example of what I am looking to do is that I want to get a list of all the column names of an internal table.  Any help would be greatly appreciated!
    Dustin

    Sure, use this function.
    TYPES: BEGIN OF type_item,
           f1 TYPE char30,
           f2 TYPE char30,
           f3 TYPE char30,
           f4 TYPE char30,
           END OF type_item.
    DATA:  lineitems TYPE TABLE OF type_item WITH HEADER LINE,
           fieldlist TYPE TABLE OF rstrucinfo WITH HEADER LINE.
    DATA:  syrepid TYPE sy-repid.
    syrepid = sy-repid.
    * gets all of the components of a structure
    CALL FUNCTION 'GET_COMPONENT_LIST'
      EXPORTING
        program    = syrepid
        fieldname  = 'lineitems'
      TABLES
        components = fieldlist.
    LOOP AT fieldlist.
      WRITE:/ fieldlist-compname .
    ENDLOOP.
    Regards,
    Rich Heilman

  • Adding/Reading XMP Metadata in a psd file

    Hi,
    I'm having some troubles to understand how to add and read XMP metadata on a psd file. I followed the Panel developer guide tutorial, and try to look on the internet for some answers, but I'm still stuck ...
    Here is the simple example I'm trying to make (using part of the code from the panel developer guide) :
         The function loads the XMP Script Library.
         @returns True if the XMP Script Library was loaded successfully.
         @type Boolean
    function loadXMPLibrary(){
         if ( !ExternalObject.AdobeXMPScript ){
              try{
                   ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
              }catch (e){
                   alert("Can't load XMP Script Library");
                   return false;
         return true;
         The function unloads the XMP Script Library.
    function unloadXMPLibrary(){
         if( ExternalObject.AdobeXMPScript ) {
              try{
                   ExternalObject.AdobeXMPScript.unload();
                   ExternalObject.AdobeXMPScript = undefined;
              }catch (e){
                   alert("Can't unload XMP Script Library");
        Try to put a new property into the metadata
    if( app.activeDocument || !loadXMPLibrary()){
        var xmp = new XMPMeta(activeDocument.xmpMetadata.rawData);
        xmp.setProperty( XMPConst.NS_EXIF, "myProperty", "test" );
        activeDocument.xmpMetadata.rawData = xmp.serialize();
        unloadXMPLibrary();
        Window.alert(activeDocument.xmpMetadata.rawData);
    I don't really know where I'm wrong, could you help me please ?
    Thanks,
    Julien

    Rather mess with EXIF and Dublin Core namespaces, wouldn't it be better to create your own?
    IE:
    #target photoshop
    addtoMeta();
    function addtoMeta(){
    if(!documents.length) return;
    if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData);
    var myNamespace = "http://my.fantastic.newspace/";
    var myPrefix = "nsfns:";
    XMPMeta.registerNamespace(myNamespace, myPrefix);
    xmp.setProperty(myNamespace, "myProperty", "A Test String");
    app.activeDocument.xmpMetadata.rawData = xmp.serialize();

  • How to read the metadata in the SWF ?

    Hi,
    Is there anyway to read the metadata which we are adding to swf as a file info in the Publish Settings.
    I just want to know that, this metadata added to the swf header ?
    Thanks.

    Hi
    look at this thread your problem is solved here
    File Adapter
    Regards
    Abhishek
    Edited by: Abhishek Agrahari on Dec 16, 2008 11:37 AM

  • RP-READ-INFOTYPE

    Hi ,
      i need to delete all the records  with subty X1 for infotype  p0019 . I should n't use the logical database instead i am using  macro RP-READ-INFOTYPE to retrieve the valid data  but  here in case of P0019 the begda and endda of a record will be same and i need to delete the records even if they are in past . But the macro RP-READ-INFOTYPE  is not going to work in this case as it checks against dates and the records are in past so it will not retrieve any data . So any thoughts on how to get the data for P0019  with subty X1 without using the logical database PNP. 
    Thanks,
    Latha.

    Use HR_READ_INFOTYPE FM to retreive the desired result.........
    Pass begda 01/01/1800 endda = '12/31/9999' and subtype you want.......
    Not your infotype table will fill with all the data now you manipulate as you desired
    Let me know if you need any further help!!!
    Sas

  • Read infotype using HR_READ_INFOTYPE

    Hi all,
    I Try to read infotype (pa0021) using HR_READ_INFOTYPE. Its getting fine.
    Im using Web Dynpro ABAP Interactive form.
    I want to insert some value in infotype pa0021, so i used HR_INFOTYPE_OPERATION.
    Data's are Inserting.
    The problem is if i press the Save button, Inserting values are not getting, when i use HR_READ_INFOTYPE in the same session. The new values are updated in the Backend but its not getting
    in the same session. because if i press the save button means, i want to save the data and again i want to show the saved data back .But if i close the session and open once again means its reflection the new values.
    I used BAPI_TRANSACTION_COMMIT also but i no success.
    Please Give some solution for this problem, its very urgent.
    Thanks & Regards,
    Hemachandran.R
    Edited by: hemachandran R on Oct 22, 2008 8:54 AM
    Edited by: hemachandran R on Oct 22, 2008 8:54 AM

    Hi hemachandran R ,
    When all your conditions are satisfied, You can get the updated values from the contexts which you are using to update in the contexts by which you are displaying it on the screen.
    You need not to fetch the data from the back end.
    Regards,
    Rohit

  • Reading Infotype using HR_READ_INFOTYPE

    Hi all,
    I Try to read infotype (pa0021) using HR_READ_INFOTYPE. Its getting fine.
    Im using Web Dynpro ABAP Interactive form.
    I want to insert some value in infotype pa0021, so i used HR_INFOTYPE_OPERATION.
    Data's are Inserting.
    The problem is if i press the Save button, Inserting values are not getting, when i use HR_READ_INFOTYPE in the same session. The new values are updated in the Backend but its not getting
    in the same session. because if i press the save button means, i want to save the data and again i want to show the saved data back .But if i close the session and open once again means its reflection the new values.
    I used BAPI_TRANSACTION_COMMIT also but i no success.
    Please Give some solution for this problem, its very urgent.
    Thanks & Regards,
    Hemachandran.R
    Edited by: hemachandran R on Oct 22, 2008 9:02 AM

    Hi Hema,
    Make a new context attribute 'ca_temp'
    and then
    set single attribute
            lo_el_context->set_attribute(
              EXPORTING
                name =  `CA_TEMP`
                value = <new_value> ).
    And use this CA_TEMP where ever you want. for more than one value make node in place of attribute.
    Hope it works.
    Regards,
    Rohit

  • Unable to read report metadata

    I have a report from SSRS2008R2 in user in PP2007 which works there properly.
    When I try to use it in PP2010 I get "Unable to read report metadata" every time I try to change the default value of the parameters.
    In PP2007 it all works properly.
    thanks

    After analysing network traffic, I found that Report server returns an error to dashboard designer because a parameter is set as "read only".
    This means that there is a parameter that has been set to internal in the report.
    The important thing is :
    Note: Publishing a report over an existing report on the report server does not overwrite the parameter information.
    To update parameters for an existing report, either delete the report on the report server and republish, or update the parameter information for the report in Report Manager.
    To modify the parameters information, open the report server. Go to your report, and select Manage, then Parameters ( on the left panel).
    Internal parameters appears with unselected textbox for Hide and Prompt. Select Hide and then Apply.
    Go back to Dashboard designer, you can now update the parameter values.
    Regard,
    Franck

  • Need an alternative to rp-read-infotype to display infotype txts frm a BSP?

    Hi All,
    I need to display infotypes maintained texts(F9) from a bsp.  I created a test program to read these texts using rp-read-infotype and got it working but didn't realise i couldn't use this method in a BSP until i copied it in.  total bummer!
    Does anyone know of an alternative that i can use in a BSP.
    Thanks in advance,
    Liz.

    Can you try using FM READ_TEXT  / RFC_READ_TEXT to get the infotype text
    and then find the equivalent function on BSP side .

  • Read file metadata

    Is there a way to read file metadata in LabVIEW?  If I was looking at an executable and wanted to retrieve the version number (that shows up when you look at the file's properties in windows), how would I do it in LabVIEW?
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor

    Here ya go,
    This should do the trick for you.
    Message Edited by Chris_VH on 03-30-2009 05:36 PM
    Chris Van Horn
    Applications Engineer
    Attachments:
    exeversion.jpg ‏18 KB

  • Reading JPEG metadata

    Is it possible to read the metadata from an imported JPEG or a JPEG selected with Image Field during execution?

    It is possible to get quite a bit of information from imported files via DataObjects, but I can't seem to get my existing description/metadata/EXIF data. Below is a code snippit showing that path and size work correctly but description does not.
    'Code for Get Data Object Button Click
    var myDoc = event.target;
    var count = 0;
    var sFile = "myFile" + count;
    myDoc.importDataObject({cName: sFile});
    var myDataObject = myDoc.getDataObject(sFile);
    var sFileName = myDataObject.path;
    count = count + 1;
    'Code to display each attached files name/size on Button Click
    var myDoc = event.target;
    var d = myDoc.dataObjects;
    for (var i = 0; i < d.length; i++)
        app.alert("Data Object[" + i + "]=" + d[i].path + "    and the file size is: " + d[i].size);
        app.alert(d[i].description); 'Does not work to pull metadata/EXIF   

  • Rfc to read infotypes

    hi...
    is there any RFC function modules for reading infotype details.........
    thank
    prabhakar

    BAPI_EMPLCOMM_GETDETAIL - Communication infotype - infotype 0105
    BAPI_INTCONTROL_GETDETAIL - Internal cont - infotype 32
    BAPI_PDOTYPES_GETDETAILEDLIST - PD infotypes
    BAPI_ABSENCE_GETDETAIL - infotype 2001
    BAPI_W4W5INFOUS_GETDETAIL - W4/W5 info of an emp - infotype 210
    BAPI_DATESPECS_GETDETAILEDLIST - Date specifications -infotype 41
    RFC_ABSENCETYPES_READ - RFC which Lists absence types
    HR_BEN_READ_CREDIT_PLANS - RFC for reading credit plans
    HR_BEN_READ_INSURE_PLANS - RFC for reading insurance plans.
    HR_BEN_READ_HEALTH_PLANS_RFC RFC for Reading Health plans

  • To read Infotype 0025

    Friends i'm writing a report. Which give employees qualification and desired and assessed profeciencies. I'm unable to read infotype 0025. Data is there, but pa0025 table is showing empty status.

    Hi u wont find any entries in PA0025.
    Try using this FM
    HRWPC_RFC_QUALIFICATION_STAFF
    In this FM U have to pass the Qualification ID
    U can also have a look at
    CALL FUNCTION 'RHPP_Q_PROFILE_READ'
       EXPORTING
         BEGDA                  = sy-datum
         ENDDA                  = sy-datum
         WITH_STEXT             = 'X'
         WITH_QK_INFO           = 'X'
      CHECK_NOTE             = ' '
        TABLES
          OBJECTS                = IT_P_OBJECTS
      ERR_OBJECTS            =
          PROFILE                = IT_QUALIFICATION_TAB
    EXCEPTIONS
       NO_AUTHORITY           = 1
       WRONG_OTYPE            = 2
       OBJECT_NOT_FOUND       = 3
       UNDEFINED              = 4
       OTHERS                 = 5
      IF SY-SUBRC <> 0.
        raise nothing_found.
      ENDIF.
    ~ BiSu
    Message was edited by:
            Biswajit Das
    Message was edited by:
            Biswajit Das

  • How to read XMP metadata of an indd file using Actionscript

    Hi All,
    I am trying to read XMP metadata of an indd file using CS Extension Builder in Flash Builder 4.5.
    The documentation has many class like XMPmeta, XMPStruct, etc.
    I have got the currently opened document in InDesign as follows:
    var myDoc:Document = InDesign.app.activeDocument();
    And a new XMPmeta object is created as follows:
    var myXMP:XMPMeta = new XMPMeta();
    How to initialize document's xmp metadata in the XMPMeta object? Or is there any other way to get the XMP metadata of currently opened document in InDesign?

    I have found that the XMP data of an InDesign document can be retrieved in actionscript as follows:
    InDesign.app.activeDocument.metadataPreferences
    This returns the MetadataPreference object.
    But I am not able to iterate each namespace in the xmp. There isn't any XMPFile class which allows me to serialize the object to xml file so that I can iterate all elements in the XMP.
    I could not relate class like XMPMeta, XMPProp, etc. with the MetaDataPreference class. So, how to obtain the entire xmp packet from the MetadataPreference object?
    Can anyone shed light on this?

  • Error in reading BW Metadata / Initial Forecast data

    We are in the process of creating a PoC in SPP (Service Parts Planning).  After carrying out basis settings in SPRO, we tried to getinto Interactive forecasting, when we were stopped by the following errors.
    Error reading BW metadata
    Error when reading initial forecast data
    Can any one guide on how to resolve this..
    Rgds
    TRR

    Hi TRR,
    I am also facing the same message when I try to do interactive forecasting in SPP.
    error reading BW metadata
    Did you get a solution for this? Please let me know.
    Many thanks in advance
    Sooraj

Maybe you are looking for

  • When I close my Mac Book when its on a- The display won't turn back on whe-

    When I close my Mac Book while it is on and leave it on while closed for long periods of time and then I open it, the display will not turn back on- why?

  • 2 weeks view in Calendar

    In previous versions of OS X, there were ways to enable 2 (or more) weeks view in iCal / Calendar. There was a debug menu and then there was a Terminal script that allowed this. Yosemite has seem to take this option away. Has anyone found a way to en

  • Looking for a good configuration for SoundBlaster X-Fi

    This really is painful to find a good setting to enjoy gaming.Anyone that can link a good configuration to start me off that they personally feel takes full advantage in deli'vering a great experience for gaming. I really appreciate any help.

  • ITunes started re-downloading old TV episodes.

    My iTunes just started re-downloading some old TV episodes, that I already purchased. It is currently downloading 18 episodes of NCIS season 5, I purchased all 18 about a year ago, and all 18 original downloaded episodes are still in my iTunes librar

  • EAR Structure for JSF project with EJBs

    Hi All, I have a JSF project which makes use of EJBs through EJB injection. The project basically consists of 3 components, which are independently archived (as JARs/WARs) and then added to an EAR. The components interact as follow: EJB JAR: contains