using System;
using JDE.BusinessServices;
using JDE.Utility;
using JDE.Log;
namespace YourNamespace
{
class Program
{
static void Main(string[] args)
{
try
{
// Set up the connection to the JD Edwards EnterpriseOne system
JdeConnection jdeConn = new JdeConnection("yourEnterpriseServerName", "yourEnterpriseOneEnvironment", "yourUsername", "yourPassword");
// Create a new instance of the BOM Business Service
BOMService bomService = new BOMService(jdeConn);
// Set the inputs to retrieve an item description by item number
BOMInputItem[] inputs = new BOMInputItem[1];
inputs[0] = new BOMInputItem();
inputs[0].ItemNumber = "yourItemNumber";
// Retrieve the BOM data from the EnterpriseOne system
BOMOutputItem[] output = bomService.getBOMDescription(inputs);
// Output the item description to the console
Console.WriteLine(output[0].Description);
}
catch (Exception ex)
{
// Handle any errors that occur during the API call
Console.WriteLine(ex.Message);