cancel
Showing results for 
Search instead for 
Did you mean: 

reg local variable?

Former Member
0 Kudos

Hi ALL,

I have declared a <b>local variable</b> in the print program<b>..how to pass that local variable to the form??????????</b>

Regards,

ABC XYZ

Accepted Solutions (1)

Accepted Solutions (1)

amit_khare
Active Contributor
0 Kudos

data: v_local type char10.

PERFORM ZFORM using V_LOCAL.

FORM ZFORM using P_LOCAL type char10.

.

.

.

ENDFORM.

If it requires to pass to smartform then just declare a variable in the global definition and pass the local variable while caling the smartform.

Regards,

Amit

Former Member
0 Kudos

Amit,

Thanx for ur reply,,,...

but my query is how to pass this local variable to form i.e,,ScriptForm(layout)?????????????

Regards,

ABC XYZ

Former Member
0 Kudos

Hi!

You can't pass local variables to SAPScripts.

You can pass values only in

- global variables

- ddic structures

Regards

Tamá

Answers (0)