<?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: two transactions, same program, processed in background task problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108566#M1617189</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;Why dont you create varaints and make use of varaints in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2011 09:41:52 GMT</pubDate>
    <dc:creator>Varamanoj</dc:creator>
    <dc:date>2011-08-11T09:41:52Z</dc:date>
    <item>
      <title>two transactions, same program, processed in background task problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108565#M1617188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Y0 Team ABAP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got something here that bugs me.&lt;/P&gt;&lt;P&gt;I have done a report. Nothing special, simple selection screen, selection of data, and output via SALV.&lt;/P&gt;&lt;P&gt;One of my selection screen fields (a parameter) is VKBUR and it is "obligatory".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 weeks ago i got the requirement to create a copy of this program, and adopt VKBUR as select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since i didnt want changeanomalies i decided not to duplicate the program, but just add a second transaction to my program.&lt;/P&gt;&lt;P&gt;In a routine at event at-selection-screen output, i´m hiding either the parameter or the select option, depending on which tcode was used.&lt;/P&gt;&lt;P&gt;In some routine which gets triggered at the event at-selection-screen i´m moving either what we got in our parameter to our local range we use for the select, or just assign the select option to our local range, or process an error message if according field is not filled. Yeah that obligatory condition is done by myself since i cant just set the obligatory addition to the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all works quite fine so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT:&lt;/P&gt;&lt;P&gt;Today i hear that the end-users process that report in background task by pressing F9.&lt;/P&gt;&lt;P&gt;Problem is now that when it is processed in background task, sy-tcode is initial, so i dont know which of the transactions the user picked, and so i dont know which of the two fields has to be filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure i could do another report, containing just my second selection screen, and when this is checked, do a submit on my real report, tho i still believe there must be some more elegant way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 09:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108565#M1617188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T09:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: two transactions, same program, processed in background task problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108566#M1617189</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;Why dont you create varaints and make use of varaints in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 09:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108566#M1617189</guid>
      <dc:creator>Varamanoj</dc:creator>
      <dc:date>2011-08-11T09:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: two transactions, same program, processed in background task problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108567#M1617190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is in background mode SY-SLSET is also empty, I believe; so you still don't really know which one has been selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 09:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108567#M1617190</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-11T09:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: two transactions, same program, processed in background task problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108568#M1617191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I don't understand yet based on your description is why two entry points are necessary at all, if you have just one VKBUR selection option, those who only need a single value (= parameter) may just enter that, and those who need a selection by range enter that as well.&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 09:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108568#M1617191</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-08-11T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: two transactions, same program, processed in background task problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108569#M1617192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well yeah you´re right thomas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for the sake of the select this aint really neccesary. Tho in case they pick the transaction with the select option i gotta manually add subtotal lines in my output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right now i´m trying it with two seperate selection screens in one report. seems doable but i am not too far. reporting back soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 11:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108569#M1617192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T11:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: two transactions, same program, processed in background task problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108570#M1617193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can the required subtotals be handled by standard ALV functionality? If yes, then you could have the ALV layout as a selection screen parameter as well, prepare some standard "/..." layouts for the users (e.g. one with subtotals, one without) and let them do anything else by themselves via their own layouts and variants. Sounds more flexible to me than a hard wired "parameter = no subtotals, select option = subtotals" logic. Of course I don't know all the circumstances/restrictions at your place.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 11:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108570#M1617193</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-08-11T11:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: two transactions, same program, processed in background task problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108571#M1617194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunateley those subtotals cant be handeled by the layout, thats why i manually add them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you got me back on track! right now i´m for your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right now i´m having just ONE selection screen with the select option on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User can decide if he fills just one value or more.&lt;/P&gt;&lt;P&gt;In the end i loop over my output table and look if there are records of different VKBUR´s.&lt;/P&gt;&lt;P&gt;If there are i know he wants subtotals and process them. If its just data of one VKBUR i can spare myself the hassle as there is anyway just one records per VKBUR so subtotaling this wouldnt make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks. Thats what i will present my consultant now lets see if i can get him satisfied with it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 11:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transactions-same-program-processed-in-background-task-problem/m-p/8108571#M1617194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T11:23:07Z</dc:date>
    </item>
  </channel>
</rss>

