<?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: Using call BDC-transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-call-bdc-transaction/m-p/1284082#M153431</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;T-code is not there in my system, but, from your coding it seems that is a report. If it is a report, then use SUBMIT instead of the Call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2006 14:19:16 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2006-04-20T14:19:16Z</dc:date>
    <item>
      <title>Using call BDC-transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-call-bdc-transaction/m-p/1284081#M153430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to use a call transaction. It is working (see code below), but I get the list in the print preview and not in the standard view. And I also can not leave this print preview. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For any ideas and solution I'll be very happy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fabian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of lt_status occurs 0,
      char(2) type c,
      end of lt_status.

DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
*       messages of call transaction
DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
*       error session opened (' ' or 'X')
DATA:   e_group_opened.
*       message texts


DATA: cupdate LIKE ctu_params-updmode VALUE IS INITIAL.

DATA: ctumode LIKE ctu_params-dismode VALUE 'D'.
DATA: nodata VALUE '/'.

TABLES: t100.

* perfom fpcpl.
perform fpcrpo.





form fpcpl.
perform bdc_dynpro      using 'SAPLSSEL' '0100'.
perform bdc_field       using 'BDC_CURSOR'
                              '%%DYN001-LOW'.
perform bdc_field       using 'BDC_OKCODE'
                              '=%026'.
*perform bdc_field       using '%%DYN014-LOW'
*                              '          '.
perform bdc_dynpro      using 'SAPLALDB' '3000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ACPT'.
perform bdc_field       using 'BDC_CURSOR'
                              'RSCSEL-SLOW_I(03)'.

perform bdc_field       using 'RSCSEL-SLOW_I(01)'
                              '01'.
perform bdc_field       using 'RSCSEL-SLOW_I(02)'
                              '02'.
perform bdc_field       using 'RSCSEL-SLOW_I(03)'
                              '03'.
perform bdc_field       using 'RSCSEL-SLOW_I(04)'
                              ''.
perform bdc_field       using 'RSCSEL-SLOW_I(05)'
                              ''.
perform bdc_field       using 'RSCSEL-SLOW_I(06)'
                              ''.
perform bdc_field       using 'RSCSEL-SLOW_I(07)'
                              ''.
perform bdc_field       using 'RSCSEL-SLOW_I(08)'
                              ''.
perform bdc_dynpro      using 'SAPLSSEL' '0100'.
*perform bdc_field       using 'BDC_CURSOR'
*                              '%%DYN014-LOW'.
*perform bdc_field       using 'BDC_OKCODE'
*                              '/00'.
*perform bdc_field       using '%%DYN012-LOW'
*                              '01'.
perform bdc_field       using '%%DYN013-LOW'
                              'DEVUSER'.
*perform bdc_field       using '%%DYN014-LOW'
*                              ''.
*perform bdc_dynpro      using 'SAPLSSEL' '0100'.
*perform bdc_field       using 'BDC_CURSOR'
*                              '%%DYN014-LOW'.

perform bdc_field       using 'BDC_OKCODE'
                              '=CRET'.
sy-ucomm = 'CRET'.
perform bdc_transaction using 'FPCPL'.

endform.




FORM bdc_transaction USING tcode.
  DATA: l_mstring(480).
  DATA: l_subrc LIKE sy-subrc.
* batch input session
*  IF SESSION = 'X'.
*    CALL FUNCTION 'BDC_INSERT'
*         EXPORTING TCODE     = TCODE
*         TABLES    DYNPROTAB = BDCDATA.
*    IF SMALLLOG &amp;lt;&amp;gt; 'X'.
*      WRITE: / 'BDC_INSERT'(I03),
*               TCODE,
*               'returncode:'(I05),
*               SY-SUBRC,
*               'RECORD:',
*               SY-INDEX.
*    ENDIF.
* call transaction using
*  ELSE.
  REFRESH messtab.
  CALL TRANSACTION tcode USING bdcdata
                   MODE   ctumode
                   UPDATE cupdate
                   MESSAGES INTO messtab.
*  l_subrc = sy-subrc.
*  IF smalllog &amp;lt;&amp;gt; 'X'.
*    WRITE: / 'CALL_TRANSACTION',
*             tcode,
*             'returncode:'(i05),
*             l_subrc,
*             'RECORD:',
*             sy-index.
endform.                    

*----------------------------------------------------------------------*
*        Start new screen                                              *
*----------------------------------------------------------------------*
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "bdc_dynpro

*----------------------------------------------------------------------*
*       Insert field                                                  *
*----------------------------------------------------------------------*
FORM bdc_field USING fnam fval.
  IF fval &amp;lt;&amp;gt; nodata.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
  ENDIF.
ENDFORM.                    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 13:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-call-bdc-transaction/m-p/1284081#M153430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using call BDC-transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-call-bdc-transaction/m-p/1284082#M153431</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;T-code is not there in my system, but, from your coding it seems that is a report. If it is a report, then use SUBMIT instead of the Call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 14:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-call-bdc-transaction/m-p/1284082#M153431</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-04-20T14:19:16Z</dc:date>
    </item>
  </channel>
</rss>

