cancel
Showing results for 
Search instead for 
Did you mean: 

Method not found: 'Void SAPbobsCOM.IDocuments.set_CreateQRCodeFrom(System.String)'

855

SAP B1 10.0 Version has release new field of QR Code in accounting tabi have,SAP B1 SQL at PL10 and SAP B1 HANA at FP 2011. I have mapped DI API field as well which is "CreateQRCodeFrom".

But whenever the di api functions calls it throws error as - Method not found: 'Void SAPbobsCOM.IDocuments.set_CreateQRCodeFrom(System.String)'

Any help and solution will be very helpful as soon as quickly.

AdKerremans
Active Contributor
0 Kudos

Hi,

Did you upgrade relink the runtime to your project?

Do you have the correct DI API installed where your application is running?

Regards

Ad

0 Kudos

Hello,

Thank you for reply.

Yes DI API is installed properly because im getting field from Invoice DI API Object, but whenever DI API written function calls it throws error.

Invoice.CreateQRCodeFrom = "QRCODE STRING"; <-this field im getting from DI API so DI API is correclty installed.

Did you upgrade relink the runtime to your project?->sorry, i did not understand as per runtime.

0 Kudos

Hello,

I changed code and when i call below method of QRCode,i got this below error.

Could not load type 'SAPbobsCOM.QRCodeService' from assembly 'SAPBusinessOneSDK, Version=1.0.0.1, Culture=neutral, PublicKeyToken=c7c3cb60e45d119f'.

Code :

public void QRCodeC(string docentry)

{

SAPbobsCOM.CompanyService oCompanyService = oCompany.GetCompanyService(); SAPbobsCOM.QRCodeService oQRCodeService; SAPbobsCOM.QRCodeData oQRCodeData; oQRCodeService = (SAPbobsCOM.QRCodeService)oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.QRCodeService);

oQRCodeData = (SAPbobsCOM.QRCodeData)oQRCodeService.GetDataInterface(QRCodeServiceDataInterfaces.qrcsQRCodeData);

try {

//oQRCodeData.QRCodeText = "Updating QR Code Round 1 ...";

oQRCodeData.ObjectType = 13;

oQRCodeData.ObjectAbsEntry = docentry;

oQRCodeData.FieldName = "U_QRCODE"; oQRCodeService.AddOrUpdateQRCode(oQRCodeData);

}

catch{ }

}

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Dear kajal_ghosh,

It seems that you are using the SAPBusinessOneSDK DLL in your project code.

Could you remove the SAPBusinessOneSDK DLL reference from the project code and add SAPbobsCOM DLL reference and verify whether the issue exists or not after that ?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

0 Kudos

Hi Ankit ,

Thank you for your reply.

I created different service with SAPbobsCOM.dll and it worked, QR Code updated successfully.
But it should work with SDK dll as well, because i'm working in addons.

In one server its working properly with SDK dll. but at another server not , version and all is same for SAP B1 HANA 10 FP 2011.

I'm not understanding why its happening.

From SDK dll we are getting all the field of QR code in di api , so it should update.

Waiting for your reply.

And thank you again for the solution by com.dll

Regards,

Kajal Ghosh | SAP B1 Technical Developer

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear kajal_ghosh,

I would ask you to please raise an incident for SAP Business One Support Team to get it investigated.

Please mention the link of this discussion while creating the incident.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Accepted Solutions (0)

Answers (1)

Answers (1)

saadsabri
Explorer
0 Kudos

Hello

I am facing the a similar problem where I have created an add-on to generate QR Code. I am setting the QR Code in Documents.CreateQRCodeFrom field.

The same release is deployed on multiple clients of SAP B1 10.0 and working fine. On one of our client where the SAP 10 version is 10.00.130 (FP2008), I am getting the error Method not found: 'Void SAPbobsCOM.IDocuments.set_CreateQRCodeFrom(System.String)

On another client, where the version is 10.00.170 (FP 2108), the add-on is generating the QR code correctly. I am using the SAP SDK dll in my references.

Please advise.

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear saadsabri,

Can you try to use SAPbobsCOM DLL instead of SAPBusinessOneSDK DLL reference and verify whether the issue exists or not after that?

Also, can you make sure that SAPBusinessOneSDK DLL reference is not of the older version?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

saadsabri
Explorer
0 Kudos

Dear ankit.chauhan1

The reference is from the SAPBusinessOneSDK dll of 10.00.170.

Also where do I get the SAPbobsCOM dll for SAP 10.0?