cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC Call Sort Ability

Former Member
0 Likes
946

Hi Guru's,

Wondering is there an easy way to do a sort on results returned from and RFC_READ_TABLE call. Basically i the call returns three items and i am wondering if there is a way i can get SAP to return them sorted by column similar to if i was to use the SQL Syntax ORDER BY D1 DESC;

Is there a way i can do this easily in the call , the options parameter does no allow me to use the sql function order by ?

Thanks,

Emmett

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Likes

If the RFC doesn't provide you with the necessary 'order by' functionality then you have to do it inside BLS. Assuming you are already building up an Illum Doc XML then just apply the GenericSortFilter action to the results.

Former Member
0 Likes

You can't sort with RFC_READ_TABLE, but i think it does sort using the first column by default. Your best bet is to do what Jeremy suggested and build your xml doc from the output and sort it there.

Answers (1)

Answers (1)

Former Member
0 Likes

Thanks Gents,

Didn't use this but managed to resolve my problem in another manner.

Appreciate the input.

Emmett

Former Member
0 Likes

Hello Emmett

May I know whcih method you used as I am also facing the same issue.

Thanks

Dheeraj Kumar