<?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 Create custom button on va02 item table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636883#M1865024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Transaction va02.&lt;/P&gt;&lt;P&gt;2. Create&lt;STRONG&gt; custom push button&lt;/STRONG&gt; on Item table control&amp;nbsp; like this &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/543941" width="450" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right after standard buttons like this &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/543943" /&gt;&lt;/P&gt;&lt;P&gt;3. Then I have to mark any item from item's control and to create code that copy &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; marked item into next item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I add &lt;STRONG&gt;custom push button&lt;/STRONG&gt; to this table control ?&lt;/P&gt;&lt;P&gt;Where I have to write a code ?&lt;/P&gt;&lt;P&gt;Which function code I should use for the button ?&lt;/P&gt;&lt;P&gt;Or if I have to create my own function code in using vfbs transaction ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, advice.&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 09:58:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-09-18T09:58:19Z</dc:date>
    <item>
      <title>Create custom button on va02 item table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636883#M1865024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Transaction va02.&lt;/P&gt;&lt;P&gt;2. Create&lt;STRONG&gt; custom push button&lt;/STRONG&gt; on Item table control&amp;nbsp; like this &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/543941" width="450" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right after standard buttons like this &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/543943" /&gt;&lt;/P&gt;&lt;P&gt;3. Then I have to mark any item from item's control and to create code that copy &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; marked item into next item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I add &lt;STRONG&gt;custom push button&lt;/STRONG&gt; to this table control ?&lt;/P&gt;&lt;P&gt;Where I have to write a code ?&lt;/P&gt;&lt;P&gt;Which function code I should use for the button ?&lt;/P&gt;&lt;P&gt;Or if I have to create my own function code in using vfbs transaction ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, advice.&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 09:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636883#M1865024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-18T09:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom button on va02 item table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636884#M1865025</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;The pushbutton are in subscreen 4050 of program SAPMV45A, so you should change it in order to add a new button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this is the easy part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you should insert a your own control in the sequence control screen (see transaction VFBS): here you can define what has to be done as soon as an ok-code is triggered:&lt;/P&gt;&lt;P&gt;but it's not easy to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option can be to use the screen-exit in order to insert what you need to to there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean you can insert your button here, but &lt;SPAN style="font-size: 10pt;"&gt;user should be go to Additional data Tab of the item to be copied&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 10:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636884#M1865025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-18T10:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom button on va02 item table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636885#M1865026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;When are you talking about "&lt;SPAN style="color: #333333; font-size: 12px;"&gt;pushbutton are in subscreen 4050"&amp;nbsp; d&lt;/SPAN&gt;o you mean &lt;/P&gt;&lt;P&gt;changes in inculde MV45AF0B_BUTTON_AUSWAHL&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;1. Does it means , that I have to do change this source code and enter &lt;/P&gt;&lt;P&gt;my own custom bushbutton code ?&lt;/P&gt;&lt;P&gt;2. It means that I have to insert my record into cua_exclude ?&lt;/P&gt;&lt;P&gt;3. Which function code I have to use ? Or it may be my own custom function code ?&lt;/P&gt;&lt;P&gt;4. When you mentioned about vfbs, do you mean insert here my own screen gropup and function code ? Or something else ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, advice.&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 11:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636885#M1865026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-18T11:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom button on va02 item table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636886#M1865027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;When are you talking about "pushbutton are in subscreen 4050"&amp;nbsp; do you mean&lt;/P&gt;
&lt;P&gt;changes in inculde MV45AF0B_BUTTON_AUSWAHL&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you need to change the subscreen 4050 in order to add a new button and and change the form BUTTON_AUSWAH (so include MV45AF0B_BUTTON_AUSWAHL) in order to hide or deactive your new buttom if user runs VA03 (so in display mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;1. Does it means , that I have to do change this source code and enter&lt;/P&gt;
&lt;P&gt;my own custom bushbutton code ?&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes (see above) I suppose your button should be active only in "Create" and "Change" mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;2. It means that I have to insert my record into cua_exclude ?&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's better to add the code you need at the end of form BUTTON_AUSWAHL (you could create an enhancement), but here you have to insert the code to manage the status (active or deactive) of your button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;3. Which function code I have to use ? Or it may be my own custom function code ?&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use an your own custom function code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;4. When you mentioned about vfbs, do you mean insert here my own screen gropup and function code ? Or something else ?&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you need to insert what your new code has to do by there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to check a standard function code in order to know how the setting has to be done&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VFBS you have to indicate the form to be called to copy the item, this form has to belong to standard program SAPMV45A, so you can define your routine in the include for user-exit&amp;nbsp; MV45AFZZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you'll change the standard only tor change the dynpro 4050, the rest of objects could be enhanced:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- form &lt;SPAN style="font-size: 13.63636302948px;"&gt;BUTTON_AUSWAHL can be enhanced&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;- include&amp;nbsp; &lt;SPAN style="font-size: 13.63636302948px;"&gt;MV45AFZZ is for custom modification&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you can reduce the impact of changing of a standard program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this discussion: &lt;A __default_attr="15387816" __jive_macro_name="message" class="jive_macro_message jive_macro" data-orig-content="Re: On save button click in VA01/VA02 calling Item conditions Screen based on some logic" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 12:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636886#M1865027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-18T12:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom button on va02 item table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636887#M1865028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your answer !&lt;/P&gt;&lt;P&gt;I suppose, I will go to implement this as per your advice.&lt;/P&gt;&lt;P&gt;It will take some time and I'll inform you anyway .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 06:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-custom-button-on-va02-item-table-control/m-p/10636887#M1865028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-29T06:37:12Z</dc:date>
    </item>
  </channel>
</rss>

