Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Define Local variable in Dialog Program ?

former_member1137458
Participant
0 Likes
1,167

MODULE USER_COMMAND_9000 INPUT.

DATA: LV_VAR TYPE C.

ENDMODULE.                

MODULE VALIDATION INPUT.

   DATA: LV_VAR TYPE C.    " Error:      LV_VAR" has already been declared

ENDMODULE.

It's global variable? Why?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

Hi Miu,

You can not define a local variable in MODULE, unless,

MODULE  user_command.

  PERFORM f_xxx.

MODULE.

FORM f_xxx.

DATA: lv_var.  "this is a local variable.

ENDFORM.

You`s better F1 on 'MODULE', you will see explanation on this.

regards,

Archer

1 REPLY 1
Read only

Former Member
0 Likes
570

Hi Miu,

You can not define a local variable in MODULE, unless,

MODULE  user_command.

  PERFORM f_xxx.

MODULE.

FORM f_xxx.

DATA: lv_var.  "this is a local variable.

ENDFORM.

You`s better F1 on 'MODULE', you will see explanation on this.

regards,

Archer