Skip to Content
0
Former Member
Nov 15, 2006 at 02:43 PM

help need in code

22 Views

Hi all,

I HAVE A MODULE POOL AND SCRIPT DRIVER PROGRAM.

My requirement is

1)I have a print button on my module pool screen.

When i press i have to pass the input to my script driver program.

2)The script program can be accessed by itself , in that case the user has to input from

selection screen.

so , the user has can go to module pool and click print button

and able to print the data

or he can go to program and execute it and enter the input and run the program and he should be able to print the data.

I have written the code, but i was wonderingis this the correct way or not.

CASE SY-UCOMM.

WHEN 'PRTP'.

EXPORT ZXXX-NAME TO MEMORY ID 'SAP'. ***zxxx-nnzme is i/p to script

SUBMIT ZSCRIPT AND RETURN.

ENDCASE.

****PROGRAM ZSCRIPT

selection-screen begin of block sb with frame title text-001.

parameters : s_NAME like zXXX-NAME.

selection-screen end of block sb.

IMPORT ZXXX-NAME TO S_NAME FROM MEMORY ID 'SAP'.

question)

1)does this thing works for the both above mentioned scenarios.

2) what happens when i execute zscript from se 38,

import zxxx-name parameter doesn't have any value but s_name has value.

ITS WORKING FINE NOW,BUT JUST WANT TO MAKE SURE.

Thanks

Suchitra