04-17-2019 9:21 PM
I have a requirement to have the ability to create a vendor within a BADi method. This BADi will import the necessary fields needed to create a vendor (fields to populate tables LFA1, LFB1 RF02K)
I have researched ways to create a vendor from BDC to FM to using a BAPI, but unsure of what to use within a BADi method.
Any ideas? I need to create records in LFA1, LFB1, RF02K
04-18-2019 7:34 AM
Where and when is this BAdI called, you must first decide if you can use a commit without breaking the transaction consistency, use the current transaction commit (without mess of common data) or trigger an execution in another LUW (e.g. thru a CALL <frc enabled FM> IN BACKGROUND executed after main transaction commit)
Only then will you choose between BDC, BAPI or method such as VMD_EI_API=>MAINTAIN_BAPI.
NB: RF02K is a structure (non persistent data) and not a database table...
04-18-2019 1:54 PM
We are passing expense report data from a SAP system to FI. This BADi will be called each time a report is created to see
if an employee has a Vendor created against their employee id and if they dont, create a vendor master record. Is there a BAPi or FM available that calls transaction FK02? From my understanding, you cant use BDC within a badi method because you cant execute a PERFORM.
04-18-2019 2:03 PM
Or could I just create a FM containing a BDC to call transaction FK01 and then within my badi method pass my fields to the FM?
05-06-2019 1:28 PM
04-19-2019 5:19 AM
Hi Tim.
Can you mention which BADi you are going to use and how values for vendor master captured.