SAP for Retail Discussions
Join conversations about personalization, omnichannel strategies, and operational excellence in retail using SAP for Retail software.
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Table within a Method in ABAP

0 Kudos

Hi,

I have created a Z Table in POSDM for a BADI enhancement. I would like to use the table data for a validation within BADI.

But I am getting error as 'Table cannot be used within Method'.

Any suggestions or Syntax on how to use tables within a Method.

Thanks,

Venkatesan.

2 REPLIES 2

Former Member
0 Kudos

Hi,

How are you using the table.

Is it in parameter or a declaration for work ara /Internal table.

If you have used declaration TABLES: ztable

then it will not work as per ABAP objects standards.

Use DATA: workarea type ztable,

                  itab type standard table of ztable.


Use select query to validate data from ztable.

Regards,

Sree

Former Member
0 Kudos

Hi ,

      Please refer below post hope it helps...

http://scn.sap.com/thread/363224

BR

Ajaya Kr. Mishra