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

text-001

Former Member
0 Likes
5,312

hi all,

when we click on text-001 we get symbols, selection texts and list headings. Can anyone explain what is the use of list headings with example. What is the text-001 called as.

what is the difference between the following:

1. data itab_wa type line of itab and type itab_wa like line of itab.

2. type v_matnr like mara-matnr and data v_matnr like mara-matnr

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,358

List heading is used to write column headings.

http://help.sap.com/saphelp_nw04/helpdata/en/e3/960a05eb0711d194d100a0c94260a5/content.htm

text-001 is called <b>Text Element.</b>

Difference b/w TYPE & LIKE:

http://219.153.41.162/down4/20070625/25135751683.pdf

Hope this is helpful.

Regards,

Anjali

hi all,

when we click on text-001 we get symbols, selection texts and list headings. Can anyone explain what is the use of list headings with example. What is the text-001 called as.

what is the difference between the following:

1. data itab_wa type line of itab and type itab_wa like line of itab.

2. type v_matnr like mara-matnr and data v_matnr like mara-matnr

thanks

4 REPLIES 4
Read only

Former Member
0 Likes
2,359

List heading is used to write column headings.

http://help.sap.com/saphelp_nw04/helpdata/en/e3/960a05eb0711d194d100a0c94260a5/content.htm

text-001 is called <b>Text Element.</b>

Difference b/w TYPE & LIKE:

http://219.153.41.162/down4/20070625/25135751683.pdf

Hope this is helpful.

Regards,

Anjali

Read only

Former Member
0 Likes
2,358

When we click on text-nnn, we get

1. Text symbols : here you can give the description of the number given.

2.Selection texts : here you give the description of selection screen fields.

<b>3.List headings : If you specify anything here, it will be displayed as report heading of the output.</b>

<b>Diff</b>

<b>so you are asking the difference between types and data</b>

like -> used for refering existing data elements in data dictionary or in sap

type -> used for refering existing data types in sap.

types: used for creating used defined structure of tables which has fields from more tahn one table.

diff b/w types and type in creation of internal tables is that when u create a table with types then u can use same for work area creation also.

ex:

TYPES : BEGIN OF t_vbap,

vbeln1 LIKE vbeln,

posnr LIKE posnr,

kwmeng LIKE kwmeng,

netpr LIKE netpr,

netwr LIKE netwr,

werks LIKE werks,

matnr LIKE matnr,

arktx LIKE arktx,

END OF t_vbap.

data: itab1 type t_vbap

wa_itab1 type t_vbap.

when type is used then u have to create a defintion of work area for another time when internal table doesnt have headr line as

ex:

DATA : BEGIN OF t_vbap OCCURS 0,

vbeln1 LIKE vbap-vbeln,

posnr LIKE vbap-posnr,

kwmeng LIKE vbap-kwmeng,

netpr LIKE vbap-netpr,

netwr LIKE vbap-netwr,

werks LIKE vbap-werks,

matnr LIKE vbap-matnr,

arktx LIKE vbap-arktx,

END OF t_vbap.

DATA : BEGIN OF wa_vbap,

vbeln1 LIKE vbap-vbeln,

posnr LIKE vbap-posnr,

kwmeng LIKE vbap-kwmeng,

netpr LIKE vbap-netpr,

netwr LIKE vbap-netwr,

werks LIKE vbap-werks,

matnr LIKE vbap-matnr,

arktx LIKE vbap-arktx,

END OF wa_vbap.

please go through the link

http://www.sapdevelopment.co.uk/tips/tips_itab.htm

Have a look on

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fb2358411d1829f0000e829fbfe/frameset.htm

TYPES is used when you want to create a struture

DATA is used when you want to create an internal table or simple data types

TYPES : begin of ty_itab,

matnr like mara-matnr,

maktx like makt-maktx,

end of ty_itab.

data : itab type table of ty_itab.

Read only

Former Member
0 Likes
2,358

Hi,

Regarding following questions -

what is the difference between the following:

1. data itab_wa type line of itab and type itab_wa like line of itab.

2. type v_matnr like mara-matnr and data v_matnr like mara-matnr

Here is the answer -

he syntax and meaning of the additions TYPE and LIKE are completely equal for both statements with the exception that TYPES creates an independent reference type, whereas DATA creates a bound reference type.

For further details and additions to this topic, see the keyword documentation.

Check link

http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2ff3358411d1829f0000e829fbfe/frameset.htm

for more details.

Read only

Former Member
0 Likes
2,358

hi Samir,

when you click on tex-001 u get screen .Under Text symbols you write in columns :

Symbol Text

001 Purchase order(this will become the heading on o/p screen).

In selection text

Name Text

(name will be Under this write the name for variable u r

filled automatically by variable using.

u r using).

Look at eg below -->

selection-screen Begin of block block1 with frame title text-111.

select-options : S_EBELN for EKPO-EBELN.

selection-screen end of block block1.

Under text symbol i wrote :

Symbol Text

001 Purchase order

Under selection scrreen i wrote :

Name Text

S_EBELN PURCHASE ORDER NO :

Coming to 2 nd question :

when u use data itab_wa type line of itab : here type makes itab_wa structure similar to that of itab.

when u use data itab_wa like line of itab. : here like makes itab_wa an internal table that stores temporary data in that program.

Thanks ...Plz reward if useful.