Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Failed to pass parameter from SAPscript to form subroutine

Hi, Expert

Kindly need your help regarding passing parameter from SAPscript,

I have write a command below in SAPscript:

DEFINE : &LV_ACNO& = ''

DEFINE : &LV_BVTYP& = ''

PERFORM GET_ACCOUNT IN PROGRAM ZFIF_CHEQUEPRINT

USING &REGUH-LIFNR&

USING &REGUH-BVTYP&

CHANGING &LV_ACNO&

ENDPERFORM

in FORM:

FORM get_account TABLES intab STRUCTURE itcsy

                                         outtab STRUCTURE itcsy.

DATA:   p_input1     TYPE tdsymvalue,

            p_input2     TYPE tdsymvalue.

   READ TABLE intab INDEX 1.

   IF sy-subrc = 0.

     MOVE intab-value TO p_input1.

   ENDIF.


But, when i try to debug, there's got only one field in the INTAB as below, while, REGUH-BVTYP is missing.

Thought that, it will work based on looking around the forums - but it seems I am missing something.

Please help and guide.


Thanks in advance,

Regards,


Liyana.

Former Member
replied

Just a stab in the dark:

Sapscript is client-dependent, therefore if you're testing in a different client than the one you made your changes in it may be necessary to copy the changes to the testing client using transaction SCC1.

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question