2023 Mar 21 2:10 PM
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...
2023 Mar 21 7:47 PM
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.
2023 Mar 21 7:47 PM
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.
2023 Mar 22 11:08 AM