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: 

custom internal table in smartforms

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

You cannot directly use this. You will have to create a Structure / table type of this type in SE11 (Data dictionary) and then specify that as the inteface parameters in the SMART Form.

Just like function module, unless the structure in the Data dict, you cannot use that in the SMART Form parameters.

Regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos

Hai,

1. Declare a structure of the internal table type in SE11.

2. Declare the table in smartform form interface with the type of the structure.

3. Then you can pass the internal table to the function module.

Cheers,

Umasankar

Former Member
0 Kudos

Hi Murali,

Just go through this link. This also deals with passing custom internal table values into smartforms.

Regards,

SP.

Former Member
0 Kudos

Hi Murali,

Instead of doing the select and populating the internal table in the program why dont you do that selection part in the smartform itself. If you do this you needn create a structure in SE11. Try this if it doesn work then create a structure in SE11 and proceed.

Regards,

Tushar