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

need help

Former Member
0 Likes
425

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
406

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

4 REPLIES 4
Read only

Former Member
0 Likes
407

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

Read only

former_member194669
Active Contributor
0 Likes
406

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

Read only

0 Likes
406

Hi aRs,

I think your answer is suitable for my question. If it is worked I will give you full points.

regards,

Ajay

Read only

Former Member
0 Likes
406

if NOT sort_struc is initial.

perform sub_do_sort.

endif.

if NOT filter_struc is initial.

perform sub_do_filter.

endif.

Cheers SKC.