cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sapscript Passing parameter value not shown.

Former Member
0 Likes
1,393

Hi all,

I am writing a sapscript form to call a subrountine by passing the hardcode parameter 'ZXX_TSI_SHIPMENTS_FROM' shown as below: -


PERFORM GET_STANDARD_TEXT IN PROGRAM ZPXX_SHIP_INST
USING 'ZXX_TSI_SHIPMENTS_FROM'
CHANGING &ZXX_TSI_SHIPMENTS_FROM&
ENDPERFORM

My problem now is when I debugged in program ZPXX_SHIP_INST, the passing parameter is empty.

Could someone help me?

Thanks in advance.

View Entire Topic
Madhurivs23
Participant
0 Likes

you need to declare one variable and assign it the value and then pass this as parameter.

Former Member
0 Likes

Hi Madhuri,

Can you show some code how should I declare variable in sapscript?

Former Member
0 Likes

Hi,

Declare a variable in Script window using DEFINE

Ex : DEFINE &VAR1& = ' '

Before passing variables to Subroutine in Script those are declared in Script window code using Define statement.

But in your case you are sending direct variable from print program. so it is not necessary to declare variable in that case. To get the value debug the print program before assign to script otherwise debug the Script by active debugger in Utilities of SE71.