cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForm - transfer table from program to SmartForm

Former Member
0 Kudos

Hi

I want to transer the contents of table MSEG + material description from my print program to my smartform.


In my program I have defined my table like this:

Types: begin of ty_main,

mseg type mseg,

maktx type maktx,

end of ty_main.

Data: gt_main type table of ty_main with header line.

Data: gs_main like line of gt_main.

In Smartform I try to do the same, but I got different errors.

I have done following in SmartForm:

Global Settings --> Global Definitions:
Types begin of ty_main,

mseg type mseg,

maktx type maktx,

end of ty_main.

Then in Global Settings --> Form Interface I try to define the Internal table, that should receive the data from the print program:

GT_MAIN  TYPE TY_MAIN

Error is: Type TY_MAIN does not exist.

Can anybody help me, please?

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

gouravkumar64
Active Contributor
0 Kudos

Hi,

In se11, make a structure of 2 table with required field of  mseg & makt(maktx field) ,

Then make a table type of that structure,

pass that structure name at smart forms(Form interface).

Thanks

Gourav.

Former Member
0 Kudos

Hi Kumar

Thanks,
But is that the only solution? I would prefer to avoid creating in SE11, if possible

Regards
Aikon