<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom GOS attachments refreshment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496693#M1421092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response,im sorry i could 'nt understand what you are saying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well either it is a custom GOS or standard GOS you have got your attachments the refresh action is going to be same.Bu in my case for my custom GOS it is not happening automatically.So i want to incorporate the refresh action so that i can see my newly created attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you view our attachments thru attachment list the newly created attachmnet(URL attachment) is not displayed immediately.So to display the new URL attachment i need to go ahead with Refresh button, which refreshes the documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to implement that functionality i need call CL_GOS_ATTACHMENTS-&amp;gt;REFRESH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing difficulty in passing the parameters so let me know if you have any idea of passing the parameters to the method REFRESH of class CL_GOS_ATTACHMENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 22:50:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-19T22:50:29Z</dc:date>
    <item>
      <title>Custom GOS attachments refreshment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496690#M1421089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom transaction where in it has a custom GOS Object. URL attachments are maintained in that GOS object, which is working very fine but there is refreshment delay onto the attachments screen.The generated URL attachment does'nt appear immediately,it appears once you trigger the refresh button(%ATTA_REFRESH).So for that i need to incorporate the refresh functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could able to see the standard SAP process, which uses the method "REFRESH" of "CL_GOS_ATTACHMENTS" ,but as the the importing parameter which is used with nested refrerences, where in im facing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with some combinations but finally landed up with short dumps with Null reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same method is also exisitng in another class where in i guess this functionality can be handeled CL_GOS_ATTACHMENT_LIST-&amp;gt;REFRESH, which does'nt have any importing parameters. So this needs to be maintained with the references of the object.Prior to calling the method refresh i guess we need to call get_selected_objects method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guys let me know how can i pass the parameters to the method Refresh.&lt;/P&gt;&lt;P&gt;CL_GOS_ATTACHMENT-&amp;gt;REFRESH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 23:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496690#M1421089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T23:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom GOS attachments refreshment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496691#M1421090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this link will help you [click&amp;gt;&amp;gt;&amp;gt;|http://help-abap.blogspot.com/2008/09/tutorials.html#GOS]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 00:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496691#M1421090</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2010-01-19T00:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom GOS attachments refreshment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496692#M1421091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have created your GOS object. The Object which creates the ulr needs to raise the event:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;     
RAISE EVENT service_succeeded
      EXPORTING eo_service = me.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The gos object which shows the urls needs to react on the &lt;/P&gt;&lt;P&gt;  ON_SERVICE_SUCCEEDED event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* ...
  DATA lo_document_create TYPE REF TO your gos object which creates the URL
  DATA lp_status TYPE sgs_status.

**
  CATCH SYSTEM-EXCEPTIONS move_cast_error = 1.
    lo_document_create ?= eo_service.
  ENDCATCH.

  IF sy-subrc = 0.
* what ever you need to execute the refresh
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume this is what you ask?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 03:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496692#M1421091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T03:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom GOS attachments refreshment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496693#M1421092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response,im sorry i could 'nt understand what you are saying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well either it is a custom GOS or standard GOS you have got your attachments the refresh action is going to be same.Bu in my case for my custom GOS it is not happening automatically.So i want to incorporate the refresh action so that i can see my newly created attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you view our attachments thru attachment list the newly created attachmnet(URL attachment) is not displayed immediately.So to display the new URL attachment i need to go ahead with Refresh button, which refreshes the documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to implement that functionality i need call CL_GOS_ATTACHMENTS-&amp;gt;REFRESH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing difficulty in passing the parameters so let me know if you have any idea of passing the parameters to the method REFRESH of class CL_GOS_ATTACHMENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 22:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496693#M1421092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T22:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom GOS attachments refreshment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496694#M1421093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you some problem with your IP_NO_COMMIT parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you don't pass the IP_NO_COMMIT, it defaults to "X" which means commit work would be done by the application program.&lt;/P&gt;&lt;P&gt;When you pass "R", system attaches the document in the RFC FM. So, when you first time check the Attachment List, you don't see this new document. But, when you do the refresh, system would find the attached document. In this case, when you attach the attachment, you don't get the message "The Attachment was successfully created". For other options, you would see this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 23:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-gos-attachments-refreshment/m-p/6496694#M1421093</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2010-01-19T23:59:55Z</dc:date>
    </item>
  </channel>
</rss>

