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

Number sequence issue in Smartform

sri6666
Active Participant
0 Likes
1,202

Hi Experts,

Smart form displying data which having serial number. in code level there is no sorting. its displaying like

1

3

2

4

5

if i run again for the same input its displayed like

1

2

3

4

5

when we ran for first time only we have sorting issue , for the second time onwards there is no issue in sequence.

can some one help me why its happened.

Thanks,

Sri

Hi Experts,

Smart form displying data which having serial number. in code level there is no sorting. its displaying like

1

3

2

4

5

if i run again for the same input its displayed like

1

2

3

4

5

when we ran for first time only we have sorting issue , for the second time onwards there is no issue in sequence.

can some one help me why its happened.

Thanks,

Sri

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,123

You must tell us more:

  1. where do the numbers come from (loaded by ABAP, loaded by Smart Form, ...)
  2. if the numbers are passed through parameters, what values you see in debug the first time and the second time. If they are sorted the second time then tell us more about ABAP code
Read only

sri6666
Active Participant
0 Likes
1,123

Numbers Load from Abap only, we just pass the data to smartform

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,123

As you say that the numbers are passed through parameters, what values do you see in debug the first time and the second time. If they are sorted the second time then tell us more about your ABAP code.

Read only

sri6666
Active Participant
0 Likes
1,123

program going to fetch the data from QAMV table, to pass Lot number and current node. for my inputs table having 51 records . i am fetching lotnumber, current node, Inspc charstic number, Plant for the Master Inspection Characteristic, Master Inspection Characteristics,Version Number of the Master Inspection Characteristic,Short Text for the Inspection Characteristic,Text Line for Additional Information,Text Line for Additional Information.

select statement same as

select PRUEFLOS VORGLFNR MERKNR VERWMERKM KURZTEXT DUMMY10 DUMMY20 QPMK_WERKS MKVERSION into table gt_qamv from Qamv whre PRUEFLOS = wa_PRUEFLOS and VORGLFNR = wa_VORGLFNR.

in the table level data is sequence order , but when execute ftrst time records will jump into one place to other. example Inspc. charcstic number in table 1 2 3 4 5 6 7 8 9 10. but in internal table its like 1 2 3 4 6 5 8 7 9 10. why this happends? but when i execute second time its retuen with same with as like in table. why? select statemnt same as in my logic.