Hallo, steh mal wieder voll auf dem Schlauch:(
Die erste Methode ist statisch:
public static Map<String, HashMap<String, String>> getCnetMap(SAPConnection sapConnection)
{
return exportMap;
}```
und gibt eine Map zurück
Die zweite Methode ist ebenfalls statisch
``` public static void setWareGroup(SAPConnection sapConnection, String _attribute, String _attributeSpecification, String artNumber)
{
Map<String, HashMap<String, String>> map = Characteristic.getCnetMap(sapConnection);
System.out.println("Entscheidung: " + map.toString());
}```
In der zweiten Methode möchte ich auf die gefüllte Map aus der 1. Methode zugreifen....
mit ```Map<String, HashMap<String, String>> map = Characteristic.getCnetMap(sapConnection);```...führe ich aber die erste Methode nochmals aus und das ist schlecht!!!
Weiß da jemand, was ich machen kann???