06-15-2009 11:57 PM
Hi
IF A ,B and C is initial.
give message as d is madatory.
endif.
if A is not initial.
check B and C is not intial.
do the things.
endif.
if B is not intial.
check C is not initial.
endif.
how to write the abap code for the same..
Regadds,
Sri
06-16-2009 12:09 AM
ABAP is almost like what u have written
IF A IS INITIAL and B IS INITIAL and C is initial.
*....................give message as d is madatory.
message 'D is mandatory' type 'E'.
endif.
if A IS NOT INITIAL.
check B IS NOT INITIAL and C IS NOT INITIAL.
*...................do the things.
....................
..................
.......................
endif.
if B IS NOT INITIAL.
check C is not initial.
....................
..................
.......................
endif.
06-16-2009 12:21 AM
thanks for quick response.
I have on one more doubt , iam using ranges from date and to date.
it is in range format.
how can i give from date for input and to date for input of another FM.
Regards,
Sri
06-16-2009 12:34 AM
hi Sri,
in ABAP we use select-options for declaring range.
like:
data: gs_sys type syst.
SELECT-OPTIONS : S_DATE for gs_sys-datum. "a select option for date range is declared now.
***u can use them in ur FM like:
CALL FUNCTION 'XYZ_ASDASDASD' " your FM
EXPORTING
FROM_DATE = S_DATE-LOW "========> this is for the from field in select option
TO_DATE = S_DATE-HIGH "===========> this is for to field in sleect option
IMPORTING
XYZ = XYZ.
.........
......
............
hope this helps
Edited by: soumya prakash mishra on Jun 16, 2009 1:48 AM
06-16-2009 12:58 AM