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

report name

Former Member
0 Likes
2,416

Which system field contains the current program name... like sy-cpage contains the current page number???

5 REPLIES 5
Read only

Former Member
0 Likes
1,431

Hi venkat

Please find below the request fields(SY-CPROG), from table SYST.

INDEX Loops, number of current pass

PAGNO List creation, current page

TABIX Internal table, current line index

TFILL Internal tables, current number of lines

TOCCU Internal tables, initial main memory requirements

DBCNT DB operations, number of table lines processed

FDPOS Character strings, offset in character string

COLNO List creation, current column of list

LINCT List processing, page length of list

LINNO List creation, current line

LINSZ List creation, width of list

MACOL Print list, columns from SET MARGIN statement

MAROW List printing, lines from SET MARGIN statement

TLENG Internal tables, line width

LILLI List processing, current list line

SUBRC Return value, return value after ABAP statements

CUCOL Screens, horizontal cursor position at PAI

CUROW Screens, vertical cursor position at PAI

LSIND List processing, details list index

LISTI List processing, index of current list

STEPL Screens, current table line index

SROWS Screens, numbers of lines

SCOLS Screens, number of columns

LOOPC Screens, number of lines visible in table

TZONE Date and time, time difference from Greenwich Mean Time

DAYST Date and time, Daylight savings time flag

FDAYW Date and time, factory calendar weekday

LANGU R/3 System, current language

MODNO R/3 System, external modes index

BATCH Program running in background

BINPT Batch input, program running under batch input

CALLD ABAP program, ABAP program call mode

DYNNR ABAP program, number of current screen

DYNGR ABAP program, screen group of current screen

WTITL List creation, flag for standard page header

CPAGE List processing, current page number

DBNAM ABAP program, related logical database

MANDT R/3 System, client number from logon

PEXPI Print parameters, spool retention period

PRIMM Print parameters, print immediately

PRREL Print parameters, delete after printing

PRBIG Print parameters, selection cover page

PRNEW Print parameters, new spool request

PDEST Print parameters, output device

PLIST Print parameters, name of spool request

PRDSN Print parameters, name of spool dataset

CALLR Print list, ID for print dialog function

RTITL Print parameters, title of print program

PRREC Print parameters, recipient

PRTXT Print parameters, text for cover page

PRABT Print parameters, department on cover page

PAART Print parameters, print formatting

PRCOP Print parameters, number of copies

DBSYS R/3 System, name of central database system

SYSID R/3 System, name of R/3 System

OPSYS R/3 System, operating system of application server

PFKEY Screens, current GUI status

SAPRL R/3 System, system release

TCODE ABAP program, current transaction code

UCOMM Screens, function code triggered by PAI

SPONO Print list, spool number

DATUM Date and time, current (application server) date

SLSET Selection screens, name of variant

UZEIT Dat and time, current application server time

REPID ABAP program, current main program

UNAME R/3 System, user logon name

LSTAT List processing, list level IDs

ABCDE Constant: Alphabet (A,B,C,...)

MSGLI Messages, message line

TITLE Screens, title text

LISEL List processing, contents of selected line

ULINE Constants, horizontal line with length 255

CPROG ABAP program, caller in external procedures

LDBPG ABAP program, logical database program

TVAR0 List creation, text variable for headers

TVAR1 List creation, text variable for headers

TVAR2 List creation, text variable for headers

TVAR3 List creation, text variable for headers

TVAR4 List creation, text variable for headers

TVAR5 List creation, text variable for headers

TVAR6 List creation, text variable for headers

TVAR7 List creation, text variable for headers

TVAR8 List creation, text variable for headers

TVAR9 List creation, text variable for headers

MSGID Messages, message class

MSGTY Messages, message type

MSGNO Messages, message number

MSGV1 Messages, message variables

MSGV2 Messages, message variables

MSGV3 Messages, message variables

MSGV4 Messages, message variables

VLINE Constants, vertical bar

STACO List processing, initial column displayed

STARO List processing, first line displayed at top

DATAR Screens, display user entry

HOST R/3 System, Name of application server

DATLO Date and time, local date of user

TIMLO Date and time, local time for user

ZONLO Date and time, time zone of user

Hope this helps,

Sreedhar

Read only

Former Member
0 Likes
1,431

Hi

System field contains current program is : SY-CPROG.

Thanks

Sasmita

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,431

There are two fields that can differ

SY-CPROG ABAP program, caller in external procedures

SY-REPID ABAP program, current main program

Let's explain

SY-CPROG (MAIN program)

The name of the current program and name of the calling program within a procedure.

SY-REPID (CURRENT program)

Name of the current ABAP program.

Regards

Read only

Former Member
0 Likes
1,431

Hi,

sy-cprog - contains the main program name.

sy-repid - contains the current program name.

Regards,

sruthi

Read only

Former Member
0 Likes
1,431

SY-REPID