Note: In PAI, you must put each field that you define after FIELD: Create the screen however specified and then fill in the flow logic. Create a program via SE80 and create a custom screen for it. We still have to create our program and screen. Do this for all three tables.Īt this point, it will still not be working.
If everything works fine, it will say active.
You fill out the short description, the z fields, give it an enhancement category, and activate. It will ask you to name your append structure. You then click the piece of paper at the top to create. You then click the Append Structure… button at the top and the appends for BKPF will show up. You need to add your new fields to BKPF, VBKPF, and BSEG via append structures. We then must activate the BAdi implementation so that in the Runtime Behavior section, it says Implementation is called. On the subscreens tab, we define a program and screen call based on screen 10 since it’s for Vendor Basic Data and we’re adding to vendor screens. * fill export parameters from interface attributesĮx_invfo = me->if_ex_badi_fdcb_subbas04~invfo. Method IF_EX_BADI_FDCB_SUBBAS04~GET_DATA_FROM_SCREEN_OBJECT. Me->if_ex_badi_fdcb_subbas04~invfo = im_invfo. * fill interface attributes from importing paramters Method IF_EX_BADI_FDCB_SUBBAS04~PUT_DATA_TO_SCREEN_OBJECT. The methods should be double clicked and each filled in as follows: We get a screen that tells us the two methods that the BAdi has and the name of the implementing class. It will ask you to create it and give it the name of the BAdi, which we’d put BADI_FDCB_SUBBAS04. It’s a classic BAdi rather than a new BAdi. Go to t-code SE19 to create a BAdi implementation. I decided to use BADI_FDCB_SUBBAS04 since some of the 01,02s are used by SAP. In this sample, we’ll be adding in two custom fields.įrom research, I found that BAdi BADI_FDCB_SUBBAS01 would work for the initial requirement. FB60 is for posting vendor invoices and FV60 is for parking vendor invoices. Here we’ll explore how to add custom fields in the header areas of t-codes FB60 and FV60. Some SAP clients need extra information added in to a standard SAP process.