Application Development 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: 

Table printing

Former Member
0 Kudos

Dear Experts,

I am Fetch the datas in table and store one internal table & Work Area..then i am already create table. How to print the value in smartform.

NOTE : i am already trying in DATA:-->loop at it_mbew into wa_mbew.

error : it_mbew is unknown.

regards,

raj

6 REPLIES 6

bpawanchand
Active Contributor
0 Kudos
NOTE : i am already trying in DATA:-->loop at it_mbew into wa_mbew.

where are you writing this did you decalre this internal table

Former Member
0 Kudos

Hi,

i hope u have made table ty_mbew in type declaration and declared the fields in it.after the creation of internal table.make a work area wa_mbew.i hope it should work

Former Member
0 Kudos

hi

did u declare the internal tables and work areas in smart form

u need to declr in global interface

regards

Edited by: Rasheed salman on Dec 3, 2008 12:02 PM

Former Member
0 Kudos

Hi,

Declare the internal tables which you are using in smartform (and the value for that internal table if you are getting from the driver program ) in the FORM interface that to in a TABLES OPTION...then write the loop in the line item table in a main window as u did earlier...

This will help.

Regards,

Rohan.

Edited by: Rohan on Dec 3, 2008 12:00 PM

Former Member
0 Kudos

Hi,

Your question is not clear, but Iam replying you of what i understood, hope I'm clear.

If you pass your internal table values to write it in smartform, then you have to pass your internal table through "CALL FUNCTION v_fname" parameters.

>>> EXPORTING

>>> CONTROL_PARAMETERS = X_CONTROL_PARAMETERS

>>> OUTPUT_OPTIONS = X_OUTPUT_OPTIONS

>>> payslip = i_payslip " Example

>>> TABLES

>>> t512t = i_t512t.

>>>>

the same type of structure should be assigned in smartform - Forminterface import tab.

>>>>PAYSLIP TYPE YPAYSLIP_T " Example

Just try and do the coding as per your requirement.

regards

sankar.

former_member184119
Active Contributor
0 Kudos

Check whether that table exists in the Global variables of the smartform and then compile the report!!

Regards\sAS