<?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: Insert data using bdcdata but block input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556355#M1857773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can check on field SY-CALLD for the condition to activate input on this field-group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2014 10:20:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-08-21T10:20:21Z</dc:date>
    <item>
      <title>Insert data using bdcdata but block input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556352#M1857770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, wish you good health.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a &lt;STRONG&gt;report program&lt;/STRONG&gt; which call a &lt;STRONG&gt;pool program by call transaction&lt;/STRONG&gt;. So at the beginning&amp;nbsp; I fill the screen of that called transaction using BDCDATA, and I want to block input for some fields of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to put those fields I need to block the input in the same group and in the init module of the screen I have implemented- screen-input = 0. So when I do it the BDCDATA couldn't/ doesn't fill the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I perform those fields, by checking only output Data, in the screen painter-attributes, the BDC data couldn't work too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is that the displaying field work, like it work in a report when I initialize field by value and perform this code below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF screen-group1 = '901'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; screen-input = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ield values displayed, but I'm not able to edit/change it, it's displayed only, for output(for seeing)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sory if it is not relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thank for you all who will be able to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 10:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556352#M1857770</guid>
      <dc:creator>former_member397321</dc:creator>
      <dc:date>2014-08-20T10:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data using bdcdata but block input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556353#M1857771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I did not get your requirement completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can see that you want to enable and disable editing(input fields) based on your requirement. Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then try to use a condition flag which you have to set based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp; LOOP AT SCREEN.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;if&amp;nbsp;&amp;nbsp; lv_condtion_flag = 'X'.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF screen-group1 = '901'.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; screen-input = 0.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY SCREEN.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;else.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF screen-group1 = '901'.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; screen-input = 1.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY SCREEN.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;endif.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;ENDLOOP.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;This above code enables and disables editing of input fields based on value&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;in lv_condition_flag(type boolean).&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;Please ask if your requirement differs from my understanding.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;thanks,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;vidyasagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 08:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556353#M1857771</guid>
      <dc:creator>former_member212124</dc:creator>
      <dc:date>2014-08-21T08:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data using bdcdata but block input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556354#M1857772</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;Sorry but you cannot change attribute of a field using BDC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is, in the PBO of the screen, write a logic that if the field value is not initial then input = 0.&lt;/P&gt;&lt;P&gt;Assign an function code to some key combination like ENTER key but do not add any code for it.&lt;/P&gt;&lt;P&gt;So, while recording BDC, press enter after filling in the fields, which will trigger the PAI and PBO of the screen thus the logic for disabling field when it has value will run and the field will get disabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 10:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556354#M1857772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-21T10:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data using bdcdata but block input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556355#M1857773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can check on field SY-CALLD for the condition to activate input on this field-group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 10:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556355#M1857773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-21T10:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data using bdcdata but block input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556356#M1857774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are those fields(to be kept disabled) fixed/static? Or do they change according to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If static, you can use "transaction variants" for your transaction and hide those fields through transaction variants. -Please search on net as to how to use txn variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now say the original transaction is XYZ, you create ZXYZ with txn variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In BDC call, call txn ZXYZ(where the fields are statically disabled)&lt;/P&gt;&lt;P&gt;otherwise call XYZ as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 10:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-using-bdcdata-but-block-input/m-p/10556356#M1857774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-21T10:25:47Z</dc:date>
    </item>
  </channel>
</rss>

