Application Development 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: 

SY-REPID??????

Former Member
0 Kudos

Dear all,

Pllz tel me abt all concerned to the system field <b>SY-REPID</b>.

Thanks.

Regards.

Farooq

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

sy-repid is used to idenfy the object , generally this you use in alv's to aasign the program name to field catelog

11 REPLIES 11

Former Member
0 Kudos

hi,

sy-repid is used to idenfy the object , generally this you use in alv's to aasign the program name to field catelog

Former Member
0 Kudos

Hi,

Regards

Bala

Former Member
0 Kudos

Its the report name.

The system field SY-REPID is not part of SYST or SY. Instead, every program contains the predefined constants SY-REPID and SYST-REPID, which both contain the name of the corresponding program. Furthermore, there are two predefined types of the same name, SY-REPID and SYST-REPID.

All system fields are addressed using SY field name and their types using SYST field name.

<b>SY-REPID

Name of current ABAP program. With externally called procedures this is the name of the procedure’s main program.

If SY-REPID was transferred to an external procedure as an actual parameter before Release 6.10, the formal parameter was not given the name of the caller, but the name of the procedure’s main program. SY-REID had to be transferred to an auxiliary variable before the call or you had to use SY-PROG.

As of Release 6.10, SY-REPID is a separate constant that is no longer part of the structure SYST or SY. It can be transferred to external procedures directly</b>.

Rfer this link

http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm

Hope this solves ur problem, reward points.

Former Member
0 Kudos

Hi Farooq,

The system field SY-REPID is not part of SYST or SY. Instead, every program contains the predefined constants <b>SY-REPID and SYST-REPID, which both contain the name of the corresponding program.</b> Furthermore, there are two predefined types of the same name, SY-REPID and SYST-REPID.

Former Member
0 Kudos

Hi Farooq,

1)SY-REPID -> Name of the current ABAP Program.

2)With externally called procedures this is the name of the procedure’s main program.

3)The system field SY-REPID is not part of SYST or SY. Instead, every program contains the predefined constants SY-REPID and SYST-REPID, which both contain the name of the corresponding program.

4) It can have upto 40 character long

Regards,

-Priyanka.

Former Member
0 Kudos

Sy-repid holds the name of the program currently running.

We use it in areas like MPP.

Cheers.

former_member188827
Active Contributor
0 Kudos

every program contains the predefined constants SY-REPID and SYST-REPID, which both contain the name of the corresponding program.

SY-REPID

type length description

CHAR 40 Current main program

Former Member
0 Kudos

How to see if so & so is there in SY-REPID & SYST-REPID of a particular Program????????

0 Kudos

Hi farooq,

1. The structure SYST (which we can see from se11 also),

(also called as SY)

2. is available in all programs, by default,

and its values are filled by the r/3 system auatomatically.

3. one of its field is REPID,

which contains the current, running program name.

regards,

amit m.

former_member188827
Active Contributor
0 Kudos

use..

write sy-repid.

Former Member
0 Kudos

hi,

sy-repid is the system defined variable which will hold the current program

name, where ever u want to use the current program name u can use this

variable. u can find all system defined variable in structure syst.

regards,

Praveen.