2007 Mar 08 7:42 AM
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.
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
2007 Mar 08 7:43 AM
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
2007 Mar 08 7:45 AM
hi have you declare
select-options : s_spmon for PGPL-spmon.
like that.
refer from dictionary type.
regards
shiba dutta
2007 Mar 08 7:51 AM
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.
2007 Mar 08 7:52 AM
Suresh,
Declare the fiscal year and Period as seperate select-options.
2007 Mar 08 7:57 AM
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.
2007 Mar 08 8:14 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |