<?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 How to write call transaction for bdc generated code?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-call-transaction-for-bdc-generated-code/m-p/2025209#M415040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    How to write call transaction code for the bdc generated code perform bdc_transaction?? When i try to write the code and execute, its creating some problem in inserting datas into the internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Can you please help me out in this regard. Thanks in advance.&lt;/P&gt;&lt;P&gt;POINTS PROMISED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;buvana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2007 13:35:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-27T13:35:39Z</dc:date>
    <item>
      <title>How to write call transaction for bdc generated code??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-call-transaction-for-bdc-generated-code/m-p/2025209#M415040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    How to write call transaction code for the bdc generated code perform bdc_transaction?? When i try to write the code and execute, its creating some problem in inserting datas into the internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Can you please help me out in this regard. Thanks in advance.&lt;/P&gt;&lt;P&gt;POINTS PROMISED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;buvana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 13:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-call-transaction-for-bdc-generated-code/m-p/2025209#M415040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write call transaction for bdc generated code??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-call-transaction-for-bdc-generated-code/m-p/2025210#M415041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very simple, basically, you keep the coding for the filling of the screen fields and ok_codes, then add your own CALL TRANSACTION statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: messtab like bdcmsgcoll occurs 0 with header line.
data: bdcdata like bdcdata occurs 20 with header line.

  perform bdc_dynpro      using 'SAPLCSDI' '0100'.
  perform bdc_field       using 'BDC_CURSOR'
                                'RC29N-STLAN'.
  perform bdc_field       using 'BDC_OKCODE'
                                '/00'.
  perform bdc_field       using 'RC29N-MATNR'
                          i_bom-matnr.
  perform bdc_field       using 'RC29N-WERKS'
                          i_bom-werks.
  perform bdc_field       using 'RC29N-STLAN'
                                '1'.
  perform bdc_field       using 'RC29N-DATUV'
                          i_bom-datum.
  perform bdc_dynpro      using 'SAPLCSDI' '0150'.
  perform bdc_field       using 'BDC_CURSOR'
                                'RC29P-POSNR(01)'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=FCNP'.
  perform bdc_dynpro      using 'SAPLCSDI' '0140'.
  perform bdc_field       using 'BDC_CURSOR'
                                'RC29P-POSTP(02)'.
  perform bdc_field       using 'BDC_OKCODE'
                                '/00'.
  perform bdc_field       using 'RC29P-AUSKZ(02)'
                                'X'.
  perform bdc_field       using 'RC29P-POSNR(02)'
                           i_bom-posnr.
  perform bdc_field       using 'RC29P-IDNRK(02)'
                           i_bom-idnrk.
  perform bdc_field       using 'RC29P-MENGE(02)'
                           i_bom-menge.
  perform bdc_field       using 'RC29P-MEINS(02)'
                           i_bom-meins.
  perform bdc_field       using 'RC29P-POSTP(02)'
                           i_bom-postp.


  call transaction 'CS02' using bdcdata mode 'N'
                               update 'S'
                               messages into messtab.

  commit work and wait.
  clear: bdcdata, messtab.
  refresh: bdcdata, messtab.



************************************************************************
*      Form  BDC_DYNPRO
************************************************************************
form bdc_dynpro using  program dynpro.

  clear bdcdata.
  bdcdata-program = program.
  bdcdata-dynpro = dynpro.
  bdcdata-dynbegin = 'X'.
  append bdcdata.

endform.

************************************************************************
*      Form  BDC_FIELD
************************************************************************
form bdc_field using fnam fval.

  clear bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  append bdcdata.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 13:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-call-transaction-for-bdc-generated-code/m-p/2025210#M415041</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-27T13:39:11Z</dc:date>
    </item>
  </channel>
</rss>

