Skip to Content
avatar image
Former Member

Error while calling Subroutine from Script

HI Friends,

I am getting a short dump whilecalling a suboutine from Script.

Please suggest if am wrong with below code

/: PERFORM GET_ADDRESS IN PROGRAM ZSUBROUTINES

/: USING &MHND-KUNNR&

/: CHANGING &ADRS-LINE0&

/: CHANGING &ADRS-LINE1&

/: ENDPERFORM

All above fields are available in script window

In the program

FORM get_address TABLES in_tab STRUCTURE itcsy

out_tab stucture itcsy.

ENDFORM.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 11, 2008 at 12:06 PM

    HI,

    Your code is correct, in the FORM and ENDFORM in the program, read the INPUT table and get the values and write your logic using these values and send back the values to the SCRIPT using the OUTTABLE. here you need to use the MODIFY statment for the outtable using Sy-TABIX.

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 11, 2008 at 12:02 PM

    Hi,

    Your code all looks fine, is the dump definitely related to this subroutine?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2008 at 12:05 PM

    Hi,

    What is the dump that you are getting?

    Thanks

    Nayan

    Add comment
    10|10000 characters needed characters exceeded