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: 

how can i solve this badi ?

Former Member
0 Kudos

Hi abapers ,

am learning badi,

How can i solve this requirement can any explain me in detailed view.

am getting confusion which parameters and methods i have to use in the interface methods ?

my requirement is to fulfill this.

Add-In ME_REQ_HEADER_TEXT which enables you to specify whether the header text of the reference document is to be copied as well when purchase requisitions are copied.

Thanks and Regards,

Rajesh k.

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos

B,

Use method is COPY_HEADER_TEXT implement BADI from SE19.

you need to write Oops code inside this.

you code some look like:

DATA:
w_data TYPE mepoheader,


CALL METHOD im_mepoheader->get_data
RECEIVING
re_data = w_data.

Here is the steps to implement BADI
 
1. Go to Transaction: SE19. and Enter the implementation Name:
2. Automatically one popup comes for the Defination name: Pass " Vendor_add_data".
3. One Screen will come Enter the Description of the implementation.
4. Save the BADI.
5. There is an activate button on the tool bar Click on the Activate button.. It wil activate your BADI.
6. Now Click on Interface TAb and Go to the desired Method where you would like to write the code say SAVE_DATA.
7. Put a break point to chekc if control stops at this point. Now save Method and ACtivate..
8. come out and exectute the transaction XK01/XK02 and check whether it stops or not. if yes that means you have succesfully implement the BADI 
Now you can write your code.

with screen shot:

http://www.saptechnical.com/Tutorials/ExitsBADIs/ExitsMain.htm

Amit.

1 REPLY 1

former_member181995
Active Contributor
0 Kudos

B,

Use method is COPY_HEADER_TEXT implement BADI from SE19.

you need to write Oops code inside this.

you code some look like:

DATA:
w_data TYPE mepoheader,


CALL METHOD im_mepoheader->get_data
RECEIVING
re_data = w_data.

Here is the steps to implement BADI
 
1. Go to Transaction: SE19. and Enter the implementation Name:
2. Automatically one popup comes for the Defination name: Pass " Vendor_add_data".
3. One Screen will come Enter the Description of the implementation.
4. Save the BADI.
5. There is an activate button on the tool bar Click on the Activate button.. It wil activate your BADI.
6. Now Click on Interface TAb and Go to the desired Method where you would like to write the code say SAVE_DATA.
7. Put a break point to chekc if control stops at this point. Now save Method and ACtivate..
8. come out and exectute the transaction XK01/XK02 and check whether it stops or not. if yes that means you have succesfully implement the BADI 
Now you can write your code.

with screen shot:

http://www.saptechnical.com/Tutorials/ExitsBADIs/ExitsMain.htm

Amit.