‎2008 May 02 5:58 AM
Hi,
In the program variables are defined in the following way.
r_tmp type standard table of bapiret2,
wa_tmp type bapiret2,
wa_id type line of tsk_tab.
field-symbols: <r_tmp> type bapiret2.
Can someone explain about these variables.
Thanks.
‎2008 May 02 6:01 AM
r_tmp type standard table of bapiret2,
this will a table created with the bapiret2 structure...
wa_tmp type bapiret2,
this will be the work area with bapiret2 structure...
wa_id type line of tsk_tab.
this will also be a work ares with str. tsk_tab
field-symbols: <r_tmp> type bapiret2.
a field symbol will be created with bapiret2 structure..
check this link for [field-symbols|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm].
‎2008 May 02 6:09 AM
Hi
Keyur,
data: r_tmp type standard table of bapiret2,
wa_tmp type bapiret2,
wa_id type line of tsk_tab.
field-symbols: <r_tmp> type bapiret2.
In this example,
r_tmp is created as a table with structure of standard table bapiret2.It contains all fields of table bapiret2 by ur definition.
(ii) wa_tmp is created as work area ( to hold a single of data only)
with the same structure of bapiret2.
(iii) The syntax of wa_id type line of tsk_tab is not correct.
it may be wa_id like line of tsk_tab, if tsk_tab is exists as table or wa_id type tsk_tab.
If it useful, reward points.
Thank u,
Prasad G.V.K