on 04-17-2008 4:51 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.