Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to control records in the smartform output

Dear Freinds,

i have developed smartform , however i have one problem .... iam using the table option in the smartform .

iam getting data in the internal table(Itab) as below before sending to smartform

empno Empname Loantype Amount Designation Location

101 Raja 102 200 supervisor Delhi

101 Raja 103 300 supervisor Delhi

the output in the smart form iam getting as two pages

Empno : 101 Empname : Raja location : delhi

Loantype: 102 Amount 200 Designation : supervisor

Empno : 101 Empname : Raja location : delhi

Loantype: 103 Amount 300 Designation : supervisor

which is wrong

I want the loand type 102 and 103 and amount 200 & 300 should be come two values in the

same record (in one record) and not two records.

ie. the data should come as below:

Empno : 101 Empname : Raja location : delhi

Loantype: 102 Amount 300 Designation : supervisor

103 200

Please help me how i can restrict as one record and get displayed .

regards

madhuri

Former Member
Former Member replied

Hi,

You can control the records, but it depends on the values in the main internal table's data. Can you assure you self that the loan types will be always less than or equal to two.

So that you can fix the position of each data being displayed.

Main internal table

empno Empname Loantype Amount Designation Location

101 Raja 102 200 supervisor Delhi

101 Raja 103 300 supervisor Delhi

Fix another two fields in the main internal table which looks like

empno Empname Loantype Amount Designation Location loantype amount

101 Raja 102 200 supervisor Delhi 103 300

Now display it .

But one thing you need to know how many loan types will come

Regards,

Venkatesh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question