Application Development and Automation 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: 
Read only

function module clarification

Former Member
0 Likes
518

experts

i am filling the control records in the perform filldata.

now i am using another perform to pass the control record data and data records data to the idoc in the perform fillidoc.

In this case do i need to use the using statement to send the control data and data reocords data to the perform fillidoc as per the coding standards?

perform filldata.

perform fillrecords.

preform fillidoc.

Form filldata.

here i am filling t_edi_dc40.

endform.

form fillrecords.

here i am filling t_edid_dd40.

endform.

form fillidoc. "here do i need to use the using statement if so how

CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'

EXPORTING

master_idoc_control = t_edi_dc40

  • OBJ_TYPE = ''

  • CHNUM = ''

tables

communication_idoc_control =

master_idoc_data = t_edi_dd40

endfrom

3 REPLIES 3
Read only

Former Member
0 Likes
487

You should not need to do this if you have declared the data in the top of your module pool program or at the top of your report.

Easiest way to check is put a breakpoint in your form fillidoc. Now check table T_EDI_DC40. If you can see the table and data inside there is no need to use the 'USING' statement.

Read only

0 Likes
487

suppose think that i have declared inside the form like this.

form fillrecords.

data :t_edid_dd40 type table of edid_dd40.

here i am filling t_edid_dd40.

endform.

then how i need to pass this to fm in the another perform fillidoc

Read only

0 Likes
487

Please see the help on FORM and PERFORM statements.