‎2006 Nov 14 2:35 PM
I have the following perform statement
PERFORM fill_segment using wa_msg g_simulate.
Form..
FORM fill_segment using p_ msg p_simulate.
wa_xr-country = p_msg-country.
....
ENDFORM.
I have the following error
the dataobjct p_msg has no structure and therefore no component called country
Definition of wa_msg
wa_msg TYPE zemsgs,
zemsgs is a transparent table
‎2006 Nov 14 2:39 PM
Change the FORM definition to this:
FORM fill_segment USING p_msg LIKE wa_msg
p_simulate.
ENDFORM
‎2006 Nov 14 2:39 PM
Change the FORM definition to this:
FORM fill_segment USING p_msg LIKE wa_msg
p_simulate.
ENDFORM
‎2006 Nov 14 2:39 PM
hi
try this.
FORM fill_segment using <b>structure p_ msg</b> p_simulate.
rgds
Anver
‎2006 Nov 14 2:40 PM
I have learned that you can not pass a structure as a variable into a perform. How I have gotten around it is just make the structure variable (wa_msg) a global and then do the work as you are doing. Without passing the variable to the perform.
Message was edited by:
Kori Benton
‎2006 Nov 14 2:42 PM
See my response. You absolutely can pass a structure to a form.
‎2006 Nov 14 2:41 PM
‎2006 Nov 14 2:43 PM
hi,
perform fill_segment p_msg1 p_simulate.
FORM fill_segment USING p_msg1 LIKE wa_msg1
p_simulate.
ENDFORM.
with regards
m.srikanth.
‎2006 Nov 14 2:52 PM