<?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: Call to BDC program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054964#M90127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you gotta use the submit statement. Keep in mind the way the submit program is to be called, i.e., via selection screen or via job(background). Following is how you have to use the submit statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;BDC Program&amp;gt;&lt;/P&gt;&lt;P&gt;    TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;    IMMEDIATELY ' ' DESTINATION '' KEEP IN SPOOL 'X'&lt;/P&gt;&lt;P&gt;    WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;    USER sy-uname  VIA JOB &amp;lt;JOB NAME&amp;gt; NUMBER &amp;lt;JOB NUMBER&amp;gt;&lt;/P&gt;&lt;P&gt;    WITH &amp;lt;SELECT-OPTIONS ON BDC Program Selection Screen&amp;gt; IN &amp;lt;INTERNAL TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you can call the BDC program and come back to your calling program and do further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want to submit the job, the following lines can be removed from the above code extract:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;    IMMEDIATELY ' ' DESTINATION '' KEEP IN SPOOL 'X'&lt;/P&gt;&lt;P&gt;    WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;    USER sy-uname  VIA JOB &amp;lt;JOB NAME&amp;gt; NUMBER &amp;lt;JOB NUMBER&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2005 17:05:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-16T17:05:05Z</dc:date>
    <item>
      <title>Call to BDC program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054957#M90120</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 one program let say XYZ through which i want to call other BDC program by passing internal table of XYZ program to BDC program.&lt;/P&gt;&lt;P&gt; Can any one have sample code or any idea about this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 14:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054957#M90120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T14:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Call to BDC program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054958#M90121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have BDC mapped (use transaction SHDB), you can base your code in the folloing example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM iyr_dynpro_bdc USING 'SAPMKAUF'(008) '0110'(009).&lt;/P&gt;&lt;P&gt;  PERFORM iyr_campo_bdc USING 'BDC_CURSOR'(010) 'COAS-AUFNR'(011).&lt;/P&gt;&lt;P&gt;  PERFORM iyr_campo_bdc USING 'BDC_OKCODE'(012) '/00'(013).&lt;/P&gt;&lt;P&gt;  PERFORM iyr_campo_bdc USING 'COAS-AUFNR'(011) wa_tpb020aufk-aufnr.&lt;/P&gt;&lt;P&gt;  PERFORM iyr_dynpro_bdc USING 'SAPMKAUF'(008) '0600'(014).&lt;/P&gt;&lt;P&gt;  PERFORM iyr_campo_bdc USING 'BDC_CURSOR'(010) 'COAS-KTEXT'(015).&lt;/P&gt;&lt;P&gt;  PERFORM iyr_campo_bdc USING 'BDC_OKCODE'(012) '=LSET'(016).&lt;/P&gt;&lt;P&gt;  PERFORM iyr_campo_bdc USING 'COAS-BUKRS'(017) 'PBR'(018).&lt;/P&gt;&lt;P&gt;  PERFORM iyr_dynpro_bdc USING 'SAPMKAUF'(008) '0600'(014).&lt;/P&gt;&lt;P&gt;  PERFORM iyr_campo_bdc USING 'BDC_CURSOR'(010) 'COAS-KTEXT'(015).&lt;/P&gt;&lt;P&gt;  PERFORM iyr_campo_bdc USING 'BDC_OKCODE'(012) '=SICH'(019).&lt;/P&gt;&lt;P&gt;  REFRESH it_bdc_msgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'KO02' USING it_bdc_data&lt;/P&gt;&lt;P&gt;     MODE 'A'(020) UPDATE 'S'(021)&lt;/P&gt;&lt;P&gt;     MESSAGES INTO it_bdc_msgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Forms&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*************************************************&lt;/P&gt;&lt;P&gt;FORM iyr_dynpro_bdc USING iyl_bdc_program_x TYPE c&lt;/P&gt;&lt;P&gt;               iyl_bdc_dynpro_x TYPE c.&lt;/P&gt;&lt;P&gt;  CLEAR wa_it_bdc_data.&lt;/P&gt;&lt;P&gt;  wa_it_bdc_data-program = iyl_bdc_program_x.&lt;/P&gt;&lt;P&gt;  wa_it_bdc_data-dynpro = iyl_bdc_dynpro_x.&lt;/P&gt;&lt;P&gt;  wa_it_bdc_data-dynbegin = 'X'(038).&lt;/P&gt;&lt;P&gt;  APPEND wa_it_bdc_data TO it_bdc_data.&lt;/P&gt;&lt;P&gt;ENDFORM.                               " IYR_DYNPRO_BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM iyr_campo_bdc USING value(iyl_fnam_x) TYPE c&lt;/P&gt;&lt;P&gt;                  value(iyl_fval_x) TYPE any.&lt;/P&gt;&lt;P&gt;  CLEAR wa_it_bdc_data.&lt;/P&gt;&lt;P&gt;  wa_it_bdc_data-fnam = iyl_fnam_x.&lt;/P&gt;&lt;P&gt;  wa_it_bdc_data-fval = iyl_fval_x.&lt;/P&gt;&lt;P&gt;  APPEND wa_it_bdc_data TO it_bdc_data.&lt;/P&gt;&lt;P&gt;ENDFORM.                               " IYR_CAMPO_BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is only an clue to you &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; I hope this help you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flávio Furlan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 14:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054958#M90121</guid>
      <dc:creator>furlan</dc:creator>
      <dc:date>2005-11-16T14:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Call to BDC program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054959#M90122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use SUBMIT statement to call the program.Before the call use EXPORT statement to export your internal table to ABAP Memory and then use IMPORT statement to import the internal table in the 2nd BDC Program.&lt;/P&gt;&lt;P&gt;Hope this will solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 14:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054959#M90122</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2005-11-16T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Call to BDC program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054960#M90123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly Your BDC program should be written in such a way that it can be called by passing an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can call that program like (For eg:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SUBMIT zacc_jv_postings&lt;/P&gt;&lt;P&gt;             WITH inv_file = in_file&lt;/P&gt;&lt;P&gt;             WITH out_file = oute_file&lt;/P&gt;&lt;P&gt;             WITH ccode    = ccode&lt;/P&gt;&lt;P&gt;             WITH dtype    = dtype&lt;/P&gt;&lt;P&gt;             WITH period   = period&lt;/P&gt;&lt;P&gt;             WITH postdate = postdate&lt;/P&gt;&lt;P&gt;             WITH p_group  = v_group&lt;/P&gt;&lt;P&gt;             WITH p_user   = p_user&lt;/P&gt;&lt;P&gt;             WITH group    = group&lt;/P&gt;&lt;P&gt;             WITH user     = user&lt;/P&gt;&lt;P&gt;             WITH keep     = keep&lt;/P&gt;&lt;P&gt;             WITH holddate = holddate&lt;/P&gt;&lt;P&gt;                  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 14:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054960#M90123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T14:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Call to BDC program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054961#M90124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;  Check the below links to know how to call a program from another program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9d7535c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9d7535c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call Executable Programs&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call transactions&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9da935c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9da935c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pass data between programs&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the links are useful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 14:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054961#M90124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T14:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Call to BDC program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054962#M90125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare the internal table in a common part of both programs. The contents will then be known to the submitted program. From F1 on 'common':&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF COMMON PART c,   
      END   OF COMMON PART. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 15:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054962#M90125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T15:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Call to BDC program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054963#M90126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls use submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUBMIT REPORT01 &lt;/P&gt;&lt;P&gt;       VIA SELECTION-SCREEN &lt;/P&gt;&lt;P&gt;       USING SELECTION-SET 'VARIANT1' &lt;/P&gt;&lt;P&gt;       AND RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Befor this just export yuour internal table to the memory .&lt;/P&gt;&lt;P&gt;Then import in your bdc progrm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 15:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054963#M90126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T15:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Call to BDC program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054964#M90127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you gotta use the submit statement. Keep in mind the way the submit program is to be called, i.e., via selection screen or via job(background). Following is how you have to use the submit statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;BDC Program&amp;gt;&lt;/P&gt;&lt;P&gt;    TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;    IMMEDIATELY ' ' DESTINATION '' KEEP IN SPOOL 'X'&lt;/P&gt;&lt;P&gt;    WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;    USER sy-uname  VIA JOB &amp;lt;JOB NAME&amp;gt; NUMBER &amp;lt;JOB NUMBER&amp;gt;&lt;/P&gt;&lt;P&gt;    WITH &amp;lt;SELECT-OPTIONS ON BDC Program Selection Screen&amp;gt; IN &amp;lt;INTERNAL TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you can call the BDC program and come back to your calling program and do further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want to submit the job, the following lines can be removed from the above code extract:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;    IMMEDIATELY ' ' DESTINATION '' KEEP IN SPOOL 'X'&lt;/P&gt;&lt;P&gt;    WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;    USER sy-uname  VIA JOB &amp;lt;JOB NAME&amp;gt; NUMBER &amp;lt;JOB NUMBER&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 17:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-to-bdc-program/m-p/1054964#M90127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T17:05:05Z</dc:date>
    </item>
  </channel>
</rss>

