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

Flat structure or Flat character

0 Likes
1,734

what is the meaning of flat character in the below sentence.

"This statement sets the content of the SPA/GPA parameter specified in piduser memory to the content of the data object dobj. The ID pid must be a flat character-like field that contains no more than 20 characters and does not consist solely of blanks. pid is case-sensitive. dobj expects a flat character-like field whose binary content is passed in an unconverted format."

4 REPLIES 4
Read only

gayathri_jayajeevan2
Participant
0 Likes
1,291

Hi,

Flat char field is "TYPE C" field. in ur case "Field1 TYPE C LENGTH 20."

Thank you.

Read only

former_member1716
Active Contributor
0 Likes
1,291

Mohd Ameen Bari

Can you share the code with us on this issue?

Read only

0 Likes
1,291

the statement is from sap documentation on set parameter and get parameter. I want to understand the context of flat in the statement.

Read only

Sandra_Rossi
Active Contributor
1,291

Link: ABAP Documentation - SET PARAMETER

It refers to flat ("All elementary data types except string and xstring are flat"), elementary ("Data type of fixed or variable length that is not structured, not a table type, and not a reference type"), character-like data type ("Data type whose data objects contain characters encoded according to the current code page. The real character-like data types are text field, numeric text field, and text string. Alongside these, date type and time type are special character-like data types. The associated generic abap type is clike").

Consequently, flat character-like fields are the types C (text field), N (numeric text field), D (date type) and T (time type).