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

Perform statements

Former Member
0 Likes
527

Hello All,

What is the difference between the following statements:

1. PERFORM get_vbap_using_vbak TABLES t_vbak t_vbap.

2. PERFORM get_data TABLES t_vbak

Waiting for the reply,

Thanks,

Shreekant

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
507

Hi Shreekant Rangrej,

there is no much difference between the two statements.

PERFORM get_vbap_using_vbak TABLES t_vbak t_vbap.
 PERFORM get_data TABLES t_vbak

get_vbap_using_vbak is the PERFORM NAME

But the First PERFORM statement is using two tables in TABLES PARAMETER.

T_VBAK and T_VBAP

Best regards,

raam

5 REPLIES 5
Read only

Former Member
0 Likes
508

Hi Shreekant Rangrej,

there is no much difference between the two statements.

PERFORM get_vbap_using_vbak TABLES t_vbak t_vbap.
 PERFORM get_data TABLES t_vbak

get_vbap_using_vbak is the PERFORM NAME

But the First PERFORM statement is using two tables in TABLES PARAMETER.

T_VBAK and T_VBAP

Best regards,

raam

Read only

Former Member
0 Likes
507

hi the differnece is ..

in the first case the data is filling in one table only ...in the second the data is filling and changing or modifing ..may be u forgotten to write the statement changing in the second perform statement i hope..

regards,

venkat

Read only

Former Member
0 Likes
507

hi,

as such thr is not difference bet the both its jst in 1st call it has 2 tables and in the 2nd it has only 1 table ...

reward points if useful

Read only

Former Member
0 Likes
507

dear friend,

in one statement we can say both

are the calling syntax for two deifferent from.

1st is using two table as a refrence

and send one is only refering a single table.

at out put level there are so may differences.

pls try and check.

if there is any prob pls keep in touch.

yours

vivek

Read only

Former Member
0 Likes
507

Hi,

According to me the first one is the correct statement.

Because wen u are creating a perform you write-

perform methodname using fieldname

or

perform methodname using internal_table_name.

This is beacuse you are telling the method which parameters or fields to use.

Not sure about the second syntax.Just try using it,if it works then there is no difference.

Otherwise I jst explained why we write it.

thanks

Reward if useful