<?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 Executing a BDC Session using a Function Module from a Custom Z-Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579944#M1272592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          I have a requirement where I need to Create a BDC Session for the given Transaction Code. But instead of executing the Session from SM35 manually, I need to Execute the Session Immediately from my Custom Z-Report itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Is there any Function Module for this Activity? Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Venkata Phani Prasad K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 13:29:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-18T13:29:37Z</dc:date>
    <item>
      <title>Executing a BDC Session using a Function Module from a Custom Z-Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579944#M1272592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          I have a requirement where I need to Create a BDC Session for the given Transaction Code. But instead of executing the Session from SM35 manually, I need to Execute the Session Immediately from my Custom Z-Report itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Is there any Function Module for this Activity? Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Venkata Phani Prasad K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 13:29:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579944#M1272592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T13:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a BDC Session using a Function Module from a Custom Z-Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579945#M1272593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) fm job_open&lt;/P&gt;&lt;P&gt;2) submit report&lt;/P&gt;&lt;P&gt;3) fm job_close&lt;/P&gt;&lt;P&gt;4) finally select table TBTCO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: jobcount_test LIKE tbtcjob-jobcount,&lt;/P&gt;&lt;P&gt;        job_released    LIKE btch0000-char1,&lt;/P&gt;&lt;P&gt;        rcode(2),&lt;/P&gt;&lt;P&gt;        strtimmed LIKE btch0000-char1 VALUE 'X'.&lt;/P&gt;&lt;P&gt;  DATA jobname  LIKE tbtcjob-jobname.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CONCATENATE  'TEST_' sy-repid '_' sy-datum INTO jobname.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            jobname          = jobname&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            jobcount         = jobcount_test&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            cant_create_job  = 1&lt;/P&gt;&lt;P&gt;            invalid_job_data = 2&lt;/P&gt;&lt;P&gt;            jobname_missing  = 3&lt;/P&gt;&lt;P&gt;            OTHERS           = 4.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE x000(yp) WITH 'JOB-START ' jobname ' failed !!!'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;*--Step insert&lt;/P&gt;&lt;P&gt;    SUBMIT rsbdcsub&lt;/P&gt;&lt;P&gt;    USER sy-uname VIA JOB jobname NUMBER jobcount_test&lt;/P&gt;&lt;P&gt;    WITH mappe = map&lt;/P&gt;&lt;P&gt;    WITH von = pdatum&lt;/P&gt;&lt;P&gt;    WITH z_verarb = 'X'&lt;/P&gt;&lt;P&gt;    AND RETURN .&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              jobcount             = jobcount_test&lt;/P&gt;&lt;P&gt;              jobname              = jobname&lt;/P&gt;&lt;P&gt;              strtimmed            = strtimmed&lt;/P&gt;&lt;P&gt;              targetsystem         = sy-host&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              job_was_released     = job_released&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              cant_start_immediate = 1&lt;/P&gt;&lt;P&gt;              invalid_startdate    = 2&lt;/P&gt;&lt;P&gt;              jobname_missing      = 3&lt;/P&gt;&lt;P&gt;              job_close_failed     = 4&lt;/P&gt;&lt;P&gt;              job_nosteps          = 5&lt;/P&gt;&lt;P&gt;              job_notex            = 6&lt;/P&gt;&lt;P&gt;              lock_failed          = 7&lt;/P&gt;&lt;P&gt;              OTHERS               = 8.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;gt; 1.&lt;/P&gt;&lt;P&gt;      MESSAGE x000(yp) WITH 'JOB-CLOSE ' jobname ' failed!!!'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 13:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579945#M1272593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T13:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a BDC Session using a Function Module from a Custom Z-Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579946#M1272594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT report &lt;STRONG&gt;RSBDCSUB&lt;/STRONG&gt; from your Z report and pass the session name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the standard procedure followed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 09:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579946#M1272594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T09:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a BDC Session using a Function Module from a Custom Z-Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579947#M1272595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Going for a BAPI. So, issue is resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Venkata Phani Prasad K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 06:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579947#M1272595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T06:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a BDC Session using a Function Module from a Custom Z-Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579948#M1272596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this link can help you out : &lt;A href="http://www.sap-img.com/ab001.htm" target="test_blank"&gt;http://www.sap-img.com/ab001.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:56:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-bdc-session-using-a-function-module-from-a-custom-z-report/m-p/5579948#M1272596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T08:56:23Z</dc:date>
    </item>
  </channel>
</rss>

