Skip to Content
0
Former Member
May 27, 2008 at 03:29 PM

Warning in SAPScript: parameters are not passed to my form

196 Views

Hi,

I've just written some code in SAPScript (transaction SO10) which calls a form using PERFORM statement. However, my parameters are not passed to my form (I can check that while debugging) so the text printed out is blank. As soon as I arrive in the form, variables p_input and p_output are initial. Here's the code (I'm using a 4.7 version):

/: DEFINE &PERNR& = '00000004'

/: PERFORM GET_DRIVERS_LICENSE IN PROGRAM ZSD_APPLICANT_PROFILE

/: USING &PERNR&

/: CHANGING &PERMIS&

/: ENDPERFORM

/

/ Permis: &PERMIS&

The form I've written looks like this:

REPORT ZSD_APPLICANT_PROFILE .

FORM GET_DRIVERS_LICENSE TABLES p_input STRUCTURE ITCSY

p_output STRUCTURE ITCSY.

TABLES: PB9004.

DATA: lv_zperm TYPE zperm,

lv_pernr TYPE aplno,

lw_input LIKE ITCSY,

lw_output LIKE ITCSY.

READ TABLE p_input INTO lw_input WITH KEY NAME = 'PERNR'.

lv_pernr = lw_input-value.

SELECT SINGLE ZPERM FROM PB9004

INTO lv_zperm

WHERE pernr = lv_pernr.

lw_output-name = 'PERMIS'.

lw_output-value = lv_zperm.

APPEND lw_output TO p_output.

ENDFORM.

Any help would be greatly appreciated...