SYSTEM VARIABLE & STRING OPERATIONS????

SYSTEM VARIABLE & STRING OPERATIONS????

Let's start with the system variable.

A system variable refers to a predefined variable provided by the SAP system itself. These variables are automatically available for use in ABAP programs and can provide information about the system or the current execution environment.

SYST is the structure for the system field. All the system fields are addressed using the SY field name.

The various system variables?are?as?follows:

SY-SUBRC= System variable for the return code (successful =0 not successful other than 0).

SY-TABIX= It returns the current Line index inside a loop.

SY-INDEX= IT returns the current Line index inside the do and while loop.

SY-DATUM= System variable for?the current?date (Internal format- yyyy-mm-dd).

SY-UNAME = It returns the login name of?the?user.

SYSTEM VARIABLES
APPLYING IN CODE


RESULT.

Let us now read what is string operations.

In SAP ABAP, string operations refer to the various functions and methods available to manipulate strings (sequences of characters). These operations are essential for tasks such as searching within strings, extracting substrings, concatenating strings, converting between different formats, and more. Here are some common string operations in SAP ABAP:

  1. CONCATENATE: This keyword is used to concatenate two or more strings together into a single string.

CONCATENATE
OUTPUT.

SPLIT: This keyword splits a string into components based on a delimiter and stores them in an internal table.

SPLIT
OUTPUT

WE WILL CONTINUE IN THE NEXT ARTICLE

COMING SOON??????

THANKS FOR READING








Manish Jha

IBM Data Scientist | Microsoft Certified Data Analyst | AI & Machine Learning| Researcher in Data Science & GenAI | Microsoft Azure | NLP & Cybersecurity | Coventry University London

8 个月

Congrats Pallavi ??

要查看或添加评论,请登录

Pallavi Kumari的更多文章

  • Module Pool Vs ALV (ABAP List Viewer)??

    Module Pool Vs ALV (ABAP List Viewer)??

    what is a module pool, what is the purpose of a module pool, and how it is different from alv? In SAP, Module Pool and…

  • CLASSICAL REPORT EVENT??

    CLASSICAL REPORT EVENT??

    WHAT IS A CLASSICAL REPORT EVENT?? classical reports are basic reports that generate lists of data. They use a…

  • JOIN

    JOIN

    WHAT IS JOIN ?? In SAP ABAP, a "join" refers to the process of combining records from two or more database tables based…

  • SAP ABAP CONCEPTS??

    SAP ABAP CONCEPTS??

    SAP ABAP internal table with header line or without header line. In SAP ABAP, internal tables can be defined with or…

  • TYPES OF INTERNAL TABLES ??

    TYPES OF INTERNAL TABLES ??

    In SAP ABAP, internal tables are a fundamental data structure used to store and manipulate data within programs. There…

  • INTERNAL TABLE OPERATIONS??

    INTERNAL TABLE OPERATIONS??

    INTERNAL TABLE: Internal table operations typically refer to actions performed on tables that are managed within the…

  • INTERNAL TABLES & WORKAREA??

    INTERNAL TABLES & WORKAREA??

    WHAT IS INTERNAL TABLE???♀? In SAP ABAP (Advanced Business Application Programming), an internal table is a data…

  • STRING OPERATIONS??

    STRING OPERATIONS??

    STRING OPERATIONS- CONDENSE In SAP ABAP, the statement is used for string operations to remove leading and trailing…

  • L??????P

    L??????P

    After knowing about the IF statement and CASE Statement, now we will know about their differences. IF VS CASE STATEMENT…

    1 条评论
  • SAP ABAP

    SAP ABAP

    Conditional Statement?? In SAP ABAP, conditional statements are used to control the flow of the program execution based…

社区洞察

其他会员也浏览了