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

too short parameter

Former Member
0 Likes
1,237

FORM get_transaction_data TABLES ot_yra_pt2_rev STRUCTURE gs_yra_pt2_rev

ot_yra_pt2_cos STRUCTURE gs_yra_pt2_cos

ot_covp_rev STRUCTURE gs_covp_rev

ot_covp_cos STRUCTURE gs_covp_cos.

PERFORM get_yra_pt2 CHANGING lt_wbs_obj[]

lt_include[]

ot_yra_pt2_rev[]

ot_yra_pt2_cos[]

I amm migratting form 4.7 to 6 .So while calling "get_yra_pt2"the actuall parameter "ot_yra_pt2_rev" is too short for the formal parameter "ot_yra_pt2_rev" .

So please help me how to replace the above code without effecting.

FORM get_transaction_data TABLES ot_yra_pt2_rev STRUCTURE gs_yra_pt2_rev

ot_yra_pt2_cos STRUCTURE gs_yra_pt2_cos

ot_covp_rev STRUCTURE gs_covp_rev

ot_covp_cos STRUCTURE gs_covp_cos.

PERFORM get_yra_pt2 CHANGING lt_wbs_obj[]

lt_include[]

ot_yra_pt2_rev[]

ot_yra_pt2_cos[]

I amm migratting form 4.7 to 6 .So while calling "get_yra_pt2"the actuall parameter "ot_yra_pt2_rev" is too short for the formal parameter "ot_yra_pt2_rev" .

So please help me how to replace the above code without effecting.

2 REPLIES 2
Read only

Former Member
0 Likes
676

Hi

I can't understand how you call your form, in the definition you use TABLE, while calling it you're using CHANCING?

Anyway you need to check the definition of the variable you're transfering to the form

Max

Read only

Former Member
0 Likes
676

Hi,

You have provided an irrelevant code snippet and it doesnt have the information about the form definition of the form get_yra_pt2...instead it is having for get_transaction_data. On looking at the error, the form interface should be checked. For more information on how to define and call subroutines please check the below link:

http://help.sap.com/saphelp_47x200/helpdata/EN/9f/db977635c111d1829f0000e829fbfe/frameset.htm

Srikanth