2008 Jul 31 8:44 AM
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.
2008 Jul 31 9:00 AM
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.
2008 Jul 31 9:00 AM
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.