‎2010 Jan 04 5:56 AM
Dear experts,
I want that i shall be design my custom screen and use it for user selection purpose.
This screen will be able to recieve input in tablecontrol grid.
At the same time it should allow me to save variants for various input combinations on this tabel control.
On pressing execute an ALV report has to open.
I started to work and achieved till the point that all functionality above mentioned works
except not able to save the variant.
‎2010 Jan 04 6:21 AM
My question is that using a normal screen with table control how can i include capability to save different variants.
‎2010 Jan 04 7:08 AM
Dear Aditya
as per my Knowledge
use Below Function Module
RS_CREATE_VARIANT
Thanks
Surendra P
Edited by: Suri551 on Jan 4, 2010 8:08 AM
‎2010 Jan 04 7:24 AM
Has anyone used this to save table control contents.I could not get the way by looking at documentaion because
it is selection-screen oriented
‎2010 Jan 05 12:06 AM
Hi Aditya,
Variants are selection-screen oriented. For your purpose of saving user entries in the table control, you have to write your own code. You could provide a button on the application tool-bar similar to variant creation --- and write code to save the internal table data against that variant in a custom table or data-cluster (INDX type of table).
Cheers
Suresh
‎2010 Jan 05 5:16 AM
Ok, i may try to work on this way.But what when i am required to schedule it with a variant
‎2010 Jan 05 7:14 AM
Hi Aditya,
For scheduling purpose, you can create an executable program. For the table control values you provide a buttonn on the application toolbar. When user chooses that button, popup another window with table-control. Capture user's entries in a global internal table and save it in your custom table or data-cluster (INDX type table). This will ensure that you have the latest table-control entries in your custom table.
Now save other values in a variant and schedule your job. In the START-OF-SELECTION event of your program, first check if the SY-BATCH = 'X'. This means the program is executing in background job. If this is true, refresh your global internal table and import your custom table values into the global internal table.
Then your program will work as usual with all the values from the variant as well as your saved table-control values.
In order to save different set of values for each variant of the program, provide an input field for Variant Name above the table control in your pop-up dialog box. This should be mandatory and you should provide F4 help to show all the variants saved for the program.
Hope this helps.
Cheers
Suresh
‎2010 Jan 05 11:04 AM
‎2010 Mar 08 11:33 PM
Hello Aditya,
I have a similar requirement to save the data entered by the user in a table control as a variant.
Please let me know how you achieved this.
Thanks,
Rugmani