cancel
Showing results for 
Search instead for 
Did you mean: 

Not printing multiple records

Former Member
0 Kudos

Hi Gurs,

I have created a smart form and a driver program for this.

I am able to get data from the internal table but if i give the range from 1 to 10 then 1 st record is coming 10 times.

I am not able to get the data from 1 to 10

can any one help me!

Appreciated your help

Thanks in advance

sameer(mr.abaper@gmail.com)

<b><----Following is the driver Progra....></b>

tables:mara.

data:it_itab type mara occurs 0,

FM_NAME TYPE RS38L_FNAM.

select-options:matnr for mara-matnr.

Select * from mara into table it_itab where matnr in matnr.

CALL FUNCTION '/1BCDWB/SF00000515'

  • EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

ITAB = it_itab

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

<b><..............End of Driver Program.............></b>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hiii

did u wrote with in the loop

reward points

regard

Jaipal

Answers (3)

Answers (3)

veerendra_nath2
Explorer
0 Kudos

Hi...

As u r telling u r getting the data perfectly in internal table... so problem might be in the form. so u chak whether u have given in tables or not...

Its is generally like it_tab into wa_tab. here u should declatre the wa_tab in the global section of the smartform. there after u pick the values from the wa-tab-XXXX like that. This will help u .. try...

Nath...

Former Member
0 Kudos

can you suggest me where to keep loop in driver program as well as in SmartForm

Regards

sameer

Former Member
0 Kudos

hey

in the layout put it before the select query

right click->create->flowlogic->Loop

give ex :itab into wa_itab.

in the driver program put the function module in between Looop & Endloop

reward points

regards

Jaipal

Former Member
0 Kudos

No, this is the first time i am working in Smartforms.

I haven't kept any loop in the driver program.

do u mean i need to keep a loop in driver program or in smartforms

Regards

sameer

Former Member
0 Kudos

hi

write in the form as well in driver program

regards

Jaipal