Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BADI Syntax Error

former_member143179
Participant
0 Kudos

Dear Sir,

I am getting following Syntax error while using GET_DATA( ) method :

"The format of field specification "IM_ITEM->GET_DATA( )" is not supported ...

The code , I am using is as :

method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.

DATA: is_mepoitem TYPE mepoitem ,

wa_bwtar TYPE mepoitem-bwtar,

wa_matnr TYPE mepoitem-matnr .

is_mepoitem = im_item->get_data().

wa_matnr = is_mepoitem-matnr .

wa_bwtar = is_mepoitem-bwtar .

endmethod.

I request sap gurus , to kindly guide as how to remove the above error .

Regards

B Mittal

2 REPLIES 2

former_member186099
Contributor
0 Kudos

DATA: is_mepoitem TYPE mepoitem,

wa_bwtar TYPE mepoitem-bwtar,

wa_matnr TYPE mepoitem-matnr.

CALL METHOD im_data->get_data()

RECEIVING

re_data = is_mepoitem.

wa_bwtar = is_mepoitem-bwtar.

wa_matnr = is_mepoitem-matnr.

Reward points if you find it helpful.

Regards,

J.Prasanna

Former Member
0 Kudos

Hi Mittal,

Your code is correct,but you have not given space in brackets

is_mepoitem = im_item->get_data( ).

where i have bold.

Now your problem will resolve.

Regards

Kiran Sure