cancel
Showing results for 
Search instead for 
Did you mean: 

replacement for obsolete field groups in ECC 6

Former Member
0 Kudos
214

Hi ,

I am working in a upgrade project from ecc4.7 to ecc6

So i am finding difficulties for

replacing FIELD groups.

FIELD-GROUPS : HEADER, DETAIL.

INSERT : w_EBAN_TMP-EKORG

w_EBAN_TMP-EKGRP

w_EBAN_TMP-BANFN "Requisition Number

INTO HEADER.

INSERT w_EBAN_TMP-EBELN "Purchase Order Number

w_EBAN_TMP-EKORG "Purchase Org.

w_EBAN_TMP-EKGRP "Purchase Group

w_EBAN_TMP-BEDAT "Purchase Order Creation Date

w_EBAN_TMP-BADAT "Requisition Creation Date

w_EBAN_TMP-ESTKZ "(Manually or MRP)

w_EBAN_TMP-MATNR "Part number

w_EBAN_TMP-BANFN "Requisition Number

w_EBAN_TMP-BADAT "PO Creation Date

w_EBAN_TMP-NAME1 "Vendor Name

TOT "used to get the avg

TOTAL05 " <= 05 days

TOTAL10 " <= 10 days

TOTAL15 " <= 15 days

TOTAL20 " <= 20 days

TOTAL25 " <= 25 days

TOTAL30 " <= 30 days

TOTAL31 " >= 31 days

VALUE05

VALUE10

VALUE15

VALUE20

VALUE25

VALUE30

VALUE31

VIAMAN "Created Manually

VIAMRP "Created via MRP

w_EBAN_TMP-URGENT "Urgent mark "AB25385

INTO DETAIL.

WHILE ,IN EXTENDED SYNTAX CHECKING A MESSAGE IS GIVING THAT .

" " FIELD-GROUPS ARE NO LONGER USED.

The current ABAP command is obsolete

Field groups cannot be created in the OO context.

Internal Message Code: FIELD-GROUPS 000

(The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET

EXTENDED CHECK OFF/ON) ""

Accepted Solutions (0)

Answers (2)

Answers (2)

andreas_mann3
Active Contributor
0 Kudos

command filed-groups is used in standard report (e.g. RABEST01) too!!!

so, where is the problem???

grx

A.

raymond_giuseppi
Active Contributor
0 Kudos

Extract from [Type Definitions and Data Declarations|http://help.sap.com/abapdocu_70/en/ABENABAP_OBJECTS_DIFF_TYPES_DATA.htm]

No Definition of Field Groups in Methods

The statement FIELD-GROUPS is not allowed in methods.

Error message in methods if the following syntax is used:

METHOD ...

...

FIELD-GROUPS fg.

...

ENDMETHOD.

Reason:

An [extract dataset|http://help.sap.com/abapdocu_70/en/ABENEXTRACT_DATASET_GLOSRY.htm] currently exists only as a global object of the [main program|http://help.sap.com/abapdocu_70/en/ABENFRAME_PROGRAM_GLOSRY.htm]. Therefore the field groups can only be defined globally in the main program. However, the definition of the field group structure, which is enerated at runtime by the statement INSERT ... INTO fg, can also be executed in methods.

(SCI is "picky")

Regards,

Raymond

Former Member
0 Kudos

you could either define a local structure with the same structure as your field group or create a global table type to replace your field group through se11 and then declare internal tables of these types.