Application Development 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: 

Pattern not working

shivangi_pant
Participant
0 Kudos
233

Hi experts, I got a question. I am working on a report and to create structure from a table, I am using pattern key... It worked fine for all the tables except bsak and bsik.. I am unable to find the reason so can anyone help me here?? Thanks in advance...

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
176

I guess that by "create structure from a table, I am using pattern key" you mean to generate ABAP code by using the Pattern button in SE38/SE80, for declaring a structured data object.

e.g. for BKPF

and selecting 3 columns

you get:

DATA: BEGIN OF ts_bkpf,
        gjahr TYPE bkpf-gjahr,
        budat TYPE bkpf-budat,
        cpudt TYPE bsak-cpudt,
      END OF ts_bkpf.
Unfortunately, BSAK and BSIK are CDS Views in S/4HANA so you can't use this old Pattern button:

With Eclipse/ADT, Quick Assist and Inline Declaration, you don't need to type the component names. Otherwise you're stuck or you need to enhance the standard Pattern or create your own Patten.

2 REPLIES 2

Sandra_Rossi
Active Contributor
177

I guess that by "create structure from a table, I am using pattern key" you mean to generate ABAP code by using the Pattern button in SE38/SE80, for declaring a structured data object.

e.g. for BKPF

and selecting 3 columns

you get:

DATA: BEGIN OF ts_bkpf,
        gjahr TYPE bkpf-gjahr,
        budat TYPE bkpf-budat,
        cpudt TYPE bsak-cpudt,
      END OF ts_bkpf.
Unfortunately, BSAK and BSIK are CDS Views in S/4HANA so you can't use this old Pattern button:

With Eclipse/ADT, Quick Assist and Inline Declaration, you don't need to type the component names. Otherwise you're stuck or you need to enhance the standard Pattern or create your own Patten.

0 Kudos
176

Thanks a lot for detailed explaination.