‎2007 Feb 24 9:45 AM
Hi all,
i am using function module amfi_period_get_and_check to validate posting date.
if posting date is not open this module raises error message but when i am using it
in my code its not showing error message but when i am executing the module
it is showing the message for the same date
please reply soon
thnx
‎2007 Feb 24 10:04 AM
take the function module from the pattern and check sy-subrc <> 0 and give the message.
when you take a function module from pattern it also codes the if sy-subrc <>0.
endif .within that there is message statement just uncomment that .
Please reward if useful.
‎2007 Feb 24 10:04 AM
take the function module from the pattern and check sy-subrc <> 0 and give the message.
when you take a function module from pattern it also codes the if sy-subrc <>0.
endif .within that there is message statement just uncomment that .
Please reward if useful.
‎2007 Feb 24 10:12 AM
i have already uncommented that but it shud be <> 0 in order to raise the
message but it is coming = 0.
‎2007 Feb 24 10:32 AM
‎2007 Feb 24 10:38 AM
at selection-screen on pos_dt.
CALL FUNCTION 'AMFI_PERIOD_GET_AND_CHECK'
EXPORTING
i_bukrs = com_code-low
I_GJAHR =
i_koart = 's'
I_KONTO = ' '
I_MONAT = '00'
I_BUDAT = pos_dt.
IMPORTING
E_MONAT =
E_GJAHR =
EXCEPTIONS
ERROR_PERIOD = 1
ERROR_PERIOD_ACC = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2007 Feb 24 10:48 AM
one clarification...
should'nt i_koart be in upper case??
CALL FUNCTION 'AMFI_PERIOD_GET_AND_CHECK'
EXPORTING
i_bukrs = com_code-low
* I_GJAHR =
i_koart = 'S' " in upper case