Skip to Content
-2

Mesh Work With Any Table ?

Dec 20, 2017 at 06:50 AM

48

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Horst Keller
Dec 20, 2017 at 08:05 AM
2

https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap_meshes.htm

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

Share
10 |10000 characters needed characters left characters exceeded