Skip to Content
0
Former Member
Jun 29, 2006 at 11:27 AM

custom internal table in smartforms

195 Views

hi,

i have declared custom internal table in se38(combination of 2, 3 tables) and i want pass this custom internal table to smartform. in smartform how do i capture this custom internal table data.

DATA : BEGIN OF I_CUST OCCURS 0,

name LIKE p0002-rufnm,

f_name LIKE p0002-vorna,

m_name LIKE p0002-midnm,

l_name LIKE p0002-nachn,

f_add LIKE q0002-anrex,

n_desgn LIKE hrp1000-stext,

n_dept LIKE hrp1000-stext,

n_loc LIKE t500p-name1,

  • O_DESGN LIKE PA,

o_loc LIKE t500p-name1,

n_grade LIKE p0008-trfgr,

bet01 LIKE p0008-bet01,

bet02 LIKE p0008-bet02,

bet03 LIKE p0008-bet03,

bet04 LIKE p0008-bet04,

bet05 LIKE p0008-bet05,

bet06 LIKE p0008-bet06,

bet07 LIKE p0008-bet07,

bet08 LIKE p0008-bet08,

end of i_cust.

here i am capture the data into the i_cust.

and i am pass the i_cust data to smartform using this fucntion module.

CALL FUNCTION w_fname

TABLES

zp9001 = I_CUST

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

now i want to capture this internal table data in smartform. can any body help me.

thanx

Murali Papana