How to Read/Update GOS URL

Good day Gurus,
I created a program to create URL in GOS. My scenarios are these.
1. Check the contract in RE80 if URL Title "Testing" is already attached. If not, create the URL. Please help how to check if such URL title is already attached.
2. If its already attached, I need to update the URL link. I've check FM SO_OBJECT_UPDATE but it needs the Folder ID and Object ID. How will I get these parameters?
Thank you in advance.

see the following example to Read URL form GOS
REPORT  ZGOS_READ_URL.
tables:
  srgbtbrel.   "Relationships in GOS Environment
parameters:
  p_objkey                   like borident-objkey
                               default '0000101774',
  p_objtyp                   like borident-objtype
                               default 'KNA1'.
start-of-selection.
  perform display_attachment.
*&      Form  display_attachment
form display_attachment.
  data:
    l_objkey            type swo_typeid,
    lo_gos_service      type ref to cl_gos_document_service,
    ls_srgbtbrel        type srgbtbrel,
    lt_srgbtbrel        type srgbtbrel occurs 10.
*" Get a list of the links and choose one:
  select *
    into corresponding fields of table lt_srgbtbrel
    from srgbtbrel
    where instid_a = p_objkey
    and   typeid_a = p_objtyp
*    and   reltype  = 'URL'.
and   reltype  = 'ATTA'.
*" Exit if no attachments found
  if lines( lt_srgbtbrel ) is initial.
    exit.
  endif.
*" Choose first one and set up the ident for the BOR
  sort lt_srgbtbrel by utctime. "put oldest top for this demo
  read table lt_srgbtbrel into ls_srgbtbrel index 1.
  l_objkey = ls_srgbtbrel-instid_b. "i.e. the Note's ID
  create object lo_gos_service.
*  call method lo_gos_service->display_note
* call method lo_gos_service->DISPLAY_URL
call method lo_gos_service->DISPLAY_ATTACHMENT
      exporting
      ip_ATTACHMENT = l_objkey.
*       ip_URL = l_objkey.
break developer.

Similar Messages

  • How to read Update log/RFC Log IN SMSY programatically ?

    Hi all,
    In SMSY we have option to look at <b>update log/RFC Log</b> which shows the connection status for each RFC connection. there are cases where the connection has failed and we get logs as shown below
    Start of automatic data capture with source 'RFC_CALL'
    Start of data capture for system 'A1D'
    Get clients for system 'A1D'
    Clients for system 'A1D' found in RFC destination 'SM_A1DCLNT010_READ'
    Get software components for system 'A1D'
    Software components for system 'A1D' found in RFC destination 'SM_A1DCLNT010_READ'
    Determine the installed Support Packs for the system 'A1D'
    Support Packs for system 'A1D' determined by RFC destination 'SM_A1DCLNT010_READ'
    Get clients for system 'A1D'
    Clients for system 'A1D' found in RFC destination 'SM_A1DCLNT010_READ'
    Get server and instances for system 'A1D'
    Server for system 'A1D' found in RFC destination 'SM_A1DCLNT010_READ'
    Start of data capture for system 'AAE'
    Get clients for system 'AAE'
    Clients for system 'AAE' found in RFC destination 'SM_AAECLNT010_READ'
    Get software components for system 'AAE'
    Software components for system 'AAE' found in RFC destination 'SM_AAECLNT010_READ'
    Determine the installed Support Packs for the system 'AAE'
    Support Packs for system 'AAE' determined by RFC destination 'SM_AAECLNT010_READ'
    my question is:
    1) what does these logs signify
    2) how to read these logs in program and based on what selection
    need ur inputs on this....
    Best regards,
    Subba

    FOUND...

  • How do you update the URL for a Podcast?

    The subject line pretty much says it all. I must be blind, but I cannot find anywhere to update the URL for a Podcast in iTunes 7.0.2.
    G4 933 (Quicksilver)   Mac OS X (10.4.4)  

    I subscribed to a Podcast that used a service (Webpasties) to host the weekly show. They recently moved off of that service, so I receive no new shows under that subscription. (In fact, the header now says "subscription expired".)
    I can find no way to update this subscription with the new URL so it will recognize and download the new episodes.
    Right now I subscribed separately to the new Podcast, but I would like to unify them -- I do not throw away any episodes, so it's nice to have them all under one subscription rather than spread across two.

  • How to read the application URL at runtime

    Hi
    Is it possible to read the application URL while running the application
    http://10.44.0.102:7778/forms/frmservlet?config=rnd
    Abnoue is my URL is it possible to read it and hold it on a variable runtime
    Thanks in advance
    Thanks,
    jebesh

    Hello,
    <p>If you use a Web version (please, indicate the exact version you use in your every post), you could use a Java Bean to read the applet parameters.</p>
    Francois

  • How to read updated data from a real-time generated file?

    I have a question:
    I want to read the 10 mostly updated data from a real time generated data file. The data in this file is accumulated. how can i read mostly recently data to an applet? and further to using this data to draw a real-time graph? pls help
    kelvin t.l. tse

    Hi,
    I think there is no "typical" way. You will have to define a convention on how the new data are stored into the file, so as to know how to accessthem. If new data are simply put at theend of your file, you may use a RandomAccessFile to read only those lines that interest you (the 1 final lines).Otherwise, you should at least know how the data file is written.
    You can know if thedata file has been modified with the File.lastModified() method. This retrurns a long value corresponding to the date and hour the file was last modified. Store that value ito you appl. and perdiodically (use a Thread), compare that value with the value returned by lastModief(). If both value are NOt equal, then the file has been updated
    it's all a question of knowing how the data are stored into the datafie generated.
    Be also aware that you will probably have problem when your java appl. tries to read the file at the same time it is updated by the other application. I guess when theother application writes data into the file, you will not be able to read it. So, use try{} catch statements and first check to see if you can read the file with File. canRead(). If not, simply delay the reading process by asking a Thread.yield() or Thread.delay (1000)...
    vincent

  • Update the url for attachments in SAP

    Hi All,
    We want to update the url for attachments in SAP in the transaction
    code MIR4.As there are 300000 invoices in SAP , please let us know how
    we can update the url for the attachments.
    Thanks

    Hello,
    Once try
    CALL FUNCTION 'BBP_ATTACH_BUILD_URL'
    EXPORTING
    is_attach = ls_attach
    IMPORTING
    ev_url       = lv_url
    TABLES
    et_messages = lt_messages.
    Regards,
    Neelima

  • How to read XML file kept on NON-SAP server using the Http URL ?

    Dear Experts,
    I am working on CRM2007 web UI. I need to read a XML file placed on a shared server location by a third party program. Then process that XML file into CRM and create a quotation using the data extracted from the file.
    All i have with me is the http URL that points to the location of the file.
    I am supposed to read the file , create quotation and at later point of time i would be asked to update the quotation and then generated new XML representing updated quotation and replace the XML file on shared server location with this new updated XML file.
    I know how to extract data from XML file into ABAP but i have no clue as to how to access the file on some other server using the http url i have and how to read it ?
    I searched on the forum and i found the codes for reading XML file that is located either on client machine OR on the Application server wheareas my file is on some other than sap application server.
    Please help me as its an urgent issue .
    Points will be rewarded for sure.
    Please help.
    Thanks in advance,
    Suchita.
    p.s. : the http url to the file location is like -->
    http://SomeServerDomain/SomeDirectory/file.xml

    hi,
    interesting task.
    to request the file by a http call you need to create an if_http_client object.
    More info is [here|http://help.sap.com/saphelp_nwmobile71/helpdata/en/e5/4d350bc11411d4ad310000e83539c3/frameset.htm]
    to parse the file you either have to work with the ixml packages ([info|http://help.sap.com/saphelp_nwmobile71/helpdata/en/47/b5413acdb62f70e10000000a114084/content.htm]) or you use an XSLT transformation ([info|http://help.sap.com/saphelp_nwmobile71/helpdata/en/a8/824c3c66177414e10000000a114084/content.htm]).
    uploading the final file isn't so easy. if you only have http, you should write a server script to allow uploading of the new file and copying it into the place of the old file. but you definitely need the script.
    now it's your take. depending on how experienced you are in ABAP and networking this might turn out to be easy or pretty complicated.
    have fun,
    anton

  • How to read and update the value of property file

    Hi,
    I am not able read the values from property file.
    Please tell me how to read and update the values from property file using Properties class
    This is my property file : - Config.properties its located in D:\newfolder
    Values
    SMTP = localhost
    Now i need to change the value of the SMTP
    New value :
    SMTP =10.60.1.9
    Pls Help me
    Thanks
    Merlin Rosina,

    Post a small (<1 page) example program that forum members can copy and run that demonstrates your problem.

  • How do I delete "You can't open the application Adobe Reader Updater Helper because PowerPC..."

    How do I delete "You can't open the application Adobe Reader Updater Helper because PowerPC applications are no longer supported." I have Mac w/ Lion and this message pops-up constantly. I would like to stop it from poping up? Any suggestions?

    Adobe Creative Suite 2 (CS2)'s Photoshop running in Snow Leopard Server installed into Parallels 8 for use in Lion or Mt. Lion:
                                  [click on image to enlarge]
    Apple is now selling Snow Leopard Server for $19.99 + sales tax & shipping costs at 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only).  Smarmy, self-important forum members will have to pay extra!

  • How to Read,Write & Update XML File

    hi,
    How to read,create and update an XML file using DOM

    xml API's are there like jdom and stuffs...
    search in google : xml API's + java

  • HTTP Sender - how to read URL Parameter USER id into Mapping

    Hi,
    My scenario is HTTP - XI - ABAP Proxy.
    I wanted to capture USER id of the person who posted(HTTP) into XI(Mapping). How to read/evaluate the value of sap-user from querystring of URL ?
    http://HOST:8008/sap/xi/adapter_plain?namespace=http%3A//abc.com/sales_oa&interface=MI_sales_OA&service=DEV_D&party=&agency=&scheme=&QOS=EO&<b>sap-user=SM9999</b>&sap-password=xxxxx&sap-client=001&sap-language=EN
    please help.

    Mallik,
    Try  URL Parameters in HTTP sender communication channel.
    In the sender communication channel set Adapter Specific Message Attributes. Click on Apply URL Parameters. In Parameter1 put sap-user (U can query any URL parameter by giving its name as in the HTTP URL).
    Now in SXMB_MONI, in inbound payload SOAP Header, under Dynamic configuration u can see the value of the user. Query the same in Mapping using Dynamic Configuration using keyName as UrlParamOne.
    Regards,
    Sudharshan N A
    Message was edited by:
            Sudharshan Aravamudan

  • How do i update a single bookmark to a new url.

    probably already there but i cant find it .
    there are some very old bookmarks in my personal bookmark collection. Some of them point to a wrong adress.
    How do i update them ?
    Maybe something like chose 'update bookmark' while being on the new page and then select an old bookmark ..
    -mj

    aha,  nice.
    an update option in this context menu would be really nice
    now i have to copy the new url and paste it in the edit box....
    I tried to drag it but when click the adres the editbox dissapears ....
    ok it sort of works
    thx
    maybe an idea for a next update

  • How to read XML file and update the data in MS CRM 2011?

    Hi Folks,
    Can anyone please help me finding some references to read XML files and push the data to MS CRM 2011 preferably by using a console application.
    Please let me know if any ways of handling it in simple ways.
    Thanks,
    Sri

    HI,
    How to read XML file:
    https://social.msdn.microsoft.com/Forums/en-US/5dd7261b-86c4-4ca8-ba87-95196ef3ba50/need-to-display-xml-file-in-textboxes-edit-the-data-and-save-the-new-xml-file?forum=csharpgeneral
    How to work with CRM:
    ClientCredentials credentials = new ClientCredentials();
    credentials.Windows.ClientCredential = new System.Net.NetworkCredential("USER", "Password", "Domain");
    Uri uri = new Uri("http://server/Organization/XRMServices/2011/Organization.svc");
    OrganizationServiceProxy proxy = new OrganizationServiceProxy(uri, null, credentials, null);
    proxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
    IOrganizationService service = (IOrganizationService)proxy;
    //using "service" you can create, update and retrieve entities.
    More information here about service functions:
    https://msdn.microsoft.com/en-us/library/gg328198.aspx

  • How to read URL parameters of one wdp component into other WDP component?

    Dear Experts,
    Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
    My requirement is i have one standard WDP component with 3 URL parameters and i needto
    read that URL parameters along with their values in my Z-WDP component.
    Thanks
    SK

    Hi Santosh,
    You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
    data: lt_parameter             type tihttpnvp,
             ls_parameter             type ihttpnvp.
    lo_api_controller ?= wd_this->wd_get_api( ).
       call method lo_api_controller->get_message_manager
         receiving
           message_manager = lo_message_manager.
       clear : ls_parameter.
       refresh : lt_parameter[].
    * Read all URL parameters
       wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
    if not lt_parameter[] is initial.
         clear : ls_parameter.
         read table lt_parameter into ls_parameter index 1.
         if ls_parameter-name = 'ACTION' and
            ls_parameter-value is initial.
           lv_flag = 'X'.
           clear : lo_msg.
           lo_msg = 'Action Parameter Missing in URL Link !'.
    *         report message
           call method lo_message_manager->report_error_message
             exporting
               message_text = lo_msg.
         else.
         endif.
    Best Regards
    Priyesh Shah

  • How to read url

    Dear experts,
    My application URL is
    http://<my url : my port>/sap(bD1lbiZjPTIwMCZkPW1pbg==)/bc/bsp/sap/zhrrcf_mde_app/application.do
    i'm calling this application with additional parameters like
    http://<my url : my port>/sap(bD1lbiZjPTIwMCZkPW1pbg==)/bc/bsp/sap/zhrrcf_mde_app/application.do/?usr=P41005563
    in my application i want to read this second url with this parameter "usr".....how do i do this ?
    Thanks & Regards,
    Deepak,
    9890662966

    Hello,
    it depends on how you structure your development. If you´re using pages with logic, you can declare parameter USR in the page attributes and click on checkbox auto. In that way, when you call the page the system pulls the value in the URL automatically and you can use it in your page.
    Check also [this link|;

Maybe you are looking for

  • How to keep same file name in File to Mail-Without Ripository Object??

    Hello Experts, I have a requirement where I need to pick a file and need to send that as an attachment by mail adapter through PI. I can send the file as attachment but the file name is being changed. For example,the source file with name "Vendor_201

  • Issue in Print Form

    Hi, I have created a print form using Adobe LiveCycle designer 7.1 on SAP ECC 6.0 version. The requirement is to mask first 5 characters of a text field (SSN) on the form while displaying but when printed it should print whole SSN.I have used Javascr

  • This feature can only be installed on a server running SQL Server 2008 R2 SP1 or later ERROR

    Attempting to install MBAM 2.5, and the SQL Server I have available for the install is SQL Server 2008 R2 SP2; the databases installed correctly, but when I run the Reports install it suddenly doesn't like my SQL anymore. The error says I need to ins

  • Data Adaptor - Sample Code (DerbyDataAdaptor)

    Hello, I am trying to understand the DerbyDataAdaptor which is mentioned in the the Oracle Policy Automation Developers Guide. The guide states that their are some files stored @ examples\interview-engine\data-adaptor\src\create_db.sql examples/inter

  • My BB internet browser has no menu

    Basically, ever since I got my BB in Oct 2010, the BB browser has been working fine. But only recently I can't use it properly because its menu has randomly disappeared. What I mean is, is that there's that button you press to get the menu (the BB lo