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

form

Former Member
0 Likes
417

Hi all,

Can anyone explain me what does this syntax mean?...

" FORM get_rate TABLES intab STRUCTURE itcsy outab STRUCTURE itcsy ".

Here what for TABLES and STRUCTURE is used?......

what is the purpose of using tables and structure in this statment?....

Usefull suggestions will be rewarded.

Thanks,

Subbu.

1 ACCEPTED SOLUTION
Read only

former_member188827
Active Contributor
0 Likes
399

tables means u r passing internal table to the subroutine and structure describes line type of internal table.

whenever u pass an internal table/ structure to a subroutine u 've to specify its structure explicitely.

plz reward points if dis helps

3 REPLIES 3
Read only

former_member188827
Active Contributor
0 Likes
400

tables means u r passing internal table to the subroutine and structure describes line type of internal table.

whenever u pass an internal table/ structure to a subroutine u 've to specify its structure explicitely.

plz reward points if dis helps

Read only

Former Member
0 Likes
399

Hi,

tables is used from which table the data is being retrives and

structure itcsy: in order to pass data from print program to script form data must be of type structure itcsy.

http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm

Regards

Read only

Former Member
0 Likes
399

Hi,

Check this thread

Sample:

data : val1 type i value 1,

val2 type i value 0.

perform calc using val1 changing val2.

Write / : 'Changing :' , val2.

write / : 'Using :' , val1.

&----


*& Form calc

&----


*text

-


-->P_VAL1 text

<--P_VAL2 text

-


form calc using p_val1

changing p_val2.

p_val2 = p_val1 + 100.

*p_val1 = p_val1 + 100.

*Since p_val1 is passed as using,the above is not *permitted

endform. " calc

This link will clear all your Doubts reagrding Perform Statement.

Have a look:

http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm

Regards,

Eshwar