Application Development and Automation 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: 
Read only

BADI

Former Member
0 Likes
710

Hi Experts,

I am doing BADI Definition and Implementation are well.

but i could not get output from report program.

see below it..

parameters: ctry(2) type c.

DATA: handle TYPE REF TO z_badi_calc_vat,

sum TYPE p,

vat TYPE p,

percent TYPE p.

sum = 50.

GET BADI handle FILTERS Country = ctry.

CALL BADI handle->get_vat

EXPORTING im_amount = sum----


> Error

IMPORTING ex_amount_vat = vat -


> Error

ex_percent_vat = percent.

WRITE: 'percentage:', percent, 'VAT:' ,vat.

how is changed it?

Plz reply me soon

Regards,

S.Suresh.

Hi Experts,

I am doing BADI Definition and Implementation are well.

but i could not get output from report program.

see below it..

parameters: ctry(2) type c.

DATA: handle TYPE REF TO z_badi_calc_vat,

sum TYPE p,

vat TYPE p,

percent TYPE p.

sum = 50.

GET BADI handle FILTERS Country = ctry.

CALL BADI handle->get_vat

EXPORTING im_amount = sum----


> Error

IMPORTING ex_amount_vat = vat -


> Error

ex_percent_vat = percent.

WRITE: 'percentage:', percent, 'VAT:' ,vat.

how is changed it?

Plz reply me soon

Regards,

S.Suresh.

4 REPLIES 4
Read only

Former Member
0 Likes
685

What is the error you are getting?

Greetson

Read only

Former Member
0 Likes
685

check your exporting parameter in BADI ..

im_amount ..

Is sum declared same as im_amount ..

Read only

Former Member
0 Likes
685

Are you getting the syntax check error or runtime error.

what is the error.

CALL BADI handle->get_vat

EXPORTING im_amount = sum----


> Error

IMPORTING ex_amount_vat = vat -


> Error

ex_percent_vat = percent.

You declare the parameters SUM and VAT as definied in the BADI method.

Read only

0 Likes
685

hi Vijay Babu Dudla,

This program is called Runtime error.

how is change it?

Reply me soon,

S.Suresh.