<?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: Change data type for select-option while runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728754#M1299564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain me why you want change data of select-option itself and not the other way around? bacause if you change value in char/string variable, data type of select-option will automatically change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gouri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2009 07:08:37 GMT</pubDate>
    <dc:creator>former_member215917</dc:creator>
    <dc:date>2009-06-05T07:08:37Z</dc:date>
    <item>
      <title>Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728750#M1299560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quit difficult problem. I created a report with variable select options and using the SAP standart process to select fields from a customer table for selection (like in SE16). This works fine for me. But the problem is, that I would like to create the report as usefull as possible and so I want to allow user to change the selection fields while the selection screen is displayed. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTION: SO1 LIKE SEL1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALISATION.&lt;/P&gt;&lt;P&gt;SEL1 = '/SAPAPO/MATKEY-MATID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine! But know I want to change the data type after it was generated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTION: SO1 LIKE SEL1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALISATION.&lt;/P&gt;&lt;P&gt;SEL1 = '/SAPAPO/MATKEY-MATID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;SEL1 = '/SAPAPO/MATKEY-MATNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the problem. I dont get any error message or something like that, but nothing happends. I guess it is because I already signed a data type to the select option SO1 and it does not overwrite this. Is there any chance to modify the select options while the selection screen is displayed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 13:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728750#M1299560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T13:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728751#M1299561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check following code. It changes output field to PSPNR from MATNR at selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DATA : lv_char TYPE char100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT-OPTIONS : sel FOR (lv_char).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;         lv_char = 'PRPS-PSPNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      INITIALIZATION.&lt;/P&gt;&lt;P&gt;         lv_char = 'MARA-MATNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gouri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 13:29:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728751#M1299561</guid>
      <dc:creator>former_member215917</dc:creator>
      <dc:date>2009-06-04T13:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728752#M1299562</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;      wat ever the final variable where you want to store declare it as string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sateesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 15:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728752#M1299562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T15:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728753#M1299563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gouri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is exactly what I described. I can change the contend of the field SEL1 but it would not change the data type of SO_1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Sateesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to declare the field SEL_1 that is not the problem and it works but I dont want to change anything at the declaration for this field than for select option SO_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks both for the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 06:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728753#M1299563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T06:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728754#M1299564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain me why you want change data of select-option itself and not the other way around? bacause if you change value in char/string variable, data type of select-option will automatically change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gouri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 07:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728754#M1299564</guid>
      <dc:creator>former_member215917</dc:creator>
      <dc:date>2009-06-05T07:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728755#M1299565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gouri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is exactly the point. The data type of the select option will not change automatically. When I put MATNR into the string field and the select option was generated with the type "MATNR" I can change the value of the string field as many times as I want, the select option will everytime be "MATNR" no matter what is contend of the string field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: SELECT-OPTION: SO1 LIKE (SEL_1) -&amp;gt; SEL_1 is "MATNR", than SO1 will be like "MATNR"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2: SELECT-OPTION: SO1 LIKE (SEL_1) -&amp;gt; SEL_1 is "LOCNO", than SO1 will also be like "MATNR" and nothing was changed. That is what I want to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 07:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728755#M1299565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T07:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728756#M1299566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand the requirement correctely, SO1 should change as per sel1 and this is what will happen. when you say sel1 =  'MARA-MATNR', SO1 will behave like MATNR and when you change sel1 to 'LOCNO', SO1 should behave like 'LOCNO'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I am not sure whether we can use code like :&lt;/P&gt;&lt;P&gt;select-option: so1 like (sel_1).&lt;/P&gt;&lt;P&gt;I suppose it is SELECT-OPTIONS : so1 FOR (sel1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code which I gave earlier was working exactely like this. You can try it once may be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gouri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 08:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728756#M1299566</guid>
      <dc:creator>former_member215917</dc:creator>
      <dc:date>2009-06-05T08:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728757#M1299567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gouri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you understand the problem. But your code does not work. It is exactly the same as my code I described in the question itself and SO1 does not change when SEL1 was changed. That is the problem. And in my code SO1 LIKE (SEL1) works. I had problems with FOR, thats why I use LIKE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 08:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728757#M1299567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T08:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728758#M1299568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at first i want to add that your "requirement" is not a very common one, since people tend to work with tabs when wanting various selscreens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tho still you aint got no chance to change the datatype of a select option during runtime.&lt;/P&gt;&lt;P&gt;But what you can do is: have more select options on your selection screen, hide the ones you dont need. and if you need to change a select option from vbeln to matnr just hide the vbeln one and unhide the matnr one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to hide/unhide screen fields go for a "Loop at screen" statement in event AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 08:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728758#M1299568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T08:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change data type for select-option while runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728759#M1299569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I do not choose the best way to do it, but the program has to be as independend as possible, so that I have to create the seletion options dynamicaly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought about the way to do it right before you answered the post and so I'm on it to try it like that. Btw, LOOP AT SCREEN was in before &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; I am now creating a table with the selections and a filed called "Display" where all possible selections where in and just the ones, that needs to be displayed will be visible at the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 08:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-data-type-for-select-option-while-runtime/m-p/5728759#M1299569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T08:24:54Z</dc:date>
    </item>
  </channel>
</rss>

