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

What is needed for sorting on two fields in a table control

Former Member
0 Likes
1,126

Hi Everybody

I am going to certification in a couple of days. I need some help and was hopeing that you guys could help.

What is needed for sorting on two fields in a table control?

One sorted table and two processing blocks

Two standard tables and one processing blocks

Two standard tables and two processing

Which one is corret??

//Script

8 REPLIES 8
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,085

Hi Kimallan

I am not sure what is meant by a "processing block". However, it seems the question wants the original table order to be preserved. If so; as far as I understood the problem we need:


itab_proxy[] = itab_main[] . 
"two standard tables"
SORT itab_proxy BY field1 field2 .

If we have a sorted table, then it is always sorted by its keys. So, the question seems to become obsolete for that option.

Hope I've understood correct...

Regards

*--Serdar

[email protected]

Read only

Former Member
0 Likes
1,085

Hi,

May be I have not understood the options correctly, but none of themseem to be correct to me :-).

I think it should be <u><i>one standard table and one processing block</i></u>.

Regards,

Anand Mandalika.

Read only

Former Member
0 Likes
1,085

Ok maybe you are right, it a a certification questing that I remember from last time I went there. Are you sure so you would recoment me to choice this one you say???

//script

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,085

Hi Kimallan

From the choices bestowed, I believe it requires to preserve the original order. So it seems to me that the correct answer to be <u>two standard tables and one processing block</u>. I counted two ABAP statements I've written in my last post as one processing block. However, still there seems to be vagueity.

*--Serdar

[email protected]

Read only

0 Likes
1,085

Hello Serdar,

I would like to know why you think the question coveys the meaning that the original order has to be preserved?

To me, the question seems to be quite unambiguous. The choices are however not totally sensible. And from what Kimallan says, he is probably not very sure about the choices. And I think in general you would have 4 - 5 choices for questions such as these.

Please let me know what you think.

Regards,

Anand Mandalika.

Read only

Former Member
0 Likes
1,085

Poornanand Mandalika You are right maybe I dont remember all off them. If you know that the right answer is not there then that could be right.

// Script

Read only

Former Member
0 Likes
1,085

Thanks for your help everybody; I think I will go with the two standard tables and one processing block answer.

// Script

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,085

Hi Anand

I agree with you about the vagueity of the question and Kimillan states that it may lack some parts. However, with the given arguements, I guess on the incomplete part of the question (optimizing ). It seems to me that the question is based on simple proxy(frontend)-main(backend) object handling (think of ALV Grid Control's filtering function).

Kind Regards...

*--Serdar

[email protected]