<?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 bdc transfer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-transfer/m-p/3816902#M918048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the ctu_params . please give the explanation about the structure .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2008 08:03:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-13T08:03:23Z</dc:date>
    <item>
      <title>bdc transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-transfer/m-p/3816902#M918048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the ctu_params . please give the explanation about the structure .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 08:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-transfer/m-p/3816902#M918048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T08:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: bdc transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-transfer/m-p/3816903#M918049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally CTU_PARAMS Is used to avoid unnecessary screens,even though they will not appear in the recording.i also send a sample code for that to avoid this problem check it once ok..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have to add the below code in ur bdc program at the begin of ur code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYNTAX AND CODE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
---------------------------------------------------------------------

    * For Elimination Of Illegal Screens

---------------------------------------------------------------------
DATA: opt TYPE ctu_params.

START-OF-SELECTION.
opt-nobinpt = 'X'.
opt-defsize = 'X'.
opt-updmode = 'A'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while using call transaction we can make use of this as:&lt;/P&gt;&lt;P&gt;OPT-NOBINPT = 'X'.&lt;/P&gt;&lt;P&gt;OPT-DISMODE = 'N'.&lt;/P&gt;&lt;P&gt;OPT-UPDMODE = 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION tcode USING bdcdata&lt;/P&gt;&lt;P&gt;MODE ctumode&lt;/P&gt;&lt;P&gt;UPDATE cupdate&lt;/P&gt;&lt;P&gt;OPTIONS FROM OPT&lt;/P&gt;&lt;P&gt;MESSAGES INTO messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS FROM opt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;This addition gives you control using the values of the components of the structure opt, which must be of the Dictionary type CTU_PARAMS. The components have the following meaning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DISMODE&lt;/P&gt;&lt;P&gt;Processing mode (comparable with the MODE addition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDMODE&lt;/P&gt;&lt;P&gt;Update mode (comparable with the UPDATE addition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATTMODE&lt;/P&gt;&lt;P&gt;CATT mode (controlling a CATT procedure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CATT mode can have the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' ' No CATT procedure active&lt;/P&gt;&lt;P&gt;'N' CATT procedure without single screen control&lt;/P&gt;&lt;P&gt;'A' CATT procedure with single screen control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFSIZE&lt;/P&gt;&lt;P&gt;Use standard window size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RACOMMIT&lt;/P&gt;&lt;P&gt;COMMIT WORK does not end CATT procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOBINPT&lt;/P&gt;&lt;P&gt;No batch input mode, that s SY-BINPT = SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOBIEND&lt;/P&gt;&lt;P&gt;No batch input mode after BDC data has been read&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The components DEFSIZE , RACOMMIT, NOBINPT, NOBIEND always take the following values:&lt;/P&gt;&lt;P&gt;'X' Yes&lt;/P&gt;&lt;P&gt;' ' No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the OPTIONS addition is omitted, the following settings are valid for the control parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DISMODE from the MODE addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDMODE&lt;/P&gt;&lt;P&gt;from the UPDATE addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATTMODE&lt;/P&gt;&lt;P&gt;No CATT procedure active&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFSIZE&lt;/P&gt;&lt;P&gt;Do not use standard window size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RACOMMIT&lt;/P&gt;&lt;P&gt;COMMIT WORK ends procedure successfully&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOBINPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Batch input mode, that is SY-BINPT =X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOBIEND&lt;/P&gt;&lt;P&gt;Batch input mode also active after BDC data has been read&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 08:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-transfer/m-p/3816903#M918049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T08:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: bdc transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-transfer/m-p/3816904#M918050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="353651"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this example please..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_transaction tables return USING tcode p_rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA : T_BDCMSGCOLL LIKE STANDARD TABLE OF BDCMSGCOLL WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_ctu_params.&lt;/P&gt;&lt;P&gt;w_ctu_params-dismode = 'N'.&lt;/P&gt;&lt;P&gt;w_ctu_params-updmode = 'S'.&lt;/P&gt;&lt;P&gt;w_ctu_params-cattmode = ' '.&lt;/P&gt;&lt;P&gt;w_ctu_params-defsize = ' '.&lt;/P&gt;&lt;P&gt;w_ctu_params-racommit = ' '.&lt;/P&gt;&lt;P&gt;w_ctu_params-nobinpt = 'X'.&lt;/P&gt;&lt;P&gt;w_ctu_params-nobiend = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION tcode USING t_bdcdata OPTIONS FROM w_ctu_params&lt;/P&gt;&lt;P&gt;MESSAGES INTO t_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;IF p_rule = 'P'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add 1 to successful PWS creation &lt;/P&gt;&lt;P&gt;new_pws = new_pws + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add 1 to successful WSR creation &lt;/P&gt;&lt;P&gt;ELSEIF p_rule = 'W'.&lt;/P&gt;&lt;P&gt;new_wsr = new_wsr + 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On successful WSR creation, create selection table for submit to &lt;/P&gt;&lt;P&gt;RPTSHF00 (to generate WSR) &lt;/P&gt;&lt;P&gt;IF new_wsr &amp;gt; 0.&lt;/P&gt;&lt;P&gt;PERFORM create_sel_tab.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH t_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ID = t_bdcmsgcoll-msgid&lt;/P&gt;&lt;P&gt;LANG = SY-LANGU&lt;/P&gt;&lt;P&gt;NO = t_bdcmsgcoll-msgnr&lt;/P&gt;&lt;P&gt;V1 = t_bdcmsgcoll-MSGV1&lt;/P&gt;&lt;P&gt;V2 = t_bdcmsgcoll-MSGV2&lt;/P&gt;&lt;P&gt;V3 = t_bdcmsgcoll-MSGV3&lt;/P&gt;&lt;P&gt;V4 = t_bdcmsgcoll-MSGV4&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;MSG = err_msg&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move err_msg to w_return-message.&lt;/P&gt;&lt;P&gt;append w_return to return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 08:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-transfer/m-p/3816904#M918050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T08:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: bdc transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-transfer/m-p/3816905#M918051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code. How did u get this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 08:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-transfer/m-p/3816905#M918051</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2008-05-13T08:17:20Z</dc:date>
    </item>
  </channel>
</rss>

