cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass the internal table data to smartforms

Former Member
0 Kudos

Hi Gurus,

I have a problem in passing the internal table data to the smartforms. In the print program

I get the data into one internal table "LT_PRDLBL1". I am passing this internal table to the other in print program by calling the FM_NAME.

CALL FUNCTION fm_name

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = T_SSFCTRLOP

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

OUTPUT_OPTIONS = T_SSFCOMPOP

USER_SETTINGS = ' '

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

LT_PRDLBL = LT_PRDLBL1

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

In the print program I had defined the internal tables like

Data: lt_prdlbl type standard table of zprdlbl.

Data: Begin of lt_prdlbl1 occurs 0.

include structure zprdlbl.

Data: End of lt_prdlbl1.

How do I define the internal table in the smartform to get the values printed in the smartform?.

<REMOVED BY MODERATOR>

Thanks,

Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:01 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Give this LT_PRDLBL1 internal table in " Form interface" Tab 'Table' in smartforms. You have to create a standard structure in for that internal table.

Pranav

Former Member
0 Kudos

Pranav,

Can you please tell me in detail?

Thanks,

Former Member
0 Kudos

in the interface of the smartform you have a Tables tab

define the internal table there with the same name

remeber its structure shoudl be a daa dictionary strucutre

or it will not work

Former Member
0 Kudos

Nehal,

Thanks for quick response.

In the smartform under the Form Interface->Tables tab

I had defined

LT_PRDLBL LIKE ZPRDLBL. If I define TYPE instead of LIKE I get the error message saying "FLAT TYPES may only be referenced using LIKE for table parameters".

In the main window I have created LOOP, in which I have ticked the internal table and

LT_PRDLBL INTO LT_PRDLBL. In the text node I am passing the values of this internal table

&LT_PRDLBL-XXXX&.

I am able to get the print but the data is not printing.

Please help me with this.

Thanks,

Former Member
0 Kudos

Ramdeep

define a work area LX_PRDLB and use that in the into statement

in the loop.

define this in global data

luse lx_prdlb-fieldname for displaying it.

Edited by: Nehal Fonseca on Apr 21, 2008 5:54 PM