<?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: Attach same file to multiple documents GOS (General Object Serivice) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037650#M965092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joy &lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you said , like to copy the FM into ZFM.&lt;/P&gt;&lt;P&gt;the same can be achived in the program it self.&lt;/P&gt;&lt;P&gt;By call the rest of the code ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" clear rel_doc.&lt;/P&gt;&lt;P&gt;     rel_doc-objkey  = document_id.&lt;/P&gt;&lt;P&gt;     rel_doc-objtype = 'MESSAGE'.&lt;/P&gt;&lt;P&gt;     call function 'BINARY_RELATION_CREATE'&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;               obj_rolea    = is_object&lt;/P&gt;&lt;P&gt;               obj_roleb    = rel_doc&lt;/P&gt;&lt;P&gt;               relationtype = rel_type&lt;/P&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;P&gt;               others       = 1.&lt;/P&gt;&lt;P&gt;     if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       ep_document = document_id.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       commit work.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     endif. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this both solutions will not work.&lt;/P&gt;&lt;P&gt;Becoz....&lt;/P&gt;&lt;P&gt;All the class methods are called in the PAI &amp;amp; PBO events of Screen 2000.&lt;/P&gt;&lt;P&gt;Even I have done this same with out copying the FM into ZFM.&lt;/P&gt;&lt;P&gt;by passing screen values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any other way , can you please suggest that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2008 18:03:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-20T18:03:54Z</dc:date>
    <item>
      <title>Attach same file to multiple documents GOS (General Object Serivice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037647#M965089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using function module to attach the documents which is similar to GOS tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module name : SGOS_DOCUMENT_CREATE_DIALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer below sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_bkpf TYPE STANDARD TABLE OF bkpf WITH    HEADER LINE,&lt;/P&gt;&lt;P&gt;       is_object TYPE  borident,&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       cnt(6) TYPE n.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETER : p_bukrs TYPE bukrs,&lt;/P&gt;&lt;P&gt;            p_gjahr TYPE gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_object-objtype = 'BKPF'.&lt;/P&gt;&lt;P&gt;  SELECT * FROM bkpf INTO TABLE t_bkpf&lt;/P&gt;&lt;P&gt;        WHERE bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;        AND   gjahr = p_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_bkpf .&lt;/P&gt;&lt;P&gt;    CONCATENATE t_bkpf-bukrs t_bkpf-belnr t_bkpf-gjahr&lt;/P&gt;&lt;P&gt;    INTO  is_object-objkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF cnt = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'SGOS_DOCUMENT_CREATE_DIALOG'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_object         = is_object&lt;/P&gt;&lt;P&gt;     ip_title          = ' Attach Document'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EP_DOCUMENT       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; WRITE:/ t_bkpf-belnr,&lt;/P&gt;&lt;P&gt;            t_bkpf-gjahr,&lt;/P&gt;&lt;P&gt;            t_bkpf-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;cnt = cnt + 1.&lt;/P&gt;&lt;P&gt;if cnt  &amp;gt; 2.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code. A dialog will be popuped for every document asking to attach some file or link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is , the popup should ask only once.&lt;/P&gt;&lt;P&gt;and rest should be in the background mode.&lt;/P&gt;&lt;P&gt;ie. It should not ask for the popup for rest of the documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any class module or function to attach the documents with out popups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting the answers at the earliest.&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 12:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037647#M965089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T12:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Attach same file to multiple documents GOS (General Object Serivice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037648#M965090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to look for fm CL_GOS_SRV_ATTACHMENT_CREATE or class CL_GOS_SERVICE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 15:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037648#M965090</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-06-20T15:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Attach same file to multiple documents GOS (General Object Serivice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037649#M965091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why donot u copy this Fm SGOS_DOCUMENT_CREATE_DIALOG to  a ZFM and do the modification based on ur need i.e put a condition arougd screen call so that it displays the screen only once.&lt;/P&gt;&lt;P&gt;EX::&lt;/P&gt;&lt;P&gt;function &lt;STRONG&gt;Zsgos_document_create_dialog .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(IS_OBJECT) TYPE  BORIDENT&lt;/P&gt;&lt;P&gt;*"     VALUE(IP_TITLE) TYPE  SOOD-OBJDES OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(EP_DOCUMENT) TYPE  BORIDENT-OBJKEY&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;  data rel_type type breltyp-reltype.&lt;/P&gt;&lt;P&gt;  data rel_doc  type borident.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gs_object = is_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'SO_FOLDER_ROOT_ID_GET'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            region    = 'B'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            folder_id = folder_id&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others    = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;clear: radio_note, radio_url, radio_atta.*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;clear: text_control_cont, text_control, url, document_id.*  document_title = ip_title.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear gt_extab[].                 "note 608125&lt;/P&gt;&lt;P&gt;  append 'CLPB' to gt_extab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if l_flag = 'X'. &amp;lt;&amp;lt; Declare it as static with value 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;call screen 2000 starting at 10  3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                   &lt;STRONG&gt;ending   at 83 14.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clear l_flag.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not is_object-objkey is initial and radio_atta is initial.&lt;/P&gt;&lt;P&gt;    if not document_id is initial.&lt;/P&gt;&lt;P&gt;      if not radio_note is initial.&lt;/P&gt;&lt;P&gt;        rel_type = 'NOTE'.&lt;/P&gt;&lt;P&gt;      elseif not radio_url is initial.&lt;/P&gt;&lt;P&gt;        rel_type = 'URL'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     elseif not radio_atta is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       rel_type = 'ATTA'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      clear rel_doc.&lt;/P&gt;&lt;P&gt;      rel_doc-objkey  = document_id.&lt;/P&gt;&lt;P&gt;      rel_doc-objtype = 'MESSAGE'.&lt;/P&gt;&lt;P&gt;      call function 'BINARY_RELATION_CREATE'&lt;/P&gt;&lt;P&gt;           exporting&lt;/P&gt;&lt;P&gt;                obj_rolea    = is_object&lt;/P&gt;&lt;P&gt;                obj_roleb    = rel_doc&lt;/P&gt;&lt;P&gt;                relationtype = rel_type&lt;/P&gt;&lt;P&gt;           exceptions&lt;/P&gt;&lt;P&gt;                others       = 1.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        ep_document = document_id.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       commit work.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    ep_document = document_id.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endfunction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 16:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037649#M965091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T16:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Attach same file to multiple documents GOS (General Object Serivice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037650#M965092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joy &lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you said , like to copy the FM into ZFM.&lt;/P&gt;&lt;P&gt;the same can be achived in the program it self.&lt;/P&gt;&lt;P&gt;By call the rest of the code ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" clear rel_doc.&lt;/P&gt;&lt;P&gt;     rel_doc-objkey  = document_id.&lt;/P&gt;&lt;P&gt;     rel_doc-objtype = 'MESSAGE'.&lt;/P&gt;&lt;P&gt;     call function 'BINARY_RELATION_CREATE'&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;               obj_rolea    = is_object&lt;/P&gt;&lt;P&gt;               obj_roleb    = rel_doc&lt;/P&gt;&lt;P&gt;               relationtype = rel_type&lt;/P&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;P&gt;               others       = 1.&lt;/P&gt;&lt;P&gt;     if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       ep_document = document_id.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       commit work.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     endif. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this both solutions will not work.&lt;/P&gt;&lt;P&gt;Becoz....&lt;/P&gt;&lt;P&gt;All the class methods are called in the PAI &amp;amp; PBO events of Screen 2000.&lt;/P&gt;&lt;P&gt;Even I have done this same with out copying the FM into ZFM.&lt;/P&gt;&lt;P&gt;by passing screen values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any other way , can you please suggest that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 18:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037650#M965092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T18:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Attach same file to multiple documents GOS (General Object Serivice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037651#M965093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for this late reply..may be you have already solved the prob. but if not then u can use this solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes u r right, all method calls are done from the screen pai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to overcome it I have copied the function grp SGOSDS to ZSGOSDS. and copied all the&lt;/P&gt;&lt;P&gt;FMs in it to zFMs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the topinclude define a varaible like&lt;/P&gt;&lt;P&gt;data: l_flag(1) type c value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in PBO of screen 2000 I have added following code block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if l_flag = 'X'.&lt;/P&gt;&lt;P&gt;clear l_flag.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; SUPPRESS DIALOG.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means it will display the screen 1st time but prcesses pbo and pai every time whenever we&lt;/P&gt;&lt;P&gt;call this screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope now it will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jun 2008 19:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-same-file-to-multiple-documents-gos-general-object-serivice/m-p/4037651#M965093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-22T19:25:08Z</dc:date>
    </item>
  </channel>
</rss>

