Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using a custom screen as selection with table-control

Former Member
0 Likes
957

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.

8 REPLIES 8
Read only

Former Member
0 Likes
920

My question is that using a normal screen with table control how can i include capability to save different variants.

Read only

0 Likes
920

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

Read only

0 Likes
920

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

Read only

0 Likes
920

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

Read only

0 Likes
920

Ok, i may try to work on this way.But what when i am required to schedule it with a variant

Read only

0 Likes
920

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

Read only

0 Likes
920

yea,can give it a try ,but in severe deadly situation.

Read only

0 Likes
920

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