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

Need clarification

muditbathwal621
Explorer
0 Likes
730

Hi All,

Can any bady tell me the meaning of this constant declaration:

CONSTANTS: l_c_reguh(15) VALUE '(RFFOUS_C)REGUH'

Awaiting for prospective solution.

Cheers,

Mudit

Please use a descriptive title in your thread.

Edited by: Rob Burbank on Sep 2, 2010 9:06 AM

4 REPLIES 4
Read only

brad_bohn
Active Contributor
0 Likes
701

It's a constant with a program fieldname assigned to it - work area REGUH from program RFFOUS_C. Presumably, it's used in a field symbol assignment later in the program...

Read only

0 Likes
701

Thanks Brad for the precise & to the point answer.

<<Exchanging personal information is not allowed.>>

Edited by: kishan P on Sep 3, 2010 11:10 AM

Read only

Former Member
0 Likes
701

Hello,

It is just assigning the value.

l_c_reguh = '(RFFOUS_C)REGUH'.

No special meaning.

Please let me know the scenario where it is used.

Thanks.

Ramya.

Read only

agnihotro_sinha2
Active Contributor
0 Likes
701

Example:


DATA: v_string TYPE string VALUE '(SAPFP50M)PS[]'." has to be done this way as PS is table with header line

TYPES: BEGIN OF ty_ps.
        INCLUDE STRUCTURE prelp AS prelp.
TYPES:   opera,
        auth.
TYPES: END OF ty_ps.

TYPES: ty_t_ps TYPE STANDARD TABLE OF ty_ps.

FIELD-SYMBOLS: <fs_ps0210> TYPE ty_t_ps,
               <fs1>       TYPE ty_ps.

ASSIGN (v_string) TO <fs_ps0210>.

LOOP AT <fs_ps0210> ASSIGNING <fs1> WHERE infty EQ '0210'.
   <fs1>-begda = sy-datum.
ENDLOOP.