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

Variables

Former Member
0 Likes
437

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.

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
415

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].

Read only

Former Member
0 Likes
415

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