Syndicate Images(name) from MDM

Hi All,
as syndication of image file is not possible from MDM, and we can only syndicate image names from MDM. Say we have a record in MDM and an image(ABC.jpg) attached to it. Now we edit that record and add another image(DEF.jpg) to it. Now if we want to syndicate the record only with the new image(DEF.jpg), MDM doesn't allow this feature as an out of box functionality.
Is it possible to achieve this using JAVA API's and how, or is there any workaround available for this, on which some one has worked.
Regards
Manish

Hi,
Try this.
Create a time stamp field in the repository and specify Image field as selected field property for time stamp. So this field will hold time when image is changed for the record. Now in syndicator use this time stamp field and specify filter to select all the records which have image changed after last syndicatin date (you need to know last syndication date in this case, which is easy) for record selection . In this way you can acheive your requirement. But you may face problem if Image Field is multivalued. Because in that case it will syndicate names of all the images, and not only new images names.
Regards,
SHiv

Similar Messages

  • How to cache images retrieved from MDM on Java WebAS

    Hello Colleagues,
    We have a scenario where we are trying to retrieve image records from the MDM using Java APis. Instead of hitting the DB everytime, is there a way to implement caching? For instance, is it possible to cache the images on the java WebAS and return the path of the images instead of returning the byte stream everytime?
    Thanks and Regards,
    Nisha
    Edited by: Nisha NC on Sep 1, 2009 7:35 AM

    Hi Nisha,
    You can use the Class ObjectCache from the Java API.
    For more information please refer to:
    http://help.sap.com/javadocs/MDM71/current/API/index.html
    Hope this helps,
    Idan

  • How to configure idocs to Syndicate masterdata objects from MDM to ECC

    Hi Experts,
    How can we configure the IDOC to syndicate the master data objects from MDM to ECC.
    can anyone explain step by step procedure to achieve the same?
    Thanks in advance
    SS

    Hi Sandhya
    R/3-XI-MDM (Outbound Scenario) :
    /people/balas.gorla/blog/2007/02/05/r3-xi-mdm-outbound-scenario
    MDM-XI-R/3 Integration
    /people/balas.gorla/blog/2006/09/27/mdm-xi-r3-integration
    For any other info please refer the links below:
    http://help.sap.com/saphelp_mdm550/helpdata/en/43/D7AED5058201B4E10000000A11466F/frameset.htm
    https://websmp102.sap-ag.de/~sapidb/011000358700001855352008E
    These 2 links are the fundamentals for MDM and cover almost everything.
    Thanks-Ravi

  • Help (retrieving image name from xml then will be echoed inside the movieclip

    Hello guys, I just want to ask sometihng on how to show the image inside the movieclip by pulling the image name inside the xml file.
    this is my xml file.
    <?php
    header("Content-type: text/xml");
    $host = "localhost";
    $user = "root";
    $pass = "";
    $database = "test";
    $gelo= "image1.jpg";
    /*xml output*/
    $xml_output = "<?xml version=\"1.0\" ?>";
          $xml_output .= "<GALLERY>";
              $xml_output .="<IMAGE>" . $gelo . "</IMAGE>";
         $xml_output .= "</GALLERY>";
    echo $xml_output;
    ?>
    //this is the code inside my actionscript
    stage.scaleMode = StageScaleMode.NO_SCALE;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.TEXT
    loader.addEventListener(Event.COMPLETE, loadCompleteHandler);
    loader.load(new URLRequest("http://localhost/loadimagefromxmlAS3/data.php"));
    function loadCompleteHandler(event:Event):void {
    var xml:XML = new XML(event.target.data);
    //txt.text = xml.toXMLString();
    trace(xml.IMAGE[0]);
    var list:XMLList = xml.data.title
    var loader:Loader = new Loader()
    this["holder_mc"+0].addChild(loader)
    loader.load(new URLRequest(list[0].IMAGE))    
    When I run it in flash, I got the error
    image1.jpg
    TypeError: Error #1010: A term is undefined and has no properties.
        at xml_fla::MainTimeline/loadCompleteHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()
    I hope you will consider my ignorance since im a beginner using the actionscript. Thank you

    1) You should have "Permit debugging" enabled in Publish settings so you could tell exactly witch line is wrong
    2) This line makes no sense to me: var list:XMLList = xml.data.title
         Change it to var list:XMLList = xml.IMAGE;
    3) loader.load(new URLRequest(list[0].toString()));
    4) Also this line is suspicious: this["holder_mc"+0].addChild(loader)
         Why don't just say: holder_mc0.addChild(loader)?

  • Want to get image name from specified forlder on hard desk

    i made a form to call exe of scanner program and scan image.
    and the scanner scan the image and put it in hard desk
    and i load this image to the form but there are a problem
    to do this i must know the name of the image t o load it in the for using
    CLIENT_IMAGE.READ_IMAGE_FILE
    But every time scanner put image on the hard desk the scanner put it with different name .
    is there any solution to get the name of last modified file in specified folder
    i don't want to use
    CLIENT_GET_FILE_NAME
    i want some thing to do it automatically is there any solution to this .
    i want to solve this problem with any way but i can't get the image name the scanner put on the hard desk.
    i use oracle forms 10g with Webutil to load image and save it .

    To read a text file, you can use the text_io package.
    As my second post gets you the files in the descending order of the time, you need to get only the very first line as it will have the latest image file
    Declare
    m_file TEXT_IO.FILE_TYPE;
    m_image_path varchar2(100) := 'C:\images\';
    m_file_path varchar2(100) := 'C:\list_image.txt';
    m_str varchar2(2000);
    Begin
    m_file:= TEXT_IO.fopen(m_file_path, 'r');
    TEXT_IO.get_line(m_file,mstr);
    mstr := ltrim(rtrim(mstr));
    text_io.fclose(m_file);
    READ_IMAGE_FILE(m_image_path||mstr, 'TIFF', 'block5.imagefld');
    End;
    ---FYI,
    if you need to find the last line you need to run the text_io.get_line code loop with begin exception end until you get the no_Data_found exception
    Loop
    Begin
    TEXT_IO.get_line(m_file,mstr);
    m_line_no := m_line_no + 1;--no.of lines count
    Exception
    When no_data_found then
    text_io.fclose(m_file);
    exit;
    End ;
    ----does my name sound like a man's??
    Edited by: Dora on Sep 17, 2009 8:21 AM
    Edited by: Dora on Sep 17, 2009 8:23 AM

  • Pass image name and path to flash from html

    Hello Flash Forum,
    I would like to use Flash to display a larger image in an
    HTML page that opens on top of a window with
    thumbnail images. The thumbnail page will be a php page. If
    the user clicks the thumbnail, I would like to open a swf that
    diplays the larger image. I would like to pass the path and name of
    the image to display to my swf. It would open a browser page (or
    just a swf file) over the thumbnail page. The use could then close
    the larger image display, and click another thumbnail, etc.
    How could I do this? I have a swf file that will display the
    image, but I would like to pass the image name from outside the swf
    file.
    Thanks for any tips,
    eholz1

    Hello jpsoul,
    Thanks for the suggestion. I did see some info on the query
    string aspect. I will take a look at the JavaScript
    external.ExternalInterface class as well.
    Thanks again,
    eholz1

  • Bank details not visible in R3 after syndicating from MDM

    I have used standard map debmdm06 to syndicate  Customer  records from MDM(SP5) to R3.The IDoc seems to get posted,but the bank details were not appearing in R3.
    Can anybody help me out in this issue.

    Hi,
    This could happen due to multiple reasons. Would suggest to check folllowing:
    1. Check the xml file that is getting generated after syndication. You can take it from Outbound/Archive folder. Check if the bank details are appearing in the xml file.
    2. If yes, that means MDM is syndicating data properly. If no check syndication map.
    3. If yes for pt 2, Check in coming Idoc from we02. Does it have the bank details? If not, then if you have used XI, the field mapping would be inncorrect.
    I guess, the issue would be in xml getting generated.
    Regards,
    Ketan
    PS: Plz award points if reply is useful.

  • Php - get name from 'file field' and pass to database?

    Is it possible to extract the 'image' name from the 'file' field and insert it into a database using php?
    <input type="file" name="ImageName" id="ImageName">
    I can't have:
    $ImageName = trim($_FILE['ImageName']);
    So hows this handled?
    Cheers
    Os

    Murray *ACP* wrote:
    Should be pretty strightforward, Os.  You know where to ask the questions!
    Yeah.. but I keep coming up against brick walls
    I'm trying to manipulate David Powers PHP Solutions chapter 6 - Uploading Files.
    He's got some sort of complicated function going on which makes sure no two images which are uploaded to a folder have the same name. i.e., london.jpg becomes london_1.jpg. (the php even inserts underscores if there are gaps in the image name)
    If I just use $ImageName = $_FILES["ImageName"]["name"]; potentially I could end up with dozens of images with the same name in the database, which is NOT desirable.
    Of course I could simplyfy everything and use two forms - 1 for uploading the images to the upload folder and then one for inserting the images details into the database BUT that has the drawback of the client needing to type in the name of the image identically to match the name which has been generated in the upload folder and that aint gonna happen in a million years

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • I want to find the image tag name from Image layer name InDesign JavaScript?

    I want to find the image tag name from Image layer name InDesign JavaScript?

    Hi,
    You can use following script to fetch image tag name and the layer name on which it lie:
    var imgBox = app.activeDocument.rectangles // fetch all rectangular frames from the active document
    for(var i = 0; i< imgBox.length; i++)
      if(null != imgBox[i].associatedXMLElement )
                var b = imgBox[i]
               alert("Image tag name "+imgBox[i].associatedXMLElement.markupTag.name + "\n exist on layer " + imgBox[i].itemLayer.name)
    Hope this would help you to resolve your problem.

  • How do I call image file names from MySQL & display the image?

    Hello everyone,
    I have image file names (not the full URL) stored in a MySQL database. The MySQL database is part of MAMP 1.7 and I am using Dreamweaver CS3 on a Mac Book Pro.
    I would like to create a catalog page using thumbnails, and PayPal buttons displayed within a table, in rows. With the image centered and the PayPal button directly underneath the image.
    How do I use PHP to call the thumbnail images as an image not the file name, to be displayed in the table?
    Thanks in advance.

    slam38 wrote:
    How do I use PHP to call the thumbnail images as an image not the file name, to be displayed in the table?
    Open the Insert Image dialog box in the normal way, and navigate to the folder that contains the images. Then copy to your clipboard the value in the URL field, and click the Data Sources button. The following screenshot was taken in the Windows version, but the only difference is that Data Sources is a radio button at the top of the dialog box in Windows. It's a button at the bottom in the Mac:
    After selecting Data Sources, select the image field from the approriate recordset. Then put your cursor in the URL field and paste in the path that you copied to your clipboard earlier.

  • Extracting image variants for web index from MDM via Java API

    Hi There, we are currently using an open source search engine to crawl the MDM database and build indexes for our webstores nightly. In this process, we have an image extraction method using the MDM java API's. Can someone please tell me how to call an image variant into this process rather than the 'original image' stored in MDM? I've created a variant that will optimise for web conditions and we need to call this one into the webstore, not the originals that are sometimes huuuuge...

    Hi Adam,
    From MDM Documentation (can be found here [http://help.sap.com/saphelp_nwmdm71/helpdata/en/49/0505fba870404ce10000000a42189b/frameset.htm]):
    Retrieving Image Variants
    To retrieve binary data for image variants carry out these steps:
           1.      Retrieve all image variants using the RetrieveImageVariantsCommand class.
           2.      Retrieve the Image BLOB whose variants you want to get, (see Retrieving BLOB Records above).
           3.      Retrieve the BLOB for the specific image variant using the RetrieveBlobCommand.
    Hope this information helps,
    Idan

  • Sending files from MDM

    Hi All,
    Is it possible to send files from MDM using syndication/API's. When i say files i mean that if we have arecord in MDM which has a image/pdf stored with it and we want to send this record along with the jpg/pdf to external system-ECC. Can we handle this in MDM

    Hi Manish,
    As per my understanding this is not possible to Syndicate images. You can do it only through MDM Data Manager.
    Please find more threads with similar requirement:
    Is it possible to export images, pdf?
    export records with images - how to export the filename of the image?
    Syndicate /Export Images automatically..
    Syndication of images & PDF's
    Regards,
    Mandeep Saini

  • How to display a dynamic image file from url?

    Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
    //PlayJpg.java:
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class PlayJpg extends Applet implements Runnable {
    public static void main(String args[]) {
    Frame F=new Frame("My Applet/Application Window");
    F.setSize(480, 240);
    PlayJpg A = new PlayJpg();
    F.add(A);
    A.start(); // Web browser calls start() automatically
    // A.init(); - we skip calling it this time
    // because it contains only Applet specific tasks.
    F.setVisible(true);
    Thread count = null;
    String urlStr = null;
    int sleepTime = 0;
    Image image = null;
    // called only for an applet - unless called explicitely by an appliaction
    public void init() {
                   sleepTime = Integer.parseInt(getParameter("refreshTime"));
              urlStr = getParameter("jpgFile");
    // called only for an applet - unless called explicitely by an appliaction
    public void start() {
    count=(new Thread(this));
    count.start();
    // called only for applet when the browser leaves the web page
    public void stop() {
    count=null;
    public void paint(Graphics g) {
    try{
    URL location=new URL(urlStr);
    image = getToolkit().getImage(location);
    }catch (MalformedURLException mue) {
                   showStatus (mue.toString());
              }catch(Exception e){
              System.out.println("Sorry. System Caught Exception in paint().");
              System.out.println("e.getMessage():" + e.getMessage());
              System.out.println("e.toString():" + e.toString());
              System.out.println("e.printStackTrace():" );
              e.printStackTrace();
    if (image!=null) g.drawImage(image,1,1,320,240,this);
    // called each time the display needs to be repainted
    public void run() {
    while (count==Thread.currentThread()) {
    try {
    Thread.currentThread().sleep(sleepTime*1000);
    } catch(Exception e) {}
    repaint(); // forces update of the screen
    // end of PlayJpg.java
    My Html file looks like here:
    <html>
    <applet code="PlayJpg.class" width=320 height=240>
    <param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
    <param name=refreshTime value="1">
    </applet>
    </html>
    I only get the first frame picture for ever by my html.But the jpg file is dynamic.
    Why?
    Can you help me?
    Thanks.
    Joe

    Hi,
    Add this line inside your run() method, right before your call to repaint():
    if (image != null) {image.flush();}Hope this helps,
    Kurt.

  • How to get the target file name from an URL?

    Hi there,
    I am trying to download data from an URL and save the content in a file that have the same name as the file on the server. In some way, what I want to do is pretty similar to what you can do when you do a right click on a link in Internet Explorer (or any other web browser) and choose "save target as".
    If the URL is a direct link to the file (for example: http://java.sun.com/images/e8_java_logo_red.jpg ), I do not have any problem:
    URL url = new URL("http://java.sun.com/images/e8_java_logo_red.jpg");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Everything is fine, the file name I get is "e8_java_logo_red.jpg", which is what I expect to get.
    However, if the URL is an indirect link to the file (for example: http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719 , which link to a file named JavaSetup6u18-rv.exe ), the similar code return AutoDL?BundleId=37719 as file name, when I would like to have JavaSetup6u18-rv.exe .
    URL url = new URL("http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Do you know how I can do that.
    Thanks for your help
    // JB
    Edited by: jb-from-sydney on Feb 9, 2010 10:37 PM

    Thanks for your answer.
    By following your idea, I found out that one of the header ( content-disposition ) can contain the name to be used if the file is downloaded. Here is the full code that allow you to download locally a file on the Internet:
          * Download locally a file from a given URL.
          * @param url - the url.
          * @param destinationFolder - The destination folder.
          * @return the file
          * @throws IOException Signals that an I/O exception has occurred.
         public static final File downloadFile(URL url, File destinationFolder) throws IOException {
              URLConnection urlC = url.openConnection();
              InputStream is = urlC.getInputStream();
              FileOutputStream fos = null;
              String fileName = getFileName(urlC);
              destinationFolder.mkdirs();
              File localFile = new File(destinationFolder, fileName);
              fos = new FileOutputStream(localFile);
              try {
                   byte[] buf = new byte[1024];
                   int i = 0;
                   while ((i = is.read(buf)) != -1) {
                        fos.write(buf, 0, i);
              } finally {
                   if (is != null)
                        is.close();
                   if (fos != null)
                        fos.close();
              return localFile;
          * Returns the file name associated to an url connection.<br />
          * The result is not a path but just a file name.
          * @param urlC - the url connection
          * @return the file name
          * @throws IOException Signals that an I/O exception has occurred.
         private static final String getFileName(URLConnection urlC) throws IOException {
              String fileName = null;
              String contentDisposition = urlC.getHeaderField("content-disposition");
              if (contentDisposition != null) {
                   fileName = extractFileNameFromContentDisposition(contentDisposition);
              // if the file name cannot be extracted from the content-disposition
              // header, using the url.getFilename() method
              if (fileName == null) {
                   StringTokenizer st = new StringTokenizer(urlC.getURL().getFile(), "/");
                   while (st.hasMoreTokens())
                        fileName = st.nextToken();
              return fileName;
          * Extract the file name from the content disposition header.
          * <p>
          * See <a
          * href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html">http:
          * //www.w3.org/Protocols/rfc2616/rfc2616-sec19.html</a> for detailled
          * information regarding the headers in HTML.
          * @param contentDisposition - the content-disposition header. Cannot be
          *            <code>null>/code>.
          * @return the file name, or <code>null</code> if the content-disposition
          *         header does not contain the filename attribute.
         private static final String extractFileNameFromContentDisposition(
                   String contentDisposition) {
              String[] attributes = contentDisposition.split(";");
              for (String a : attributes) {
                   if (a.toLowerCase().contains("filename")) {
                        // The attribute is the file name. The filename is between
                        // quotes.
                        return a.substring(a.indexOf('\"') + 1, a.lastIndexOf('\"'));
              // not found
              return null;
         }

Maybe you are looking for

  • How can I fade an image in CS5?

    I have to do some sample note pads for a class and our professor wants us to have a notepad where the image for our notepad is in the center of the pad and that it is faded enough so that people can see the image but be able to write notes on the pad

  • ERROR STOCK DTP IN BW 3.5 ?

    HI all , how the error records are maintained in BW 3.5 as  error srock DTP IN BI . regards , srinivas .

  • Hi Getting Abap dump when in RRP3 when deactivating the DP Planning area

    Hi We are using the Consumption group by this releasing Forecast to SNP at Customer level also along with product and location level,i am doing in dev only, Issue :I have deactivated the DP Planning area(because of some modification) then activated/I

  • Run Safari 4 and 5 on the same Mac

    Hello, Does anyone know if Safari 4 and 5 can run on the same Mac running OS X version 10.6.5? I am testing for functionality of web sites that we are developing under different browsers. Thank you, Angelo

  • Personalization - FITV_POWL_TRIPS -

    I have tried to hide several columns in the FITV_POWL_TRIPS abap webdynpro under adminstrative mode to transport from our DEV system up the landscape to QAS and PROD.  I receive the popup to create a task when saving the changes.  When going into se1