[DeclareAction("call_SAP_Transaktion_MM03")] public void call_SAP_Transaktion_MM03() { //ERP Nummer aus Artikldaten Lesen CommandLineInterpreter oCLI1 = new CommandLineInterpreter(); ActionCallingContext acc = new ActionCallingContext(); acc.AddParameter("PropDescr", "22056"); oCLI1.Execute("GfDlgMgrActionIGfWind /function:SwitchToList",acc); string strSetting = ""; Settings oSettings= new Settings(); strSetting = oSettings.GetStringSetting("USER.PartsManagementGui.FieldFilter.Auswahl.Data.Value", 7); // Installationspfad der Datei sapshcut.exe und USER daten für SAP angeben string sappath= @"C:\Program Files (x86)\SAP\FrontEnd\SAPgui\sapshcut.exe"; string user ="rumueller";// SAP Username string value = strSetting; string transaktion = "MM03"; // SAP Transaktion per RFC Aufruf öffnen Process compiler = new Process(); compiler.StartInfo.FileName = sappath; compiler.StartInfo.Arguments = "/INI_FILE=\\\\xyz.de\\server\\int\\Application\\SAP\\de_SAP_PROD_SNC.INI /system=REP /language=DE /client=100 /user=" + user + " /command=" + transaktion // erstes DYNPROFELD füllen + " " +"RMMG1-MATNR" + "=" + value // Weiter DYNPROFELDER füllen // + ";" +"DYNPROFELD"+"="+"Daten DYNPROFELD" ; compiler.StartInfo.UseShellExecute = false; compiler.StartInfo.RedirectStandardOutput = true; compiler.Start(); compiler.WaitForExit(); return; }