I am currently using SAP Sourcing 7. When importing Suppliers from ECC into CLM, only vendor information is populated. In sourcing 7, we have to populate contact information in order to be able to add the supplier to a master agreement. Currently we are doing this through workbook imports.
However, I am working on automating the contact creation for all the vendors populated from ECC. Has anyone worked in creating the contacts for suppliers through a schedule task (IApiTask).
I created an IApiTask to create a contact for the suppliers without the contact information. I am trying to populate the mandatory fields and have an issue populating the DirectoryConfiguration information for a contact.
void
setDirectoryConfiguration
(ObjectReferenceIfc
value)
UNDOCUMENTED (Database Column: DIRECTORY)
I created the ObjectReference using TypeFactory:
However, I am getting the following error when trying to execute the code.
Sourced file: inline evaluation of: ``import com.sap.odp.api.common.types.ObjectReferenceIfc; import com.sap.odp.api. . . . '' : Method Invocation vendorHome.save
Sourced file: inline evaluation of: ``import com.sap.odp.api.common.types.ObjectReferenceIfc; import com.sap.odp.api. . . . '' : Method Invocation vendorHome.save : at Line: 47 : in file: inline evaluation of: ``import com.sap.odp.api.common.types.ObjectReferenceIfc; import com.sap.odp.api. . . . '' : vendorHome .save ( vendor )
Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.odp.common.directory.DirectoryConfigIfc.isCaseSensitive() of an object returned from com.sap.odp.usermgmt.masterdata.AbsAccount.getAbsDirConfig()
Sourced file: inline evaluation of: ``import com.sap.odp.api.common.types.ObjectReferenceIfc; import com.sap.odp.api. . . . '' : Method Invocation vendorHome.save : at Line: 47 : in file: inline evaluation of: ``import com.sap.odp.api.common.types.ObjectReferenceIfc; import com.sap.odp.api. . . . '' : vendorHome .save ( vendor )
Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.odp.common.directory.DirectoryConfigIfc.isCaseSensitive() of an object returned from com.sap.odp.usermgmt.masterdata.AbsAccount.getAbsDirConfig()
Can anyone help me resolve this issue?
-
Bindu