FM for fetching file type by providing the URL link for file.

Hi All,
We have a requirement to fetching file type of image viz .jpg,.bmp,.tiff by providing the URL link to image.
For example
http://AttachmentWebsite/AttachmentWebsite.aspx?Num=ATT-F19220090818095048&Ext=.JPG&RC=N
Is there any FM to fetch file type from link.
regards,
Nitin
Edited by: Nitin Sikka on Aug 20, 2009 8:35 AM

diff URLs. but if they contain the pattern "EXT*=.<extn name>" then the above code will work
else you have to search for all formats.
data:res type MATCH_RESULT,
DATA : s1 type string VALUE 'http://go2ntlweb14/AttachmentWebsite/AttachmentWebsite.aspx?Num=ATT-F19220090818095048&Ext*=.JPG*&RC=N '.
FIND first OCCURRENCE OF REGEX '.(JPG|TIFF|PNG|JPEG|BMP)' in s1 RESULTS res.
if sy-subrc is INITIAL.
SHIFT s1 by res-offset PLACES.
endif.
WRITE : s1+0(4).

Similar Messages

  • Fetching details from the URL Link

    Hi Experts,
    I need a help on the webdynpro, for capturing few details from the url used to call the webdynpro application.
    My client has designed the scenario such that,
    They have designed thier intranet in dotnet. For accessing the webpage designed, the user has to provide his Employee ID and name.
    On accessing the webpage designed for him, he has few webdynpro URL links assigned to him that he can access.
    On clicking the link, the Webdynpro application is called for doing the transaction.
    Now the requirement is that, for calling the webdynpro application the client is passing the Employee name, Employee ID and the IP address of the thin client system, through the URL link generated by the dotnet framework.
    Now I need to know the way how to capture these details into the webdynpro application?
    hereby am providing the sample URL by which they pass the values.
    http://abcde.industries.co.in:8000/sap/bc/webdynpro/sap/zwda_MB51?uid=1283265&empname=RAMESH KUMAR&tcode=MMBE&ip=192.168.45.118
    Kindly provide me the possible solution.
    Regards,
    Vijaysankar.V

    Dear Vijay,
               In your case , your application url parameters are like UID,NAME, IP, & TCODE.
               U Can write a method and fetch all these parameters as i shown below:
    data: uid type string.
    data: name type string.
    data: ip type string.
    data: tcode type string.
    uid = wdr_task=>client_window->get_parameter( 'UID' ).
    name = wdr_task=>client_window->get_parameter( 'NAME'' ).
    ip = wdr_task=>client_window->get_parameter( 'IP' ).
    tcode = wdr_task=>client_window->get_parameter( 'TCODE' ).
    Thanks,
    Saurin Shah

  • Yahoo is my home page and News, Sports, Business links now shows a few sentences after each main URL link. How do I put it back to show just the URL links?

    Yahoo is my home page and News, Sports, Business categories/links changed and now shows a few sentences after each main URL link/topic. How do I put it back to show just the URL links/topics without having to scroll down and down the page. All the extra sentences after the links causes too much scrolling to view the topics.

    Those steps did not solve my problem. Here is an example of what I see although it's not exact copy/paste. All I want to see are the links but I get all the verbiage after the links
    Firefox 17.0.1 version
    ''' '''Ask Stacy: How Can I Rebuild My Credit?''''''
    Here’s a question familiar to millions of Americans… Stacy, My wife and I recently filed for bankruptcy due to high medical bills we were unable to pay. We purposefully didn’t add our Wells Fargo credit ...
    Money Talks News
    '''Analysis: High stakes for Cuba in Chavez's cancer battle'''
    HAVANA (Reuters) - As Venezuelan President Hugo Chavez recovers in Havana from his fourth cancer operation, Cubans face renewed worries about their economic future if the country's top ally dies or has to step down from office. Cuba has staked its economic well-being on the success - and generosity…
    41 mins agoReuters
    [$$] Playing FICC or Treat With Bank Investors
    '''Playing FICC or Treat With Bank Investors'''
    The Wall Street Journal
    AdChoices
    '''Cybergeddon
    A digital crime thriller from Anthony E. Zuicker, the creator of CSI. Only on Yahoo!
    And here is what Internet Explore shows: All LINKS below
    '''Molten gold signals mining's return to Calif.'s Mother Lode'''
    '''Century-old fight for Budweiser name hits new snag'''
    '''NRA goes silent after Connecticut school shooting'''
    '''.Authorities: Kansas man who killed 2 cops dies'''

  • Help.....the URL link in iCal stopped working!

    I have often used the URL link within an iCal event (Get Info) to click on it to take me to a certain web site. Well....for some reason, I now click on the URLs and they DO NOT work! When I create a new Event, and add a URL to it, it will not work. I deleted the iCal plist preference....did not help. I have searched hi and lo, and can not see any other posts on this problem. Anyone have any ideas on how to get the URL to work?
    thanks, Bruce

    What is happening to make you think you can't add it in the code where you want to add it? Are you trying to add the Application tag as well, or just the LinkButton? BTW, you might get more help if you post in the Flex forum instead of this one.

  • HT1937 how do i find the url link from a video i recorded on my ipod

    I recorded a video on my ipod touch and i have to send it in to the radio station. All they want is the url link but for the life of me i can't find it on my ipod or when i uploaded it to the computer.

    When you connect your iPod to iTunes and select it from the device pane, does it not show the capacity and amount of space being used by music, videos, and apps?
    You do not have to sync your entire library to your iPod, you can selectively control what does and does not sync.
    No device has the exact stated capacity, this is not specific to iPods.  There is always overhead that must be accounted for in the operating system running the device.  Also, every hard drive is unique in it's capacity.... could you imagine the disaster of marketing if every package had to accurately (to the byte) reflect the capacity of the device? 

  • What is the URL link for Crystal Report samples from Richard Duffy or SAP?

    Hey Experts,
    I recall there is a website provided by Richard or SAP that gives away free sample of various crystal reports, or charges for some reports at a minimal price.
    Anyone know the website link??
    Thanks!
    Chinho

    Hi Chinho,
    You may check his website first:
    http://www.richardduffy.com/
    Thanks,
    Gordon

  • Please provide the URL to install firefox 33

    I wanted to install firefox 33 for some business activities,pls provide the link

    Not a code name per say but currently being developed on the Aurora development channel as version 33.0a2 and will move merge to Beta channel when Firefox 32.0 is released.
    Code names for a version has not really been used since Firefox 3.6

  • Does firefox 4 have the 'feeling lucky' google search feature when you type phrases into the URL bar? ATM it goes to google where i then have to click on website.

    if i type simply phrases in to the URL bar (i,e bbc) it use to take me directly to www.bbc.co.uk. but now in firefox 4, it seems to go to google.co.uk instead displaying all the searched items. I then have to click on the link i want.
    Is there any way of enabling this?

    The change between Firefox 3.6.* and Firefox 4 is how location bar search works. In Firefox 3.6 it uses Google "Browse by name" search. With the browse by name search, it performs a Google search and if there is a clear match it will take you to the site, otherwise it shows the Google search result. With Firefox 4 it just performs a Google search if you type something which is not recognised as a URL.
    To get the Firefox 3.6 behaviour on Firefox 4 you need to change a hidden preference.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''keyword.URL''', double-click on it and change its value to the link shown below
    [http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q= http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=]
    If you prefer, you can also do this by installing the Browse by Name extension - https://addons.mozilla.org/firefox/addon/browse-by-name

  • APEX 3.0 Displaying the URL link for a column value ( only when not null )

    Consider the example :
    I have the following table with a column that may have urls to documents
    Row Column ( url_column )
    1 http://xyx.com/doc/doc1.pdf
    2 http://xyx.com/doc/doc2.pdf
    3 (null)
    How do i display the column so that a the link shows up only if a value exists.
    Setting the URL to #URL_COLUMN# in the 'Column Attributes' screen creates a problem when the value is null ( for Row 3 in above eg.)
    Thanks for your help

    I would handle it in the query itself, something like
    select x, y, z,
           decode(url_column, null, null,
                    '<a href="'||url_column||'">'||
                     url_column||'</a>') as url_column
      from wherever

  • Extended Notifications: how to change the URL link

    Hello,
    We are on ECC6. We use Extended Notifications to alert users to the presence of new workitems, but when they click on the link to execute the workitem, they're presented with the login screen.
    We have been able to send emails from workflow which contain a link that does not ask for a login so I know which URL to use. The problem is, how can you set the URL in Extended Notifications? How does it decide which URL to use? I've tried changing a few General Settings in SWNCONFIG, none of them made a difference.
    Any hints, tips, suggestions would be appreciated.
    regards
    Rick Bakker
    Hanabi Technology

    Hi Rick,
    I wrote my own notification handler to solved an link issue (wanted to point to a specific iView url). I changed the notification handler via Category and double clicking on the category:
    Scenario                        WORKFLOW                       
    Category                        ZCATEGORY                    
    Description                    Adobe Administrator                            
    Requested Reliability          0 Undefined                                    
    Collective Message             A Grouping with Othe                           
    Notification Priority          5 Medium                                       
                                   Delete After Send                              
    Category Handler               CL_SWN_CATEGORY                                
    Notification Handler           ZCL_SWN_NOTIF_WF                          
    Handler for User               CL_SWN_USER_STD                                
    Have a look at some of the methods:
    LOAD_INSTANCE_WA
    ADD_LINKS_ACTION
    ADD_LINK_ACTION_DISPLAY
    ADD_LINK_ACTION_EXECUTE
    ADD_LINK_ACTION_DECISION
    CREATE_ACTION_ATTACHMENT
    CREATE_INBOX_ATTACHMENT
    Hope it helps you understand how the link is created.

  • I work with a web app that will not run on Firefox, so I changed my default browser back to IE but the URL link continues to open in Firefox. How can I get it to default to IE?

    After changing my default browser from Firefox back to IE, other URLs are defaulting to IE but I have one URL that continues to default to Firefox. This web app will only run in IE so the only way I can run it is to open IE first and then enter or select the URL. Is there a setting someplace that will change the default browser for this URL to be IE?

    You can make IE the default browser, that will reset some registry keys<br />
    Control Panel > Internet Options: Programs<br />
    Put a check in the box next to 'Internet Explorer should check to see whether it is the default browser'<br />
    Start IE and let IE make itself the default browser.
    Check the default settings in:<br />
    Control Panel > Add/Remove Programs > "Set Program Access And Defaults" (on the left)<br />
    Open: Custom (click arrow on the right)<br />
    Select "Internet Explorer" under "Choose a default Web Browser"<br />
    Click OK

  • Remove '/spl' in the URL Link to a CC&B v2.2.0 Environment

    Hi,
    In v2.1.0, the URL of the environment (except Tomcat I guess) is like this: http://<hostname>:<port number>/. In v2.2.0, the URL changed into something like http://<hostname>:<port number>/spl/.
    What's the purpose of */spl*? Is there a way to supress the */spl/* link so that the URL of the CC&B environment stays the same regardless of the version?
    Thank you very much for your help.

    The following two user documents might be useful:
    Framework User Documentation: 04UITools.doc and BP02ConfigurableUserInterface.doc
    Though, as note 761096.1 states, excerpt from the installation guide:
    Post installation activities required for WebLogic installation
    Application URL
    The Web link to the WebLogic application will be:
    http://<hostname>:<WLPORT>/spl/cis.jsp
    eg. http://hpapp-02:6500/spl/cis.jsp

  • How to Create a Page and provide the Page link in personalisation.

    Hi Techies,
    I have unique requirements as follow ...
    On a Page , We need to create a Link. After clicking this link , the control should open a new page and the new page details need to shown.
    I did the following ,
    1. Personalized the page. Added a new Item of the Type "Link". In URI filed I gave an existing page ( for testing ). It was working fine. But When I gave my actual page which I created in HTML(*.html extension ) , which did not worked.
    Can not we provide *html page in the URI filed of the Item type Link.
    Please help me in resolving this.
    Thanks in Advance
    Regards
    Raghu

    Guys one update if you want to create a link for a PDF file to show on to your browser use the below method.
    I used this below method for bringing the PDF file ( the file which business want to show on browser ) using the below steps.
    1. Created a Link using personalization.
    2. Provided target frame as "New Window".
    3. Provided URI : FileName.pdf.
    Note that the FileName.pdf should be kept in the $OA_HTML Path on the Unix box. The Personalization would look for the file in the path of $OA_HTML and display in the other browser which is a full file. I did not get Home and Logout buttons over there. So I suggest you to use if you in need of Loading an informative page on the Browser.
    Raghu

  • Cant click or type anywhere but the URL field in Safari! please help

    hi,
    i got my touch a few days ago and everything was fine
    until today,
    i turned it on, got connected and tried to check my email, via yahoo
    but when i was asked to enter my email, i couldnt click on the field where i was supposed to enter it
    then i tried going to apple, as with the other websites i tried, the home page came up, but when i tried clicking on something, it wouldnt work...please tell me what i can do
    Thanks
    Richard

    Googling the error you reported found this:
    http://forums.macosxhints.com/archive/index.php/t-43873.html
    from there, you can focus in on:
    I've had the same problem, and with the help of this forum have resolved it. Here's the simple summary, condensed from Hogster's description of his troubleshooting in response to other posters' suggestions.
    In your home,
    Go to Library/Caches.
    Probably you will discover that the Safari folder in there has a little padlock on the icon, indicating it is locked. This may have been done by Safari Enhancer or something else, to prevent caching and speed things up. But it interferes with certain uploading processes (my troubles were always with uploading photos to photo websites).
    Select the Safari folder (inside ~/Library/Caches), and hit Apple-I (for GetInfo). Uncheck the "Locked" checkbox.
    Problem should be solved! I did not find it necessary to logout and back in. Simply unchecking that one box was a complete fix for a problem that had been nagging me for months!
    If this doesn't help, keep googling.
    hth
    Jeff

  • How to open the url link in new window or new tab in Sharepoint

    Hello,
        Am having one custom list and one column name  contains type (Hyperlink & picture).I want to open this in a new tab on click I tried but i didn't get any solution even I follow this link also.
    https://wb2-web.sharepoint.com/blog/Lists/Posts/Post.aspx?ID=9 
    and I didn't get this line of code:     <a
    onfocus="OnLink(this)" href="{$url}" >  
    Any Help

    You can do it one of two ways:
    1. Insert some CSS that will change the target to "_new".
    2. Change the field that the user enters information in to a single line of text, then create a calculated column that is:
    =CONCATENATE("<a href=",[URL Field]." target=new>Click here</a>")
    Format that as a number.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

Maybe you are looking for

  • How do i move photos and catalog to a new drive and have lightroom make the same move

    I am trying to move all my photos to a new drive with different drive letter.  I know I can do a backup and restore inside PSE13 to perform that.  However, I also have Lightroom 5 on the current setup.  How would I now use the new location for the ph

  • Message Mapping- 3 problems

    Hi, 1)I need some information regarding Message Mapping. I need to map the field TDLINE of segment E1EDKT2 of IDOC ORDERS05 to the target fields. But based upon the index number of the record of this segment, I must map it to different fields (eg.E1E

  • Text Messages Break Into Small Multiple Individual Messages

    I cannot find a setting that allows me to keep my text messages from being broken into many individual messages.  The same happens to messages I receive.  A single message may be broken up into seven or eight individual messages, which most often are

  • Change app download folder

    i have 2 hard drives, a 60GB (Windows 7) system SSD and a 2 TB HDD. my SSD is filling up because i initially installed some programs, most notebly itunes, after building my computer not knowing how much the folder size could expand. i have been able

  • Supported HA Architecture for Persistent Chat

    I have a project that has a requirement for Persistent Chat as part of the infrastructure. The design is two well connected data centers in the same region so there will be two EE Lync pools paired for DR. They are using SQL clustering instead of mir