Skip to Content
avatar image
Former Member

Mesh Work With Any Table ?

Dear Sir,

I am practicing mesh concept . i have defined mesh structure with sorted tables . here i want to understand mesh work with only sorted tables ?. i found the example in sap portal .

Here is my example

TYPES: BEGIN OF ty_cbhrd , ipnum TYPE /irm/ipcbnum, payer TYPE /irm/ip_payer, END OF ty_cbhrd, tty_cbhdr TYPE STANDARD TABLE OF ty_cbhrd .".

TYPES: BEGIN OF ty_cbitm , ipnum TYPE /irm/ipcbnum, matnr TYPE matnr, sbelnr TYPE /irm/ip_sbelnr, END OF ty_cbitm, tty_cbitm TYPE STANDARD TABLE OF ty_cbitm ."WITH UNIQUE KEY ipnum.

TYPES: BEGIN OF MESH ty_cbmesh , lt_cbhdr_m TYPE tty_cbhdr ASSOCIATION lv_cbhdr_a TO lt_cbitm_m ON lt_cbhdr_m = ipnum , lt_cbitm_m TYPE tty_cbitm ASSOCIATION cbitm_a TO lt_cbhdr_m ON ipnum = lt_cbitm_m, END OF MESH ty_cbmesh.

the above statement giving error when i check the syntax .

Please correct the above statement .

Thank you in Advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 20, 2017 at 08:05 AM

    You must not use generic table types. Your's is generic, missing key.

    Add comment
    10|10000 characters needed characters exceeded