‎2007 Aug 30 3:55 PM
Hi all,
How can i chekck in runtime 2 structures contains the data or not?
if the "sort_struc" contains the data ...it will executes only SORT LOGIC.
if the "Filter_Stru" contains the data ....it will executes only FilterLOGIC.
if the both structures contains the data ..it should work bpth logics.
How can i write for that.
regards,
Ajay
‎2007 Aug 30 4:00 PM
If your question is to check the data during runtime then you have to debug the program or keep a break point and then check the contents in Structures.
If your question is to develop logic, here are the steps......
IF NOT SORT_STRUC IS INITIAL.
<b><Build the logic for Sort(you can even use the SORT statement)></b>
ENDIF.
IF NOT FILTER_STRUC IS INITIAL.
<b><Build logic for Filter></b>
ENDIF.
Regards,
Pavan
‎2007 Aug 30 4:00 PM
If your question is to check the data during runtime then you have to debug the program or keep a break point and then check the contents in Structures.
If your question is to develop logic, here are the steps......
IF NOT SORT_STRUC IS INITIAL.
<b><Build the logic for Sort(you can even use the SORT statement)></b>
ENDIF.
IF NOT FILTER_STRUC IS INITIAL.
<b><Build logic for Filter></b>
ENDIF.
Regards,
Pavan
‎2007 Aug 30 4:00 PM
Hi,
if not sort_stru is initial and filter_stru is initial
do sort logic
endif.
if sort_stru is initial and not filter_stru is initial
do filterlogic
endif.
if not sort_stru is initial and not filter_stru is initial
do both
endif
aRs
‎2007 Aug 30 4:05 PM
Hi aRs,
I think your answer is suitable for my question. If it is worked I will give you full points.
regards,
Ajay
‎2007 Aug 30 4:00 PM
if NOT sort_struc is initial.
perform sub_do_sort.
endif.
if NOT filter_struc is initial.
perform sub_do_filter.
endif.
Cheers SKC.