<?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: GOS on custom program not saving links in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gos-on-custom-program-not-saving-links/m-p/7144523#M1513874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must add COMMIT WORK (AND WAIT or not) somewhere in your application (add a button that the user), or use CREATE OBJECT manager EXPORTING ... IP_NO_COMMIT = space or 'R' ... so that the COMMIT WORK will be done automatically by the GOS manager. Note: IP_NO_COMMIT = 'R' means that the service will start in its own LUW (using synchronous RFC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, read the [SAP Library - GOS - Publishing unique object|http://help.sap.com/saphelp_nw2004s/helpdata/EN/7e/4dbeb62c8e11d4a39e00a0c943858e/frameset.htm] (well, it doesn't talk about 'R'...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Jul 2010 23:29:50 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2010-07-31T23:29:50Z</dc:date>
    <item>
      <title>GOS on custom program not saving links</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gos-on-custom-program-not-saving-links/m-p/7144522#M1513873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I've just implemented GOS to a Z program following the instructions of a SDN contribution document called "How to attach documents to any custom program using GOS". I simply want to add GOS to the selection screen of the program in order to locat and store documentation regarding this Z program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the program and the GOS button is displayed, I add some link or document and then I display the list of attachments and everything seems to be working ok. So when I leave the program and run it again no list of attachments is available as this is greyed out. Anyone could help please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps I performed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the Business object saved and released to implemented with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key -&amp;gt; programName (TRDIR-NAME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and redefined the GOSAddObjects method like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BEGIN_METHOD GOSADDOBJECTS CHANGING CONTAINER.
DATA:
      SERVICE(255),
      BUSIDENTIFS LIKE BORIDENT OCCURS 0,
      LS_BORIDENT Type BORIDENT.

    CLEAR LS_BORIDENT.
    LS_BORIDENT-LOGSYS = SPACE.
    LS_BORIDENT-OBJTYPE = 'ZGOS'.
    LS_BORIDENT-OBJKEY  = OBJECT-KEY.
    APPEND LS_BORIDENT TO BUSIDENTIFS.


  SWC_GET_ELEMENT CONTAINER 'Service' SERVICE.
  SWC_SET_TABLE CONTAINER 'BusIdentifs' BUSIDENTIFS.
END_METHOD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Z program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  Z_RUBS_TEST_GOS.

CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE 'ZGOS'.
DATA: MANAGER TYPE REF TO CL_GOS_MANAGER,
OBJ TYPE BORIDENT.

PARAMETERS: MATNR TYPE MARA-MATNR.

AT SELECTION-SCREEN OUTPUT.

CLEAR OBJ.
* SET OBJECT TYPE TO 'ZGOS'
OBJ-OBJTYPE = OBJTYPE.
OBJ-LOGSYS  = 'OP1CLNT200'.

* SET OBJECT KEY = REPORT NAME
SELECT SINGLE NAME FROM TRDIR INTO OBJ-OBJKEY
WHERE NAME = SY-REPID.

* CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
CREATE OBJECT MANAGER EXPORTING
IS_OBJECT = OBJ EXCEPTIONS
OTHERS = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jul 2010 18:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gos-on-custom-program-not-saving-links/m-p/7144522#M1513873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-31T18:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: GOS on custom program not saving links</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gos-on-custom-program-not-saving-links/m-p/7144523#M1513874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must add COMMIT WORK (AND WAIT or not) somewhere in your application (add a button that the user), or use CREATE OBJECT manager EXPORTING ... IP_NO_COMMIT = space or 'R' ... so that the COMMIT WORK will be done automatically by the GOS manager. Note: IP_NO_COMMIT = 'R' means that the service will start in its own LUW (using synchronous RFC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, read the [SAP Library - GOS - Publishing unique object|http://help.sap.com/saphelp_nw2004s/helpdata/EN/7e/4dbeb62c8e11d4a39e00a0c943858e/frameset.htm] (well, it doesn't talk about 'R'...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jul 2010 23:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gos-on-custom-program-not-saving-links/m-p/7144523#M1513874</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-07-31T23:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: GOS on custom program not saving links</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gos-on-custom-program-not-saving-links/m-p/7144524#M1513875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sandra, that actually solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jul 2010 23:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gos-on-custom-program-not-saving-links/m-p/7144524#M1513875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-31T23:45:10Z</dc:date>
    </item>
  </channel>
</rss>

