‎2005 Mar 18 11:11 PM
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
‎2005 Mar 19 3:48 AM
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.
‎2005 Mar 19 3:48 AM
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.
‎2005 Mar 19 3:49 PM
Hi charles,
yeah it solved my problem, thanks a lot .
Regards,
Roberts.k