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

SY-REPID??????

Former Member
0 Likes
2,644

Dear all,

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

Thanks.

Regards.

Farooq

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,808

hi,

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

Dear all,

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

Thanks.

Regards.

Farooq

11 REPLIES 11
Read only

Former Member
0 Likes
1,809

hi,

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

Read only

Former Member
0 Likes
1,808

Hi,

Regards

Bala

Read only

Former Member
0 Likes
1,808

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.

Read only

Former Member
0 Likes
1,808

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.

Read only

Former Member
0 Likes
1,808

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.

Read only

Former Member
0 Likes
1,808

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

We use it in areas like MPP.

Cheers.

Read only

former_member188827
Active Contributor
0 Likes
1,808

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

Read only

Former Member
0 Likes
1,808

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

Read only

0 Likes
1,808

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.

Read only

former_member188827
Active Contributor
0 Likes
1,808

use..

write sy-repid.

Read only

Former Member
0 Likes
1,808

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.