<?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: XK02 screen values BDC problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108087#M1361673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fill you BDC table first and then pass the table to FM .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2009 09:35:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-27T09:35:36Z</dc:date>
    <item>
      <title>XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108086#M1361672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am performing a BDC recording on the transaction XK02 to update or change vendor details, which i will be using in a RFC enabled FM so that it can be called from a external system and change the vendor details. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem i am facing is that after recording the transaction through SHDB and changing the hardcoded screen values to the import parameters of the FM in the BDC coding,  while executing, the already available vendor details such as name1, name2, city, region etc.. are getting cleared off if i dont enter the relevant import parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers as to how to retain the already available vendor details while BDC recording execution in XK02?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 09:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108086#M1361672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T09:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108087#M1361673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fill you BDC table first and then pass the table to FM .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 09:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108087#M1361673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T09:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108088#M1361674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this link.&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="404082"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 09:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108088#M1361674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T09:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108089#M1361675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The screen values might have not been captured properly in recording.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try recording again and check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 09:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108089#M1361675</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-08-27T09:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108090#M1361676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try recording 2 to 3 times. In order to capture all the fields in the BDC coding, i just enter some garbage values and clear them off for blank fields or set it to original values for non empty fields while recording. Does this has to do anything as to why the already available screen value are getting cleared off?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 10:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108090#M1361676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T10:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108091#M1361677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you perform recording a lot of fields captures. If you do not want to change these fields do not attach into the BDC table. This mean that it is not enough only to delete the value, you should not show these into your recording (BDC table). If this is not working, then try to pass the values again (create a copy of them), but this is not a nice looking programming or alternative use a BAPI  to perform the modification to your master data. The BAPI is more secure way and protecting you from a lot of bad things that comes with the BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;Giorgos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 10:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108091#M1361677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T10:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108092#M1361678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As already mentioned previously if you dont want blank values , dont write the perform for that screen field. &lt;/P&gt;&lt;P&gt;If you are still not clear with the solution . Pls paste the code and someone will be able to guide you better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TC&lt;/P&gt;&lt;P&gt;Sajimon Chandran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 10:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108092#M1361678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T10:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108093#M1361679</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;As per my understanding you need to change some vendor details(excluding few details like Name1, Name2, city) and all. &lt;/P&gt;&lt;P&gt;If you dont want to change those details, better dont use those fields while doing BDC recording. Similarly, do not inlcude any export parameters related to these fields to the FM.&lt;/P&gt;&lt;P&gt;I guess this will help you in retaining these values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 10:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108093#M1361679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T10:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108094#M1361680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sajimon/Asha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields for which i dont want blank values is dynamic. For eg, for one vendor the name1 might be avaliable and i have to update name 2. For another vendor name 1 and name2 may already be maintained and i have to update the city. Thats the reason why am trying to capture all the fields.  Am also sending the sample code am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

perform bdc_dynpro      using 'SAPMF02K' '0101'.
perform bdc_field       using 'BDC_CURSOR'
                              'USE_ZAV'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'RF02K-LIFNR'
                               wa_vend-lifnr.
perform bdc_field       using 'RF02K-D0110'
                               wa_addr.
perform bdc_field       using 'RF02K-D0120'
                               wa_con.
perform bdc_field       using 'RF02K-D0130'
                               wa_pay.
perform bdc_field       using 'RF02K-D0210'
                               wa_acct.

perform bdc_field       using 'USE_ZAV'
                              'X'.
perform bdc_dynpro      using 'SAPMF02K' '0111'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'BDC_CURSOR'
                              'ADDR1_DATA-REMARK'.
perform bdc_field       using 'ADDR1_DATA-NAME1'
                               wa_vend-name1.
perform bdc_field       using 'ADDR1_DATA-NAME2'
                               wa_vend-name2.
perform bdc_field       using 'ADDR1_DATA-NAME3'
                               wa_vend-name3.
perform bdc_field       using 'ADDR1_DATA-NAME4'
                               wa_vend-name4.
perform bdc_field       using 'ADDR1_DATA-SORT1'
                               wa_vend-sortl.
perform bdc_field       using 'ADDR1_DATA-SORT2'
                              ''.
perform bdc_field       using 'ADDR1_DATA-STR_SUPPL1'
                                 wa_str_suppl1.

 call transaction 'XK02' using t_bdcdata    mode          c_mode
                                            update           c_update
                                          messages  into   t_errtrans.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 11:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108094#M1361680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T11:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108095#M1361681</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;Fine.. Now.. i got a little better understanding of your requirement... &lt;/P&gt;&lt;P&gt;As per your code now... you are directly giving the following piece of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ADDR1_DATA-NAME1'&lt;/P&gt;&lt;P&gt;                               wa_vend-name1.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ADDR1_DATA-NAME2'&lt;/P&gt;&lt;P&gt;                               wa_vend-name2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use these, then in the case  of a vendor that has already some values for NAME1 and NAME2 -&amp;gt; then when ur program executes these lines, since there are no values maintained in WA_VEND-NAME1 and WA_VEND-NAME2.. so only its giving a blank...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, as per me.... the solution lies in the usage of simple IF.. ENDIF statements...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First check if any value is maintained for these fields of a particular vendor in the database table (Use select queries and read).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if values are there, ignore, these above statements... else.. execute these statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if you have any doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Asha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 11:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108095#M1361681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T11:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: XK02 screen values BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108096#M1361682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats a better idea which dint click for me. I will make a try and check if it works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 11:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xk02-screen-values-bdc-problem/m-p/6108096#M1361682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T11:34:00Z</dc:date>
    </item>
  </channel>
</rss>

