10-05-2007 4:31 PM
HI ALL
WHAT IS THE DIFFERENCE B/W SY-CPROG & SY-REPID. ON WHAT CONDITIONS WE HAVE TO USE THEM ? THANKS
10-05-2007 4:36 PM
10-05-2007 4:36 PM
10-05-2007 4:36 PM
10-05-2007 4:36 PM
Hi,
sy-repid is the name of the current program.
sy-cprog is the name of the calling program.
10-05-2007 4:38 PM
10-05-2007 4:39 PM
hi,
sy-repid is the name of the current program.
sy-cprog is the name of the calling program.
SY-CPROG - Program that called the current external
procedure
SY-REPID - Name of the current ABAP program. For externally-called procedures, it is the name of the main program of the procedure. If you pass SY-REPID as an actual parameter to an external procedure, the formal parameter does not contain the name of the caller, but that of the main program of the procedure. To avoid this, assign SY-REPID to an auxiliary variable and use that in the call, or use the system field SY-CPROG.
sy-repid is used by normally developers. sy-cprog is used for to call some external routines. once i got the program name start with ! when use sy-cprog. But both are present in syst structure
if helpful reward points,
Aruna
10-05-2007 4:49 PM
hi,<b>
Name Type Length Use Description</b>
SYST-CPROG CHAR 40 ABAP program External procedure call.
SYST-REPID CHAR 40 ABAP program Current main program.
for more information follow this link.
http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm
regards,
Ashok Reddy