BADI implementation for transaction FB60

...Previous

Step9:

After finding the BADI and method in which you want to implement the code. Goto SE19 and create implementation for that particular BADI.

Step10:

Press ‘Create Implementation’ button   and   press ‘Enter’.

Step11:

Enter implementation short text and give the ‘Filter Type’ also.

Step12:

Click on interface tab.

Step13:

Double click on the method in which you want to write code as decided. You will see the following.

Press ‘Yes’ button and Save it.

Step14:

Write the following code in the method.

method IF_EX_FAGL_DERIVE_SEGMENT~GET_SEGMENT.
  
data  lt  type COBL .

 
select SINGLE XBLNR from bkpf into lt WHERE XBLNR = i_COBL-xblnr.
   
if sy-subrc eq 0.
     
MESSAGE E015(Z1018_SALESORDER_MSG).
          
ENDIF.
endmethod.

Step15:

Save and activate the code and come back.

Step16:

Activate the Implementation and go to FB60 and try to create Vendor Invoice Creation with the same reference as ‘100’.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image