Skip to Content
0

what is the Object Type to CRD1 table in SAP B1

May 09 at 11:32 AM

51

avatar image

Hi Experts,

what is the Object Type to CRD1(Address) table in SAP B1?

Thanks,

Chenna

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Nagarajan K May 09 at 11:45 AM
0

Hi,

It should be same as Business partner object type 2.

Regards,

Nagarajan

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Nagarjan,

Thanks for your prompt replay,

But here I want to add data into CRD1 table using object Types.

Please check the below code

var company = SBO.DI.Connection.SboCompany;
GeneralService udoGeneralService = company.GetCompanyService().GetGeneralService("2");
var generalData = (GeneralData) udoGeneralService.GetDataInterface(GeneralServiceDataInterfaces.gsGeneralData);
generalData.SetProperty("CardCode", finalBPCardCode);
generalData.SetProperty("CardType", BPCardType);
generalData.SetProperty("CardName", BPCardName);
generalData.SetProperty("Currency", BPCurrency);
udoGeneralService.Add(generalData);

using above code I already added Business Partner details into 'OCRD' table, now I want to add BP CardCode related Address details into CRD1 table using objctType.

Thanks.

0

Hi Chenna Gadicherla

Why are you using 'GeneralService' to add the Business Partner Master Data Record using DI API? GeneralService provides you the access to UDOs.

You can use the following sample code from the SDK Help Center:

Hope it helps!

Kind regards,

ANKIT CHAUHAN

SAP SME Support

bp-diapi.jpg (200.9 kB)
1

Hi Ankit,

thanks for your prompt replay,

I'm working, Boyum-it import XML documents using UFFI function, which is you are mentioned code as VB code in Visual Studio.

Please correct me if I'm wrong.

Thanks,

Chenna

0