Application Development 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: 

dynamic parameters at selection- screen

Former Member
0 Kudos

hi experts,

i have one requirement.

input : months range(ex: 20010 to 200701--- only 4 months).

depending on this input, i have to enter data for each month, in the above.

can u please send mesome code or idea , how to approach in this one.

ex: p_200610,

p_200611

p_200612

p_200701.

here i need to enter the data for 4 months only, which is entered in the input.

6 REPLIES 6

Former Member
0 Kudos

Hi Dasr,

Instead of making dynamic selection fields, what you can do is use a table control within the selection screen (or dialog screen) and initially before you enter the month range, the number of rows in the table control would be 0, i.e. none open for input.

Once the user enters the date range and presses enter (to trigger the AT SELECTION-SCREEN event) then you would calculate the number of months in the month range and open respective number of rows within the table control for input.

This is easier to handle and maintain according to me.

Hope this helps.

Regards,

Aditya

Former Member
0 Kudos

Hi..Can u be some more clear with your question

like how many fields to be displayed on screen and where u need to enter data??

0 Kudos

hi rammohan.......

i need to enter only one field dynamically depending upon the data given previously......

i.e. input .............months range 200610 to 200701.

now the diff between the months is 4.

then i need to enter the data for 4 dates.

in the new block it should come as

enter the esipaydate for 200610.----


enter the esipaydate for 200611.----


enter the esipaydate for 200612.----


enter the esipaydate for 200601.----


this is my trequirement.

ex 2: if months range is months range 200601 to 200711.

now the diff between the months is 23.

then i need to enter the data for 23 dates.

in the new block it should come as

enter the esipaydate for 200601.----


enter the esipaydate for 200602.----


enter the esipaydate for 200603.----


enter the esipaydate for 200604.----


enter the esipaydate for 200605.----


enter the esipaydate for 200606.----


enter the esipaydate for 200607.----


enter the esipaydate for 200608.----


enter the esipaydate for 200609.----


enter the esipaydate for 200610.----


enter the esipaydate for 200611.----


enter the esipaydate for 200612.----


enter the esipaydate for 200701.----


enter the esipaydate for 200702.----


enter the esipaydate for 200703.----


enter the esipaydate for 200704.----


enter the esipaydate for 200705.----


enter the esipaydate for 200706.----


enter the esipaydate for 200707.----


enter the esipaydate for 200708.----


enter the esipaydate for 200709.----


enter the esipaydate for 200710.----


enter the esipaydate for 200711.----


this is my trequirement.

i hope u understood my requirement.....

0 Kudos

Hi dasr,

as i understand from ur qustion is first you will ask for the YYYYMM to YYYYMM.

and then you will ask for 'sipaydate'.

you try to use AT SELECTION-SCREEN OUTPUT. event

at the first screen you display only one selct-option asking for YYYYMM.

and in at selection-screen output event u calculate no. of months and then show it again on selection screen.

Regards,

Kapil Soni

0 Kudos

hi kapil thanks for u r reply, but can u give this with some code.

then it iwll be clear fro me.'

i tried in the same way i think....

0 Kudos

Hi,

it is not possible to create like that.for that u've to go for dynamic report generation.

FOR THAT U SHOULD GO FOR THE FUNCTION MODULE 'RSS_TEMPLATE_INSTANTIATE'.CHECK THE DOCCUMENTATION OF THIS fm.

REGARDS,

BHARAT.