cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms

0 Kudos

hi ..

Is it necessary to create a structuer to develop a smartform, when we r going to print fields from diff tables? can't we do this by declaring a internal table in the driver program.?

regards,

sathish

Accepted Solutions (0)

Answers (6)

Answers (6)

0 Kudos

thak u folks

Former Member
0 Kudos

yes u have to create the structure in data dictionary

Former Member
0 Kudos

Hi

you have to create structure to the print program and that structure you have to pass it to smartforms.

For smartforms :

http://help.sap.com/saphelp_nw70/helpdata/EN/a5/de6838abce021ae10000009b38f842/content.htm

http://saptechnical.com/Tutorials/Smartforms/SFMain.htm

With Regards

Nikunj Shah

0 Kudos

Hi,

you have to decalre the structure when you are fetching the data from different tables.

otherwise there is a lee fields from different tables you can fetch and display into your daclaration fields like.

data: i_vbeln like vbak-vbeln,

i_erdat like vbak-erdat,

i_posnr like vbap-posnr,

i_matnr like vbap-matnr.

select avbeln aerdat bposnr bmatnr into (i_vbeln i_erdat i_posnr i_matnr) from vbak as a inner join vbap as b ON <condition> WHERE <condition>.

regards.

sriram.

Former Member
0 Kudos

Hi,

We need structures in the smartform declared of the type of the tables which they would relate to later.

As the internal tables in the smartforms would be looped and there arises the need of the structure of the same type to hold the data record by record inorder to display the fields.

Hope this clears your doubt.

Regards,

Ram

Former Member
0 Kudos

yes,

you need to craete a strucure inside the print program and pass to the smartform.

the smart form shoud cintain the similar structyre.. then u can display the fields.

pradeep