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

Regarding slection-screen problem

Former Member
0 Likes
687

Hi,

I have one requirement in selection-screen.if I enter the period from 04 to 03 with fiscal year from 2006 to 2007 as in put parameters in selection-screen, getting error message as 'From period is greater than To period'.

Can any body please respond to my question..

Regards,

Suresh Kumar.

6 REPLIES 6
Read only

Former Member
0 Likes
660

The periods and years must have been declared as separate select-options and hence the period-low should be less than the periods-high value.

Regards,

Ravi

Read only

Former Member
0 Likes
660

hi have you declare

select-options : s_spmon for PGPL-spmon.

like that.

refer from dictionary type.

regards

shiba dutta

Read only

Former Member
0 Likes
660

Say you have the selection fields

SELECTION-SCREEN BEGIN OF BLOCK block

[WITH FRAME [TITLE title]]

[NO INTERVALS].

parameters: per1 fiscyr1 per2 fiscyr2

SELECTION-SCREEN END OF BLOCK block.

SELECTION-SCREEN END OF BLOCK block.

AT SELECTION SCREEN ON BLOCK block.

data: num1 type n, num2 type n.

CONCATENATE fiscyr1 per1 into num1.

CONCATENATE fiscyr1 per1 into num2.

if num1 > num2.

message: from period greater than to period

endif.

Read only

Former Member
0 Likes
660

Suresh,

Declare the fiscal year and Period as seperate select-options.

Read only

Former Member
0 Likes
660

Hi,

Already i have declared select-options like as

S_MONAT FOR BKPF-MONAT "Fiscal Period

S_GJAHR FOR BKPF-GJAHR "Fiscal Year (PGI)

Regards,

Suresh Kumar.

Read only

Former Member
0 Likes
660

sorry i have misunderstand your query .

yes it will give an error since for period you have given 04 to 03 which is not permissible .

so as per my previous reply just use monyear combination here you can give

04.2004 to 03.2005.

now split it as per your requirement.

like s_spmon-low(4) = fiscal year from

s_spmon-high(4) = fiscal year to.

s_spmon-low+4(2) = monat from

like that

regards

shiba dutta