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 explanation

Former Member
0 Likes
1,037

Hi,

Till now i know that keeping * in front of any line will disable that line from the code,

but i have seen * in one of the code can anyone please explain me the line which

is in bold remember * is not making my line disable.

AT SELECTION-SCREEN ON PA_XGBAF.

IF NOT PA_XGBAF IS INITIAL.

*ANLA0-XGBAF = ANLA0-XGBAF = PA_XGBAF.

ENDIF.

Edited by: Venkat Reddy on Sep 21, 2009 2:36 PM

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
974

tables:mara.

tables:*mara.

*both act as work area.

select single * from mara.

select single * from *mara.

or

*mara-matnr = 'X'.

mara-matnr = 'Y'.

i hope you got it

*mara can be used seperately and

mara can be used separately.

in your case

*ANLA0-XGBAF

ANLA0-XGBAF

both will have tha value 'X'.

Hi,

Till now i know that keeping * in front of any line will disable that line from the code,

but i have seen * in one of the code can anyone please explain me the line which

is in bold remember * is not making my line disable.

AT SELECTION-SCREEN ON PA_XGBAF.

IF NOT PA_XGBAF IS INITIAL.

*ANLA0-XGBAF = ANLA0-XGBAF = PA_XGBAF.

ENDIF.

Edited by: Venkat Reddy on Sep 21, 2009 2:36 PM

7 REPLIES 7
Read only

Former Member
0 Likes
974

Hi ,

  • can also be used in a screen painter , where it is the way a particular screen element is accessed in the program / module pool

Thanks .

Read only

Former Member
0 Likes
974

are you sure * is the beginning column on the line? else you can use "

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
975

tables:mara.

tables:*mara.

*both act as work area.

select single * from mara.

select single * from *mara.

or

*mara-matnr = 'X'.

mara-matnr = 'Y'.

i hope you got it

*mara can be used seperately and

mara can be used separately.

in your case

*ANLA0-XGBAF

ANLA0-XGBAF

both will have tha value 'X'.

Read only

Former Member
0 Likes
974

*ANLA0 just refers to the work area of the table ANLA0.

Read only

0 Likes
974

only when * is not the beginning of the line

Read only

Sm1tje
Active Contributor
0 Likes
974

First of all, this statement is obsolete so do not use it any longer. This is probably an extract of an old program.

It was used to declare an additional workarea for that particular database table and could be used like this:


tables: mara, *mara.
select single * from mara where...
select single * from *mara where...

Read only

Former Member
0 Likes
974

Hi all thks for your answer i got known that when * in frnt of any table or structure will be acting as a workarea.