cancel
Showing results for 
Search instead for 
Did you mean: 

Error while calling Subroutine from Script

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

What is the dump that you are getting?

Thanks

Nayan

prasanth_kasturi
Active Contributor
0 Kudos

Hi,

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