<?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: BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3197583#M761967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi santosh,&lt;/P&gt;&lt;P&gt;                Program works fine even in no screen mode but the problem is i want to update the data only in all screen mode and i want only one screen to be viewed that too the last screen where all the line items get updated in the table and then i should save the table.&lt;/P&gt;&lt;P&gt;And the logic which u told is not working.please suggest me some more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Dec 2007 13:59:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-26T13:59:47Z</dc:date>
    <item>
      <title>BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3197581#M761965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    My program is a BDC using call transaction for T.code sm30. Here i am maintaining the data which is displayed in the list using call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report Z_CHANGE_FI_SL&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include zfi_restatement_top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  j_final2      type standard table of ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  wa_final2     type ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  bdcdata like bdcdata occurs 0 with header line,&lt;/P&gt;&lt;P&gt;       messtab like bdcmsgcoll occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_counter type n value '0',&lt;/P&gt;&lt;P&gt;      n type i,&lt;/P&gt;&lt;P&gt;      k type n value '0',&lt;/P&gt;&lt;P&gt;      v_tarnbr(120) type c,&lt;/P&gt;&lt;P&gt;      v_wbs_mask like zupi5a-rzzps_posid,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     v_relation like query_tab-relation,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     v_bool     like query_tab-bool.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_relation(20) type c,&lt;/P&gt;&lt;P&gt;      v_bool(20)     type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import i_final2 to j_final2 from memory id 'table'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table j_final2 lines n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSVMA' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'VIMDYNFLDS-LTD_DTA_AR'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                   '=UPD'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'VIEWNAME'&lt;/P&gt;&lt;P&gt;                                  'zfi_sl'.&lt;/P&gt;&lt;P&gt;perform bdc_field         using 'VIMDYNFLDS-LTD_DTA_NO'&lt;/P&gt;&lt;P&gt;                                   ' ' .&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VIMDYNFLDS-LTD_DTA_AR'&lt;/P&gt;&lt;P&gt;                                'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSVIX' '0210'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'MARK_CHECKBOX(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field         using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                 '=OKAY'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARK_CHECKBOX(02)'&lt;/P&gt;&lt;P&gt;                                'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at j_final2 into wa_final2.&lt;/P&gt;&lt;P&gt;  v_counter = v_counter + 1.&lt;/P&gt;&lt;P&gt;  k         = v_counter - 1.&lt;/P&gt;&lt;P&gt;  call function 'CONVERSION_EXIT_ABPSN_OUTPUT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      input  = wa_final2-rzzps_posid&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      output = v_wbs_mask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if ( v_counter EQ 1 ).&lt;/P&gt;&lt;P&gt;    if n EQ 1.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLSVIX' '0100'.&lt;/P&gt;&lt;P&gt;      perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                      'D0100_FIELD_TAB-LOWER_LIMIT  (01)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                     '=OKAY'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'D0100_FIELD_TAB-             LOWER_LIMIT(01)'&lt;/P&gt;&lt;P&gt;                                    v_wbs_mask.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLSVIX' '0100'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'D0100_FIELD_TAB-LOWER_LIMIT(01)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=FSEL'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'D0100_FIELD_TAB-LOWER_LIMIT(01)'&lt;/P&gt;&lt;P&gt;                                    v_wbs_mask.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLSVIX' '0200'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'QUERY_TAB-RELATION(01)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=ANHG'.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLSVIX' '0210'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'MARK_CHECKBOX(02)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=OKAY'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'MARK_CHECKBOX(02)'&lt;/P&gt;&lt;P&gt;                                    'X'.&lt;/P&gt;&lt;P&gt;      continue.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPLSVIX' '0200'.&lt;/P&gt;&lt;P&gt;  concatenate 'D0200_FIELD_TAB-BUFFER(' v_counter ')' into v_tarnbr.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                v_tarnbr.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                '=ANHG'.&lt;/P&gt;&lt;P&gt;  concatenate 'QUERY_TAB-RELATION(' v_counter ')' into v_relation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform bdc_field       using v_relation&lt;/P&gt;&lt;P&gt;                                '='.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using v_tarnbr&lt;/P&gt;&lt;P&gt;                                v_wbs_mask.&lt;/P&gt;&lt;P&gt;  concatenate 'QUERY_TAB-BOOL(' k ')' into v_bool.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using v_bool&lt;/P&gt;&lt;P&gt;                                'OR'.&lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPLSVIX' '0210'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                'MARK_CHECKBOX(02)'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                '=OKAY'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'MARK_CHECKBOX(02)'&lt;/P&gt;&lt;P&gt;                                'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; at last.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if ( v_counter EQ n ).&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLSVIX' '0200'.&lt;/P&gt;&lt;P&gt;    concatenate 'D0200_FIELD_TAB-BUFFER(' v_counter ')' into v_tarnbr.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  v_tarnbr.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=OKAY'.&lt;/P&gt;&lt;P&gt;    concatenate 'QUERY_TAB-RELATION(' v_counter ')' into v_relation.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using v_relation&lt;/P&gt;&lt;P&gt;                                  '='.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using v_tarnbr&lt;/P&gt;&lt;P&gt;                                  v_wbs_mask.&lt;/P&gt;&lt;P&gt;    concatenate 'QUERY_TAB-BOOL(' k ')' into v_bool.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using v_bool&lt;/P&gt;&lt;P&gt;                                  'OR'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLSVIX' '0100'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'D0100_FIELD_TAB-LOWER_LIMIT(01)'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=OKAY'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZFI_SL' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZFI_SL-FAMENBR(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SAVE'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZFI_SL' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZFI_SL-FAMENBR(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BACK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSVMA' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EBACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'VIEWNAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call transaction 'SM30'&lt;/P&gt;&lt;P&gt;    using bdcdata&lt;/P&gt;&lt;P&gt;    mode 'A'&lt;/P&gt;&lt;P&gt;    update 'S'&lt;/P&gt;&lt;P&gt;    messages into messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Start new screen                                              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form bdc_dynpro using program dynpro.&lt;/P&gt;&lt;P&gt;  clear bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-program  = program.&lt;/P&gt;&lt;P&gt;  bdcdata-dynpro   = dynpro.&lt;/P&gt;&lt;P&gt;  bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;  append bdcdata.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Insert field                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form bdc_field using fnam fval.&lt;/P&gt;&lt;P&gt;  if fval &amp;lt;&amp;gt; ' '.&lt;/P&gt;&lt;P&gt;    clear bdcdata.&lt;/P&gt;&lt;P&gt;    bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;    bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;    append bdcdata.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actally the requirement is client dont want all the screens to be viewed they want only the last screen to be viewed where the data gets updated and they want to skip all the screens except the last screen .By using 'N' mode we cant view any of the screens and by using 'A' screen mode we can view all the screens but they dont want that. Is there any way to do that. If there is please help me in resolving the issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 11:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3197581#M761965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T11:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3197582#M761966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use "SKIP FIRST SCREEN" along with call transaction provided you have the PID for all the fields that you are populating....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead... with the scenario you are working with I believe that program will be run only in Fore ground. so try the logig below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the Mode for call transaction as 'E' and do not give the BDC OKCODE for the last screen of the transaction... this will force the program to stop at the last screen and the user will then upload the details and save the transaction...&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;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 12:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3197582#M761966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T12:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3197583#M761967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi santosh,&lt;/P&gt;&lt;P&gt;                Program works fine even in no screen mode but the problem is i want to update the data only in all screen mode and i want only one screen to be viewed that too the last screen where all the line items get updated in the table and then i should save the table.&lt;/P&gt;&lt;P&gt;And the logic which u told is not working.please suggest me some more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 13:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3197583#M761967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T13:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3197584#M761968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are updating a client table (Z). Do you realy need to do it in SM30 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you put in a internal table the values to update and show them in a ALV. In the status put de SAVE button.&lt;/P&gt;&lt;P&gt;If the user press save update de z table, with OpenSQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 17:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3197584#M761968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T17:34:36Z</dc:date>
    </item>
  </channel>
</rss>

