Hi
How we can create Purchase Request using c#
Thanks
Request clarification before answering.
Hi ramco_1917,
There are many ways for creating the connection:
oCompany = new SAPbobsCOM.Company();
oCompany.SLDServer = "SLDServer:40000";
oCompany.Server = "DBSERVER";
oCompany.CompanyDB = "DBNAME";
oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2019;
oCompany.UserName = "manager";
oCompany.Password = "manager";
int C = oCompany.Connect();
Or, you can use Single Sign-On approach for connection. Kindly refer to the SAP Business One SDK Sample in the following folder:
C:\Program Files (x86)\SAP\SAP Business One SDK\Samples\COM UI DI\CSharp\HelloWorld
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ramco_1917,
You can use the Documents object to create the Purchase Request.
You need to initialize as below:
SAPbobsCOM.Documents oPRQ = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseRequest);
After that, you can set the other properties as per your requirement.
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 12 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.