Skip to Content
author's profile photo Former Member
Former Member

perform in SAP script

how should i call a perform statement in SAP script

I have been trying to use it in sap script but it is giving me a dump

the code extract looks as follows:

iN DRIVER'S PROGRAM

FORM POP_ADD USING V_parvw like vbpa-parvw.

READ TABLE i_addr WITH KEY WF_PARVW = 'WE'.

ENDFORM.

IN SAP SCRIPT

/: DEFINE &V_PARVW& = &VBPA-PARVW&

/: PERFORM POP_ADD IN PROGRAM ZSD_SCR_INVOICE

/: USING &V_PARVW&

/: ENDPERFORM

/ &i_addr-WF_PARVW&

/

IT IS GIVING SHORT DUMP SAYING

In a subroutine call, there were more parameters than in the

routine definition.

Error in ABAP application program.

The current ABAP program "ZSD_SCR_INVOICE " had to be terminated because one of

the

statements could not be executed.

This is probably due to an error in the ABAP program.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 31, 2005 at 09:00 AM

    This is perfectly explained in the SAP help:

    http://help.sap.com/saphelp_470/helpdata/EN/d1/803279454211d189710000e8322d00/content.htm

    In the ABAP form you need to decalre 2 TABLES parameters that tranfer your input and output parameters between the SAPscript and the ABAP:

    FORM GET_BARCODE

    TABLES

    IN_PAR STUCTURE ITCSY

    OUT_PAR STRUCTURE ITCSY.

    Best regards Jack

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2005 at 09:11 AM

    Hi,

    The PERFORM in your program should have the following syntax:

    FORM POP_ADD TABLES IN_TAB  STRUCTURE ITCSY 
                        OUT_TAB STRUCTURE ITCSY.
    
    READ TABLE in_tab WITH KEY 'V_PARVW'.
    CHECK sy-subrc EQ 0.
    ...
    ENDFORM.
    

    Take a look at http://www.sapfans.com/forums/viewtopic.php?t=131082&highlight=perform for an example of the required syntax.

    Hope this helps.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.