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

sorting problem in smart form

Former Member
0 Likes
517

Hi,

Good day guys

Ive dev the smart form for workshop invoice.. everything fine but they need sort the stracture one which is LBBIL_IT_GEN.

so ive created the custome stracture ZLBBIL_IT_GEN and added the numaric field at end of the strc.


move-corresponding gs_it_gen to ZLBBIL_IT_GEN1.
lv_num = lv_num + 001.
ZLBBIL_IT_GEN1-MTART = GV_MTART.
ZLBBIL_IT_GEN1-num = lv_num.
sort ZLBBIL_IT_GEN1 by num.
Move-corresponding ZLBBIL_IT_GEN1 to gs_it_gen.

I think, it wont be work out. bcoz stracture doent hold the data..... how to over come the problem.. sorting is very imp for fun guys..

regards

chandu

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
485

I think, it wont be work out. bcoz stracture doent hold the data..... ???

Do you mean there is no data and you are sorting the internal table?

3 REPLIES 3
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
486

I think, it wont be work out. bcoz stracture doent hold the data..... ???

Do you mean there is no data and you are sorting the internal table?

Read only

0 Likes
485

Hi,

Actually ive a condtion.. if the material type [mtart] is "yser" .. in the material column should be blank.. the the material type is zrsa. then it needs to print materail and description.

Material Description

xyz

abc

laptop

123 abc

compu

456 pen

678 book

if see the the 5 th item get the blank ..so there is prob.. first needs to gets the all blanks then print one who having the mateiral and description.

but its prints right way.. bcoz its comes based on material type.. but need to sort this....

how to do it..plz let me know

thanks

chandu.P

Read only

0 Likes
485

I beleive you are getting the data from the driver program in the internal table.

In the smart form, go to Global Settings => Global Definition => Initialization Tab

Sort this internal table with your required fields.

Pranu