Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problems with REUSE_ALV_FIELDCATALOG_MERGE

Hi all!!

How is it going?

I have this struct:

DATA: BEGIN OF wa_datos.

DATA: kunnr TYPE kunnr,

subcu TYPE zsubc,

desti TYPE kunwe,

vbeln TYPE vbeln,

zterm TYPE dzterm,

dpp TYPE zdescpp,

inco1 TYPE inco1,

sdabw TYPE sdabw,

zepc TYPE zepc,

ntgewk TYPE ntgew_ap,

volumk TYPE volum_ap,

kwmeng LIKE vbap-kwmeng,

gewei TYPE gewei,

etdat TYPE etdat, "Fecha de envio

arbpl TYPE arbpl,

bwtar TYPE bwtar_d, " Calidad

tarbas TYPE ztar,

recacb TYPE zacb,

reccan TYPE zrct,

desper TYPE zdsp,

kzwi1 LIKE vbap-kzwi1,

dtoseg TYPE zdca,

dtocom TYPE zdto,

dtoinc TYPE zdin,

prcnet TYPE znet,

netoud TYPE znet,

dtorap TYPE zrap,

sbrcrt TYPE zscc,

sbrpal TYPE zscp,

sbrrpd TYPE zsrv,

ntgew TYPE ntgew_ap,

volum TYPE volum_ap

.

DATA: END OF wa_datos.

And an itab with it:

DATA it_datos LIKE wa_datos OCCURS 0 WITH HEADER LINE.

I'm trying to do a fieldcatalog, but the function only shows a few fields...

  • CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

  • EXPORTING

  • i_program_name = 'ZRPSD019_01'

  • i_internal_tabname = 'IT_DATOS'

  • i_client_never_display = 'X'

  • i_inclname = sy-repid

  • CHANGING

  • ct_fieldcat = gt_fieldcat[].

What's the problem?

Thanks a lot!

Tags:
Former Member
replied

No need to do manually..

Don;t use TYPE use LIKE Change all the fields Definition using LIKE instead of Type.

DATA: BEGIN OF it_datos occurs 0.

DATA: kunnr LIKE KNA1-kunnr,

subcu LIKE zsubc,

desti TYPE kunwe,

vbeln TYPE vbeln,

zterm TYPE dzterm,

dpp TYPE zdescpp,

inco1 TYPE inco1,

sdabw TYPE sdabw,

zepc TYPE zepc,

ntgewk TYPE ntgew_ap,

volumk TYPE volum_ap,

kwmeng LIKE vbap-kwmeng,

gewei TYPE gewei,

etdat TYPE etdat, "Fecha de envio

arbpl TYPE arbpl,

bwtar TYPE bwtar_d, " Calidad

tarbas TYPE ztar,

recacb TYPE zacb,

reccan TYPE zrct,

desper TYPE zdsp,

kzwi1 LIKE vbap-kzwi1,

dtoseg TYPE zdca,

dtocom TYPE zdto,

dtoinc TYPE zdin,

prcnet TYPE znet,

netoud TYPE znet,

dtorap TYPE zrap,

sbrcrt TYPE zscc,

sbrpal TYPE zscp,

sbrrpd TYPE zsrv,

ntgew TYPE ntgew_ap,

volum TYPE volum_ap,

DATA: END OF it_datos.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_program_name = sy-repid

i_internal_tabname = 'IT_DATOS'

i_inclname = sy-repid

CHANGING

ct_fieldcat = gt_fieldcat[].

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question