Example #1
0
        /// <summary>
        /// create IDataparamter with parameter details
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        /// <param name="direction"></param>
        /// <param name="size"></param>
        /// <returns></returns>
        private SAPParameter CreateParameter(string name, object value)
        {
            SAPParameter dataparameter = null;

            if (name == null)
            {
                MessageData messageData = new MessageData("scce00019", Properties.Resources.scce00019);
                logger.Error(messageData, new NullReferenceException());
                throw new Framework.SystemException(messageData, new NullReferenceException());
            }

            dataparameter = new SAPParameter();

            dataparameter.SetValue(name, value);

            return(dataparameter);
        }
Example #2
0
        /// <summary>
        /// add  parameter without datatype
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public void AddParameter(string name, object value)
        {
            SAPParameter dataparameter = CreateParameter(name, value);

            parameterList.Add(dataparameter);
        }