<?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: Attachment in Report Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186681#M1373985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved via CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Sep 2009 16:16:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-20T16:16:29Z</dc:date>
    <item>
      <title>Attachment in Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186677#M1373981</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 tried some development to attach a document in a report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to create and view the attachment but the attachment is not saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I'm out and in back to the report program, the previously created attach does not exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, if I missed anything. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****CODES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE 'ZGOS1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: MANAGER TYPE REF TO CL_GOS_MANAGER,&lt;/P&gt;&lt;P&gt;           OBJ TYPE BORIDENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data:&lt;/P&gt;&lt;P&gt;    l_objkey            type swo_typeid,&lt;/P&gt;&lt;P&gt;    lo_gos_service      type ref to cl_gos_document_service,&lt;/P&gt;&lt;P&gt;    ls_srgbtbrel        type srgbtbrel,&lt;/P&gt;&lt;P&gt;    lt_srgbtbrel        type srgbtbrel occurs 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: MATNR TYPE MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : OBJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SET OBJECT TYPE TO 'ZGOS'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OBJ-OBJTYPE = OBJTYPE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SET OBJECT KEY = REPORT NAME&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE NAME  FROM TRDIR&lt;/P&gt;&lt;P&gt;                INTO OBJ-OBJKEY WHERE NAME = SY-REPID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)&lt;/P&gt;&lt;P&gt; CREATE OBJECT MANAGER&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   IS_OBJECT = OBJ&lt;/P&gt;&lt;P&gt; EXCEPTIONS &lt;/P&gt;&lt;P&gt; OTHERS = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Sep 2009 04:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186677#M1373981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-19T04:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment in Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186678#M1373982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must use a COMMIT WORK somewhere to commit the attachment creation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Sep 2009 15:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186678#M1373982</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-09-19T15:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment in Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186679#M1373983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gold.member,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;except from  the missing COMMIT WORK please post your code and mark it as code with the above &amp;lt;_&amp;gt; button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS: objtype TYPE borident-objtype VALUE 'ZGOS1'.

  DATA: manager TYPE REF TO cl_gos_manager,
    obj TYPE borident.

  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.

  PARAMETERS: matnr TYPE mara-matnr.

AT SELECTION-SCREEN OUTPUT.

  CLEAR : obj.

* SET OBJECT TYPE TO 'ZGOS'.
  obj-objtype = objtype.
* 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;P&gt;You can try the PREVIEW button to see the posting result. This helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Sep 2009 21:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186679#M1373983</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-09-19T21:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment in Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186680#M1373984</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;Check after giving this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;&lt;EM&gt;'COMMIT WORK'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Surya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2009 04:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186680#M1373984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-20T04:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment in Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186681#M1373985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved via CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2009 16:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186681#M1373985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-20T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment in Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186682#M1373986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could have passed ip_no_commit = 'X' or 'R' instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT manager&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_object    = obj&lt;/P&gt;&lt;P&gt;      ip_no_commit = 'R'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Aabhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 14:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-in-report-program/m-p/6186682#M1373986</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2009-09-21T14:54:39Z</dc:date>
    </item>
  </channel>
</rss>

