Application Development and Automation 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: 
Read only

smartforms

anupam_srivastava2
Participant
0 Likes
403

Hi All

I am working on 4.6c , I am developing a salesinvoice using smartforms. I want a define a internal table and its workarea, How can I define a internal table in Global definitions.

regards

AJ

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
386

Hi AJ,

In Se11 Create a "Table type" for ur structure and then use 'TYPE' statement with table type. this way will create an internal table.

For creating work area, use "TYPE" with ur structure.

Regards

Gaurav

5 REPLIES 5
Read only

Former Member
0 Likes
386

Hi,

Declare a type definition of structure in the TYPES tab with the

fields from different structures.

Declare a table of that declared structure..

TYPES : BEGIN OF type_table,

matnr TYPE mara-matnr,

werks TYPE marc-werks,

lgort TYPE mard-lgort,

END OF type_table.

TYPES : t_table TYPE STANDARD TABLE OF type_table.

In the Global data Tab, declare the table of the above declared table...

I_TABLE TYPE T_TABLE .

Regards,

Satish

Read only

0 Likes
386

Hi Satish

When I click on the Types tab, I cant write any thing there, what I need to do to write my code there.

Actually there are three buttons, 1. check, 2. Statement Structure, 3. Pretty Printer.

When I click on the statement structure.....it opens a window.with call function and other moules..

pls guide

regards

AJ

Read only

Former Member
0 Likes
386

first u need to create a structure in se11

and then in smartforms> global definitions>global data (tab)

tablename type structurename

Madhavi

Read only

0 Likes
386

Hi Madhavi

I have define a structure, but I want to define a internal table in the global data....but there is no type assignment for 'type table of', how can I define an internal table.

please guide

regards

AJ

Read only

Former Member
0 Likes
387

Hi AJ,

In Se11 Create a "Table type" for ur structure and then use 'TYPE' statement with table type. this way will create an internal table.

For creating work area, use "TYPE" with ur structure.

Regards

Gaurav