Skip to main content

Blocking "Copy To" function

Comments

7 comments

  • Lothar Hasenkämper

    Moin,

    schau mal hier:

    https://community.sap.com/t5/enterprise-resource-planning-q-a/capture-a-copy-to-copy-form-event/qaq-p/3920533

    Ich glaube das geht in die richtige Richtung. Im Optimizer würde ich vorab schon ItemPressed nehmen

    Grüße Lothar

    0
  • MW Sund

    Hallo Lothar,

    über den PopUpIndicator funktioniert es.

    Danke für den Hinweis.

    Grüße

    Marco

    0
  • Lothar Hasenkämper

    Moin Marco,

    prima das es geklappt hat.

    Magst du deine Lösung einmal sharen.

    gruß Lothar

    0
  • MW Sund

    Hallo Lothar,

    hier ist der Code:

    try 

        if ( pVal.PopUpIndicator.ToString() == "0")
        {
            StatusBar.WriteError("Kopeiren in eine Retourenanfrage ist nicht erlaubt.");
            return false;    
        }

    }
    catch (Exception ex)

        string errorMessage = string.Format("Error in {0} Rule '{1}': {2}", pVal.RuleInfo.RuleType, pVal.RuleInfo.RuleName, ex.Message);
        MessageBox.Show(errorMessage, "OK"); 
        StatusBar.WriteError(errorMessage); 
        Debug.WriteMessage(errorMessage, Debug.DebugLevel.Exception); 
    }

    return true;

     

    MfG

    Marco

    0
  • Lothar Hasenkämper

    Hi Marco,

    vielen Dank. Ich bekomme es leider nicht hin.

    Wie hast du den Optimizer in der Config eingestellt.

    Gruß Lothar

    0
  • MW Sund

    Hallo Lothar,

    hier ein Screenshot:

    MfG

    Marco

     

    0
  • Lothar Hasenkämper

    Ah, da war mein Fehler. Ich hatte ItemPressed als Event Typ

    0

Please sign in to leave a comment.