on 11-13-2009 7:14 AM
Hi
i need internal table in smart form with type of tline .. tline is structure and when i declare it in global definition as lines like tline it creates a structre ... kindly help me out
Regards
Ammad
Hello,
Please find below the sample code.
Lets say you want an internal table for BSEG.
Go to TYPES tab.
types:lt_bseg type STANDARD TABLE OF bseg.
In global variable write
gt_bseg type lt_bseg...
It will create an internal table.
Regards,
Nabheet Madan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This error is coming becasue u have not created an work area which is of same type as tdline.
Just double click on the error and copy paste the code here.Error now is nin ur code.
Secondly lets my internal table is GT_TLINE.
I will declare a work are GWA_TLINE type TLINE.
then i can have
loop at gt_line into gwa_tline or
read table gt_tline into gwa_tline with key etc.
Regards,
Nabheet Madan
Hey thanks it works one more question .. can i print in header section with loop ? coz i have more than one record but it is printing the last one ... i got the data in table ... use the loop option move the data into work area and print the varibale of work area .. help me out in this as well
Create a line type in the types tab of the same which you can use it in ur global devlaration to creeate the internal table.
Regards,
Nabheet Madan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.