cancel
Showing results for 
Search instead for 
Did you mean: 

If i have 100 fields in internal table how we approach in Script

Former Member
0 Kudos

Hi,

Every one please let me know.how we approach for this

IF i want to declare internal table in script .I will declare in se38 and from there i will call by subroutine method.If i have 100 fields in internal table how we approach in this method.

Regards,

Mithun

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Mithun,

You have two options here.

1) Declare the internal table in SE38, with all 100 fields. Otherwise

2) You define a structure in SE11, and use this structure while you are declaring an internal table.

The remaining things, like calling a program from a script can be done by PERFORM and ENDPERFORM statements.

thanks & regards

Kishore Kumar Maram

Former Member
0 Kudos

Hi,

Make an Internal table in SE38 using your required 100 fields. And fetch data into intenal table and

and then call function i,e necessary for any script and call these functions within a loop at internal table.

1. CALL FUNCTION OPEN_FORM

2. CALL FUNCTION WRITE FORM

3. CALL FUNCTION CLOSE FORM

please follow the below example:

TABLES: MARA

BEGIN OF INT_MARA,

KUNNR TYPE KNMT-KUNNR,

MATNR TYPE KNMT-MATNR,

END OF INT_MARA.

LOOP AT INT_MARA..

CALL FUNCTION OPEN_FORM

-


-


CALL FUNCTION WRITE_FORM

-


-


ENDLOOP.

CALL FUNCTION CLOSE_FORM.

Note: your question is about 100 fields.

First decide wheather 100 fields are from single table or not?

If yes, you require make one internal table and follow the above code.

If not, that is fields are from more than one table then create different internal tables with respective fields and so on.

Finally, make one internal table and add all the different internal tables with header line.

And call this internal table into the above three call functions.

Please reward me if helpful.

Former Member
0 Kudos

Hi,

Make an Internal table in SE38 using your required 100 fields. And fetch data into intenal table and

and then call function i,e necessary for any script and call these functions within a loop at internal table.

1. CALL FUNCTION OPEN_FORM

2. CALL FUNCTION WRITE FORM

3. CALL FUNCTION CLOSE FORM

please follow the below example:

TABLES: MARA

BEGIN OF INT_MARA,

KUNNR TYPE KNMT-KUNNR,

MATNR TYPE KNMT-MATNR,

END OF INT_MARA.

LOOP AT INT_MARA..

CALL FUNCTION OPEN_FORM

-


-


CALL FUNCTION WRITE_FORM

-


-


ENDLOOP.

CALL FUNCTION CLOSE_FORM.

Note: your question is about 100 fields.

First decide wheather 100 fields are from single table or not?

If yes, you require make one internal table and follow the above code.

If not, that is fields are from more than one table then create different internal tables with respective fields and so on.

Finally, make one internal table and add all the different internal tables with header line.

And call this internal table into the above three call functions.

Edited by: sandeep pujari on Apr 17, 2008 8:19 PM

Former Member
0 Kudos

What is ur question exactly?

u r asking how 100 fields will come in one lane in the form

or

how to fetch the field data from internal table (declared in print program) and print the data in ur layout

Plz clear

Former Member
0 Kudos

hi,

first declare a structure in se38 by using these 100 fields and then declare a internal table oftype that structure.

so now u can use the subroutine like as

perform script tables itab like structure.

try the problemlike this u can get the answer.

reward me if useful..

thanks,

gupta pullipudi.