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

SAP SCRIPT SUBROUTINE : PERFROM_PARAMETER_MISSING

Former Member
0 Likes
399

HI FRIENDS,

I USED A PERFORM STATEMENT IN SCRIPT.

<b>I GAVE PARAMETERS : P_BUKRS = IT_EKPO-BUKRS IN PRINT PROGRAM.

</b>

DEFINE PBUKRS := 'BUKRS'

perform GETEBELN in ZGETEBELN

using &PBUKRS&

changing &EBELN&

changing &BUKRS&

changing &EKORG&

ENDPERFORM.

form GETEBELN tables in_par structure itcsy

tables out_par structure itcsy.

read table in_par with key 'PBUKRS'.

check sy-subrc = 0.

select SINGLE EBELN BUKRS EKORG FROM EKKO INTO IT_EKKO WHERE BUKRS = IN_PAR-VALUE

read table out_par with key 'EBELN'.

check sy-subrc = 0.

out_par-value = 'IT_EKKO-EBELN '.

modify out_par index sy-tabix.

read table out_par with key 'BUKRS'.

check sy-subrc = 0.

out_par-value = 'IT_EKKO-BUKRS '.

modify out_par index sy-tabix.

read table out_par with key 'EKORG'.

check sy-subrc = 0.

out_par-value = 'IT_EKKO-EKORG '.

modify out_par index sy-tabix.

ENDFORM.

I HAVE RUN THE SCRIPT.

I AM GETTING AN WERRRO SAYING :

A PERFORM WAS USED TO CALL THE ROUTINE 'GETVBELN' OF THE PROGRAM ZGETVBELN. THE CURRENT CALL CONTAINS 4 ACTUAL PARAMETERS , BUT THE ROUTINE GETEBELN EXPECTS 6 PARAMETERS.

CAN ANYONE HELPING OUT FROM THIS .

THANKS IN ADVANCE.

REGARDS,

ROBERTS.K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
362

Instead of:

form GETEBELN tables in_par structure itcsy
tables out_par structure itcsy.

try

form GETEBELN
  tables
    in_par  structure itcsy
    out_par structure itcsy.

Repeating the 'tables' keyword may be causing the problem.

Let us know how it goes.

2 REPLIES 2
Read only

Former Member
0 Likes
363

Instead of:

form GETEBELN tables in_par structure itcsy
tables out_par structure itcsy.

try

form GETEBELN
  tables
    in_par  structure itcsy
    out_par structure itcsy.

Repeating the 'tables' keyword may be causing the problem.

Let us know how it goes.

Read only

0 Likes
362

Hi charles,

yeah it solved my problem, thanks a lot .

Regards,

Roberts.k