Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     ExcelToXMLConverter excelToXMLConverter = new ExcelToXMLConverter();
     var             xmlDocument             = excelToXMLConverter.ConvertExcelToXMLDocument("BAPI_SALESORDER_CREATEFROMDAT2.xlsx", "BAPI_SALESORDER_CREATEFROMDAT2");
     SAPXmlConverter sAPXmlConverter         = new SAPXmlConverter();
     var             output = sAPXmlConverter.ProcessXMLForSAPBapi("", xmlDocument);
 }
Ejemplo n.º 2
0
        protected override async Task <Action <AsyncCodeActivityContext> > ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
        {
            // Inputs
            var pathToXML   = PathToXML.Get(context);
            var xmlDocument = XMLDocument.Get(context);

            XmlDocument xmlDoc = new XmlDocument();

            xmlDoc.LoadXml(xmlDocument.InnerXml);
            SAPXmlConverter sapXmlConverter = new SAPXmlConverter();
            var             dictionary      = sapXmlConverter.ProcessXMLForSAPBapi(pathToXML, xmlDoc);

            // Outputs
            return((ctx) => {
                Dictionary.Set(ctx, dictionary);
            });
        }