Application Development 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: 

ABAP Scripts

Former Member
0 Kudos

Hi All,

I'm new to ABAP.

I created script by using user defined table zemploye by using select-options.I got output only one record.I want to display multiple records in output.

my output is like this.

  10... abcd..

MY PROGRAM:

data :  begin of abc,

          empno type zemploye-empno,

          empname type zemploye-empname,

          end of abc.

data: itab type table of abc,

         wa type abc.

data v1 type zemploye-empno.

select-options : s_empno for v1.

select empno empname from zemployee

       into table itab

       where empno in s_empno.

perform open_form.

perform start_form.

loopat itab into wa.

perform write_form.

endloop.

perform end_form.

perform close_form.

IN SCRIPTS FORM:

I wrote text element like below this:

P1: &wa-empno&...&wa-empname&...

Thank You..

1 REPLY 1

tripurari_rai2
Participant
0 Kudos

Define a  text element in your script & pass this in your wirte_form between loops.

Refer old post of SDN :http://scn.sap.com/thread/3412533