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

Structured Data object of Pattern in Eclipse

Former Member
2,665

Hi,

I am new to SAP  and ABAP in Eclipse. we are using SAP GUI for abap so far and recently started moving to Eclipse editor for abap

now i want to know is there any feature available in eclipse resemble to SAP GUI pattern->structure data object -> with fields from structrure.

we are using eclipse LUNA and here are the screenshots of SAP GUI

Is this feature available in eclipse also? if yes then give me some idea about it.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

ThFiedler
Product and Topic Expert
Product and Topic Expert
2,413

Hi Zubin,

sorry, these patterns are currently not available in Eclipse. We only have standard patterns like CALL METHOD and CALL FUNCTION which is available via the code completion.

We have the patterns already in the backlog. So it is a matter of time when these things are available for you.

Regards,

Thomas.


8 REPLIES 8
Read only

ThFiedler
Product and Topic Expert
Product and Topic Expert
2,414

Hi Zubin,

sorry, these patterns are currently not available in Eclipse. We only have standard patterns like CALL METHOD and CALL FUNCTION which is available via the code completion.

We have the patterns already in the backlog. So it is a matter of time when these things are available for you.

Regards,

Thomas.


Read only

ThFiedler
Product and Topic Expert
Product and Topic Expert
2,413

Hi Zubin,

additional question. In which usecases do you generate such structures in ABAP via the pattern?


Regards,

Thomas.

Read only

Former Member
0 Likes
2,413

while creating report, we often use pattern in this way. Usually in report we dont need all columns from specific table, instead we take few number of  columns from more than one table for our calculation etc  for that we generate above structure and Replace "DATA" With "TYPES".

so this types helps to create internal table and work area of relative type.

Read only

Former Member
0 Likes
2,413

Hi,

Even we use the feature a lot in our development scenarios, it helps us to create big structures easily and quickly rather than writing it individually in eclipse. I hope this feature will be available in eclipse soon.

Read only

0 Likes
2,413

Hi,

what exactly is the new structure and table type used for?

I could imagine something like this:

SELECT fldate planetype FROM sflight INTO TABLE itab.

where you need a structure and a table type declaration like:

  TYPES: BEGIN OF line,

           fldate TYPE sflight-fldate,

           planetype TYPE sflight-planetype,

         END OF line.

     

  DATA itab TYPE STANDARD TABLE OF line.

or is your use case different?

Regards,

Michael

Read only

Former Member
0 Likes
2,413

@

  

TYPES :BEGIN OF TY_VBAK,
        VBELN TYPE VBAK-VBELN,
        ERDAT TYPE VBAK-ERDAT,
        AUDAT TYPE VBAK-AUDAT,
        VBTYP TYPE VBAK-VBTYP,
        NETWR TYPE VBAK-NETWR,
        WAERK TYPE VBAK-WAERK,
        BUKRS_VF TYPE VBAK-BUKRS_VF,
      END OF TY_VBAK,

  

DATA : IST_VBAK TYPE TABLE OF TY_VBAK,
            WA_VBAK TYPE TY_VBAK.

   SELECT VBELN ERDAT AUDAT
       VBTYP NETWR WAERK
       BUKRS_VF
       FROM VBAK
       INTO TABLE IST_VBAK.

Read only

0 Likes
2,413

With Release 7.40 SP5 and higher you can use the new Open SQL syntax and just write:

SELECT fldate, planetype FROM sflight INTO TABLE @DATA(itab).

which implicitely declares the variable itab.

followed by...

LOOP AT itab INTO DATA(line).

which implicitely declares the variable line

or ...

LOOP AT itab ASSIGNING FIELD-SYMBOL(<line>).

which implicitely declares the field-symbol <line>.


Would that help?


Regards,

Michael

Read only

Former Member
2,413

@Michael: It would be helpfull but we are using lower version 7.3 and there is no chance for upgradation in near future. so any other idea?