SAP ABAP Training - Character Strings - Declaring C and N fields

Опубликовано: 25 Февраль 2026
на канале: Pete
17,470
34

SAP ABAP Training - Character Strings - Declaring C and N fields

SAP Training - BEGINNERS GUIDE TO LEARNING SAP ABAP - Declaring C and N Fields

This video will discuss character strings.

When creating programs, fields defined as character strings are almost always used. In SAP, there are two elementary data types used for character strings. These are data type C, and data type N.

Data type C.

Data type C variables are used for holding alphanumeric characters, with a minimum of 1 character and a maximum of 65,535 characters. By default, these are aligned to the left.
Begin this chapter by creating a new program. From the ABAP Editor's initial screen, create a new program, named "Z_Character_Strings". Title this "Character Strings Examples", set the Type to 'Executable program', the Status to 'Test program', the Application to 'Basis', and Save.

Create a new DATA field, name this "mychar" and, without any spaces following this, give a number for the length of the field in parentheses. Then, include a space and define the TYPE as c .....


Videos in the series:
Learn SAP ABAP - Video Playlist -    • SAP ABAP Tutorials  

Websites and Profiles:
SAP Training Courses http://www.saptraininghq.com
SAP Academy Courses http://academy.saptraininghq.com
SAP Training on Twitter:   / petermoxon  
SAP Training on Google + https://plus.google.com/u/0/+PeteMoxon
STHQ on Linked-In   / petermoxon  
STHQ on YouTube    / pcmoxon  

More SAP Resources:
SAP site http://www.sap.com
SAP community netwrok http://scn.sap.com
About SAP http://en.wikipedia.org/wiki/SAP_AG
About ABAP http://en.wikipedia.org/wiki/ABAP

Various YouTube channels on SAP:
SAP InnoJam    / channel  
SAP on YouTube    / @sap  
SAP TV on YouTube    / @saptv  
SAP SCN on YouTube    / @sapcommunity